Repository navigation
test(terminal): read the history scroll check off the rows libghostty draws on herdr-core - #2985
Merged
Merged
Conversation
… draws on herdr-core
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 1 minute. View limit details
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. |
Owner
Author
|
Local merge gate (owner-approved): test-only; the script now reads the layer libghostty draws (default in hc mode since #2976) and asserts older lines show after the wheel. Passes in core and herdr mode; check fast green; omo CLEAR. Merged without waiting for GitHub CI to unblock main's browser lane. |
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
scripts/core-history-scroll-demo-regression.ts(Integration and browser) fails on main since #2976: on a herdr-core server libghostty now draws the pane by default, so xterm's own.xterm-rowsare hidden under its layer, and the script'swaitFor()on a visible.xterm-rowswithHIST-300times out.Scrolling the history itself works with libghostty: the overlay follows xterm's view (
term.onScroll->vt.scrollFromBottom). The fix is test-only:HIST-300on the rows the user sees: libghostty's.ghostty-rowwhen the pane hasdata-renderer="ghostty", else xterm's rows;Validation
waitFor ... resolved to hidden <div class="xterm-rows">); the unchanged script passes withovis:terminal-ghosttyset to false, which pins the cause to the default change.bun scripts/core-history-scroll-demo-regression.ts->PASS coreandPASS herdr.vt.scrollFromBottom(...)insrc/lib/ghostty/overlay.tstemporarily replaced byvt.scrollFromBottom(0), the new check fails: "the wheel moved xterm's view but the rows drawn still start at HIST-257".bun run check fast: pass (workflow syntax, generated types/themes, typecheck, build, unit 12076 pass / 0 fail, actionlint).