[BUG] /remote-control crashes after hibernation: Cannot read properties of undefined (reading 'session_url')
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 the machine hibernates with an active Remote Control session, the local registration record is lost. Running /remote-control then fails with:
Remote Control failed to disconnect: Cannot read properties of undefined (reading 'session_url')
The disconnect path dereferences the registration object without checking it exists. Meanwhile the phone-side session is stranded (shows only in Archived, frozen view still claiming a running process; permission prompts render desktop-only).
What Should Happen?
Missing registration treated as "not connected": clean up local state and offer fresh registration instead of throwing a TypeError.
Error Messages/Logs
Remote Control failed to disconnect: Cannot read properties of undefined (reading 'session_url')
Steps to Reproduce
- Start a Claude Code session, enable Remote Control, bind the iOS app
- Hibernate the machine overnight
- Wake, run /remote-control in the same session
Claude Model
Other
Is this a regression?
No, this never worked
Last Working Version
_No response_
Claude Code Version
2.1.195 (Claude Code)
Platform
Anthropic API
Operating System
Windows
Terminal/Shell
Other
Additional Information
Actual model: Claude Fable 5 (not in dropdown). Bug is model-agnostic — CLI state handling, reproduces regardless of model.
Environment is the Claude Desktop app, not a terminal session.
This issue has 11 comments on GitHub. Read the full discussion on GitHub ↗