mirror of
https://github.com/openclaw/openclaw.git
synced 2026-04-23 05:58:37 +00:00
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:
@@ -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);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user