claude-code - 💡(How to fix) Fix Remote Control: session shows "Connected" on mobile but cannot be selected as remote environment on e ither client [2 comments, 3 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
anthropics/claude-code#54740Fetched 2026-04-30 06:37:19
View on GitHub
Comments
2
Participants
3
Timeline
6
Reactions
0
Timeline (top)
labeled ×4commented ×2
RAW_BUFFERClick to expand / collapse

Environment

  • Claude Code CLI: 2.1.123
  • Claude Code Desktop (Windows): updated to latest as of 2026-04-29
  • Claude AI mobile app (iOS): latest, signed in with same Claude Max account
  • OS: Windows 10 Pro 22H2 (build 19045)
  • Account: Claude Max (OAuth), same on all three clients

Summary

After invoking /remote-control in an active CLI session, the bridge appears to register: a bridgeSessionId is written to ~/.claude/sessions/<pid>.json, and the session shows up as Connected in the Claude AI mobile app's Code tab. However, no client offers a way to actually select the session as a remote environment:

  • Claude Code Desktop (Windows): the environment selector lists Local / Cloud / SSH normally, but Remote Control reads "No active sessions." even while mobile shows the same session as Connected.
  • Claude AI mobile (iOS): tapping the Connected session opens it as a regular cloud chat — there is no UI affordance to attach it as a remote environment / send commands that execute on the local CLI.

So the bridge handshake half-succeeds (status shows Connected on mobile, bridgeSessionId is issued) but the user-facing "use as remote environment" capability is missing on both clients.

Reproduction

  1. Update CLI to 2.1.123 and Desktop to the version released 2026-04-28; ensure mobile app is up to date.
  2. Sign all three (CLI, Desktop, mobile) into the same Claude Max account.
  3. Fully close Desktop and CLI; reopen both.
  4. In a fresh CLI session: /remote-control → output: "Remote Control connecting…"
  5. Observe:
    • ~/.claude/sessions/<pid>.json now contains a bridgeSessionId.
    • In mobile Claude AI → Code tab, the session appears under "Today" with a green Connected badge.
    • In Desktop → environment selector → Remote Control: "No active sessions."
    • Tapping the Connected entry on mobile opens a regular chat with no remote-environment controls.

Expected

A clear way to use the Connected CLI session as a remote environment from at least one of the clients (Desktop and/or mobile).

Actual

The session is registered (Connected status visible on mobile, bridgeSessionId persisted on disk) but cannot be selected/attached as a remote environment from either client.

Diagnostic data

  • ~/.claude/sessions/<pid>.json contains valid bridgeSessionId (e.g. session_01KzBEe1fytt3qkK2uhrdCRc), status: busy, version: 2.1.123, peerProtocol: 1, kind: interactive, entrypoint: cli.
  • Most recent debug log under ~/.claude/debug/ has zero entries matching bridge|remote|register|wss|websocket|handshake|connect.
  • ~/.claude/telemetry/ has no failed-events file from this session (the only such file predates this issue by ~6 days).
  • No env vars block remote-control eligibility.

Notes

Performed full clean restart of CLI, Desktop, and mobile after updating all three; symptom persists. The split state (mobile shows Connected, Desktop shows No active sessions) is itself probably a clue: the Connected-badge query on mobile sees the registered bridge session that the Desktop selector does not.

Screenshots available on request (Desktop env selector showing "No active sessions" and mobile Code tab showing the same session as Connected).

extent analysis

TL;DR

The issue may be resolved by ensuring consistent session handling across all clients, potentially involving updates to the bridge protocol or environment selector logic.

Guidance

  • Verify that the bridgeSessionId in ~/.claude/sessions/<pid>.json is correctly formatted and matches the expected format.
  • Check the debug logs under ~/.claude/debug/ for any entries related to bridge or remote control registration, even if the initial check showed no matching entries.
  • Investigate the environment selector logic in Claude Code Desktop to determine why it does not recognize the active session registered on the mobile app.
  • Consider testing the remote control feature with a different account or setup to isolate if the issue is specific to the current configuration.

Example

No code snippet is provided as the issue seems to be related to the interaction between different clients and the bridge protocol, rather than a specific code snippet.

Notes

The issue might be related to a mismatch in how sessions are handled between the mobile app and the Desktop client. Further investigation into the bridge protocol and environment selector logic is needed to determine the root cause.

Recommendation

Apply a workaround by checking for updates to the Claude Code CLI, Desktop, and mobile app, as the issue might be resolved in a future update. This is because the issue persists even after updating all clients to the latest versions available as of the reported date.

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

claude-code - 💡(How to fix) Fix Remote Control: session shows "Connected" on mobile but cannot be selected as remote environment on e ither client [2 comments, 3 participants]