From 9b1c3f148315835e1c8a47e95f251ffbfffefa0b Mon Sep 17 00:00:00 2001 From: yibo Date: Fri, 28 Aug 2026 16:20:12 +0800 Subject: [PATCH] fix(agent-chat): 聊天状态按 agent 隔离,切换不再串台/互相阻塞 --- web/src/views/AgentChat.vue | 286 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++----------------------------------------------------------------------------------------------------------------------------- 1 file changed, 161 insertions(+), 125 deletions(-) diff --git a/web/src/views/AgentChat.vue b/web/src/views/AgentChat.vue index e4f8e6f..d873a93 100644 --- a/web/src/views/AgentChat.vue +++ b/web/src/views/AgentChat.vue @@ -58,7 +58,7 @@ v-for="conv in filteredConversations" :key="conv.conversationId || conv.id" class="conv-card" - :class="{ active: activeConvId === (conv.conversationId || conv.id) }" + :class="{ active: chatState.activeConvId === (conv.conversationId || conv.id) }" @click="switchConversation(conv.conversationId || conv.id)" >
@@ -86,7 +86,7 @@
-
+
{{ agentInfo.emoji || '🏗️' }}

{{ agentInfo.name || 'Agent' }}

@@ -99,7 +99,7 @@
-
+
{{ msg.role === 'user' ? '👤' : (agentInfo.emoji || '🏗️') }}
@@ -117,24 +117,24 @@
-
+
{{ agentInfo.emoji || '🏗️' }}
{{ agentInfo.name }}
-
+
-
-
+
+
- {{ streaming ? '💭 思考完成' : '💭 思考中...' }} - {{ showThinking ? '▼' : '▶' }} + {{ chatState.streaming ? '💭 思考完成' : '💭 思考中...' }} + {{ chatState.showThinking ? '▼' : '▶' }}
-
{{ thinkingContent }}
+
{{ chatState.thinkingContent }}
-
+
- {{ thinkingText }} + {{ chatState.thinkingText }}
@@ -160,28 +160,28 @@
- - - + + +
-
Shift+Enter 换行 · {{ messages.length }} 条消息
+
Shift+Enter 换行 · {{ chatState.messages.length }} 条消息