[BUG] Windows EEXIST error on startup: Failed to save config with lock (mkdir conflict with USERPROFILE when using Git Bash)

Status Fixed / completed
Reported on v2.1.70
Maintainer reply ✓ Yes — blois
Activity 5 comments · opened Mar 6, 2026 · closed Mar 6, 2026
💡 Likely answer: A maintainer (blois, collaborator) responded on this thread — see the highlighted reply below.

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

View original on GitHub ↗

5 Comments

blois collaborator · 7 months ago

There was an issue around this with 2.1.69 which should have been resolved with 2.1.70. I see a mix of 2.1.69 and 2.1.70. Can you verify that everything is upgraded to 2.1.70?

RebeliusGaming · 7 months ago

Wow. that was fast. Indeed, I just recieved the 2.1.70 version and it is working again. Thank you very much

RebeliusGaming · 7 months ago

(I'm not very used to github ettiquete, and I dont know if I should close this)

blois collaborator · 7 months ago

No problem, glad that resolved it!

github-actions[bot] · 7 months ago

This issue has been automatically locked since it was closed and has not had any activity for 7 days. If you're experiencing a similar issue, please file a new issue and reference this one if it's relevant.