[BUG] VS Code extension session list empty while CLI /resume works (Windows, Samba/network drive)
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?
The VS Code extension's session list (list_sessions_request) does not display existing sessions for projects located on mapped network drives (Samba/SMB shares). Only the currently active session appears in the Local tab. However, the CLI (claude --resume) correctly lists and can resume all sessions from the same project directory.
Sessions are stored correctly in %USERPROFILE%\.claude\projects\W--sv-sg\ and new sessions are also written there without issues. The extension writes to the correct path but appears to read/list from a different one — possibly just W-- (drive letter only, without subdirectory path).
This started happening after a system reboot (BSOD crash). No extension update occurred between working and broken states. Rolling back to earlier extension versions did not fix the issue. The problem only affects projects on mapped network drives — local projects work fine.
Environment: Windows 11, Claude Code extension v2.1.96, project on Samba share mapped as W:\sv\sg.
What Should Happen?
The extension's session list should display all existing sessions for the current project, matching the behavior of claude --resume in the terminal. Both the extension UI and CLI should resolve the project session directory identically.
Error Messages/Logs
Steps to Reproduce
- Map a Samba/SMB network share as a drive letter (e.g., W:)
- Open a project in a subdirectory of that share in VS Code (e.g., W:\sv\sg)
- Open Claude Code extension panel
- Create a few sessions and close them
- Open the session list (clock icon) — only the current session is shown, previous sessions are missing
- Open VS Code integrated terminal and run claude --resume — all sessions are listed correctly
- Verify that session JSONL files exist in %USERPROFILE%\.claude\projects\W--sv-sg\
Claude Model
None
Is this a regression?
Yes, this worked in a previous version
Last Working Version
_No response_
Claude Code Version
2.1.97 (Claude Code)
Platform
Anthropic API
Operating System
Windows
Terminal/Shell
VS Code integrated terminal
Additional Information
- A temporary W-- directory (drive letter only, no subpath) is sometimes created and deleted during session listing, suggesting the extension resolves the project path differently than the CLI
- Local (non-network) projects are not affected
- The issue persists across extension versions (tested downgrade, same behavior)
This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗