openclaw/src/cli/update-cli
wangchunyue 16df3de098
fix: stabilize config default-leak landing tests (#56834) (thanks @openperf)
* 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>
2026-03-30 09:19:17 +05:30
..
progress.test.ts fix: drop discord opus dependency 2026-03-03 12:23:19 -06:00
progress.ts refactor(cli): separate json payload output from logging 2026-03-22 23:19:17 +00:00
restart-helper.test.ts fix(windows): add windowsHide to detached spawn calls to suppress console windows (#44693) 2026-03-13 21:06:33 +00:00
restart-helper.ts fix(windows): add windowsHide to detached spawn calls to suppress console windows (#44693) 2026-03-13 21:06:33 +00:00
shared.command-runner.test.ts
shared.ts fix(cli): preserve posix default git dir 2026-03-23 11:49:55 -07:00
status.ts refactor(cli): separate json payload output from logging 2026-03-22 23:19:17 +00:00
suppress-deprecations.ts
update-command.ts fix: stabilize config default-leak landing tests (#56834) (thanks @openperf) 2026-03-30 09:19:17 +05:30
wizard.ts