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)