Repository navigation
fix: ^X J keeps tmux windows in their session, and reads iTerm's tabs fully - #377
Merged
Merged
Conversation
… fully - tmux: swap and select windows by session:index, not a bare @id. A window linked into two sessions resolved in the other session, so a swap moved windows between sessions (reproduced on a throwaway tmux server). - iTerm: read the session ttys first and the windows last, just before reordering. ReorderTabs pulls any tab it is given into the window named, so a tab dragged to another window during the AppleScript call would have been pulled back. - iTerm: count a tab's floating panes (tab field 12) as its sessions. - iTerm: transport errors name what failed without the socket's path. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
brtkwr
enabled auto-merge
November 20, 2026 14:34
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.
Opus 5.5 ✨
Follow-up to #376, fixing four findings from a Codex review after it merged. I checked each against main and all four were real.
@id. When a window is linked into two sessions, tmux can resolve that id in the other session. On a throwawaytmux -Lserver, swapping@2(linked into sessionsaandb) with@0moved@0out ofaintob. Now every target issession:index, and the window that was current is selected again at its new place. The same setup with the new targets left sessionbuntouched.api.protolists a tab's floating panes in field 12 (FloatingPane { SessionSummary session = 1 }, confirmed from the iterm2 library's descriptors). A tab whose session was a floating pane counted as unrelated and stayed put. They count now.*net.OpErrorwrapped with%wcarried iTerm's socket path into ccs's error row.apiErrnow says what failed (iTerm API: write: broken pipe) without the path.Tests: the tmux fixture now has a window linked into two sessions and a moved current window, and checks the exact
session:indexcommands. The iTerm fake checks that ttys are read before windows. The parse fixture includes a floating pane, and a new test coversapiErr.🤖 Generated with Claude Code