Skip to content

program(test): Check job exits independently of pane text - #174

Merged
tony merged 1 commit into
mainfrom
program-output-exit
Dec 5, 2026
Merged

tony merged 1 commit into
mainfrom
program-output-exit

Conversation

@tony

@tony tony commented Dec 5, 2026 •

Copy link
Copy Markdown
Contributor

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.Program on a private tmux server and sends each its own literal input token. Each child writes a separate input receipt, clears its progress text and leaves done visible.

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

  • The Program integration suite passed on Linux with tmux 3.8 in 28.55 s. On pristine tmux 3.3 the unsupported-release case passed in 1.79 s and the 3.8-only cases were skipped.
  • Temporarily substituting status 0 for the second job's 7 failed at the exit assertion after the receipt and screen assertions passed. The negative control took 2.75 s.
  • Re-ran the new case on the committed branch with tmux 3.8 in 3.91 s.

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.

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
tony force-pushed the program-output-exit branch from 6b6ed29 to b93b0eb Compare December 5, 2026 20:40
@tony
tony merged commit aa6ce3b into main Dec 5, 2026
6 checks passed
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.

1 participant