feat: remove unneeded debug command approach

This commit is contained in:
2025-01-31 10:31:09 +01:00
parent fd8df2abd5
commit 0ff77954db
4 changed files with 63 additions and 202 deletions

View File

@@ -50,12 +50,12 @@ function M.load()
improved_debug = false,
enable_chunking = false,
enable_step_by_step = true,
enable_debug_commands = false,
-- New table for tool auto-accept configuration
-- Removed enable_debug_commands
tool_auto_accept = {
readFile = false,
editFile = false,
replace_in_file = false,
executeCommand = false,
}
}
@@ -106,9 +106,6 @@ function M.load()
if type(result.enable_step_by_step) == "boolean" then
config.enable_step_by_step = result.enable_step_by_step
end
if type(result.enable_debug_commands) == "boolean" then
config.enable_debug_commands = result.enable_debug_commands
end
-- Load tool_auto_accept if present
if type(result.tool_auto_accept) == "table" then
@@ -124,7 +121,7 @@ function M.load()
config.initial_prompt = "You are a coding assistant who receives a project's context and user instructions..."
end
-- Merge the default prompt blocks with the config's initial prompt
-- Merge default prompt blocks
if type(config.default_prompt_blocks) == "table" and #config.default_prompt_blocks > 0 then
local merged_prompt = {}
for _, block_name in ipairs(config.default_prompt_blocks) do