From ce46df5dea051ed6fa16a9c491225053abd8f1fe Mon Sep 17 00:00:00 2001 From: Wenjie Zhang Date: Fri, 20 Mar 2026 02:05:11 +0800 Subject: [PATCH] =?UTF-8?q?fix(chat):=20=E5=88=B7=E6=96=B0=E5=AF=B9?= =?UTF-8?q?=E8=AF=9D=E7=8A=B6=E6=80=81=E4=BB=A5=E7=A1=AE=E4=BF=9D=E6=B6=88?= =?UTF-8?q?=E6=81=AF=E5=8E=86=E5=8F=B2=E7=9A=84=E5=87=86=E7=A1=AE=E6=80=A7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- web/src/components/AgentChatComponent.vue | 2 ++ 1 file changed, 2 insertions(+) diff --git a/web/src/components/AgentChatComponent.vue b/web/src/components/AgentChatComponent.vue index 73e2b2b4..ab9eac6b 100644 --- a/web/src/components/AgentChatComponent.vue +++ b/web/src/components/AgentChatComponent.vue @@ -1635,6 +1635,7 @@ const handleSendOrStop = async (payload) => { // 中断后刷新消息历史,确保显示最新的状态 try { await fetchThreadMessages({ agentId: currentAgentId.value, threadId: threadId, delay: 500 }) + fetchAgentState(currentAgentId.value, threadId) message.info('已中断对话生成') } catch (error) { console.error('刷新消息历史失败:', error) @@ -1683,6 +1684,7 @@ const handleApprovalWithStream = async (answer) => { // 异步加载历史记录,保持当前消息显示直到历史记录加载完成 fetchThreadMessages({ agentId: currentAgentId.value, threadId: threadId }).finally(() => { resetOnGoingConv(threadId) + fetchAgentState(currentAgentId.value, threadId) scrollController.scrollToBottom() }) }