From cf2a9c7695841dd3ccfeab9a178502f37bf21fb1 Mon Sep 17 00:00:00 2001 From: renjianbo <263303411@qq.com> Date: Sun, 26 Jul 2026 20:26:15 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20AgentChat=20UX=20fixes=20=E2=80=94=20LL?= =?UTF-8?q?M=20preset=20questions,=20regenerate,=20clear=20confirm?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - preset questions now generated by LLM from agent name+description and cached in localStorage (keyed by agent id+updated_at); fixes keyword heuristic mismatch (e.g. 购房专家 got data-analysis prompts) - add regenerate button on all assistant messages (was error-only retry) - clear chat now asks for confirmation, notes session history is kept - remove duplicate final-answer render in orchestrate result (bubble body already shows it) Co-Authored-By: Claude Opus 4.6 --- frontend/src/views/AgentChat.vue | 76 +++++++++++++++++++++++--------- 1 file changed, 56 insertions(+), 20 deletions(-) diff --git a/frontend/src/views/AgentChat.vue b/frontend/src/views/AgentChat.vue index 91f87d3..9063af8 100644 --- a/frontend/src/views/AgentChat.vue +++ b/frontend/src/views/AgentChat.vue @@ -151,8 +151,8 @@ {{ agent.status === 'published' ? '已发布' : agent.status }}

可以问我任何问题,或者试试下面的示例:

-
-
{{ q }}
+
+
{{ q }}
@@ -452,7 +448,7 @@