Signed-off-by: Daniel <845765@qq.com>
This commit is contained in:
Daniel
2026-06-24 20:21:21 +08:00
parent 3662181305
commit ce522708dc
2 changed files with 8 additions and 1 deletions
@@ -2,7 +2,7 @@
outline: none;
font-size: 14px;
line-height: 1.6;
color: var(--b3-theme-on-surface);
color: var(--b3-theme-on-background);
min-height: 24px;
max-height: 120px;
overflow-y: auto;
+7
View File
@@ -2014,6 +2014,13 @@ export class AgentChat extends Model {
this.addCopyButton(el, undefined, ts);
this.scrollToBottom(true);
}
// 流式结束:移除普通 AI 消息的 streaming 状态。
if (this.currentAIElement) {
const bodyEl = this.currentAIElement.querySelector(".agent-chat__body") as HTMLElement;
if (bodyEl) {
bodyEl.classList.remove("agent-chat__body--streaming");
}
}
this.flushThinkingStep();
if (this.pendingConfirms.length > 0) {
for (const c of this.pendingConfirms) {