Desktop sessions become permanently unreachable ("Remote Control disconnected") after going dormant, with no local transcript cache
Environment: Windows 11, Claude Code desktop app, single local machine (no other hosts involved).
Symptom: A session shows full scrollable history in the sidebar but can never reconnect. Banner: "Claude Code on the computer running this session is offline... if Claude Code was closed, start it there again and reopen this conversation." Fully quitting and relaunching the desktop app — repeatedly, over time — does not restore it. This has happened to many sessions over time, not a single incident.
Trigger pattern: this consistently happens to sessions I've let go dormant (not touched for a while) and then come back to resume later — not to sessions in active, continuous use.
Workaround (lossy): abandon the session, or manually copy its visible content into a new one.
What I found investigating two current stuck sessions:
- Session enumeration via the app's own session-listing undercounts real sessions substantially (~20-25 surfaced vs 37 actual
.jsonltranscript files for one project alone) — the two stuck sessions don't appear in it at all, live or archived. - Unlike other sessions, no
.jsonltranscript for either stuck session exists anywhere under~/.claude/projects(searched the full tree, using exact strings from the session's own prompts) — so unlike a normal local session, there's nothing to recover from disk. ~/.claude/projects/<project>/bridge-pointer.jsonis a single file per project (not per-session), which seems like it could only track one "standalone" environment binding at a time per project directory — possibly relevant to why concurrently-open sessions in the same project lose their reconnect path, but I couldn't confirm the mechanism from the client side.
Impact: repeated, unrecoverable loss of long-running work sessions with no user-facing way to diagnose or fix it, specifically tied to letting a session sit idle before returning to it.
I can share the specific session names/IDs in private correspondence if that helps debugging — leaving them out of this public report.
Possibly related to two other open reports of session-reconnect failure, in case they share a root cause (or in case they're confirmed distinct, worth noting that too):
- #60790 (closed as duplicate) — "remote control disconnected" when resuming a session whose CLI owner is gone, e.g. after a PC restart. This report's dormancy trigger looks like the same failure mode.
- #34255 (open) — automatic reconnection doesn't work, connection drops silently with no recovery.
This report differs in one respect worth flagging: for the two sessions I investigated, no local .jsonl transcript exists anywhere under ~/.claude/projects for either one, which isn't something I'd expect if the only problem were a dead CLI process the app just needs to respawn and re-bridge (the transcript should still be on disk in that case). So either this is a distinct failure mode from #60790/#34255, or transcript loss is a secondary symptom of the same underlying issue — I don't have visibility into which.
Reproducing this on Windows 11 (Claude Code 2.1.292, desktop app) and I want to underline the correlation already in the report, because it decides how severe this is: the sessions that become unreachable are the dormant ones. Those are also the sessions whose context is most valuable and least reproducible. The failure mode therefore selects for the sessions you can least afford to lose.
The practical result is that remote access is dependable exactly when I don't need it. I reach for a session from another device because I am away from the machine — and that is the moment the app reports the host as offline. 14 of my 20 active sessions currently have Remote Control inactive, and in most cases that wasn't a decision I made.
Two changes would remove most of the damage even before the root cause is found:
- Distinguish "host is genuinely offline" from "pairing is stale but recoverable", and expose an explicit reconnect action for the second — today both render as the same dead end with no user-accessible retry.
- Cache the transcript locally, so an unreachable session can still be read and forked instead of abandoned. The data loss, not the downtime, is what makes this one expensive.