Description
Running /remote-control in a local Claude Code session (Desktop app) fails with:
Remote Control failed to disconnect: Cannot read properties of undefined (reading 'session_url')
This happens both on connect attempts and disconnect attempts — the error message says "failed to disconnect" even when no connection was ever established, suggesting the client is trying to read session_url from an undefined state object.
Steps to reproduce
- Open Claude Code Desktop app, start/continue a local session
- Enable "Enable Remote Control by default" in Settings → Claude Code
- In the session input, type
/remote-control
- Error appears: "Remote Control failed to disconnect: Cannot read properties of undefined (reading 'session_url')"
Troubleshooting already done
- Confirmed app is on latest version (update check: "no updates available")
- Restarted app and tried in a brand-new session — same error
- Confirmed via claude.ai "Code" tab that this is not a "no environment published" issue (that case gives a different, expected error: "isn't available in this environment")
- Auth token list in settings shows successful past Claude Code connections, so account login itself is not the issue
Note: not the same as #78336
Unlike #78336 (where disconnect actually succeeds despite the error), in my case the connection has never succeeded even once — the mobile app's "Code" tab has never shown this session as connectable. This looks like a distinct failure mode (connection never establishes) sharing the same error message, not just a stale-UI issue after a successful disconnect.
Environment
- Platform: Windows 11 Pro
- Claude Code Desktop app, latest version
- Attempting to connect from Claude mobile app "Code" tab
Expected behavior
/remote-control should generate a session URL / QR code for pairing with the mobile app, and the mobile app's "Code" tab should show the session as connectable.
Description
Running
/remote-controlin a local Claude Code session (Desktop app) fails with:Remote Control failed to disconnect: Cannot read properties of undefined (reading 'session_url')This happens both on connect attempts and disconnect attempts — the error message says "failed to disconnect" even when no connection was ever established, suggesting the client is trying to read
session_urlfrom an undefined state object.Steps to reproduce
/remote-controlTroubleshooting already done
Note: not the same as #78336
Unlike #78336 (where disconnect actually succeeds despite the error), in my case the connection has never succeeded even once — the mobile app's "Code" tab has never shown this session as connectable. This looks like a distinct failure mode (connection never establishes) sharing the same error message, not just a stale-UI issue after a successful disconnect.
Environment
Expected behavior
/remote-controlshould generate a session URL / QR code for pairing with the mobile app, and the mobile app's "Code" tab should show the session as connectable.