[BUG] VSCode extension on Windows cannot find git bash

Resolved 💬 3 comments Opened Dec 8, 2025 by asterkin Closed Dec 8, 2025

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?

VSCode extension started printing this error after the recent upgrade
----
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
Troubleshooting resources
---

What Should Happen?

It worked previously

Error Messages/Logs

025-12-08 13:21:56.614 [info] Received message from webview: {"type":"request","requestId":"p4y34os35is","request":{"type":"rename_tab","title":"Claude Code"}}
2025-12-08 13:21:56.615 [info] Received message from webview: {"type":"launch_claude","channelId":"emd4dujxpc9","cwd":"c:\\Users\\PRO\\Projects\\openxr-quest-tutorial","model":"default","permissionMode":"default","thinkingLevel":"off"}
2025-12-08 13:21:56.637 [info] Launching Claude on channel: emd4dujxpc9
2025-12-08 13:21:56.637 [info] Closing Claude on channel: emd4dujxpc9
2025-12-08 13:21:56.637 [error] Error spawning Claude (on channel emd4dujxpc9): 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
2025-12-08 13:21:56.637 [info] Received message from webview: {"type":"interrupt_claude","channelId":"cit34x6zvil"}
2025-12-08 13:21:56.637 [warning] Channel not found: cit34x6zvil

Steps to Reproduce

  1. Launch VSCode
  2. Select a file
  3. Click on the Claude Extension button

Claude Model

Sonnet (default)

Is this a regression?

Yes, this worked in a previous version

Last Working Version

2.0.61 (extension)

Claude Code Version

2.0.60

Platform

Anthropic API

Operating System

Windows

Terminal/Shell

VS Code integrated terminal

Additional Information

Environment variables status:

| Variable Name | Scope | Value | Git Status |
|---------------------------|---------|------------------------------------|-------------------------------------|
| CLAUDE_CODE_GIT_BASH_PATH | Machine | C:\Program Files\Git\bin\bash.exe | ✓ Correctly set |
| CLAUDE_CODE_GIT_BASH_PATH | User | C:\Program Files\Git\bin\bash.exe | ✓ Correctly set |
| PATH | Machine | Contains: C:\Program Files\Git\bin | ✓ Git is in PATH |
| PATH | User | No Git path (not needed) | ✓ Git in Machine PATH is sufficient |

Claude Code CLI is 2.0.60. claude update reports updating to 2.0.61, but remains in 2.0.60.

View original on GitHub ↗

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