Fix orphaned tmux processes and add GC for orphaned sessions#139
Merged
andyrewlee merged 4 commits intomainfrom Feb 1, 2026
Merged
Fix orphaned tmux processes and add GC for orphaned sessions#139andyrewlee merged 4 commits intomainfrom
andyrewlee merged 4 commits intomainfrom
Conversation
KillSession now kills pane process trees (SIGTERM→SIGKILL) before killing the tmux session, preventing orphaned node/turbo/pnpm processes that survive SIGHUP. A periodic GC pass compares live @amux sessions against known workspace IDs and cleans up sessions for deleted workspaces. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
…sessions Without this, a sync tick firing before loadProjects completes would see an empty workspace set and treat every @amux session as orphaned. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
…PIDs Without -s, list-panes only returns panes from the active window, leaving processes in other windows alive after kill-session. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Cover PanePIDs (including -s flag multi-window regression), KillSession process-tree kill, AmuxSessionsByWorkspace grouping/filtering, and app-layer GC gating and integration with real tmux servers. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
KillSession now kills pane process trees (SIGTERM→SIGKILL) before killing the tmux session, preventing orphaned node/turbo/pnpm processes that survive SIGHUP. A periodic GC pass compares live @amux sessions against known workspace IDs and cleans up sessions for deleted workspaces.