Skip to content

test: read the shown rows in browser scripts still waiting on xterm's hidden ones - #3041

Merged
devswha merged 2 commits into
mainfrom
test/main-shown-rows
Nov 5, 2026
Merged

devswha merged 2 commits into
mainfrom
test/main-shown-rows

Conversation

@devswha

@devswha devswha commented Nov 5, 2026

Copy link
Copy Markdown
Owner

Summary

Since libghostty draws herdr panes by default (#3025), xterm's own rows are hidden once the module loads, and xterm stops redrawing them. scripts/unconfirmed-input-demo-regression.ts still waited for .xterm-rows to be visible, so it fails on main (run 42077075576: locator resolved to hidden <div class="xterm-rows">).

This moves it, and the other browser scripts that still read or waited on xterm's rows, to scripts/shown-rows.ts, as the earlier move did for about 40 scripts:

  • unconfirmed-input-demo-regression.ts: waits for the shown rows. This is the failing one.
  • terminal-pinch-regression.ts (run by ui-contexts): waits for the shown rows before and after the reload. It only passed when xterm drew before the module loaded.
  • mirror-scroll-demo-regression.ts: the "frame rendered" waits read the shown rows.
  • terminal-images-demo-regression.ts: print() waits for its marker in the shown rows.
  • old-safari-demo-regression.ts: "the terminal pane draws" now means the rows the user sees exist, not xterm's hidden ones.
  • film/capture.ts (not a check): the R5 take reads the shown rows.

The unconfirmed-input and terminal-pinch edits are line-for-line the ones in #3035, so the two PRs merge cleanly in either order.

Reads that use only geometry (.xterm-screen boxes and clicks, row counts, font size) are unchanged. xterm keeps sizing its grid under libghostty. So are scripts where only xterm draws: mirrors, iTerm2 pictures, and terminal-ghostty-demo-regression.ts, which checks that xterm's rows are hidden.

Test-only: no change to src/, server/ or shared/.

Validation

  • bun run check fast: pass (unit 12241 pass, 0 fail; typecheck, build, generated files).
  • In the CI runner image (herdr-ci-runner:local, uid 1001, telemetry off), on this branch: unconfirmed-input-demo-regression, mirror-scroll-demo-regression, terminal-images-demo-regression, old-safari-demo-regression PASS. ui-contexts-regression (run under bun run check run) ran through its last check (checkTelemetrySettings PASS). Its checks run in order and the first failure stops the run, so checkTerminalPinch passed.
  • main's unconfirmed-input-demo-regression.ts in the same image fails with the same timeout as CI.
  • The checks can still fail. With the mirror's changed frame never pushed, mirror-scroll times out at "local pan changed frame rendered". With the printed marker dropped, terminal-images times out in print().
  • Not run: the full browser lane and integration tests (left to CI).

…den ones

Since libghostty draws herdr panes by default (#3025), xterm's rows are hidden and no
longer redrawn once its module loads. unconfirmed-input-demo-regression waited for them
to be visible and fails on main; terminal-pinch, mirror-scroll, terminal-images and
old-safari read or waited on them too and only passed while xterm still drew first.
They now read scripts/shown-rows.ts, as the other browser scripts do; the film capture
too. The unconfirmed-input and pinch edits match #3035's.
@coderabbitai

coderabbitai Bot commented Nov 5, 2026 •

Copy link
Copy Markdown

Explain Change →

Caution

Review failed

The pull request is closed.

  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@devswha

devswha commented Nov 5, 2026

Copy link
Copy Markdown
Owner Author

Local merge gate (owner-approved): test-only; six scripts that still read xterm's hidden rows after #3025 now use scripts/shown-rows.ts. In the CI runner image the demo scripts pass, main's unconfirmed-input fails with the CI timeout, and mutations fail as they should; check fast green; omo CLEAR. Merged without waiting for GitHub CI to unblock main's browser lane.

@devswha
devswha merged commit ac6b9db into main Nov 5, 2026
9 of 11 checks passed
@devswha
devswha deleted the test/main-shown-rows branch November 5, 2026 18:38
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