Skip to content

Commit 8012790

Browse files
committed
update config
1 parent fbdc58d commit 8012790

1 file changed

Lines changed: 12 additions & 5 deletions

File tree

lua/codecompanion/config.lua

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -694,16 +694,23 @@ If you are providing code changes, use the insert_edit_into_file tool (if availa
694694
},
695695
opts = {
696696
context_management = {
697-
enabled = true, -- boolean, or function(adapter) -> boolean
697+
---@type boolean|fun(adapter: CodeCompanion.HTTPAdapter|CodeCompanion.ACPAdapter): boolean
698+
enabled = true,
699+
698700
editing = {
699701
trigger = 0.65, -- 65% of the context window
700-
keep = 5, -- last N tool results stay intact
701-
exclude_tools = { "memory" }, -- tool names whose results never age out
702+
exclude_tools = { "memory" }, -- tools whose result are never edited
703+
keep_cycles = 3, -- preserve tool results from the last N cycles
702704
},
705+
703706
compaction = {
704707
trigger = 0.85, -- 85% of the context window
705-
adapter = nil, -- nil | string | { name = string, model = string }
706-
fallback_to_chat_adapter = false, -- on summary failure, retry with the chat adapter
708+
709+
---The adapter to use for compaction. Defaults to the current chat adapter
710+
---@type nil|string|{ name: string, model:string }
711+
adapter = nil,
712+
713+
fallback_to_chat_adapter = false, -- on failure, retry with the chat adapter?
707714
},
708715
},
709716

0 commit comments

Comments
 (0)