Repository navigation
Conversation
tony
pushed a commit
that referenced
this pull request
Dec 2, 2026
why: Diffing vt_screen(..., diff=...) snapshots treated inner caret lines as screen rows, container section pairing ignored dict keys when entries flipped from '(unchanged)', and header diffs shared the row summary cap. what: - Skip inner rows and caret bars inside already-diffed VT boxes - Pair .ambr container sections by key and prefix multi-box summaries - Budget header, row, and styles summaries independently - Match only r<N>[<C0>..<C1>]: spans in styles: and cite #151 in CHANGES
tony
pushed a commit
that referenced
this pull request
Dec 2, 2026
why: Keep libvt.testing decoupled from Syrupy's Amber container syntax while pairing multi-row VT diffs, style span deltas, and .ambr container blocks cleanly in their owning modules. what: - Pair multi-row box runs, style deltas, and diff= guards in testing.py - Parse and pair .ambr container VT blocks in contrib/syrupy.py - Update docs/topics/testing.md doctest and CHANGES (#151) - Add multi-row, style-delta, diff=, and .ambr container diff tests
why: Diff readers need row changes paired with their viewport
coordinates.
what:
- Pair adjacent box rows and render column-aligned carets
- Report style span changes and cover nested boxes
This was referenced Dec 3, 2026
why: Diffing already rendered deltas must keep their summary and
alignment intelligible.
what:
- Distinguish inner delta lines and labels from captured rows
- Track style, row and header summaries independently
why: Syrupy's extension owns Amber container syntax and can identify
screens by key.
what:
- Pair core VT frames in testing and Amber containers in Syrupy
- Cover row, style, nested-container and delta comparisons
why: Snapshot diffs need captured display columns and unambiguous
identities for screens inside containers.
what:
- Preserve ambiguous cell layouts with optional column metadata
- Validate complete frames and pair nested screens by typed key paths
- Use the Syrupy fallback for unsupported or ordinary values
- Cover frame, color and key ambiguity and document snapshot updates
tony
force-pushed
the
fix/146-vt-diff-pairing-and-dicts
branch
from
December 3, 2026 02:48
c89daac to
c148e5e
Compare
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.
Fixes #146
Summary
format_vt_diff_lines()with column-aligned carets (or ANSI-styled lines when color callbacks are supplied). Persist measured columns when the stored text is ambiguous.styles:summaries as concise changed span deltas capped at three spans per side ((+N more)), including(none)transitions and span reorderings.vt_screen(..., diff=...)delta boxes.Review affected serialized expectations and update them with
pytest --snapshot-update.Test plan
styles:span deltas, anddiff=box guards intest_format_vt_diff_lines_multirow_pairing_style_deltas_and_diff_guardruff format --check .,ruff check .,ty check,pytestincluding doctests, and Sphinx HTML build withjust -f docs/justfile sphinxopts="-W --keep-going" html