Repository navigation
tmux(feat[control]): Add parser and pane sync (#27) - #57
Merged
Merged
Conversation
tony
force-pushed
the
feat/osc-notifications
branch
from
November 28, 2026 20:20
9773411 to
d4d03b3
Compare
why: Streaming tmux -C / -CC control mode requires raw-byte framing so split multi-byte UTF-8 pane output never corrupts into U+FFFD, paired with a non-pipelined pause barrier and single-batch capture+continue handoff to attach to live panes without dropping bytes. what: - Add byte-oriented TmuxControlParser and typed TmuxControlEvent records (TmuxCommandBlock, TmuxOutput, TmuxExtendedOutput, TmuxPause, TmuxContinue, TmuxLayoutChange, TmuxSubscriptionChanged, TmuxExit, TmuxNotification) in libvt.contrib.tmux.control - Add sans-I/O TmuxPaneSync and TmuxAttachPhase implementing nonce-acked refresh-client -A '%N:pause' + atomic capture-pane / capture-pane -P -p -C / refresh-client -A '%N:continue' handoff - Export lazily from libvt.contrib.tmux, document across Sphinx docs and CHANGES, and test including live tmux -C subprocess synchronization
tony
force-pushed
the
feat/tmux-control-sync
branch
from
November 28, 2026 20:23
46d5c59 to
9911520
Compare
This was referenced Nov 28, 2026
This branch was successfully deployed
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.
Closes #27 (depends on #56)
Summary
Adds a byte-oriented
tmux -C/-CCcontrol-mode parser (TmuxControlParser) and sans-I/O two-phase pane-attachment state machine (TmuxPaneSync) tolibvt.contrib.tmux.control.What changed
libvt.contrib.tmux.control.TmuxControlParser: frame rawbyteslines (O(N)buffer cursor scan,DCS 1000pESC P 1000p..STstripping, single-level%begin..%end/%errorguard state,max_line_bytes/max_block_bytestruncation with partial octal escape tail stripping) into typedTmuxControlEventrecords (TmuxCommandBlock,TmuxOutput,TmuxExtendedOutput,TmuxPause,TmuxContinue,TmuxLayoutChange,TmuxSubscriptionChanged,TmuxExit,TmuxNotification) without premature UTF-8 decoding.libvt.contrib.tmux.control.TmuxPaneSync: coordinate the non-pipelinedrefresh-client -A '%N:pause'+ noncedisplay-messagebarrier followed by an atomic single-batchcapture-pane+capture-pane -P -p -C+refresh-client -A '%N:continue'handoff (_tmux_quotesingle-quoting for%and:) into a liveTerminalunderTMUX_OBSERVER_POLICY.libvt.contrib.tmux,tests/test_tmux.py(including livetmux -Csubprocess handoff verification),tests/test_libvt.py,docs/, andCHANGES: lazy PEP 562 exports, tests, doctests, and documentation.