[BUG] claudeCode.gitBashPath setting not working on Windows - panel UI still shows Git Bash error
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 VS Code panel UI fails to launch Claude even after:
- Installing Git Bash at C:\Program Files\Git\bin\bash.exe
- Setting CLAUDE_CODE_GIT_BASH_PATH environment variable
- Adding "claudeCode.gitBashPath": "C:\\Program Files\\Git\\bin\\bash.exe" to settings.json
- Fully restarting VS Code
The panel keeps showing: "Error: Claude Code on Windows requires git-bash"
Note: claude command works fine in the terminal. Only the VS Code panel UI is broken.
OS: Windows 11
Extension Version: 2.1.78
What Should Happen?
The VS Code panel UI fails to launch Claude even after:
- Installing Git Bash at C:\Program Files\Git\bin\bash.exe
- Setting CLAUDE_CODE_GIT_BASH_PATH environment variable
- Adding "claudeCode.gitBashPath": "C:\\Program Files\\Git\\bin\\bash.exe" to settings.json
- Fully restarting VS Code
The panel keeps showing: "Error: Claude Code on Windows requires git-bash"
Note: claude command works fine in the terminal. Only the VS Code panel UI is broken.
OS: Windows 11
Extension Version: 2.1.78
Error Messages/Logs
2026-03-18 19:21:38.769 [error] Error spawning Claude (on channel olx1waxp5wk): Error: Claude Code on Windows requires git-bash (https://git-scm.com/downloads/win). If installed but not in PATH, set environment variable pointing to your bash.exe, similar to: CLAUDE_CODE_GIT_BASH_PATH=C:\Program Files\Git\bin\bash.exe
2026-03-18 19:21:38.771 [info] Received message from webview: {"type":"interrupt_claude","channelId":"d1wwo2cy6q"}
2026-03-18 19:21:38.771 [warning] Channel not found: d1wwo2cy6q
2026-03-18 19:25:46.459 [info] Received message from webview: {"type":"request","requestId":"mbdzd7khyvr","request":{"type":"open_output_panel"}}
Steps to Reproduce
The VS Code panel UI fails to launch Claude even after:
- Installing Git Bash at C:\Program Files\Git\bin\bash.exe
- Setting CLAUDE_CODE_GIT_BASH_PATH environment variable
- Adding "claudeCode.gitBashPath": "C:\\Program Files\\Git\\bin\\bash.exe" to settings.json
- Fully restarting VS Code
The panel keeps showing: "Error: Claude Code on Windows requires git-bash"
Note: claude command works fine in the terminal. Only the VS Code panel UI is broken.
OS: Windows 11
Extension Version: 2.1.78
Claude Model
None
Is this a regression?
Yes, this worked in a previous version
Last Working Version
_No response_
Claude Code Version
2.1.78 (Claude Code)
Platform
Anthropic API
Operating System
Windows
Terminal/Shell
PowerShell
Additional Information
_No response_
4 Comments
Found 3 possible duplicate issues:
This issue will be automatically closed as a duplicate in 3 days.
🤖 Generated with Claude Code
Yep. I get this too. The env var is set and Terminal mode works. UI mode is broken though and throws up this message.
This was fixed in v2.1.98 — The VS Code extension on Windows now respects CLAUDE_CODE_GIT_BASH_PATH and checks default Git install locations before showing the 'Git Bash not found' error. If you're still seeing this in the latest version, please comment with your version and repro and we'll reopen.
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.