Repository navigation
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## fix/602-603-cli-terminal-alignment #604 +/- ##
======================================================================
+ Coverage 85.46% 85.87% +0.40%
======================================================================
Files 39 39
Lines 8059 8059
Branches 1652 1652
======================================================================
+ Hits 6888 6921 +33
+ Misses 774 749 -25
+ Partials 397 389 -8 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
tony
changed the base branch from
master
to
fix/602-603-cli-terminal-alignment
December 2, 2026 01:55
This was referenced Dec 4, 2026
tony
force-pushed
the
fix/602-603-cli-terminal-alignment
branch
from
December 5, 2026 15:20
028ad43 to
92ea82c
Compare
tony
force-pushed
the
test/595-libvt-cli-snapshots
branch
from
December 5, 2026 15:23
afef293 to
d50dc75
Compare
This was referenced Dec 5, 2026
tony
force-pushed
the
fix/602-603-cli-terminal-alignment
branch
from
December 6, 2026 02:08
92ea82c to
37a8b17
Compare
why: Provide a virtual terminal state machine, POSIX PTY harness, and syrupy .ambr screen and SGR serializer for CLI rendering tests on Python 3.12+ without adding a runtime dependency on vcspull. what: - Add libvt[pytest,syrupy]>=0.0.1a5,<0.1 on Python >=3.12 to dev and testing dependency groups - Exempt libvt from uv exclude-newer cooldowns - Allow unresolved libvt imports in ty on Python 3.11 - Refresh uv.lock
why: Raw io.StringIO substring checks verify emitted ANSI bytes without checking what an ANSI/DEC terminal renders on screen or leaves in scrollback across ?2026 frames, DL panel collapses, CJK truncation, narrowing reflows, and live PTY signals. what: - Add DEC Mode ?2026 hold-atomicity tests for sequential and parallel SyncStatusIndicator frames via Terminal.feed_until and StopOn - Verify sequential --jobs 1 3-row panel DL collapse leaves zero blank gaps or scrollback residue - Verify 60x8 parallel overflow capping, 80x24 CJK 2-cell truncation and split-chunk reassembly, 100x24 -> 58x20 mid-run resize reflow, and carriage-return padding in PlanProgressPrinter and StatusProgressPrinter - Verify DECTCEM ?25 warm-grace stability and live POSIX vt_pty resize and SIGINT (\x03) cleanup
why: Lock in boxed visual layout and SGR span positions across SyncStatusIndicator transitions, CLI color modes, log/help formatters, and live PTY sync sessions while skipping cleanly on Python 3.11. what: - Snapshot sequential and parallel SyncStatusIndicator frames and vt_screen(after, diff=before) step-deltas - Snapshot sync --dry-run, status --detailed, list --tree --include-worktrees, search mid-token cyan/magenta/cyan highlighting, SimpleLogFormatter, and VcspullHelpFormatter across --color auto, --color always, --color never, and NO_COLOR=1 - Snapshot end-to-end vcspull sync in vt_pty at 76-column and 48-column terminal widths Fixes #595
why: Live multi-slot compaction, watchdog timeouts, mid-spinner log warnings, retained recovery notices, Ctrl-C cleanup, and interactive escaping-config prompts combine relative cursor rewrites with styled stdout/stderr output that plain stream capture cannot verify visually. what: - Snapshot parallel --jobs 2 PTY live slot compaction, mixed outcomes, and step delta - Snapshot --timeout 1 PTY live panel, 32-column aligned rerun recipe, debug log trail, and scrollback viewport offset - Snapshot missing working_copy.branch guidance, mid-spinner target_drift DL panel collapse, retained recovery tokens, 20-column aligned --include-worktrees outcomes, and --exit-on-error PTY abort - Snapshot live PTY SIGINT mid-sync panel, cleanup summary, and delta - Snapshot escaping project config [y/N/always/?] drill-down, decline, and acceptance into live sync spinner - Refresh dry-run include_worktrees snapshot for 20-column ref padding
why: libvt 0.0.1a6 is now published on PyPI with per-row snapshot scrubbers, os.PathLike path scrubbing, row-paired boxed step diffs, and marker-filtered vt_snapshot discovery. what: - Bump libvt[pytest,syrupy] floor from >=0.0.1a5,<0.1 to >=0.0.1a6,<0.1 in dev and testing dependency groups and refresh uv.lock - Add a short_home fixture and pass PathLike scrubbers in tests/cli/test_vt_snapshots.py so scrubbed home paths stay on one captured viewport row - Refresh the five boxed step-delta goldens for libvt 0.0.1a6's paired row diff format
why: v1.71.0 added the repository alias paragraph and example to SYNC_DESCRIPTION, shifting rows 2..13 in VcspullHelpFormatter's 76x14 viewport. what: - Refresh test_vcspull_help_formatter_vt_snapshots[ansi_theme] and test_vcspull_help_formatter_vt_snapshots[no_color_plain] in tests/cli/__snapshots__/test_vt_snapshots.ambr
tony
force-pushed
the
test/595-libvt-cli-snapshots
branch
from
December 6, 2026 02:12
65363b3 to
33433db
Compare
why: libvt 0.0.1a7 is published on PyPI. what: - Bump libvt[pytest,syrupy] floor from >=0.0.1a6,<0.1 to >=0.0.1a7,<0.1 in dev and testing dependency groups - Refresh uv.lock against PyPI libvt 0.0.1a7
This branch has not been 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 #595
Summary
libvt[pytest,syrupy]todevandtestinggroups on Python 3.12+ with zero runtime dependency.?2026hold atomicity,DLpanel collapse, CJK truncation, and resize reflow.vcspull syncresize andSIGINTcleanup inside a POSIX PTY viavt_pty.syrupy.Companion PR
Changes
pyproject.toml,uv.lock: addlibvt[pytest,syrupy]>=0.0.1a5,<0.1; python_version >= '3.12'todevandtesting, exemptlibvtin[tool.uv.exclude-newer-package], and allow unresolvedlibvtimports under[tool.ty.analysis]on Python 3.11.tests/cli/test_vt_progress.py: add deterministic VT state-machine andvt_ptyinvariant tests for DEC Mode?2026hold atomicity, sequentialDLpanel collapse,60x8parallel overflow capping,80x24CJK width truncation and split-chunk reassembly,100x24to58x20narrowing reflow,PlanProgressPrinterandStatusProgressPrintercarriage-return overwrite padding,DECTCEM?25cursor visibility across warm-grace runs, and live PTY resize andSIGINTtermination.tests/cli/test_vt_snapshots.py,tests/cli/__snapshots__/test_vt_snapshots.ambr: add.ambrboxed screen, step-delta, andSGRspan snapshots acrossSyncStatusIndicator(including mid-spinnertarget_driftDLpanel collapse and retainedRecoveryTokennotices),vcspull sync --dry-run, missingworking_copy.branchguidance,--include-worktreeslive column alignment and dirty-checkout refusal,vcspull status --detailed,vcspull list --tree --include-worktrees,vcspull searchmid-token highlighting,SimpleLogFormatter,VcspullHelpFormatter, and livevt_ptyvcspull syncruns covering normal and narrow widths,--jobs 2mixed parallel outcomes,--timeout 1watchdog rerun recipes,--exit-on-errorbatch aborts, mid-syncSIGINTcleanup, and escaping project config[y/N/always/?]drill-down and acceptance into live sync.Design decisions
importlib.util.find_spec("libvt")and module-levelpytest.mark.skipifinstead ofpytest.importorskip("libvt")sopytestcollects every parametrized item on Python 3.11 and records skipped locations insyrupyrather than failing unused-snapshot checks.Test plan
uv run ruff format --check .anduv run ruff check .uv run ty check --error-on-warning --python-version 3.11 .anduv run ty check --error-on-warning --python-version 3.15 ..ambrsnapshot assertions on Python 3.15 withuv run py.test -qsyrupysnapshot errors on Python 3.11 withuv run --python 3.11 --isolated --group testing pytest tests/cli/test_vt_progress.py tests/cli/test_vt_snapshots.py tests/cli/test_add.py -quv run --isolated --no-cache --no-dev --no-editable --frozen python scripts/runtime_dep_smoketest.py