chrome-headless-shell is a console-subsystem exe; launched by
playwright-core from the console-less browse daemon on Windows it
allocates a visible console window per browser launch, and the
launcher force-kill path shells out to taskkill (a cmd.exe window per
kill — the node_modules twin of the vendored-copy gap in #1989).
Upstream playwright sets no windowsHide and offers no knob, so this
cannot be fixed from gstack call sites the way #2153 fixed the
polyfill spawns.
Carry a bun patchedDependencies patch adding windowsHide: true to the
launcher spawnOptions and the taskkill spawnSync options. Applies
automatically on every bun install. Tripwire test reads the INSTALLED
node_modules file so a playwright version bump that orphans the
exact-version patch key fails CI instead of silently re-flashing
consoles.
Fixes#2160.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>