Desktop app session list omits sessions created by the VS Code extension or terminal CLI (private index vs shared transcript store)
Correction (2026-08-05): this issue originally claimed a second, reverse-direction gap (desktop-created sessions missing from the VS Code extension's history). That was wrong and has been removed — the extension lists desktop sessions correctly. See the correction comment below for the evidence. Only the desktop-side gap described here is real.
Summary
Claude Code has one shared transcript store, but the desktop app maintains a separate private session index and lists only sessions it created itself. Sessions started in the VS Code extension or the terminal CLI never appear in the desktop app — not in its session picker, not in resume, not in its history search — even though their transcripts sit in the same directory in the same format, and the extension reads them fine.
Environment
- Claude Code 2.1.221 (desktop app), VS Code extension
anthropic.claude-code2.1.221 / 2.1.222 - Linux (Ubuntu), single project directory used for all sessions
The gap
- Shared transcripts:
~/.claude/projects/<slug>/<cliSessionId>.jsonl→ 206 files for this project (379 at time of writing) - Desktop app's private index:
~/.config/Claude/claude-code-sessions/<accountId>/<projectId>/local_<uuid>.json→ 10 descriptors - Net effect: 196 transcripts exist on disk and are invisible in the desktop app
Each descriptor is thin metadata pointing at a transcript via cliSessionId:
{"sessionId":"local_<uuid>","cliSessionId":"<transcript-uuid>","cwd":"/…/source",
"title":"…","model":"claude-opus-5","lastActivityAt":1785849781804, …}
The desktop session list, resume, and history search read only this index, and neither the extension nor the CLI ever writes into it — so nothing created outside the desktop app can ever become visible in it.
Reproduces through the desktop app's history search, which is scoped the same way:
- searching a term from a desktop-created session (
hibernate) → 2 hits - searching a term appearing across dozens of extension/terminal sessions (
sonar) →No matching sessions found
Meanwhile claude --resume in a terminal lists all of them, confirming the transcripts are intact, origin-agnostic, and readable.
Why the data is already sufficient
Nothing is missing from the shared store — the desktop app simply isn't reading it:
-
Transcripts from every frontend are structurally identical and carry no origin marker. A desktop-created session is keyed by the plain CLI session uuid, not its
local_id:desktop-created 53d77c85-….jsonl → keys: content, operation, sessionId, timestamp, type extension/term ab60ee41-….jsonl → keys: operation, sessionId, timestamp, type -
Titles are already in the transcript, in two record types:
{"type":"custom-title","customTitle":"…","sessionId":"…"} {"type":"ai-title","aiTitle":"…","sessionId":"…"}So a frontend can render a full, titled session list straight from
~/.claude/projectswith no private index at all — which is exactly what the VS Code extension does.
Expected
For a given project directory, every session should be listable, resumable, and searchable from the desktop app regardless of which frontend created it — by indexing ~/.claude/projects directly (titles included, per above), or by having all frontends register descriptors in one shared index.
Impact
Work started in the VS Code extension or terminal can't be found, resumed, or searched from the desktop app, so context has to be re-established manually when switching — the normal flow being IDE for editing, desktop app for longer agent runs. The only local workaround is reverse-engineering the private claude-code-sessions/ descriptor format, which is undocumented and breaks on app updates.
Correcting my own report: the "Direction 2" reverse gap I described does not exist. I have edited it out of the issue body and am leaving this comment so the change is on the record rather than silent.
I originally claimed that desktop-created sessions were missing from the VS Code extension's history list, while explicitly flagging that I could not verify the extension's UI. I have now checked it directly, and the extension lists desktop-created sessions correctly — a session created in the desktop app appears in the extension's Local history with its proper title.
The mechanism I had missed: session titles are stored inside the transcript, in two record types, not only in the desktop app's private index.
{"type":"custom-title","customTitle":"VS Code extension session sync","sessionId":"eda40a3a-…"}
{"type":"ai-title","aiTitle":"Audit open pull requests against latest dev","sessionId":"338f8146-…"}
Because those records are in the shared store, any frontend can build a complete, titled session list from ~/.claude/projects alone — no private index needed. The extension does exactly that: reading the two record types out of the transcripts reproduced its history list one-for-one, including sessions created by the desktop app.
That makes the remaining gap narrower and more clearly one-sided than I first wrote: everything the desktop app would need to list every session is already in the shared store and already proven sufficient by another frontend. Apologies for the noise in the original Direction 2 section.
The transcripts are already enough to account for the missing sessions; the gap is that Linux Desktop's private index contains descriptors for only the sessions it created. The 206 files versus 10 descriptors, plus claude --resume listing them, separates this from missing conversation data.
I built BasedGPT/claude-code-session-recovery for this missing-index case. Run python tools/diagnose.py first and follow the exact command it prints. On Linux, check the metadata layer under ~/.config/Claude/claude-code-sessions/ against ~/.claude/projects/; if it identifies orphaned transcripts, review the dry-run metadata proposal before changing anything. I would treat the import as a manual recovery step on Linux, back up both directories, and quit Desktop fully before any write.
That can make existing local sessions visible as a one-off import, but it does not provide the native cross-frontend index or continuous synchronisation this issue is asking for.
Hope this helps, if my tools are able to help you, would appreciate a ⭐ :)
Closing for now — inactive for too long. Please open a new issue if this is still relevant.
This issue has been automatically locked since it was closed and has not had any activity for 7 days. If you're experiencing a similar issue, please file a new issue and reference this one if it's relevant.