chore: 除 run_command 外所有工具改为自动执行无需确认

This commit is contained in:
thzxx
2026-04-16 19:32:03 +08:00
parent 5de4cfbabb
commit fe0daf7075
2 changed files with 12 additions and 12 deletions
+1 -1
View File
@@ -353,7 +353,7 @@ export const TOOL_DEFINITIONS: ToolDefinition[] = [
}
];
const CONFIRM_TOOLS = ['write_file', 'delete_file', 'run_command', 'create_directory', 'move_file', 'copy_file', 'append_file', 'edit_file', 'download_file', 'replace_in_files', 'compress'];
const CONFIRM_TOOLS = ['run_command'];
export function needsConfirmation(toolName: string): boolean {
return CONFIRM_TOOLS.includes(toolName);