Skip to content

tracking: Windows console window flashes on every hook/tool-use — missing windowsHide and cmd.exe wrappers in spawn paths #2965

Description

@thedotmack

Root Cause

Multiple spawn paths in the worker and hook scripts are missing windowsHide: true or route through cmd.exe unnecessarily. The primary culprits are: findBun() using spawnSync('where bun', { shell: true }) without windowsHide; hooks using "shell": "bash" from a GUI context (VS Code); git subprocess calls (rev-parse, ls-files, cat-file) lacking windowsHide; and the SDK transport resolving the Claude CLI to a .cmd npm shim which forces a cmd.exe /d /c wrapper. Any of these paths causes a visible conhost/black console window flash on each hook or tool-use event.

Tracked Items

Issues

PRs

Resolution

This is the canonical tracking issue for this root cause. Individual issues and PRs listed above will be closed in favor of this one.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugConfirmed bugtrackingCanonical issue consolidating duplicate bug reports by root cause

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions