Repository navigation
program(test): Check job exits independently of pane text - #174
Merged
Merged
Conversation
This was referenced Dec 5, 2026
why: Two applications can leave identical pane screens after receiving different input and exiting with different statuses. what: - Check a separate input receipt and pane identity for each job. - Compare the final screens and assert exits 0 and 7 independently. - Verify pane removal and termination of the observed processes.
tony
force-pushed
the
program-output-exit
branch
from
December 5, 2026 20:40
6b6ed29 to
b93b0eb
Compare
This was referenced Dec 5, 2026
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.
Refs #171.
What changed, and why
Two jobs can leave the same final screen and exit with different statuses. This regression starts both jobs through
LibTmux.Programon a private tmux server and sends each its own literal input token. Each child writes a separate input receipt, clears its progress text and leavesdonevisible.The test compares the two screens, checks statuses 0 and 7 independently, and verifies pane and process cleanup. The byte interval and separate stdout/stderr transcript remain unverified in #171.
This test can land independently. The listener-path test from draft #169 exercises a different Program contract. Both tests passed together on upstream tmux 3.8 and with the expected release-specific skips on pristine 3.3.
Checks run
Rebased checks
The full core suite passed on Linux tmux 3.8 in 42.09 s after rebasing. The case for unsupported releases was skipped.
Tool use
Codex wrote and ran the regression and its negative control. A separate Codex reviewer checked the input receipts, screen comparison and exit assertions.