[BUG] Remote control session stuck in pending state after disconnection
Resolved 💬 3 comments Opened Mar 26, 2026 by hengruo Closed Mar 30, 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?
After stopping claude remote-control on a remote host, the claude.ai/code web UI correctly shows "Disconnected" status but the session becomes stuck — the github_compare_branches TanStack Query continues retrying indefinitely against the dead session_ingress proxy, causing persistent 401 errors and preventing the session from reaching a clean idle state.
failed request: POST https://claude.ai/v1/session_ingress/session/{SESSION_ID}/git_proxy/compare
What Should Happen?
Claude code webpage/desktop should end this session
Error Messages/Logs
N/A
Steps to Reproduce
- Start
claude remote-controlon a remote host - Open the bridged session in claude.ai/code
- Interact with the session (Claude creates a working branch like
claude/main-R1175) - Stop the
claude remote-controlprocess on the remote host (Ctrl+C or kill) - Observe the web UI
Claude Model
Opus
Is this a regression?
I don't know
Last Working Version
_No response_
Claude Code Version
2.1.81
Platform
Anthropic API
Operating System
Ubuntu/Debian Linux
Terminal/Shell
Other
Additional Information
_No response_
This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗