mirror of
https://github.com/openclaw/openclaw.git
synced 2026-08-16 07:33:46 -06:00
2b3dc3042f
* fix(doctor): gate cross-state-dir legacy imports behind explicit doctor opt-in A gateway or CLI command started with OPENCLAW_STATE_DIR pointing at a non-default directory used to import legacy files FROM the default ~/.openclaw state dir (exec-approvals.json, plugin-binding-approvals.json) and archive the originals with a .migrated suffix. Any isolated, test, or staging run on a host with production state silently captured and archived the production files. Cross-state-dir imports now run only with the new crossStateDirImports opt-in: openclaw doctor --fix (or an interactive doctor confirm) performs the import; the implicit CLI/gateway preflight leaves the default dir untouched and emits a notice pointing at doctor instead. * test(doctor): include notices in legacy-state detector mocks