remote-control hangs on 'Connecting' — stale environments cannot be cleared
Summary
claude remote-control hangs indefinitely at "Remote Control connecting…" and never establishes a bridge. Regular Claude Code sessions work fine on the same machine.
Environment
- Windows 10 Pro 10.0.19045
- Claude Code (latest, installed via
C:\Users\mike\.local\bin\claude) - Subscription: Claude Max 5x
- Auth scopes include
user:sessions:claude_code
Steps to Reproduce
- Run
claude remote-control --name Mobilefrom terminal - Process outputs "Remote Control connecting…" and hangs
- Never reaches "Connected" or outputs a bridge URL
- Process eventually exits silently back to prompt
Also tried:
- From inside Claude Code session via
/remote-control— same hang - With env vars
TERM=dumb NO_COLOR=1 CI=1— same result - With
--debug-fileflag — same hang, no debug output - From multiple terminals, after reboot — same result
Context
Earlier in the session, claude remote-control was working — it connected, output bridge URLs, and showed "Capacity: 1/32". Multiple automated restarts via a session manager (Claudette) spawned ~16 zombie claude.exe processes over ~30 minutes, each generating new bridge URLs. After killing all zombie processes and rebooting, remote-control no longer connects at all.
Additional Issue: Stale Remote Environments
/remote-env inside Claude Code shows a long list of stale environments from all the zombie sessions. There is no way to:
- Delete stale remote environments
- Clean up orphaned bridge sessions
- List or manage remote environments outside of
/remote-env
This may be related to the connection failure — the server may be rejecting new connections due to too many orphaned environments on the account.
Expected Behavior
claude remote-controlshould connect and output a bridge URL- Stale/orphaned remote environments should have a cleanup mechanism
claude remote-control --cleanor similar should exist to purge stale entries
Workaround
None found. Remote sessions are completely non-functional after the stale environment buildup.
This issue has 5 comments on GitHub. Read the full discussion on GitHub ↗