diff --git a/.openclaw-sync/source.json b/.openclaw-sync/source.json index a5b17b588..506ce7bbf 100644 --- a/.openclaw-sync/source.json +++ b/.openclaw-sync/source.json @@ -1,5 +1,5 @@ { "repository": "openclaw/openclaw", - "sha": "77dbc1cda62b75647486366cf37c9b2b237d2dca", - "syncedAt": "2026-04-22T21:27:01.427Z" + "sha": "cc1e843c909581380e9e84d6f4f93a6ddc3b75b3", + "syncedAt": "2026-04-22T21:29:56.356Z" } diff --git a/docs/gateway/configuration.md b/docs/gateway/configuration.md index 972ce45eb..f91e105ba 100644 --- a/docs/gateway/configuration.md +++ b/docs/gateway/configuration.md @@ -100,6 +100,10 @@ The Gateway also keeps a trusted last-known-good copy after a successful startup `openclaw.json` is later changed outside OpenClaw and no longer validates, startup and hot reload preserve the broken file as a timestamped `.clobbered.*` snapshot, restore the last-known-good copy, and log a loud warning with the recovery reason. +If a status/log line is accidentally prepended before an otherwise valid JSON +config, gateway startup and `openclaw doctor --fix` can strip the prefix, +preserve the polluted file as `.clobbered.*`, and continue with the recovered +JSON. The next main-agent turn also receives a system-event warning telling it that the config was restored and must not be blindly rewritten. Last-known-good promotion is updated after validated startup and after accepted hot reloads, including