VSCode extension /resume doesn't respect CLAUDE_CONFIG_DIR from claudeCode.environmentVariables
Resolved 💬 2 comments Opened Apr 14, 2026 by andreasnoack Closed Apr 14, 2026
Bug Description
The VSCode extension passes CLAUDE_CONFIG_DIR to the CLI subprocess via the claudeCode.environmentVariables setting, but the extension's own session lookup (used by /resume) still reads from the default ~/.claude/ path. Sessions exist in the configured directory but aren't listed when using /resume.
Steps to Reproduce
- Set
CLAUDE_CONFIG_DIRin VSCode settings:
``json``
"claudeCode.environmentVariables": [
{
"name": "CLAUDE_CONFIG_DIR",
"value": "/home/user/data/.claude"
}
]
- Use Claude Code — sessions are correctly written to
/home/user/data/.claude/projects/ - Run
/resume— no sessions are listed
Evidence
- Session
.jsonlfiles exist in the configured directory (/home/user/data/.claude/projects/) - The extension writes its own IDE lock file to the default
~/.claude/ide/rather than the configured directory, confirming it doesn't useCLAUDE_CONFIG_DIRfor its own operations - No
ide/directory exists in the configuredCLAUDE_CONFIG_DIRpath
Expected Behavior
/resume should list sessions from the directory specified by CLAUDE_CONFIG_DIR in claudeCode.environmentVariables.
Environment
- Running in a cloud VM (code-server / VS Code remote)
CLAUDE_CONFIG_DIRis needed because the default~/.claude/doesn't persist between VM sessions
This issue has 2 comments on GitHub. Read the full discussion on GitHub ↗