You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Windows: Bash tool spawns visible console windows that steal focus #40334
On Windows 11, every time Claude Code executes the Bash tool, it spawns /usr/bin/bash --login -i as a visible console window. This window steals focus from whatever the user is working in, interrupting their workflow.
Steps to Reproduce
Use Claude Code on Windows 11 with Git Bash installed
Ask Claude to run any bash command (file read, git operation, test run, etc.)
A console window appears and steals focus from the active application
Expected Behavior
Bash processes spawned internally by Claude Code should run with CREATE_NO_WINDOW (or equivalent) so they are invisible to the user.
Actual Behavior
A visible /usr/bin/bash --login -i console window appears for every Bash tool call, stealing focus from the user's current application. For agentic sessions with many tool calls, this means dozens of windows flashing up and interrupting work continuously.
Environment
OS: Windows 11 Pro
Shell: Git Bash (/usr/bin/bash)
Claude Code: Desktop app
Workaround Attempted
None effective. The issue is at the process creation level — Claude Code needs to pass CREATE_NO_WINDOW (0x08000000) or STARTF_USESHOWWINDOW with SW_HIDE when spawning bash processes on Windows.
Impact
High — makes Claude Code very disruptive to use on Windows when running agentic tasks with multiple tool calls.
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.
Activity
github-actions commentedon Mar 28, 2026
Found 3 possible duplicate issues:
This issue will be automatically closed as a duplicate in 3 days.
🤖 Generated with Claude Code
github-actions commentedon Apr 1, 2026
This issue has been automatically closed as a duplicate of #40335.
If this is incorrect, please re-open this issue or create a new one.
🤖 Generated with Claude Code
github-actions commentedon Apr 9, 2026
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.