[BUG] claudeCode.gitBashPath setting not working on Windows - panel UI still shows Git Bash error

Status Fixed / completed
Reported on v2.1.78
Maintainer reply ✓ Yes — ashwin-ant
Activity 4 comments · opened Mar 18, 2026 · closed Apr 18, 2026
💡 Likely answer: A maintainer (ashwin-ant, 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 VS Code panel UI fails to launch Claude even after:

  1. Installing Git Bash at C:\Program Files\Git\bin\bash.exe
  2. Setting CLAUDE_CODE_GIT_BASH_PATH environment variable
  3. Adding "claudeCode.gitBashPath": "C:\\Program Files\\Git\\bin\\bash.exe" to settings.json
  4. 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:

  1. Installing Git Bash at C:\Program Files\Git\bin\bash.exe
  2. Setting CLAUDE_CODE_GIT_BASH_PATH environment variable
  3. Adding "claudeCode.gitBashPath": "C:\\Program Files\\Git\\bin\\bash.exe" to settings.json
  4. 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:

  1. Installing Git Bash at C:\Program Files\Git\bin\bash.exe
  2. Setting CLAUDE_CODE_GIT_BASH_PATH environment variable
  3. Adding "claudeCode.gitBashPath": "C:\\Program Files\\Git\\bin\\bash.exe" to settings.json
  4. 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_

View original on GitHub ↗

4 Comments

github-actions[bot] · 7 months ago

Found 3 possible duplicate issues:

  1. https://github.com/anthropics/claude-code/issues/33881
  2. https://github.com/anthropics/claude-code/issues/27912
  3. https://github.com/anthropics/claude-code/issues/8674

This issue will be automatically closed as a duplicate in 3 days.

  • If your issue is a duplicate, please close it and 👍 the existing issue instead
  • To prevent auto-closure, add a comment or 👎 this comment

🤖 Generated with Claude Code

lloydwood · 6 months ago

Yep. I get this too. The env var is set and Terminal mode works. UI mode is broken though and throws up this message.

ashwin-ant collaborator · 6 months ago

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.

github-actions[bot] · 5 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.