Skip to content

tests(vt): Exercise interactive picker lifecycle - #937

Open
tony wants to merge 1 commit into
feat-933-vtfrom
feat-933-vt-syrupy
Open

tony wants to merge 1 commit into
feat-933-vtfrom
feat-933-vt-syrupy

Conversation

@tony

@tony tony commented Nov 29, 2026 •

Copy link
Copy Markdown
Member

Summary

  • Exercise an interactive TUI picker lifecycle on tmux 3.3a to master via VtSessionObserver, KeyEvent, PasteEvent, window resizing, immutable wait_until() snapshots, and syrupy .ambr assertions.
  • Verify capture-versus-observer parity across Pane.capture_vt() and VtPaneHandle (including Mode.BRACKETED_PASTE on tmux >= 3.7 where #{bracket_paste_flag} is exposed, and live ?2004h retention on tmux 3.3a-3.6), plus primary-screen and cursor restoration on exit.
  • Add libvt[syrupy]>=0.0.1a4,<0.1 and syrupy to the dev and testing dependency groups on Python 3.12+.

Companion PR

Changes

  • pyproject.toml, uv.lock: add libvt[syrupy]>=0.0.1a4,<0.1 and syrupy to dev and testing dependency groups on Python 3.12+ and allowlist unresolved syrupy imports under [tool.ty.analysis] for Python 3.11 type-checks.
  • tests/test_vt.py, tests/__snapshots__/test_vt.ambr: add test_vt_interactive_picker_lifecycle covering pre-launch attach, Down highlight navigation, bracketed-paste filtering, capture-versus-observer parity, SIGWINCH window resize redraw, and primary-screen exit restoration (skipping cleanly on Python 3.11).

Test plan

  • Check formatting and lint rules with uv run ruff format . .github/scripts --check and uv run ruff check . .github/scripts
  • Check strict static types on Python 3.11 and Python 3.12+ with uv run ty check
  • Verify interactive TUI picker lifecycle, .ambr snapshots, and Python 3.11 skips with uv run pytest tests/test_vt.py --reruns=0

@tony
tony added this pull request to stack #938 November 29, 2026 16:23
@codecov

codecov Bot commented Nov 29, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 62.71%. Comparing base (f619e06) to head (6a2d032).

Additional details and impacted files
@@               Coverage Diff               @@
##           feat-933-vt     #937      +/-   ##
===============================================
- Coverage        62.75%   62.71%   -0.04%     
===============================================
  Files               30       30              
  Lines             5654     5654              
  Branches          1186     1186              
===============================================
- Hits              3548     3546       -2     
- Misses            1714     1716       +2     
  Partials           392      392              

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@tony
tony force-pushed the feat-933-vt-syrupy branch from 2e41979 to a58a953 Compare November 29, 2026 16:50
@tony tony changed the title vt(feat[syrupy]): Add snapshot aliases and tests tests(vt): Add syrupy .ambr parity tests Nov 29, 2026
@tony
tony force-pushed the feat-933-vt-syrupy branch from 4bcdded to 9e9233c Compare November 29, 2026 18:43
@tony
tony force-pushed the feat-933-vt-syrupy branch from 1fa922e to 7d549b9 Compare November 29, 2026 21:53
@tony
tony force-pushed the feat-933-vt-syrupy branch 2 times, most recently from 0488bc8 to 6e4d874 Compare November 29, 2026 23:49
@tony tony changed the title tests(vt): Add syrupy .ambr parity tests tests(vt): Exercise interactive picker lifecycle Nov 30, 2026
@tony
tony force-pushed the feat-933-vt-syrupy branch 2 times, most recently from e15361b to e249202 Compare November 30, 2026 00:53
@tony
tony force-pushed the feat-933-vt-syrupy branch from e249202 to a7063ad Compare November 30, 2026 01:18
why: Verify that live VtSessionObserver tracking, mode-aware input,
window resizing, and syrupy .ambr snapshots cover an end-to-end TUI
lifecycle across tmux 3.3a through master while skipping cleanly on
Python 3.11.

what:
- Add libvt[syrupy]>=0.0.1a4,<0.1 and syrupy to dev and testing
  dependency groups on Python 3.12+ and allowlist syrupy in ty.
- Add test_vt_interactive_picker_lifecycle exercising pre-launch
  attachment, Down highlight navigation, bracketed PasteEvent filtering,
  capture_vt vs observe_vt parity (gated on tmux 3.7 for
  #{bracket_paste_flag}), SIGWINCH resize redraws, and primary-screen
  restoration on exit.

This branch has not been deployed

No deployments
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.

1 participant