[BUG] [Windows] Console window flashes on every Bash tool execution
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?
When using Claude Code in VSCode on Windows, a node.exe console window briefly flashes/appears every time the Bash tool is executed. This is disruptive and distracting during normal usage.
What Should Happen?
The Bash tool should execute silently without any visible console window appearing. When Claude Code runs shell commands via the Bash tool, the node.exe process should be hidden from the user, providing a seamless experience without taskbar flashes or window pop-ups.
Error Messages/Logs
Steps to Reproduce
- Install Claude Code extension (v2.1.1) in VSCode on Windows 11
- Open any project folder in VSCode
- Start a Claude Code session in the panel
- Ask Claude to perform any task that requires the Bash tool (e.g., "run git status" or "list files in this directory")
- Observe the taskbar - a node.exe console window will briefly flash/appear each time the Bash tool is executed
- The window disappears quickly but is noticeable and disruptive
Note: This happens on every single Bash tool invocation, not just specific commands. The issue is with how the subprocess is spawned, not with the commands themselves.
Claude Model
Opus
Is this a regression?
Yes, this worked in a previous version
Last Working Version
_No response_
Claude Code Version
v2.1.1
Platform
Anthropic API
Operating System
Windows
Terminal/Shell
VS Code integrated terminal
Additional Information
This issue affects all Bash tool executions, making the extension less pleasant to use on Windows. The flashing window appears in the taskbar as node.exe.
This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗