From 76981e4206ef204ee2fb9311b0a5f331e3cd953f Mon Sep 17 00:00:00 2001 From: Metona Date: Fri, 17 Apr 2026 08:53:26 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=B7=A5=E5=85=B7=E9=9D=A2=E6=9D=BF=20b?= =?UTF-8?q?adge=20=E6=98=BE=E7=A4=BA=E4=B8=8E=E4=B8=8B=E6=8B=89=E6=A1=86?= =?UTF-8?q?=E6=A0=B7=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 1. 修复工具面板中除 run_command 外所有工具的 badge 错误显示为需确认,实际应为自动 - 根因:CONFIRM_TOOLS 数组仅包含 run_command,但 HTML 硬编码了多个工具为 confirm - 涉及工具:write_file, create_directory, delete_file, move_file, copy_file, append_file, edit_file, download_file, replace_in_files, compress 2. 修复 run_command 执行模式下拉框未选中项白字白底不可见 - 根因:内联样式引用了未定义的 CSS 变量 --bg-tertiary,option 元素无暗色背景 - 改用 --bg-card 并为 option 元素添加显式暗色背景 --- src/renderer/index.html | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/src/renderer/index.html b/src/renderer/index.html index 2d644c7..f86bf8e 100644 --- a/src/renderer/index.html +++ b/src/renderer/index.html @@ -386,7 +386,7 @@
读取文件内容,支持指定行范围
-
✏️write_file需确认
+
✏️write_file自动
写入文件,自动创建父目录
@@ -398,19 +398,19 @@
按文件名或内容搜索文件
-
📂create_directory需确认
+
📂create_directory自动
创建目录,自动创建父级
-
🗑️delete_file需确认
+
🗑️delete_file自动
删除文件或目录
-
📦move_file需确认
+
📦move_file自动
移动或重命名文件/目录
-
📋copy_file需确认
+
📋copy_file自动
复制文件或目录到新位置
@@ -418,11 +418,11 @@
抓取网页内容,自动提取文本
-
append_file需确认
+
append_file自动
追加内容到文件末尾
-
✂️edit_file需确认
+
✂️edit_file自动
文件内查找替换,支持全部替换
@@ -430,10 +430,10 @@
执行 shell 命令,无超时限制
- + + +
@@ -446,7 +446,7 @@
以树形结构展示目录内容
-
⬇️download_file需确认
+
⬇️download_file自动
从 URL 下载文件到本地
@@ -454,7 +454,7 @@
对比两个文件,显示差异
-
🔄replace_in_files需确认
+
🔄replace_in_files自动
按 glob 模式批量查找替换多个文件
@@ -466,7 +466,7 @@
Git 全操作:status/log/diff/add/commit/push/pull/branch/checkout/merge/stash/remote/clone/init/reset/tag
-
🗜️compress需确认
+
🗜️compress自动
创建或解压 zip/tar.gz 归档