Repository navigation
Set encoding and event recording at PTY startup - #164
Merged
Merged
Conversation
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 #164 - Preserve previously published notes and the parent branch's entries
tony
marked this pull request as ready for review
December 3, 2026 01:36
tony
force-pushed
the
fix/97-startup-encoding-events
branch
from
December 3, 2026 23:58
08bae08 to
0296f8b
Compare
7 tasks done
why: Callers need the requested decoder and event recording before the
first read. An invalid encoding should fail before the child
starts.
what:
- Forward encoding and event recording through terminal factories.
- Validate settings before allocating the PTY.
- Check first-byte decoding and bell events in both PTY factories.
Fixes #97
why: The first PTY read needs the requested decoder and event-recording
setting.
what:
- Document the encoding and recording options on PTY and fixture
creation.
tony
force-pushed
the
fix/97-startup-encoding-events
branch
from
December 5, 2026 13:44
0296f8b to
22b2d1b
Compare
35 of 38 tasks
This branch was successfully 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.
Closes #97
What changed, and why:
open_pty(),Terminal.from_size(),vt_factory, andvt_ptyaccept startup encoding and event-recording options. A short-lived program's first output uses those settings, including events emitted before its exit.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.