[BUG] Remote Control stuck in "failed to disconnect" loop until app restart

Status Closed — duplicate
Reported on v2.1.219
Maintainer reply None cached
Activity 1 comment · opened Jul 25, 2026 · closed Aug 15, 2026

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?

Environment

  • Claude Desktop app: 1.24012.9 (Windows)
  • Bundled Claude Code: 2.1.219
  • OS: Windows 10 Pro (19045), x64

What happened
In a desktop Code session, using the /remote-control command:

  1. Typed /remote-control → connected
  2. Typed /remote-control → to disconnect
  3. Typed /remote-control → to reconnect

From step 2 onward, every /remote-control returns:
"Remote Control failed to disconnect: Cannot read properties of
undefined (reading 'session_url')"
The session then gets stuck: every subsequent /remote-control repeats
the same error and never recovers. The disconnect appears to crash on an
undefined session_url, so the connected/disconnected state never flips.
This occurred BEFORE enabling "Enable remote control by default," and
toggling that setting ON or OFF made no difference.
Workaround
Fully quitting and reopening the desktop app clears the stuck state.
Typing /remote-control again does NOT recover it.
Expected
/remote-control disconnect should handle a missing session_url gracefully
instead of throwing, and the session shouldn't get wedged.

What Should Happen?

Typing /remote-control many times should work nicely connected- disconnect - connected ... , without any issue.

Error Messages/Logs

Remote Control failed to disconnect: Cannot read properties of undefined (reading 'session_url')

Steps to Reproduce

in any code session:
type "/remote-control" into session chat.
1st : remote connected. (OK)
2nd: remote disconnected. (OK)
3rd: show msg "Remote Control failed to disconnect: Cannot read properties of undefined (reading 'session_url')", i expecting remote connected.
4th: show msg "Remote Control failed to disconnect: Cannot read properties of undefined (reading 'session_url')

fully exit claude and start a gain, type "/remote-control" into session chat.
1st : remote connected. (OK)
2nd: remote disconnected. (OK)
3rd: show msg "Remote Control failed to disconnect: Cannot read properties of undefined (reading 'session_url')",

Claude Model

Opus

Is this a regression?

I don't know

Last Working Version

_No response_

Claude Code Version

1.24012.9

Platform

Other

Operating System

Windows

Terminal/Shell

Other

Additional Information

_No response_

View original on GitHub ↗

This issue has 1 comment on GitHub. Read the full discussion on GitHub ↗