spawn/packages
Ahmed Abushagur bdcde7bfc4
fix: use spawnSync for script execution to eliminate fd 0 competition (#1942)
The cmdRun path (the main user flow) was still using async
child_process.spawn for script execution. This left Bun's event loop
running while SSH (a grandchild process inside the bash script)
competed for fd 0 input bytes — causing intermittent keystroke loss.

Switch spawnBash to use spawnSync, which blocks the event loop entirely
and gives the child process exclusive terminal access. This matches
what we already did for runInteractiveCommand in #1939.

Also removes dead spawnCalls tracking code from cmdrun-happy-path test.

Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-26 02:50:59 -05:00
..
cli fix: use spawnSync for script execution to eliminate fd 0 competition (#1942) 2026-02-26 02:50:59 -05:00
shared fix: remove unused biome-ignore suppression comments in shared type-guards (#1892) 2026-02-24 17:48:10 -05:00