Remote control bridge dies silently and doesn't auto-reconnect (requires full app restart)
Status Fixed / completed
Reported on v2.1.209
Maintainer reply None cached
Activity 0 comments · opened Jul 18, 2026 · closed Jul 24, 2026
Description
A local session's remote-control bridge silently dies and does not automatically reconnect while the desktop app remains open. The only way to restore it is fully quitting and relaunching the app.
Steps to reproduce / observed sequence
- A local session has remote control successfully enabled and working (
Remote control enabled: https://claude.ai/code/session_...logged,bridge_state: connected). - At some point, an automatic "disable remote control" call for that session throws:
````
[error] Failed to toggle remote control for <session-id>: Cannot read properties of undefined (reading 'session_url')
- In one instance this self-recovered within ~20 seconds (a follow-up automatic "enable remote control" call succeeded with no error).
- In a second instance, the session had been sitting idle for an extended period (many hours) with zero other background log activity for that session in between (no crash entries, no OS sleep/wake events, no reboot) — then the same
disable→session_urlerror occurred again, and this time it did not self-recover. The session's remote bridge stayed dead with no further retry attempts logged for the rest of that idle period. - Running the
/remote-controlslash command inside the affected session returned "isn't available in this environment" instead of surfacing the actual error or attempting to reconnect. - Fully closing and reopening the desktop app was the only thing that restored remote control — app startup re-runs a disable→enable sequence for restored sessions, and the enable step succeeded on that pass.
Expected behavior
Either the remote-control bridge shouldn't die silently in the first place, or the app should detect a dead/disconnected bridge for an open session and automatically retry reconnecting it in the background, without requiring a full quit+relaunch.
Actual behavior
- A
TypeError: Cannot read properties of undefined (reading 'session_url')is thrown from the remote-control disable/toggle path. - No automatic retry occurs while the app stays open.
/remote-controldoes not report the underlying error or attempt to fix the connection.
Relevant log lines (from main.log)
[info] Disabling remote control for session <session-id>
[error] Failed to toggle remote control for <session-id>: Cannot read properties of undefined (reading 'session_url')
...later, after app restart...
[info] Enabling remote control for session <session-id>
[info] [remote-control] bridge_state: ready
[info] [remote-control] bridge_state: connected
Environment
- Claude Desktop app (Windows)
- App version: 1.22209.0
- Bundled claude-code CLI version: 2.1.209
- OS: Windows 11