KillSession was leaving orphaned Claude/node processes because pgrep -P only finds direct children. Processes that reparent to init (PID 1) were missed. Changes: - Kill entire process group first using kill -TERM/-KILL -<pgid> - Add getProcessGroupID() and getProcessGroupMembers() helpers - Update KillSessionWithProcesses, KillSessionWithProcessesExcluding, and KillPaneProcesses to use process group killing - Fix EnsureSessionFresh to use KillSessionWithProcesses instead of basic KillSession Fixes: gt-w1dcvq Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
24 KiB
24 KiB