Windows: Bash commands spawn visible black console windows
Problem
On Windows, every time Claude Code executes a Bash command, a black console window briefly appears on screen. This is disruptive, especially during multi-step tasks that run many commands in sequence.
Root Cause
When Claude Code spawns bash.exe (Git for Windows) as a child process, it does not set the CREATE_NO_WINDOW process creation flag. Windows therefore creates a visible console window for each spawned process.
Expected Behavior
Bash commands should execute silently in the background with no visible console window, similar to how background processes behave in macOS/Linux.
Suggested Fix
Pass CREATE_NO_WINDOW (or windowsHide: true in Node.js child_process.spawn() options) when spawning shell processes on Windows.
Alternatively, expose a user-configurable setting in settings.json such as:
{
"windowsHide": true
}
Environment
- OS: Windows 11 Enterprise
- Shell: Git Bash (
C:\Users\...\AppData\Local\Programs\Git\usr\bin\bash.exe) - Claude Code: VSCode extension / Desktop app
This issue has 7 comments on GitHub. Read the full discussion on GitHub ↗