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

  1. Session list briefly flashes then disappears on VS Code startup
  2. After VS Code restart, all sessions are gone — empty list
  3. list_sessions_request is sent but no response is ever logged
  4. Fetched 0 remote sessions every time
  5. Every session starts with resume: undefined (never resumes previous sessions)
  6. CLI (claude -r) works fine — sessions are intact in ~/.claude/projects/

Root Cause Analysis

Traced through the minified extension.js source:

  1. listSessions() calls eP({dir: this.cwd}) where cwd is a network drive path with Korean characters
  2. This calls H_(z) which does fs.realpath(z).normalize("NFC")
  3. Then fD(z) converts the path to a folder name via z.replace(/[^a-zA-Z0-9]/g, "-")
  4. Korean characters are all replaced with -, producing ambiguous folder names like z-------
  5. The matching logic in Ne() compares folder prefixes, but with Korean paths all becoming dashes, the matching becomes unreliable
  6. The list_sessions_request handler 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 extension
  • sessions-index.json exists 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.

View original on GitHub ↗

This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗