feat: Add auto_approve_tool_permissions config allowing the confirm dialogs to be disabled in agentic mode (#2110)

Co-authored-by: pre-commit-ci-lite[bot] <117423508+pre-commit-ci-lite[bot]@users.noreply.github.com>
This commit is contained in:
Eli Oshinsky
2025-06-04 11:02:15 -04:00
committed by GitHub
parent c23ce02bbd
commit 16e041ff9a
8 changed files with 30 additions and 6 deletions

View File

@@ -364,6 +364,10 @@ _See [config.lua#L9](./lua/avante/config.lua) for the full config_
support_paste_from_clipboard = false,
minimize_diff = true, -- Whether to remove unchanged lines when applying a code block
enable_token_counting = true, -- Whether to enable token counting. Default to true.
auto_approve_tool_permissions = false, -- Default: show permission prompts for all tools
-- Examples:
-- auto_approve_tool_permissions = true, -- Auto-approve all tools (no prompts)
-- auto_approve_tool_permissions = {"bash", "replace_in_file"}, -- Auto-approve specific tools only
},
mappings = {
--- @class AvanteConflictMappings