[Windows] Native UI mode ignores claudeCode.environmentVariables setting for CLAUDE_CODE_GIT_BASH_PATH
Resolved 💬 3 comments Opened Feb 1, 2026 by yraj96 Closed Feb 4, 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 summary:
On Windows, the native UI mode fails with "requires git-bash" error
The claudeCode.environmentVariables setting with CLAUDE_CODE_GIT_BASH_PATH is ignored
Terminal mode works correctly with the same settings
The bash check happens before the extension reads the environment variables setting
What Should Happen?
Native UI mode should read claudeCode.environmentVariables before performing the bash check.
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
Steps to Reproduce
- Set
claudeCode.environmentVariableswithCLAUDE_CODE_GIT_BASH_PATHpointing to Git Bash - Set
claudeCode.useTerminal: false(or default) - Try to use Claude Code in native UI mode
- Error appears: "Claude Code on Windows requires git-bash"
Claude Model
None
Is this a regression?
Yes, this worked in a previous version
Last Working Version
_No response_
Claude Code Version
- Extension version: 2.1.27
Platform
Anthropic API
Operating System
Windows
Terminal/Shell
Windows Terminal
Additional Information
Evidence:
- CLI works directly from terminal with env variable set
- Terminal mode works with same settings
- Native UI fails regardless of environment variable configuration
This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗