VS Code extension: Session list fails to load with NAS network drive + Korean path
Resolved 💬 3 comments Opened Mar 11, 2026 by 52Quadrillion Closed Mar 14, 2026
Bug Description
The VS Code extension fails to persist and display session history. Sessions appear briefly on load then disappear, and after restarting VS Code, all sessions are gone.
Environment
- OS: Windows 11 Pro (Build 26200)
- VS Code: 1.111.0
- Claude Code CLI: 2.1.72
- Claude Code Extension: 2.1.72 (win32-x64)
- Working directory: NAS network mapped drive (
Z:\) with Korean characters and spaces in path
Symptoms
- Session list briefly flashes then disappears on VS Code startup
- After VS Code restart, all sessions are gone — empty list
list_sessions_requestis sent but no response is ever loggedFetched 0 remote sessionsevery time- Every session starts with
resume: undefined(never resumes previous sessions) - CLI (
claude -r) works fine — sessions are intact in~/.claude/projects/
Root Cause Analysis
Traced through the minified extension.js source:
listSessions()callseP({dir: this.cwd})where cwd is a network drive path with Korean characters- This calls
H_(z)which doesfs.realpath(z).normalize("NFC") - Then
fD(z)converts the path to a folder name viaz.replace(/[^a-zA-Z0-9]/g, "-") - Korean characters are all replaced with
-, producing ambiguous folder names likez------- - The matching logic in
Ne()compares folder prefixes, but with Korean paths all becoming dashes, the matching becomes unreliable - The
list_sessions_requesthandler silently fails — no error is logged, no response is returned to the webview
Evidence from Logs
# Extension log shows request sent but NO response logged:
[info] Received message from webview: {"type":"request","requestId":"...","request":{"type":"list_sessions_request"}}
[info] Received message from webview: {"type":"request","requestId":"...","request":{"type":"list_sessions_request"}}
[info] Received message from webview: {"type":"request","requestId":"...","request":{"type":"list_remote_sessions"}}
[info] Fetched 0 remote sessions
# ← No list_sessions_response ever logged
# Session data exists on disk:
~/.claude/projects/z-------/ → 61 .jsonl files (sessions intact)
~/.claude/history.jsonl → full session history
Additional Context
globalStorage/anthropic.claude-code/directory was never created by the extensionsessions-index.jsonexists only in some project folders, not in the main working project- The drive is a Synology NAS mapped via SMB as
Z: - Path contains both Korean characters (한글) and spaces
Expected Behavior
Session list should load and persist across VS Code restarts, regardless of working directory path containing non-ASCII characters or being on a network drive.
Workaround
Using CLI claude -c / claude -r to resume sessions works correctly.
This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗