-
-
Notifications
You must be signed in to change notification settings - Fork 80.7k
iOS app loses Gateway Token after QR pairing; mobile chat stays disconnected over LAN #98033
Copy link
Copy link
Closed as not planned
Closed as not planned
Copy link
Labels
P1High-priority user-facing bug, regression, or broken workflow.High-priority user-facing bug, regression, or broken workflow.clawsweeper:fix-shape-clearClawSweeper found a clear likely implementation shape for this issue.ClawSweeper found a clear likely implementation shape for this issue.clawsweeper:queueable-fixClawSweeper marked this issue as an existing queue_fix_pr work candidate.ClawSweeper marked this issue as an existing queue_fix_pr work candidate.clawsweeper:source-reproClawSweeper found a high-confidence source-level issue reproduction.ClawSweeper found a high-confidence source-level issue reproduction.impact:auth-providerAuth, provider routing, model choice, or SecretRef resolution may break.Auth, provider routing, model choice, or SecretRef resolution may break.impact:session-stateSession, memory, transcript, context, or agent state can drift or corrupt.Session, memory, transcript, context, or agent state can drift or corrupt.issue-rating: 🦞 diamond lobsterVery strong issue quality with high-confidence source-level or clear reproduction.Very strong issue quality with high-confidence source-level or clear reproduction.maturity:stableIssue affects a taxonomy feature currently scored M4/M5.Issue affects a taxonomy feature currently scored M4/M5.no-staleExclude from stale automationExclude from stale automation
Description
Metadata
Metadata
Assignees
Labels
P1High-priority user-facing bug, regression, or broken workflow.High-priority user-facing bug, regression, or broken workflow.clawsweeper:fix-shape-clearClawSweeper found a clear likely implementation shape for this issue.ClawSweeper found a clear likely implementation shape for this issue.clawsweeper:queueable-fixClawSweeper marked this issue as an existing queue_fix_pr work candidate.ClawSweeper marked this issue as an existing queue_fix_pr work candidate.clawsweeper:source-reproClawSweeper found a high-confidence source-level issue reproduction.ClawSweeper found a high-confidence source-level issue reproduction.impact:auth-providerAuth, provider routing, model choice, or SecretRef resolution may break.Auth, provider routing, model choice, or SecretRef resolution may break.impact:session-stateSession, memory, transcript, context, or agent state can drift or corrupt.Session, memory, transcript, context, or agent state can drift or corrupt.issue-rating: 🦞 diamond lobsterVery strong issue quality with high-confidence source-level or clear reproduction.Very strong issue quality with high-confidence source-level or clear reproduction.maturity:stableIssue affects a taxonomy feature currently scored M4/M5.Issue affects a taxonomy feature currently scored M4/M5.no-staleExclude from stale automationExclude from stale automation
Type
Fields
Priority
None yet
Summary
On iOS, QR pairing can appear successful, but the mobile chat/Control UI remains unusable: the app shows the gateway as connected during/after QR setup, then the chat view reports
disconnected, and returning to the app can lose the stored Gateway Token, forcing the onboarding/token flow to loop. Safari on the same phone also fails to keep/use the Control UI session reliably.This looks related to the recent iOS LAN/setup-code/operator-token fixes, but it is still reproducible with the current gateway and the currently available iOS app build.
Environment
OpenClaw 2026.6.11-beta.2 (4f9d586)openclaw-ios/node,ui v2026.6.10iPhone16,2, iOS26.5.0lantokenoffhttp://192.168.1.120:18789/gateway.controlUi.allowInsecureAuth=truegateway.controlUi.dangerouslyDisableDeviceAuth=trueNo gateway auth token is included here.
Observed behavior
device.statusworked successfully.disconnected.Trying to invoke the node after that fails with:
Gateway itself is running and reachable locally:
Expected behavior
After QR pairing on iOS, the app should persist the correct gateway/operator token, the node should remain connected, and the in-app chat/Control UI should be usable without re-entering the Gateway Token.
Related work
This appears adjacent to, or a regression around, the same auth/onboarding class as:
Notes
The gateway-side pairing is not completely broken: the iPhone has been seen as paired/approved and node commands worked briefly. The failure appears to be specifically the mobile app/Safari Control UI operator session or token persistence path after pairing, especially on plain LAN HTTP without Tailscale/HTTPS.
There is currently no newer iOS app update available to the user, so if the fix requires an app release newer than
ui v2026.6.10, the currently shipped iOS build is effectively non-functional for mobile chat over this setup.