Remote Control: crash on /compact ('Cannot read properties of undefined (reading session_url)') — session vanishes from mobile until new desktop activity
Environment
- Claude Desktop (macOS) 1.22209.0, macOS Darwin 25.5.0
- "Enable remote control by default" is ON (
ccRemoteControlDefaultEnabled: trueinclaude_desktop_config.json)
Bug 1: Remote Control toggle crashes during /compact
When a session with Remote Control enabled runs /compact (manual), the app attempts to disable/re-register remote control and fails with:
Remote Control failed to disconnect: Cannot read properties of undefined (reading 'session_url')
~/Library/Logs/Claude/main.log:
2026-07-17 13:00:37 [info] Disabling remote control for session local_5586398a-33e2-45fb-b1e8-be21afae9741
2026-07-17 13:00:38 [error] Failed to toggle remote control for local_5586398a-33e2-45fb-b1e8-be21afae9741: Cannot read properties of undefined (reading 'session_url')
After this failure there is no subsequent "Enabling remote control" line — the session silently drops off the mobile/claude.ai session list. It reappears on mobile only after new activity in the desktop session (typing a message). This is a deadlock when away from the desktop: an auto-compact makes the session invisible remotely, and you can't send it the "wake-up" message from mobile because it isn't listed.
Steps to reproduce
- Enable Remote Control for a desktop session (link appears, session visible on mobile).
- Run
/compactin that session. - Error toast appears; session is gone from the mobile session list.
- Type any message in the desktop session → it re-registers and reappears on mobile.
Expected: Remote Control survives compaction (or re-registers immediately), no crash.
Bug 2 (related): "Enable remote control by default" mints a new remote session URL on every app restart
With the default-enable setting ON, every app restart re-registers each session under a new claude.ai/code/session_… URL (log shows the same local session getting a different remote URL on 4 consecutive days). On mobile, old entries die and new ones appear as separate sessions, which makes the feature look like it must be re-enabled per session. Expected: a stable remote identity per local session across app restarts.
Log pattern (same local session, different remote URL each day):
2026-07-14 14:14:45 Enabling remote control for session local_5586398a-…
2026-07-14 14:14:45 Remote control enabled: https://claude.ai/code/session_01WufjS4…
2026-07-15 10:40:34 Remote control enabled: https://claude.ai/code/session_01UXnefn…
2026-07-16 10:11:22 Remote control enabled: https://claude.ai/code/session_01Cjro8g…
2026-07-17 10:38:44 Remote control enabled: https://claude.ai/code/session_01Kns9bC…This issue has 1 comment on GitHub. Read the full discussion on GitHub ↗