From 03d3116a30e2b7233a2b9e595b884394055d5669 Mon Sep 17 00:00:00 2001 From: yumoqing Date: Thu, 6 Aug 2026 17:07:11 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=8A=A0file=E6=97=A5=E5=BF=97=20+=20Ag?= =?UTF-8?q?entInput=E6=8F=90=E4=BA=A4=E5=90=8E=E6=B8=85=E7=A9=BA=E6=96=87?= =?UTF-8?q?=E4=BB=B6=E5=88=97=E8=A1=A8UI?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- wwwroot/agent_input.js | 2 ++ wwwroot/api/cockpit_chat.dspy | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/wwwroot/agent_input.js b/wwwroot/agent_input.js index 47469be..99a7f8d 100644 --- a/wwwroot/agent_input.js +++ b/wwwroot/agent_input.js @@ -82,6 +82,8 @@ bricks.AgentInput = class extends bricks.VBox { this.dispatch('inputed', d); this.textw.setValue(''); this.add_files = []; + this.filesbar.clear_widgets(); + this.filesbar.hide(); } file_added(e) { diff --git a/wwwroot/api/cockpit_chat.dspy b/wwwroot/api/cockpit_chat.dspy index 62d373b..0580ea1 100644 --- a/wwwroot/api/cockpit_chat.dspy +++ b/wwwroot/api/cockpit_chat.dspy @@ -550,7 +550,7 @@ if action == 'send_message': message_text = (params_kw or {}).get('message_text', '').strip() user_model_id = (params_kw or {}).get('model_id', '') file_paths_raw = (params_kw or {}).get('file_paths', '[]') - debug(f'send_message: model_id={user_model_id} iteration_id={iteration_id} msg_len={len(message_text)}') + debug(f'send_message: model_id={user_model_id} iteration_id={iteration_id} msg_len={len(message_text)} files={file_paths_raw[:200]}') if not message_text: return json.dumps({"error": "message_text is required"}, ensure_ascii=False)