From 7e2550880df094079619b40e9dba1b28aed7ec1c Mon Sep 17 00:00:00 2001 From: JOJO <1498581755@qq.com> Date: Thu, 27 Nov 2025 19:36:09 +0800 Subject: [PATCH] fix: refine search quota and upload flow --- core/main_terminal.py | 6 +++--- static/src/components/input/InputComposer.vue | 1 - 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/core/main_terminal.py b/core/main_terminal.py index 7077cd1..3d0fe36 100644 --- a/core/main_terminal.py +++ b/core/main_terminal.py @@ -1951,11 +1951,11 @@ class MainTerminal: elif tool_name == "web_search": allowed, quota_info = self.record_search_call() if not allowed: - return { + return json.dumps({ "success": False, - "error": f"搜索配额已用尽,将在 {quota_info.get('reset_at')} 重置。", + "error": f"搜索配额已用尽,将在 {quota_info.get('reset_at')} 重置。请向用户说明情况并提供替代方案。", "quota": quota_info - } + }, ensure_ascii=False) search_response = await self.search_engine.search_with_summary( query=arguments["query"], max_results=arguments.get("max_results"), diff --git a/static/src/components/input/InputComposer.vue b/static/src/components/input/InputComposer.vue index 77e3a3c..11f314f 100644 --- a/static/src/components/input/InputComposer.vue +++ b/static/src/components/input/InputComposer.vue @@ -166,7 +166,6 @@ const triggerQuickUpload = () => { if (!props.isConnected || props.uploading) { return; } - fileUploadInput.value?.click(); emit('quick-upload'); };