Something went wrong. Try again.
fork of prime agent with changes i want but are not upstreamable probqbly (and some fixes)
Something went wrong. Try again.
fix(tui): sync test awaits with throttled render pipeline (#3076) master
Tests assumed renders complete synchronously after requestRender() + nextTick + flush(), but commit 6f5f37f8 changed requestRender() to schedule via setTimeout with a 16ms minimum interval. Tests reading viewport state before doRender() runs saw stale data. Add VirtualTerminal.waitForRender() helper that waits for the throttled render to settle (nextTick + 20ms + xterm flush), and replace all terminal.flush() calls after render-triggering actions with it. Fixes 8 failing tests across overlay-short-content, tui-render, and markdown test suites.
Author Aliou Diallo Committer GitHub Date (Apr 13, 2026, 8:57 AM UTC) Commit 41377ee8 41377ee8eced5cf864f3f1b248f4d899e9506020 Parent fb6ccbea fb6ccbeaa1f65bd7b24308201f57395fd1af745d