惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

S
SegmentFault 最新的问题
Jina AI
Jina AI
罗磊的独立博客
V
Visual Studio Blog
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
J
Java Code Geeks
U
Unit 42
Microsoft Azure Blog
Microsoft Azure Blog
B
Blog RSS Feed
爱范儿
爱范儿
酷 壳 – CoolShell
酷 壳 – CoolShell
Last Week in AI
Last Week in AI
T
The Blog of Author Tim Ferriss
腾讯CDC
Hugging Face - Blog
Hugging Face - Blog
T
Tailwind CSS Blog
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
I
InfoQ
月光博客
月光博客
博客园_首页
Vercel News
Vercel News
P
Proofpoint News Feed
GbyAI
GbyAI
Y
Y Combinator Blog

Recent Commits to openclaw:main

test: merge chat side-result checks · openclaw/openclaw@ddd2c2a test: merge cron history checks · openclaw/openclaw@f7eb746 test: merge responsive navigation shell checks · openclaw/openclaw@c2e4b47 docs(changelog): add codex oauth fixes · openclaw/openclaw@628e6cd test: merge navigation routing cases · openclaw/openclaw@5d8cecb Tests: mock channel registry bundled fallback · openclaw/openclaw@2b08233 Secrets: avoid broad web search discovery for single plugin config · openclaw/openclaw@a464f59 test: merge config view browser checks · openclaw/openclaw@20cf511 fix(status): align oauth health with runtime · openclaw/openclaw@eed7116 feat: add macOS screen snapshots for monitor preview (#67954) thanks … · openclaw/openclaw@f377db1 fix: report shared auth scopes in hello-ok (#67810) thanks @BunsDev · openclaw/openclaw@0b6c39b Auto-reply: avoid eager bundled route fallback · openclaw/openclaw@3ea1bf4 Tests: narrow session binding contract setup · openclaw/openclaw@54e4e16 fix(macOS): enable undo/redo in webchat composer text input (#34962) · openclaw/openclaw@00951dc Tests: speed up channel setup promotion · openclaw/openclaw@82b529a Docs: refresh agent instructions · openclaw/openclaw@5775fe2 fix(auth): serialize OAuth refresh across agents to fix #26322 (#67876) · openclaw/openclaw@8e79080 test: allow ollama public surface boundary test · openclaw/openclaw@7d4f1a6 Docs: add test performance guardrails · openclaw/openclaw@89706d3 Tests: restore context-engine usage proof · openclaw/openclaw@e4c4f95 Tests: slim context engine runtime coverage · openclaw/openclaw@74c198f ci: retry failed custom checkouts · openclaw/openclaw@0ee5baf test: trim duplicate provider auth onboarding cases · openclaw/openclaw@1ffc02e matrix: fix sessions_spawn --thread subagent session spawning (#67643) · openclaw/openclaw@1ce2596 test: reduce auth choice fixture churn · openclaw/openclaw@857b9cd test: mock health status config boundaries · openclaw/openclaw@9d5ab4a test: mock onboard config io boundary · openclaw/openclaw@299694d test: mock legacy state plugin boundaries · openclaw/openclaw@2713089 test: mock channel install boundaries · openclaw/openclaw@b945248 test: mock doctor preview channel boundaries · openclaw/openclaw@b1a3ad4
fix: keep config recovery in doctor · openclaw/openclaw@0...
steipete · 2026-05-04 · via Recent Commits to openclaw:main

@@ -300,9 +300,10 @@ Related:

300300

- [Configuration](/gateway/configuration)

301301

- [Doctor](/gateway/doctor)

302302303-

## Gateway restored last-known-good config

303+

## Gateway rejected invalid config

304304305-

Use this when the Gateway starts, but logs say it restored `openclaw.json`.

305+

Use this when Gateway startup fails with `Invalid config` or hot reload logs say

306+

it skipped an invalid edit.

306307307308

```bash

308309

openclaw logs --follow

@@ -313,19 +314,19 @@ openclaw doctor

313314314315

Look for:

315316316-

- `Config auto-restored from last-known-good`

317-

- `gateway: invalid config was restored from last-known-good backup`

318-

- `config reload restored last-known-good config after invalid-config`

319-

- A timestamped `openclaw.json.clobbered.*` file beside the active config

320-

- A main-agent system event that starts with `Config recovery warning`

317+

- `Invalid config at ...`

318+

- `config reload skipped (invalid config): ...`

319+

- `Config write rejected: ...`

320+

- A timestamped `openclaw.json.rejected.*` file beside the active config

321+

- A timestamped `openclaw.json.clobbered.*` file if `doctor --fix` repaired a broken direct edit

321322322323

<AccordionGroup>

323324

<Accordion title="What happened">

324-

- The rejected config did not validate during startup or hot reload.

325-

- OpenClaw preserved the rejected payload as `.clobbered.*`.

326-

- The active config was restored from the last validated last-known-good copy.

327-

- The next main-agent turn is warned not to blindly rewrite the rejected config.

328-

- If all validation issues were under `plugins.entries.<id>...`, OpenClaw would not restore the whole file. Plugin-local failures stay loud while unrelated user settings remain in the active config.

325+

- The config did not validate during startup, hot reload, or an OpenClaw-owned write.

326+

- Gateway startup fails closed instead of rewriting `openclaw.json`.

327+

- Hot reload skips invalid external edits and keeps the current runtime config active.

328+

- OpenClaw-owned writes reject invalid/destructive payloads before commit and save `.rejected.*`.

329+

- `openclaw doctor --fix` owns repair. It can remove non-JSON prefixes or restore the last-known-good copy while preserving the rejected payload as `.clobbered.*`.

329330330331

</Accordion>

331332

<Accordion title="Inspect and repair">

@@ -338,16 +339,17 @@ Look for:

338339

```

339340

</Accordion>

340341

<Accordion title="Common signatures">

341-

- `.clobbered.*` exists → an external direct edit or startup read was restored.

342+

- `.clobbered.*` exists → doctor preserved a broken external edit while repairing the active config.

342343

- `.rejected.*` exists → an OpenClaw-owned config write failed schema or clobber checks before commit.

343344

- `Config write rejected:` → the write tried to drop required shape, shrink the file sharply, or persist invalid config.

344-

- `Rejected validation details:` → the recovery log or main-agent notice includes the schema path that caused the restore, such as `agents.defaults.execution` or `gateway.auth.password.source`.

345-

- `missing-meta-vs-last-good`, `gateway-mode-missing-vs-last-good`, or `size-drop-vs-last-good:*` → startup treated the current file as clobbered because it lost fields or size compared with the last-known-good backup.

345+

- `config reload skipped (invalid config):` → a direct edit failed validation and was ignored by the running Gateway.

346+

- `Invalid config at ...` → startup failed before Gateway services booted.

347+

- `missing-meta-vs-last-good`, `gateway-mode-missing-vs-last-good`, or `size-drop-vs-last-good:*` → an OpenClaw-owned write was rejected because it lost fields or size compared with the last-known-good backup.

346348

- `Config last-known-good promotion skipped` → the candidate contained redacted secret placeholders such as `***`.

347349348350

</Accordion>

349351

<Accordion title="Fix options">

350-

1. Keep the restored active config if it is correct.

352+

1. Run `openclaw doctor --fix` to let doctor repair prefixed/clobbered config or restore last-known-good.

351353

2. Copy only the intended keys from `.clobbered.*` or `.rejected.*`, then apply them with `openclaw config set` or `config.patch`.

352354

3. Run `openclaw config validate` before restarting.

353355

4. If you edit by hand, keep the full JSON5 config, not just the partial object you wanted to change.