Claude Code Extension fails to load on network paths (UNC paths)
Environment
- VS Code Version: Latest (as of May 6, 2026)
- Claude Code Extension Version: 2.1.131-win32-x64
- OS: Windows 10/11
- Network Setup: UNC path (
\\spwacd14\Grupos\...) on corporate network
Problem Description
The Claude Code extension fails to load when opening a folder from a network path (UNC path), displaying the error:
Ocorreu um erro ao carregar o modo de exibição: claudeVSCodeSessionsList
ENOENT: no such file or directory, lstat 'G:\Grupos'
What Works ✅
- Extension loads perfectly when opening local folders (
C:\Users\vilcimar.pessoa\Downloads)
- Extension authenticates successfully
- All features work in local context
What Fails ❌
- Opening folder from network path:
\\spwacd14\Grupos\Suprimentos Inteligência\INTEGRAÇÃO
- Error occurs immediately after folder opens
- Extension attempts to access mapped drive
G:\Grupos which doesn't exist
- Even after cleaning cache, workspaceStorage, and reinstalling extension, error persists on network paths
Root Cause Analysis
The extension appears to:
- Attempt to resolve network paths as mapped drives (e.g.,
G:\Grupos)
- Fail when those mapped drives don't exist or are inaccessible
- Not gracefully handle UNC paths without requiring mapped drives
- Store references to broken paths in persistent cache that can't be fully cleared
Steps to Reproduce
- Have a corporate/shared network folder accessible via UNC path:
\\server\share\folder
- Open VS Code
- File → Open Folder → Select the UNC network path
- Observe: Extension fails to load with ENOENT error
Expected Behavior
- Extension should load successfully on network paths
- Should either:
- Resolve UNC paths directly without requiring mapped drives
- Provide clear error messaging if network access is unavailable
- Allow user to manually configure network path handling
Actual Behavior
- Extension crashes with cryptic ENOENT error
- References to non-existent mapped drive paths
- No way to resolve without administrative access (to map drives) or moving project to local folder
Workarounds Attempted (All Failed)
- ✗ Reinstalling extension multiple times
- ✗ Clearing all cache folders (
workspaceStorage, globalStorage, storage.json)
- ✗ Simplifying
settings.json to minimal config
- ✗ Reloading VS Code window
- ✗ Changing folder paths to different network locations
- ✗ Using Explorer "Add to Favorites" and opening from there
Error Logs
Console Output
[Extension Host] Failed to fetch remote embeddings cache
[Extension Host] ENOENT: no such file or directory, lstat 'G:\Grupos'
Error: Ocorreu um erro no sistema (ENOENT: no such file or directory, lstat 'G:\Grupos')
at Object.realpathSync (node:fs:2805:29)
at Object.<anonymous> (node:electron/js2c/node_init:2:5760)
at Zf.resolveWebviewView (c:\Users\vilcimar.pessoa\.vscode\extensions\anthropic.claude-code-2.1.131-win32-x64\extension.js:813:9468)
System Configuration
- Network: Corporate UNC path accessible via
\\spwacd14\Grupos\...
- User: Non-administrator (cannot map drives)
- Security:
"security.allowedUNCHosts": ["spwacd14"] configured in VS Code settings
- Network Discovery: Disabled on machine (by policy)
Additional Notes
- Extension works flawlessly on local C:\ drive
- The error references
G:\Grupos which appears to be a stale cached path
- Even complete uninstall/reinstall doesn't resolve the issue
- Suggests cache corruption or hardcoded path resolution logic that fails on network contexts
Request
Please provide:
- Native support for UNC paths without requiring mapped drives
- Better error handling/messaging for network path scenarios
- Ability to manually configure network path resolution
- Clear documentation on network folder requirements (if any)
Labels: bug, network-paths, unc-paths, windows, extension
Claude Code Extension fails to load on network paths (UNC paths)
Environment
\\spwacd14\Grupos\...) on corporate networkProblem Description
The Claude Code extension fails to load when opening a folder from a network path (UNC path), displaying the error:
What Works ✅
C:\Users\vilcimar.pessoa\Downloads)What Fails ❌
\\spwacd14\Grupos\Suprimentos Inteligência\INTEGRAÇÃOG:\Gruposwhich doesn't existRoot Cause Analysis
The extension appears to:
G:\Grupos)Steps to Reproduce
\\server\share\folderExpected Behavior
Actual Behavior
Workarounds Attempted (All Failed)
workspaceStorage,globalStorage,storage.json)settings.jsonto minimal configError Logs
Console Output
System Configuration
\\spwacd14\Grupos\..."security.allowedUNCHosts": ["spwacd14"]configured in VS Code settingsAdditional Notes
G:\Gruposwhich appears to be a stale cached pathRequest
Please provide:
Labels: bug, network-paths, unc-paths, windows, extension