Skip to content

Restore viewport state when replaying a VT snapshot - #180

Open
tony wants to merge 2 commits into
masterfrom
fix/88-vt-checkpoint-state
Open

tony wants to merge 2 commits into
masterfrom
fix/88-vt-checkpoint-state

Conversation

@tony

@tony tony commented Dec 3, 2026

Copy link
Copy Markdown
Member

Closes #88
Closes #110
Closes #114
Closes #115

What changed, and why:

VT snapshot output restores margins and protection, the active SGR and OSC 8 pen state, and representable pending wrap. Stored glyph widths determine the replayed cell layout.

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.

why: A frame replay needs the live state that governs the next write.

what:
- Restore margins, protection, active style and hyperlink state.
- Keep stored glyph widths and recreate representable pending wraps.
- Compare the viewport and following input after checkpoint replay.

Fixes #88
Fixes #110
Fixes #114
Fixes #115
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 #180
- Preserve previously published notes and the parent branch's entries
@tony
tony marked this pull request as ready for review December 3, 2026 01:50
why: Subsequent output depends on the margins, pen and pending wrap
     captured in a snapshot.

what:
- Describe restored state and when the margin glyph can be reprinted.

This branch was previously deployed

1 inactive deployment
docs — 54559332 Deployed Dec 4, 2026 by tony via build (3.14) #339
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

1 participant