Lokasi ngalangkungan proxy:   [ UP ]  
[Ngawartoskeun bug]   [Panyetelan cookie]                
Skip to content

Preserve written spaces in compiled Ghostty comparisons - #157

Merged
tony merged 2 commits into
masterfrom
fix/12-ghostty-parity-oracle
Dec 5, 2026
Merged

tony merged 2 commits into
masterfrom
fix/12-ghostty-parity-oracle

Conversation

@tony

@tony tony commented Dec 3, 2026

Copy link
Copy Markdown
Member

Closes #93
Refs #12

What changed, and why:

The differential harness trimmed spaces that an application had written. It now preserves Ghostty’s selected row text and compares written spaces, erased cells and cursor position under whole and byte-at-a-time input.

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. The compiled Ghostty oracle retained two printed spaces and omitted the cells erased from the following row.

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 #157
- Preserve previously published notes and the parent branch's entries
@tony
tony marked this pull request as ready for review December 3, 2026 01:31
@tony
tony force-pushed the fix/12-ghostty-parity-oracle branch from f7a1ed8 to 2910ed0 Compare December 3, 2026 23:58
tony added 2 commits December 5, 2026 07:20
why: Trimming every row hid spaces that an application actually wrote.

what:
- Disable Ghostty's formatter trimming and preserve returned rows.
- Compare printed and erased cells with both whole and split input.
why: A printed trailing space and an unused erased cell can look
     identical in a snapshot.

what:
- Explain which cells the compiled Ghostty comparison retains.
@tony
tony force-pushed the fix/12-ghostty-parity-oracle branch from 2910ed0 to 3609ce6 Compare December 5, 2026 13:21
@tony
tony changed the base branch from master to fix/107-isolate-tmux-tests December 5, 2026 13:21
@tony
tony changed the base branch from fix/107-isolate-tmux-tests to master December 5, 2026 13:25
@tony
tony merged commit 4e8a99e into master Dec 5, 2026
9 checks passed

This branch was successfully deployed

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

Compare trailing spaces consistently in the Ghostty oracle

1 participant