Repository navigation
Concept: Wait for a whole reply from a tmux pane - #153
Merged
Merged
Conversation
tony
force-pushed
the
concept-read-pane-line
branch
from
December 5, 2026 18:02
0335ef0 to
26083e3
Compare
tony
force-pushed
the
qa/queued-deadline
branch
from
December 6, 2026 01:50
0ef1670 to
9c6aa5b
Compare
tony
force-pushed
the
concept-read-pane-line
branch
from
December 6, 2026 02:07
26083e3 to
48b0380
Compare
tony
force-pushed
the
qa/queued-deadline
branch
from
December 6, 2026 02:07
9c6aa5b to
5df4084
Compare
why: tmux can split an answer across output events. One reply can also span enough bytes to delay other callbacks while the watch frames it. what: - Wait for a complete line under a single deadline and optional prefix. - Keep partial and unread lines after timeout or cancellation. - Give long joins a fresh dispatch slice and preserve the raw watch.
why: Readers need a way to find the complete-line reply API. what: - Mention reply prefixes and deadlines under Unreleased.
tony
changed the base branch from
qa/queued-deadline
to
concept-calculator-quickstart
December 6, 2026 14:35
tony
force-pushed
the
concept-calculator-quickstart
branch
from
December 6, 2026 14:35
26801f4 to
ae13fa5
Compare
tony
force-pushed
the
concept-read-pane-line
branch
from
December 6, 2026 14:35
48b0380 to
751fee9
Compare
tony
marked this pull request as ready for review
December 6, 2026 14:52
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.
Try it
Open a line watch on the pane before sending
sum 19 23. Once the calculator answers, the example printsresult=42.Progress messages use up the same five seconds. If the wait expires halfway through an answer, the next read can finish it using the buffered partial line. A coverage gap or buffer overflow closes the watch with
observation_gap. Runnable calculator · Line endings, limits and lost outputWhat changed
observation:watch_pane_lines(pane)reads complete lines on tmux 3.7 or newer. Give it a prefix your application reserves for replies. The line watch joins split output events and gives large joins a fresh dispatch turn so ready callbacks can run. A separate byte watch still sees the original bytes.The line watch uses the request and byte-watch deadline handling in #169. The long-line test checks that a ready callback can run before a large reply is joined.
Test plan
Closes #152. Related to #136.