[BUG] VS Code extension loses session history on restart when workspace is on a 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?
I'm using Claude Code VS Code extension (v2.1.76) with my workspace on a mapped network drive (Y:\ pointing to a Synology NAS via SMB).
What Should Happen?
Every time I close and reopen VS Code, the Claude Code sidebar shows no previous sessions. Only the current session appears under the "Local" tab. When I close VS Code and reopen it, the session list is empty again.
The conversation data IS being persisted — the .jsonl files are correctly saved in C:\Users\<user>\.claude\projects\<project-hash>\ (I have 100+ session files there). The issue is that the extension doesn't re-discover/re-index these sessions on startup.
Environment:
Windows 11 Pro
Claude Code extension: latest (CLI v2.1.76)
Workspace path: Y:\eclipse\l2h5AlexRepo\l2jCriptoHighFive (mapped network drive to Synology NAS)
The drive letter is persistent (net use /persistent:yes), always Y:\
Steps to reproduce:
Open VS Code with a workspace on a mapped network drive
Start a Claude Code session — it appears in the Local tab
Close VS Code completely
Reopen VS Code with the same workspace
The Claude Code sidebar shows no previous sessions
Expected behavior:
Previous sessions should appear in the Local tab after reopening VS Code, just like they do when using a local drive.
Workaround:
Running claude --resume from the integrated terminal does find and list all past sessions, confirming the data is there — it's just not loaded by the extension UI.
Error Messages/Logs
Steps to Reproduce
Steps to reproduce:
- Open VS Code with a workspace on a mapped network drive
- Start a Claude Code session — it appears in the Local tab
- Close VS Code completely
- Reopen VS Code with the same workspace
- The Claude Code sidebar shows no previous sessions
Claude Model
None
Is this a regression?
Yes, this worked in a previous version
Last Working Version
_No response_
Claude Code Version
2.1.76 (Claude Code)
Platform
Anthropic API
Operating System
Windows
Terminal/Shell
VS Code integrated terminal
Additional Information
_No response_
This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗