Repository navigation
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #1118 +/- ##
=======================================
Coverage 82.15% 82.15%
=======================================
Files 31 31
Lines 2791 2791
Branches 525 525
=======================================
Hits 2293 2293
Misses 355 355
Partials 143 143 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
tony
force-pushed
the
feat/vt-snapshots
branch
from
November 29, 2026 18:44
cdb4de4 to
44c24a0
Compare
This was referenced Nov 29, 2026
tony
force-pushed
the
feat/vt-snapshots
branch
from
November 30, 2026 00:44
94bb755 to
983083d
Compare
tony
force-pushed
the
feat/vt-snapshots
branch
from
November 30, 2026 00:55
983083d to
5e86cd4
Compare
why: Provide vt_pty, vt_screen, and syrupy .ambr snapshot fixtures for CLI acceptance tests on Python 3.12+ without adding runtime dependencies or breaking Python 3.11 environments. what: - Add libvt[pytest,syrupy]>=0.0.1a4,<0.1 and syrupy>=7.0.3 (gated on python_version >= '3.12') to dev and testing dependency groups. - Set libvt = false in [tool.uv.exclude-newer-package] and allowlist unresolved libvt and syrupy imports under [tool.ty.analysis] for Python 3.11 type-checks.
why: Unit tests calling Spinner.on_build_event directly cannot verify that tmuxp load wires builder events to the spinner, clears panel rows before printing final output, or stops repainting before showing the error recovery prompt. what: - Exercise detached tmuxp load in vt_pty at normal (76-column) and narrow (48-column) widths with a before_script hook and multi-window workspace, verifying live progress, panel erasure, private-path summary styling, cursor restoration, and built session state. - Exercise failed tmuxp load recovery in vt_pty at normal and narrow widths, verifying that hook output renders first, spinner output stops before the recovery prompt, and entering 'k' kills the session. - Snapshot Spinner ?2026 panel frames, CURSOR_UP_1 cleanup, and step deltas, skipping cleanly on Python 3.11.
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.
Summary
Spinner?2026synchronized panel frames andCURSOR_UP_1cleanup withvt_snapshot.tmuxp loadinvt_ptyat normal (76-column) and narrow (48-column) terminal widths with abefore_scripthook, verifying live builder progress, panel erasure, private-path summary styling, cursor restoration, and built session state.tmuxp loadrecovery invt_ptyat normal and narrow terminal widths, verifying that hook output renders first, spinner output stops before the(k)ill, (a)ttach, (d)etach?prompt, and enteringkkills the session cleanly.libvt[pytest,syrupy]>=0.0.1a4,<0.1andsyrupytotmuxp'sdevandtestingdependency groups on Python 3.12+ (with no runtimetmuxpextra).Companion PR
libtmux[vt]capture, sync, and input)libtmuxinteractive picker VT lifecycle tests)libvt v0.0.1a4: tmux-python/libvt#66, tmux-python/libvt#67Changes
pyproject.toml,uv.lock: addlibvt[pytest,syrupy]>=0.0.1a4,<0.1andsyrupytodevandtestingdependency groups on Python 3.12+, setlibvt = falsein[tool.uv.exclude-newer-package], and allowlist unresolvedlibvtandsyrupyimports under[tool.ty.analysis]for Python 3.11 type-checks.tests/test_vt_snapshots.py,tests/__snapshots__/test_vt_snapshots.ambr: add.ambrsnapshot and PTY acceptance tests coveringSpinner, detachedtmuxp loadprogress and cleanup, and failedtmuxp loadrecovery prompts viavt_pty,vt_screen, andvt_snapshot(skipping cleanly on Python 3.11).Test plan
uv run ruff format . .github/scripts --checkanduv run ruff check . .github/scriptsuv run ty check --python-version 3.11anduv run ty check --python-version 3.15tmuxp loadPTY acceptance scenarios andSpinner.ambrsnapshots on Python 3.12+ and clean skips on Python 3.11 withuv run pytest tests/test_vt_snapshots.py tests/cli/test_progress.py --reruns=0