Skip to content

Stop terminal stepping at program status changes - #181

Merged
tony merged 2 commits into
masterfrom
fix/98-status-step
Dec 5, 2026
Merged

tony merged 2 commits into
masterfrom
fix/98-status-step

Conversation

@tony

@tony tony commented Dec 3, 2026

Copy link
Copy Markdown
Contributor

Closes #98

What changed, and why:

Terminal.feed_until(..., stop=StopOn.PROGRAM_STATUS) can pause when a program status changes. The returned byte offset starts the remaining input. Unchanged updates and status queries leave the step running.

Checks run:

On Linux, Ruff formatting and lint, ty for Python 3.12 through 3.15, the full pytest suite with doctests, compiled Ghostty comparisons, and the Sphinx warnings-as-errors build passed.

Tool use:

Codex prepared the change and ran the local checks. A separate Codex reviewer replayed the changed behavior and checked the publication tree against the reviewed patch.

tony added a commit that referenced this pull request Dec 3, 2026
why: Readers need the behavior and scope of this change at release.

what:
- Add the unreleased entry for PR #181
- Preserve previously published notes and the parent branch's entries
@tony
tony marked this pull request as ready for review December 3, 2026 01:51
@tony
tony force-pushed the fix/98-status-step branch from d4fd38d to f32750e Compare December 3, 2026 23:58
tony added 2 commits December 5, 2026 07:21
why: A read can contain a status change followed by independent output.

what:
- Expose the accepted status transition as a stepping boundary.
- Preserve the byte offset and combine simultaneous stop reasons.
- Exercise updates, pruning, reset and rejected records.

Fixes #98
why: A read can contain several status transitions before the caller
     inspects the terminal.

what:
- Document StopOn.PROGRAM_STATUS as a feed_until boundary.
@tony
tony force-pushed the fix/98-status-step branch from f32750e to 4b5fcd0 Compare December 5, 2026 13:22
@tony
tony changed the base branch from master to fix/84-concealed-cell-background December 5, 2026 13:22
@tony
tony changed the base branch from fix/84-concealed-cell-background to master December 5, 2026 13:28
@tony
tony merged commit 07592a1 into master Dec 5, 2026
9 checks passed
@tony tony mentioned this pull request Dec 5, 2026
35 of 38 tasks
@tony
tony deleted the fix/98-status-step branch December 5, 2026 20:42

This branch was successfully deployed

1 active deployment
docs — 4b5fcd05 Deployed Dec 5, 2026 by tony via build (3.14) #390
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.

Expose the documented status transition stop in feed_until

1 participant