[BUG] Windows: Bash/Read/Write/Edit tools fail - hardcoded Git path with spaces in native binary
Resolved 💬 4 comments Opened Feb 12, 2026 by avantol Closed Feb 15, 2026
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 native binary claude.exe bundled in the VS Code extension has C:\Program Files\Git\bin hardcoded. The space in Program Files causes path resolution to fail during execution, even though the directory and bash.exe exist at that path.
Environment
- OS: Windows 10 (MSYS_NT-10.0-19045)
- Extension: anthropic.claude-code-2.1.39-win32-x64
- Git: Installed at default
C:\Program Files\Git\ - VS Code: Latest
Impact
Completely blocks all file read/write/edit operations and shell command execution. Only Grep and Glob work (they use bundled ripgrep). This makes Claude Code largely unusable on Windows for any task requiring file modifications or command execution.
Workarounds Attempted (ALL failed)
- Set
SHELLenv var to symlink path without spaces — ignored - Modified
PATHto includeC:\Git\bin— ignored - Registry edit of
HKLM\SOFTWARE\GitForWindows\InstallPath— ignored - Edited
extension.jsto remove allProgram Files\Gitreferences — error persists (path also in nativeclaude.exebinary) - Directory junction
mklink /J "C:\Program Files\Git" "C:\Git"— Glob confirmsbash.exefound through junction, but execution still fails - VS Code
terminal.integrated.profiles.windowssetting — ignored - Reinstalled Git to
C:\Git(no spaces) —claude.exestill references hardcoded path - Uninstalled/reinstalled Claude Code extension — no change
Root Cause
Path C:\Program Files\Git\bin is embedded in the compiled native binary:
What Should Happen?
claude.exeshould properly quote file paths containing spaces- Should respect
SHELLenv var and/or system PATH - All default Windows paths (including
C:\Program Files\) must work
Error Messages/Logs
Steps to Reproduce
- Install Git for Windows to default location (
C:\Program Files\Git\) - Install Claude Code VS Code extension
- Attempt any Bash, Read, Write, or Edit tool operation
- All fail with:
Executable not found in $PATH: "C:\Program Files\Git\bin"
Claude Model
Opus
Is this a regression?
I don't know
Last Working Version
_No response_
Claude Code Version
latest
Platform
Anthropic API
Operating System
Windows
Terminal/Shell
VS Code integrated terminal
Additional Information
_No response_
This issue has 4 comments on GitHub. Read the full discussion on GitHub ↗