Summary
Running openclaw doctor --fix overwrites a valid, working configuration file with its own "corrected" version, which may not match the user's intended setup. No backup is created.
Steps to Reproduce
- Have a working config with customizations (plugins, model overrides, exec policy, etc.)
- Run
openclaw doctor --fix
- Config is overwritten — customizations lost
Expected
doctor --fix should either:
- (a) Create a backup before modifying
- (b) Only fix actual errors while preserving valid settings
- (c) Prompt before overwriting
Workaround
Never run openclaw doctor --fix on a configured gateway.
Impact
Destructive — total loss of gateway configuration, same as a config wipe on restart but user-initiated.
Environment
- macOS 15 (arm64)
- OpenClaw 2026.2.6
Summary
Running
openclaw doctor --fixoverwrites a valid, working configuration file with its own "corrected" version, which may not match the user's intended setup. No backup is created.Steps to Reproduce
openclaw doctor --fixExpected
doctor --fixshould either:Workaround
Never run
openclaw doctor --fixon a configured gateway.Impact
Destructive — total loss of gateway configuration, same as a config wipe on restart but user-initiated.
Environment