Skip to content

Route tmux control replies to the requesting pane - #161

Merged
tony merged 3 commits into
masterfrom
fix/75-control-command-ownership
Dec 5, 2026
Merged

tony merged 3 commits into
masterfrom
fix/75-control-command-ownership

Conversation

@tony

@tony tony commented Dec 3, 2026

Copy link
Copy Markdown
Contributor

Closes #75

What changed, and why:

A control client can drive multiple pane observers even when one pane disappears during attach or capture. Write the full returned marker and command batch with a final newline. Each observer handles errors for its own batch.

Checks run:

On Linux, Ruff formatting and lint, ty for Python 3.12 through 3.15, the full pytest suite with doctests, compiled Ghostty comparisons, and the Sphinx warnings-as-errors build passed.

Tool use:

Codex prepared the change and ran the local checks. A separate Codex reviewer replayed the changed behavior and checked the publication tree against the reviewed patch.

tony added a commit that referenced this pull request Dec 3, 2026
why: Readers need the behavior and scope of this change at release.

what:
- Add the unreleased entry for PR #161
- Preserve previously published notes and the parent branch's entries
@tony
tony marked this pull request as ready for review December 3, 2026 01:33
@tony
tony force-pushed the fix/75-control-command-ownership branch from df24967 to 4b300fd Compare December 3, 2026 23:58
tony added 3 commits December 5, 2026 07:48
why: A shared client's untargeted error can fail the wrong pane.

what:
- Identify a pane's batch before handling its command replies.
- Verify the target pane at the pause barrier.
- Document writing the marker and batch together.
- Exercise capture and pause failures against a shared tmux client.

Fixes #75
why: Several panes can issue commands on one control client. A failed
     command must reach its requesting pane.

what:
- Show how to write the reply marker and command batch together.
why: Calling begin_attach() right after new-session can pause and
capture the healthy pane before its shell writes READY中 under load.

what:
- Poll capture-pane on the healthy pane until READY中 appears before
  attaching the control client.
@tony
tony force-pushed the fix/75-control-command-ownership branch from 4b300fd to ddfe332 Compare December 5, 2026 13:49
@tony
tony changed the base branch from master to fix/80-capture-erased-background December 5, 2026 13:49
@tony
tony changed the base branch from fix/80-capture-erased-background to master December 5, 2026 13:53
@tony
tony merged commit 6c86350 into master Dec 5, 2026
16 of 17 checks passed
@tony
tony deleted the fix/75-control-command-ownership branch December 5, 2026 20:41

This branch was successfully deployed

1 active deployment
docs — ddfe3322 Deployed Dec 5, 2026 by tony via build (3.14) #442
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

A missing pane fails a healthy TmuxPaneSync on the same client

1 participant