Skip to content

cli(test[load]): Cover narrow-terminal recovery - #1124

Draft
tony wants to merge 2 commits into
feat/vt-snapshotsfrom
experiment/vt-recovery-prompt
Draft

tony wants to merge 2 commits into
feat/vt-snapshotsfrom
experiment/vt-recovery-prompt

Conversation

@tony

@tony tony commented Dec 4, 2026

Copy link
Copy Markdown
Member

Summary

  • Wait for the full tmuxp load recovery prompt across soft wraps.
  • Snapshot detach at 48 columns and verify that the partial api window survives.
  • Isolate styled spinner snapshots from the contributor's NO_COLOR setting.

Companion PRs

  • Reuse the PTY acceptance suite from the parent branch. tmuxp #1118
  • Pin the test dependency to the published logical-line wait. libvt #152

Test plan

  • Check Ruff formatting and lint, then run ty on Python 3.11 and 3.15.
  • Run the full suite on tmux 3.8 and the PTY snapshots on tmux 3.3a and 3.8.
  • Check that the PTY tests skip on Python 3.11.
  • Inject a hard newline into the prompt and verify that the logical wait fails.
  • Kill the session on detach and verify that the live session assertion fails.
  • Build the documentation.

tony added 2 commits December 5, 2026 20:30
why: NO_COLOR takes precedence over ColorMode.ALWAYS, so the styled
     spinner golden depends on the environment inherited by pytest.

what:
- Clear NO_COLOR while rendering the in-memory spinner snapshot
why: The failure prompt wraps at 48 columns. The detach choice should
     leave the partially built window available for inspection.

what:
- Wait for the full logical prompt through libvt's PTY session
- Snapshot detach and check the window on the real tmux server
@tony
tony force-pushed the experiment/vt-recovery-prompt branch from d001ae8 to eb16d90 Compare December 6, 2026 02:30
@codecov

codecov Bot commented Dec 6, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 82.15%. Comparing base (08fbd21) to head (eb16d90).

Additional details and impacted files
@@                Coverage Diff                 @@
##           feat/vt-snapshots    #1124   +/-   ##
==================================================
  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.
📢 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.

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