fix(tui): stabilize sticky prompt tracking

Keep the latest prompt sticky while the viewport is in live assistant output beyond history, and clear stale sticky state at the real bottom using fresh scroll height.
This commit is contained in:
Brooklyn Nicholson
2026-04-28 22:10:40 -05:00
parent afb20a1d67
commit ce2cc7302e
5 changed files with 62 additions and 7 deletions

View File

@@ -83,6 +83,7 @@ declare module '@hermes/ink' {
readonly getScrollTop: () => number
readonly getPendingDelta: () => number
readonly getScrollHeight: () => number
readonly getFreshScrollHeight: () => number
readonly getViewportHeight: () => number
readonly getViewportTop: () => number
readonly getLastManualScrollAt: () => number