feat: rename execute_command tool, improve go prompt
This commit is contained in:
@@ -16,8 +16,8 @@ end
|
||||
local function prompt_user_tool_accept(tool_call, conf)
|
||||
local auto_accept = conf.tool_auto_accept[tool_call.tool]
|
||||
|
||||
-- If this is an executeCommand and we see it's destructive, force a user prompt
|
||||
if tool_call.tool == "executeCommand" and auto_accept then
|
||||
-- If this is an execute_command and we see it's destructive, force a user prompt
|
||||
if tool_call.tool == "execute_command" and auto_accept then
|
||||
if is_destructive_command(tool_call.command) then
|
||||
auto_accept = false
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user