From 2740ae1451b742e9e4602dcdf6bea71bde514816 Mon Sep 17 00:00:00 2001 From: ymq Date: Sat, 5 Sep 2026 11:07:17 +0800 Subject: [PATCH] =?UTF-8?q?fix(cockpit):=20=E5=AE=8C=E6=AF=95=E8=A1=8C?= =?UTF-8?q?=E6=A0=B7=E5=BC=8F=E6=94=B9=E5=B9=B3=E9=93=BAcolor?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- wwwroot/api/cockpit_chat_v2.dspy | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wwwroot/api/cockpit_chat_v2.dspy b/wwwroot/api/cockpit_chat_v2.dspy index 0cc9466..f5e8930 100644 --- a/wwwroot/api/cockpit_chat_v2.dspy +++ b/wwwroot/api/cockpit_chat_v2.dspy @@ -157,7 +157,7 @@ if action == 'send_message': yield json.dumps({"content": chunk}, ensure_ascii=False) + '\n' # 应答输出结束后追加一行「## 完毕 ##」:Text 控件 otext+i18n,前端按当前语言翻译 # (词条见 pipeline-app/i18n/*/i18n.json;msg.txt 以 # 开头的键会被当注释,故只放 i18n.json) - yield json.dumps({"widgettype": "Text", "options": {"otext": "## 完毕 ##", "text": "## 完毕 ##", "i18n": True, "halign": "left", "css": "agent-done", "style": {"color": "#94a3b8"}}}, ensure_ascii=False) + '\n' + yield json.dumps({"widgettype": "Text", "options": {"otext": "## 完毕 ##", "text": "## 完毕 ##", "i18n": True, "halign": "left", "css": "agent-done", "color": "#94a3b8", "marginBottom": "6px"}}, ensure_ascii=False) + '\n' return await stream_response(request, agent_stream, 'text/plain; charset=utf-8')