refactor(ui-tui): clean touched resize and sticky prompt paths

Trim comment noise, remove redundant typing, normalize sticky prompt viewport args to top→bottom order, and reuse one sticky viewport helper instead of duplicating the math.
This commit is contained in:
Brooklyn Nicholson 2026-04-23 14:37:00 -05:00
parent 9a885fba31
commit 9bf6e1cd6e
5 changed files with 23 additions and 32 deletions

View file

@ -463,11 +463,8 @@ export default class Ink {
this.resetFramesForAltScreen()
this.needsEraseBeforePaint = true
// Post-resize drift healer: 160ms after the last resize, force one full
// reconcile so Yoga/React catch up to the final viewport and any stale
// terminal cells from host-side reflow get repainted away. Ink upstream
// and ConPTY/xterm reports point to this as a general resize/reflow
// desync class, not an xterm.js-only quirk.
// One last repaint after the resize burst settles closes any host-side
// reflow drift the normal diff path can't see.
this.resizeSettleTimer = setTimeout(() => {
this.resizeSettleTimer = null