mirror of
https://github.com/openclaw/openclaw.git
synced 2026-08-02 23:11:34 +00:00
* fix(config): compaction.enabled is rejected as invalid config Setting agents.defaults.compaction.enabled in openclaw.json made the whole config fail to load with "agents.defaults.compaction: Invalid input", so auto-compaction could not be turned off. The runtime already reads the field (SettingsManager.getCompactionEnabled returns settings.compaction?.enabled ?? true, and setCompactionEnabled writes it), and the documented config example in docs/reference/session-management-compaction.md already shows "enabled: true". Only the zod schema was missing the key, and the compaction object is .strict(), so the unknown key rejected the config. Adds enabled to AgentDefaultsSchema and to AgentCompactionConfig. Closes #110065 Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> * fix(config): wire compaction enablement through runtime Align the accepted compaction.enabled contract across runtime precedence, help, labels, docs, and generated schema baselines. Co-authored-by: Zakaria Rahali <zakariarahali288@gmail.com> * test(config): preserve omitted compaction setting Document the reload lifecycle and lock in project-setting precedence when the OpenClaw config key is absent. Co-authored-by: Zakaria Rahali <zakariarahali288@gmail.com> * refactor(config): centralize compaction runtime override * fix(config): preserve compaction safety guards * fix(scripts): avoid ripgrep in merge fallback * docs(config): refresh current main baseline --------- Co-authored-by: Claude Opus 5 <noreply@anthropic.com> Co-authored-by: Peter Steinberger <steipete@gmail.com>