You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
config.patch (and the underlying config validator) rejects agents.defaults.compaction.model, agents.defaults.compaction.customInstructions, and agents.defaults.compaction.postCompactionSections as "Unrecognized key" — even though:
config.schema.lookup returns full schema entries with type, hint label, and help text for all three
The runtime schema file (dist/runtime-schema-*.js) defines all three keys
Same rejection for customInstructions and postCompactionSections.
Root Cause (suspected)
The config validator likely uses a Zod/JSON-Schema with additionalProperties: false on the compaction object, and the newer keys were added to the hint registry and runtime schema but not to the validator's allowlist.
Workaround
Direct file edit of openclaw.json + SIGUSR1 restart. The gateway loads and uses the keys correctly — it's only the write-time validator that rejects them.
Summary
config.patch(and the underlying config validator) rejectsagents.defaults.compaction.model,agents.defaults.compaction.customInstructions, andagents.defaults.compaction.postCompactionSectionsas "Unrecognized key" — even though:config.schema.lookupreturns full schema entries with type, hint label, and help text for all threedist/runtime-schema-*.js) defines all three keyscompaction.modelresolution (fix(compaction): resolve model override in runtime context for all context engines #56710)Reproduction
Same rejection for
customInstructionsandpostCompactionSections.Root Cause (suspected)
The config validator likely uses a Zod/JSON-Schema with
additionalProperties: falseon the compaction object, and the newer keys were added to the hint registry and runtime schema but not to the validator's allowlist.Workaround
Direct file edit of
openclaw.json+SIGUSR1restart. The gateway loads and uses the keys correctly — it's only the write-time validator that rejects them.Environment
config.patchtool and presumablyopenclaw config setCLI