openclaw - 💡(How to fix) Fix Upgrade migration reduces openclaw.json to 323 bytes, losing all configuration [2 comments, 2 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
openclaw/openclaw#71866Fetched 2026-04-26 05:07:22
View on GitHub
Comments
2
Participants
2
Timeline
5
Reactions
0
Participants
Timeline (top)
commented ×2labeled ×2closed ×1

After upgrading to OpenClaw 2026.4.23, \openclaw.json\ was reduced to approximately 323 bytes, losing all user configuration including channels, agents, models, auth profiles, and gateway settings. No recovery prompt or warning was shown.

Root Cause

After upgrading to OpenClaw 2026.4.23, \openclaw.json\ was reduced to approximately 323 bytes, losing all user configuration including channels, agents, models, auth profiles, and gateway settings. No recovery prompt or warning was shown.

RAW_BUFFERClick to expand / collapse

Summary

After upgrading to OpenClaw 2026.4.23, \openclaw.json\ was reduced to approximately 323 bytes, losing all user configuration including channels, agents, models, auth profiles, and gateway settings. No recovery prompt or warning was shown.

Version

OpenClaw 2026.4.23 (a979721) — triggered on upgrade from a prior version

Steps to Reproduce

  1. Run OpenClaw upgrade with an existing \openclaw.json\ that was created/modified by PowerShell (verbose format, UTF-8 BOM, ~59,662 bytes).
  2. Observe that post-upgrade \openclaw.json\ is ~323 bytes containing only minimal/empty configuration.

Expected Behavior

The upgrade migration should preserve all existing configuration. If a migration requires format changes, it should perform them in-place with a pre-migration backup. If the post-migration write would produce a file significantly smaller than the source, the migration should abort and alert the user rather than proceeding silently.

Actual Behavior

Config is silently truncated/replaced with a stub. All channels, auth profiles, agent settings, and model configuration are lost.

Impact

High — users lose complete configuration and must manually restore from backups or reconfigure from scratch.

Recovery

Restore from \openclaw.json.bak\ or equivalent backup. Do not restore from any .rejected.*\ file — those may be incomplete.

extent analysis

TL;DR

Restore the original configuration from a backup, such as \openclaw.json.bak, to recover lost settings after the OpenClaw upgrade.

Guidance

  • Verify that a backup of the original \openclaw.json file exists, such as \openclaw.json.bak, before attempting recovery.
  • Check the file size and contents of the backup to ensure it contains the complete configuration.
  • Manually restore the configuration from the backup, avoiding any files with the .rejected extension.
  • Consider reporting the issue to the OpenClaw developers to prevent similar data loss in future upgrades.

Example

No code snippet is provided as it is not necessary for this specific issue.

Notes

The provided guidance assumes that a backup of the original configuration exists. If no backup is available, users will need to reconfigure their settings from scratch.

Recommendation

Apply workaround: Restore from a backup, as there is no clear indication that a fixed version of OpenClaw is available that addresses this specific issue.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

openclaw - 💡(How to fix) Fix Upgrade migration reduces openclaw.json to 323 bytes, losing all configuration [2 comments, 2 participants]