[BUG]

Resolved 💬 2 comments Opened Mar 19, 2026 by Muhammad-AliArshad Closed Apr 16, 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?

Bug: Claude Code VS Code Extension v2.1.79 fails to detect Git Bash on Windows despite correct configuration

Environment:

  • OS: Windows 11
  • VS Code Extension Version: 2.1.79
  • Git Bash: Installed at C:\Program Files\Git\bin\bash.exe
  • Git Bash version: GNU bash 5.x

What I configured:

  • System environment variable: CLAUDE_CODE_GIT_BASH_PATH = C:\Program Files\Git\bin\bash.exe ✅
  • User environment variable: CLAUDE_CODE_GIT_BASH_PATH = C:\Program Files\Git\bin\bash.exe ✅
  • VS Code settings.json: claudeCode.gitBashPath set ✅
  • VS Code settings.json: terminal.integrated.env.windows set ✅
  • Test-Path confirms bash.exe exists: True ✅

Error:
Claude Code on Windows requires git-bash. 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

What works:

  • Claude Code CLI works fine in terminal (claude command)
  • Extension panel works on v1.0.126
  • Extension panel does NOT work on any 2.x version

Expected behavior:
Extension panel should detect Git Bash and load properly on Windows with 2.x versions.

Please fix this — many Windows users are affected.

What Should Happen?

The Claude Code VS Code extension panel should detect Git Bash automatically and load the full chat UI without any errors, when CLAUDE_CODE_GIT_BASH_PATH is correctly set as both a System and User environment variable on Windows.

Error Messages/Logs

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
View output logs · Troubleshooting resources


i add this path in Env file but same error .

Steps to Reproduce

Install Git for Windows from https://git-scm.com/downloads/win
Set System environment variable: CLAUDE_CODE_GIT_BASH_PATH=C:\Program Files\Git\bin\bash.exe
Set User environment variable: CLAUDE_CODE_GIT_BASH_PATH=C:\Program Files\Git\bin\bash.exe
Add to VS Code settings.json:
"claudeCode.gitBashPath": "C:\\Program Files\\Git\\bin\\bash.exe",
"terminal.integrated.env.windows": {
"CLAUDE_CODE_GIT_BASH_PATH": "C:\\Program Files\\Git\\bin\\bash.exe"
}

Install Claude Code VS Code extension v2.1.79
Fully restart VS Code
Open the Claude Code panel

Result: Error appears — "Claude Code on Windows requires git-bash"

Note: Test-Path "C:\Program Files\Git\bin\bash.exe" returns True confirming bash.exe exists. Claude Code CLI works fine in terminal with claude command. Extension panel only works on v1.0.126, broken on all 2.x versions.

Claude Model

None

Is this a regression?

Yes, this worked in a previous version

Last Working Version

_No response_

Claude Code Version

2.1.79 (Claude Code)

Platform

Anthropic API

Operating System

macOS

Terminal/Shell

Terminal.app (macOS)

Additional Information

_No response_

View original on GitHub ↗

This issue has 2 comments on GitHub. Read the full discussion on GitHub ↗