fix(config): require doctor for invalid configs (#764 — thanks @mukhtharcm)

This commit is contained in:
Peter Steinberger
2026-01-13 01:18:18 +00:00
parent 20ba8d4891
commit 231d2d5fdf
7 changed files with 80 additions and 11 deletions

View File

@@ -64,6 +64,8 @@ Tip: `--json` does **not** imply non-interactive mode. Use `--non-interactive` (
1) **Existing config detection**
- If `~/.clawdbot/clawdbot.json` exists, choose **Keep / Modify / Reset**.
- If the config is invalid or contains legacy keys, the wizard stops and asks
you to run `clawdbot doctor` before continuing.
- Reset uses `trash` (never `rm`) and offers scopes:
- Config only
- Config + credentials + sessions