fix: avoid synthesizing agent defaults
This commit is contained in:
@@ -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