Skip to content

fix(tui): avoid main-screen scrollback reset loops#19225

Closed
LeonSGP43 wants to merge 1 commit into
NousResearch:mainfrom
LeonSGP43:fix/tui-main-scrollback-resize-loop-19216
Closed

fix(tui): avoid main-screen scrollback reset loops#19225
LeonSGP43 wants to merge 1 commit into
NousResearch:mainfrom
LeonSGP43:fix/tui-main-scrollback-resize-loop-19216

Conversation

@LeonSGP43

Copy link
Copy Markdown
Contributor

Summary

Why

Fixes #19216. After a terminal resize, dynamic rows that have already moved into main-screen scrollback can differ from the virtual frame. Resetting the whole terminal for those invisible rows can immediately perturb scrollback again, causing repeated repaint/flicker and duplicated status-bar lines.

Scope

This is limited to the Hermes Ink diff renderer. It does not change resize handling in the classic CLI or the alt-screen repaint path.

Verification

  • cd ui-tui && npm test -- --run packages/hermes-ink/src/ink/log-update.test.ts -> 5 passed
  • cd ui-tui && npm run type-check
  • git diff --check

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

comp/tui Terminal UI (ui-tui/ + tui_gateway/) P2 Medium — degraded but workaround exists type/bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

TUI: terminal resize causes infinite scroll/render loop (screen flicker + status bar duplicates)

2 participants