fix(tmux): drain kill-pane stdout to prevent pipe backpressure hang

closeTmuxPane spawned kill-pane with stdout: "pipe" but never drained the
stream, which could leave the subprocess hanging indefinitely when tmux
wrote anything to stdout (for example under --force-close race conditions).

- send-keys now uses stdout: "ignore" so there is no pipe to drain
- kill-pane keeps the pipe but drains stdout/stderr alongside proc.exited
- switch imports to the new spawn-process helper so the behavior is
  covered by hermetic tests that mock the spawn boundary
This commit is contained in:
YeonGyu-Kim
2026-04-18 19:31:04 +09:00
parent 7a7926f222
commit 2a99a524ea
3 changed files with 216 additions and 10 deletions
@@ -0,0 +1 @@
export { spawn } from "bun"