[BUG] Desktop app: /remote-control disconnect throws "Cannot read properties of undefined (reading 'session_url')" and leaves the toggle ON
Preflight Checklist
- [x] I have searched existing issues and this hasn't been reported yet
- [x] This is a single bug report (please file separate reports for different bugs)
- [x] I am using the latest version of Claude Code
What's Wrong?
In the Windows desktop app, disconnecting Remote Control via /remote-control shows
an error, even though the disconnect itself actually succeeds. The Remote Control
toggle/icon in the session header then stays ON (stale UI state) until the session
tab is closed and reopened.
What Should Happen?
Disconnect completes without an error and the toggle immediately reflects the
actual (disconnected) state.
Error Messages/Logs
Remote Control failed to disconnect: Cannot read properties of undefined (reading 'session_url')
Steps to Reproduce
- Claude Desktop app 1.22209.0.0 (Microsoft Store / MSIX) on Windows 11.
- In a desktop app session, enable Remote Control and connect from the Claude
mobile app (the session works fine from mobile).
- Back on desktop, run /remote-control in the session to disconnect.
- The error above is shown.
Observed state afterwards:
- The mobile app immediately shows the session as no longer connectable,
so the disconnect actually succeeded.
- The Remote Control toggle in the desktop session header remains ON until
the session tab is reopened.
Note: the global "Enable remote control by default" setting is OFF; the
connection was established explicitly for this session.
Claude Model
None
Is this a regression?
I don't know
Last Working Version
_No response_
Claude Code Version
2.1.210 (Claude Code) — but this bug is in the desktop app UI (1.22209.0.0)
Platform
Anthropic API
Operating System
Windows
Terminal/Shell
PowerShell
Additional Information
Desktop app: 1.22209.0.0 (Microsoft Store / MSIX), Windows 11 Home 10.0.26200.
Related report from the same environment: #78335 (different bug, /desktop handoff).
This issue has 1 comment on GitHub. Read the full discussion on GitHub ↗