feat: allow compaction model override via config (#38753)

Merged via squash.

Prepared head SHA: a3d6d6c845
Co-authored-by: starbuck100 <25417736+starbuck100@users.noreply.github.com>
Co-authored-by: jalehman <550978+jalehman@users.noreply.github.com>
Reviewed-by: @jalehman
This commit is contained in:
GitBuck
2026-03-08 18:47:34 +01:00
committed by GitHub
parent b6520d7172
commit caf1b84822
12 changed files with 143 additions and 4 deletions

View File

@@ -378,6 +378,7 @@ const TARGET_KEYS = [
"agents.defaults.compaction.qualityGuard.enabled",
"agents.defaults.compaction.qualityGuard.maxRetries",
"agents.defaults.compaction.postCompactionSections",
"agents.defaults.compaction.model",
"agents.defaults.compaction.memoryFlush",
"agents.defaults.compaction.memoryFlush.enabled",
"agents.defaults.compaction.memoryFlush.softThresholdTokens",
@@ -810,6 +811,9 @@ describe("config help copy quality", () => {
expect(/Every Session|Safety/i.test(postCompactionSections)).toBe(true);
expect(/\[\]|disable/i.test(postCompactionSections)).toBe(true);
const compactionModel = FIELD_HELP["agents.defaults.compaction.model"];
expect(/provider\/model|different model|primary agent model/i.test(compactionModel)).toBe(true);
const flush = FIELD_HELP["agents.defaults.compaction.memoryFlush.enabled"];
expect(/pre-compaction|memory flush|token/i.test(flush)).toBe(true);
});