#agents.defaults.contextPruning.mode invalid input
1 messages ยท Page 1 of 1 (latest)
The issue is a breaking change in 2026.1.22. The old modes adaptive and aggressive are no longer valid.
Valid modes now:
"off"- disabled"cache-ttl"- new TTL-based pruning mode
Fix your config:
{
agents: {
defaults: {
contextPruning: { mode: "cache-ttl" } // or "off" to disable
}
}
}