Repository navigation
Conversation
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## engine-seam-minimal #738 +/- ##
=======================================================
+ Coverage 59.94% 60.41% +0.47%
=======================================================
Files 37 39 +2
Lines 6626 6955 +329
Branches 1321 1356 +35
=======================================================
+ Hits 3972 4202 +230
- Misses 2218 2302 +84
- Partials 436 451 +15 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
5 tasks done
This was referenced Oct 31, 2026
tony
force-pushed
the
engine-ops-compatibility-dx
branch
from
November 7, 2026 02:19
1fa02d4 to
c8e78bd
Compare
tony
force-pushed
the
engine-ops-compatibility-dx
branch
from
November 20, 2026 23:52
21e1fdc to
4be0c1f
Compare
tony
force-pushed
the
engine-ops-compatibility-dx
branch
from
November 21, 2026 17:03
4be0c1f to
50cadb3
Compare
libtmux.aio and offline ReplayEngine tapes
tony
force-pushed
the
engine-seam-minimal
branch
from
November 21, 2026 17:11
48ba47c to
08fd87a
Compare
tony
force-pushed
the
engine-ops-compatibility-dx
branch
from
November 21, 2026 17:11
50cadb3 to
7e3aa7a
Compare
tony
force-pushed
the
engine-seam-minimal
branch
from
November 22, 2026 02:43
08fd87a to
18045ea
Compare
tony
force-pushed
the
engine-ops-compatibility-dx
branch
from
November 22, 2026 02:43
7e3aa7a to
75b95d7
Compare
tony
force-pushed
the
engine-seam-minimal
branch
from
November 22, 2026 13:45
18045ea to
adf517a
Compare
tony
force-pushed
the
engine-ops-compatibility-dx
branch
from
November 22, 2026 13:46
75b95d7 to
dd1fbd6
Compare
tony
force-pushed
the
engine-seam-minimal
branch
from
November 22, 2026 15:21
adf517a to
909b8de
Compare
tony
force-pushed
the
engine-ops-compatibility-dx
branch
from
November 22, 2026 15:21
dd1fbd6 to
d77d4d6
Compare
tony
force-pushed
the
engine-seam-minimal
branch
from
November 22, 2026 20:12
909b8de to
240da60
Compare
tony
force-pushed
the
engine-ops-compatibility-dx
branch
from
November 22, 2026 20:13
d77d4d6 to
626a690
Compare
9 of 19 tasks
This was referenced Nov 24, 2026
tony
force-pushed
the
engine-seam-minimal
branch
from
November 25, 2026 08:12
240da60 to
c70c509
Compare
tony
force-pushed
the
engine-ops-compatibility-dx
branch
from
November 25, 2026 08:13
626a690 to
fcd2e82
Compare
tony
force-pushed
the
engine-ops-compatibility-dx
branch
from
November 29, 2026 03:17
94bccdd to
b154176
Compare
tony
force-pushed
the
engine-seam-minimal
branch
from
November 30, 2026 01:02
79ab482 to
c8717d3
Compare
tony
force-pushed
the
engine-ops-compatibility-dx
branch
from
November 30, 2026 01:04
b154176 to
79bb713
Compare
tony
force-pushed
the
engine-seam-minimal
branch
from
December 4, 2026 03:13
c8717d3 to
ebde4a6
Compare
tony
force-pushed
the
engine-ops-compatibility-dx
branch
from
December 4, 2026 03:13
79bb713 to
6f95bb9
Compare
tony
force-pushed
the
engine-seam-minimal
branch
from
December 5, 2026 16:52
ebde4a6 to
0269c6c
Compare
tony
force-pushed
the
engine-ops-compatibility-dx
branch
from
December 5, 2026 16:54
6f95bb9 to
24dbb0f
Compare
tony
force-pushed
the
engine-seam-minimal
branch
from
December 5, 2026 17:53
0269c6c to
3b6a7fc
Compare
tony
force-pushed
the
engine-ops-compatibility-dx
branch
from
December 5, 2026 17:53
24dbb0f to
37f0cc7
Compare
tony
added a commit
that referenced
this pull request
Dec 5, 2026
why: Record AsyncServer, AsyncSubprocessEngine, and ReplayEngine notes. what: - Add unreleased 0.74.0 feature notes for #738.
tony
force-pushed
the
engine-ops-compatibility-dx
branch
from
December 5, 2026 18:22
37f0cc7 to
6dd08cd
Compare
tony
force-pushed
the
engine-seam-minimal
branch
from
December 5, 2026 18:22
3b6a7fc to
4338fb6
Compare
tony
added a commit
that referenced
this pull request
Dec 5, 2026
why: Record AsyncServer, AsyncSubprocessEngine, and ReplayEngine notes. what: - Add unreleased 0.74.0 feature notes for #738.
tony
force-pushed
the
engine-ops-compatibility-dx
branch
from
December 5, 2026 20:44
6dd08cd to
626ae6e
Compare
tony
force-pushed
the
engine-seam-minimal
branch
from
December 5, 2026 22:54
4338fb6 to
f86d71f
Compare
why: Async clients need cancellable subprocess calls. Recorded requests and replies let tests exercise the same engine contract offline. what: - Add AsyncServer, AsyncSubprocessEngine, and async dispatch helpers. - Record exchanges and reject unscripted commands during tape replay. - Keep synchronous imports independent of asyncio.
why: Sync and async callers need the same line endings when reading a command result. what: - Share line and diagnostic projection in the command-result adapter. - Retain both original byte streams when decoding async replies.
why: A tuple passed to a batch could wait indefinitely even when commands on the same server had a deadline. what: - Apply the configured timeout when constructing each command vector. - Retain the policy on a caller-supplied request, including unbounded waits.
why: An embedded line feed split a native session record across lines and made the async inventory unreadable. what: - Use the shared record parser for complete session inventories. - Compare session paths on a private server with a multiline directory.
why: A second async argv renderer changed native argument boundaries and could disagree with synchronous daemon-guard dispatch. what: - Use the command engine to prepare the request and child environment. - Check native output with and without a live daemon guard.
why: JSON text decoding lost bytes. Pairing request and result lists also exchanged replies when threads completed out of order. what: - Capture each completed request and reply together, including batches. - Match explicit input, client flags and execution options during replay. - Retain non-UTF-8 output in JSON and exercise a recorded example.
why: A failed has-session later in a native command group produced different decoded stdout in sync and async code, although tmux returned the same bytes. what: - Derive the compatibility projection once from the completed request and its diagnostics. - Compare the native exit status, both raw streams, and both line views in one real grouped command.
why: A fixture may use an explicit path without a socket name. The async client must target the same isolated daemon for a valid comparison. what: - Build live async clients from the connection attached to the fixture's session. - Let the synchronous recording wrapper retain its configured connection.
why: The native asyncio runner consumes the same arguments and environment as the blocking subprocess runner. Using one launch preparation path keeps socket selection and command limits consistent. what: - Build the async launch from the command engine’s resolved argv and environment.
why: AsyncServer needs parity with Server.from_env(), AF_UNIX length preflights, daemon-probed session formats, and double-cancel reaping. what: - Add AsyncServer.from_env() and _check_socket_path preflight checks. - Loop asyncio.shield(reap_task) until child reaping completes. - Probe connected daemon version asynchronously for list_sessions().
why: Document AsyncServer/AsyncSubprocessEngine and ReplayEngine in REVIEW.md's layer map. what: - Add the Async dispatch row for aio.py and keep synchronous modules free of asyncio imports - Record ReplayEngine and Tape under Test fixtures and helpers
why: Record AsyncServer, AsyncSubprocessEngine, and ReplayEngine notes. what: - Add unreleased 0.74.0 feature notes for #738.
tony
force-pushed
the
engine-ops-compatibility-dx
branch
from
December 5, 2026 22:55
626ae6e to
c741609
Compare
This branch has not been 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.
Note
Rebase alignment with
v0.70.0(0.74.0milestone, #907): alignAsyncSubprocessEnginechild timeout and pipe-safe reaping withexc.TmuxCommandTimeout(#807), preserve structured logging and environment masking (#748), and check annotations withty(uv run ty check) and RuffANN(#682) in place ofmypy.Summary
libtmux.aio(AsyncServer,AsyncSubprocessEngine,adispatch,adispatch_batch,AsyncCommandResult) built directly overlibtmux.engine.AsyncTmuxEngine(Engine(feat): Add raw-byte libtmux.engine seam and capabilities #739), keepingasyncioout ofsys.moduleson synchronousimport libtmux.ReplayEngine,Exchange, andTapeinlibtmux.testalongsideRecordingEngine.tape/RecordingEngine.to_dict()andexc.UnscriptedCommandso recorded tmux traffic replays offline and fails closed on unscripted commands.Changes
src/libtmux/aio.py:AsyncSubprocessEngine: Awaitsasyncio.create_subprocess_execin binary mode, enforcingMSG_COMMANDlimits,DaemonGuardgeneration fences, and child termination/reaping onTimeoutErrorandasyncio.CancelledError.AsyncServer.from_env()connects explicitly to the$TMUXserver from a pane environment, andAsyncServervalidatessocket_name/socket_pathlength againstAF_UNIXsun_pathlimits.AsyncServer.list_sessions()probes the running daemon version before falling back to the client binary and uses the shared record parser, including when a session directory contains a newline.src/libtmux/test/replay.py&src/libtmux/exc.py:RecordingEnginepairs each completed request with its reply, including when threads finish out of order. JSON tapes retain binary outputs. Replay distinguishes request inputs and client options, and reports an unrecorded request withUnscriptedCommand.Layer ownership (
REVIEW.md)aio.py): owns opt-inAsyncServer,AsyncSubprocessEngine,adispatch/adispatch_batch, and shielded child reaping while keeping synchronouslibtmuxmodules free ofasyncioimports.test/replay.py): addsReplayEngine,Tape, andExchangealongsideFakeEngineandRecordingEngine.Test plan
3.11and3.15)pytestsuite across supported tmux releasesjust build-docs)