fix: avoid synthesizing agent defaults

This commit is contained in:
Peter Steinberger committed 2026-01-08 22:26:29 +01:00
1 parent 2c7d64232e
commit 5939dff092
2 files changed
+3 -2

No files matched your search

+1
View File
@@ -165,6 +165,7 @@ export function applyContextPruningDefaults(
cfg: ClawdbotConfig,
): ClawdbotConfig {
const agent = cfg.agent;
if (!agent) return cfg;
const contextPruning = agent?.contextPruning;
if (contextPruning?.mode) return cfg;