[BUG] Windows EEXIST error on startup: Failed to save config with lock (mkdir conflict with USERPROFILE when using Git Bash)
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?
The core Claude Code extension works correctly for standard tasks. However, it crashes immediately when attempting to use any command or skill from the superpowers plugin.
The logs show that when a superpower command is invoked, the system tries to verify or save configuration and fails with an unhandled EEXIST error because it attempts to mkdir the user's root profile directory (C:\Users\<USER>). This only happens within the VS Code UI; the same superpower commands work fine when run from a standalone terminal.
What Should Happen?
Invoking commands or skills from an installed plugin (specifically the superpowers plugin) should execute successfully within the VS Code side panel.
The extension should be able to verify plugin-related configurations or file locks without crashing. If the target directory (the user's home folder) already exists, the initialization logic should gracefully continue instead of attempting to re-create it and throwing an unhandled EEXIST error. The behavior should be consistent with how plugins run in a standalone terminal, where this error does not occur.
Error Messages/Logs
[info] Spawning Claude with SDK query function - cwd: c:\Users\<USER>\Documents\<PROJECT>, version: 2.1.70
[DEBUG] Using bash path: "C:\Program Files\Git\bin\bash.exe"
[DEBUG] Error log sink initialized
[ERROR] Failed to save config with lock: Error: EEXIST: file already exists, mkdir 'C:\Users\<USER>'
[info] Closing Claude on channel: <CHANNEL_ID>
[error] Error from Claude: Error: Claude Code process exited with code 1
Steps to Reproduce
Open VS Code on Windows 11 with the Claude Code extension (v2.1.69).
Ensure the superpowers plugin is installed/enabled.
Start a standard Claude Code session in the side panel (this works fine).
Run any command from the superpowers plugin (e.g., /using-superpowers).
The extension attempts to re-initialize or save plugin-specific config and crashes with: [ERROR] Failed to save config with lock: Error: EEXIST: file already exists, mkdir 'C:\Users\<USER>'.
The process exits with code 1.
Claude Model
Sonnet (default)
Is this a regression?
Yes, this worked in a previous version
Last Working Version
previous one. it broke 16 hours ago
Claude Code Version
2.1.70 (Claude Code)
Platform
Other
Operating System
Windows
Terminal/Shell
PowerShell
Additional Information
It was working perfectly for months until 04/03/26 in the morning in Spain time. I'm not really sure of the version numbers when it was working
This issue has 5 comments on GitHub. Read the full discussion on GitHub ↗