mirror of https://github.com/garrytan/gstack.git
The Node bun-polyfill forwards Bun.spawn/spawnSync to child_process without windowsHide. Node defaults that option to false, so on Windows every child the browse server starts opens a console window -- Bun itself does not behave this way, so the polyfill was drifting from the API it emulates. The visible symptom is an empty black bun.exe window appearing every ~60s: server.ts's agent watchdog respawns a crashed terminal-agent on each tick, and the agent is spawned with stdio ['ignore','ignore', 'ignore'], so the window it opens has nothing in it. The tasklist, powershell and chrome --version helpers pop windows the same way. Fixed at the polyfill rather than the call sites, since it is the one choke point every Bun.spawn under Node passes through. An explicit windowsHide: false is still honoured for callers that want a visible console. Verified against the unpatched polyfill (spawn/spawnSync both received undefined) and the patched one (both receive true, explicit false still wins). Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| bin | ||
| scripts | ||
| src | ||
| test | ||
| PLAN-snapshot-dropdown-interactive.md | ||
| SKILL.md | ||
| SKILL.md.tmpl | ||