mirror of
https://github.com/NousResearch/hermes-agent.git
synced 2026-05-06 02:41:48 +00:00
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:
parent
9a885fba31
commit
9bf6e1cd6e
5 changed files with 23 additions and 32 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue