Some checks failed
CI / Check for .beads changes (push) Has been skipped
CI / Check embedded formulas (push) Failing after 21s
CI / Test (push) Failing after 1m36s
CI / Coverage Report (push) Has been cancelled
CI / Integration Tests (push) Has been cancelled
CI / Lint (push) Has been cancelled
Windows CI / Windows Build and Unit Tests (push) Has been cancelled
KillPaneProcesses was killing ALL processes in the pane, including the gt handoff process itself. This created a race condition where the process could be killed before RespawnPane executes, causing the pane to close prematurely and requiring manual reattach. Added KillPaneProcessesExcluding() function that excludes specified PIDs from being killed. The handoff command now passes its own PID to avoid the race condition. Fixes: gt-85qd Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>