mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-12 03:05:45 +00:00
* fix(config): prevent AJV schema defaults from leaking into persisted config Fixes #56772. Ensures that channel and plugin AJV validations respect the applyDefaults option, preventing runtime defaults from being written to openclaw.json during doctor/update flows. * test: address review feedback on #56772 fix - Split validation.channel-metadata.test.ts into applyDefaults true/false cases (fixes CI) - Update io.write-config.test.ts regression test to use a mock plugin registry, ensuring it actually exercises the AJV default injection path * fix(config): revert applyDefaults passthrough to prevent required-field regression Codex-connector correctly identified that BlueBubbles channel schema marks enrichGroupParticipantsFromContacts as both default:true and required. Passing applyDefaults:false during write validation would cause required checks to fail, breaking writeConfigFile entirely. Reverted validation.ts to always use applyDefaults:true for channel/plugin AJV validation. The protection against default leakage into persisted config is fully handled by the persistCandidate change in io.ts (cfgToWrite uses the pre-validation merge-patched value, not validated.config). Updated validation.channel-metadata.test.ts to reflect this architecture. * fix(config): apply legacy web-search normalization to persistCandidate * fix: stabilize config default-leak landing tests (#56834) (thanks @openperf) --------- Co-authored-by: Ayaan Zaidi <hi@obviy.us> |
||
|---|---|---|
| .. | ||
| progress.test.ts | ||
| progress.ts | ||
| restart-helper.test.ts | ||
| restart-helper.ts | ||
| shared.command-runner.test.ts | ||
| shared.ts | ||
| status.ts | ||
| suppress-deprecations.ts | ||
| update-command.ts | ||
| wizard.ts | ||