claude-code - 💡(How to fix) Fix VS Code extension session picker returns 0 sessions despite valid transcripts on disk

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…

The VS Code extension's session picker (/resume and the "Past Conversations" toolbar button) returns an empty list, even though valid session transcripts exist on disk in the expected location.

Error Message

(No error and no follow-up log line for the local request, so it's not crashing — it just returns empty.)

Root Cause

The VS Code extension's session picker (/resume and the "Past Conversations" toolbar button) returns an empty list, even though valid session transcripts exist on disk in the expected location.

Fix Action

Workaround

The transcript files are intact and can be opened directly as JSONL.

Code Example

[time] Received message from webview: {"type":"list_sessions_request"}
[time] Received message from webview: {"type":"list_remote_sessions"}
[time] Fetched 0 remote sessions
RAW_BUFFERClick to expand / collapse

Summary

The VS Code extension's session picker (/resume and the "Past Conversations" toolbar button) returns an empty list, even though valid session transcripts exist on disk in the expected location.

Environment

  • Extension: anthropic.claude-code v2.1.133 (Windows, x64)
  • VS Code on Windows 11
  • Working directory is on a mapped Windows network drive (a drive letter mapped to a UNC path)

Steps to reproduce

  1. Open a workspace folder on a mapped network drive in VS Code.
  2. Open the Claude Code panel.
  3. Click "Past Conversations" or type /resume in an active session.

Expected

A list of past sessions for this project.

Actual

Empty picker. No errors shown to the user.

Diagnostic data

  • The project's session directory under ~/.claude/projects/<encoded-key>/ exists and contains many valid <uuid>.jsonl transcript files (ranging from ~15 KB to several MB), including transcripts written today.
  • Extension log shows the request firing but presumably resolving to 0 results:
[time] Received message from webview: {"type":"list_sessions_request"}
[time] Received message from webview: {"type":"list_remote_sessions"}
[time] Fetched 0 remote sessions

(No error and no follow-up log line for the local request, so it's not crashing — it just returns empty.)

  • Per-session metadata in ~/.claude/sessions/<pid>.json correctly records the cwd with a lowercase drive letter, and the project-key encoding on disk matches what would be produced from that cwd.

Suspected cause

Path-encoding mismatch when the cwd is on a mapped Windows network drive. Writes are reaching the right project key, but the picker's lookup may be comparing against a different encoded form (e.g. UNC vs drive-letter, or case differences).

Workaround

The transcript files are intact and can be opened directly as JSONL.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING