You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After upgrading both the OpenClaw Gateway (CLI) and the macOS App to version 2026.2.17, the macOS App fails to detect the existing, running Gateway. Instead, it forces a "Setup Wizard" flow which appears to overwrite the existing openclaw.json configuration, leading to a token mismatch loop and eventually causing the Gateway process to crash with an unhandled exception.
To Reproduce
Have a working OpenClaw setup (CLI + App) on a previous version (e.g., 2026.2.15).
Upgrade CLI to 2026.2.17 via npm/yarn.
Upgrade macOS App to 2026.2.17.
Launch the macOS App.
Observation 1: The App does not connect to the existing Gateway; prompts to run Setup.
Observation 2: The Gateway process (CLI) crashes shortly after the App is opened.
Expected behavior
The macOS App should detect the existing ~/.openclaw/openclaw.json configuration and connect to the local Gateway using the existing token without forcing a new setup or modifying the config file.
Logs & Evidence
From gateway.err.log and gateway.log:
Config Overwrite Loop: The App appears to be writing to openclaw.json immediately upon launch, invalidating the previous token.
Token Mismatch: The App tries to connect but is rejected because the Gateway (after restart) or the App itself has desynchronized credentials.
reason=unauthorized: gateway token mismatch
Gateway Crash: The Gateway crashes due to an unhandled rejection in the connection logic during this race condition.
[openclaw] Uncaught exception: Error: Max reconnect attempts (0) reached after code 1006
at GatewayPlugin.handleReconnectionAttempt ...
at GatewayPlugin.handleClose ...
Environment:
OS: macOS 26.2
OpenClaw CLI Version: 2026.2.17
OpenClaw App Version: 2026.2.17
Node Version: v22.x
Workaround / Fix
Downgrading only the macOS App to the previous version (e.g., 2026.2.15) while keeping the CLI at 2026.2.17 resolves the issue. The older App version correctly connects to the new Gateway without triggering the setup loop or config overwrite.
Reacted by Fang Li, peddyhh, Markus Brinck and Buddy
Activity
openclaw-barnacle commentedon Feb 26, 2026
This issue has been automatically marked as stale due to inactivity.
Please add updates or it will be closed.