fix: avoid synthesizing agent defaults
This commit is contained in:
1 parent
2c7d64232e
commit
5939dff092
2 files changed
+3
-2
No files matched your search
@@ -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;
|
||||
|
||||
|
||||
Reference in new issue
Block a user