mirror of
https://github.com/openai/codex.git
synced 2026-11-25 23:30:49 +00:00
## Why Refilling terminal scrollback can take several history pages. Replaying scrollback after each page rebuilds it while more history is still loading. ## What changed Buffer older pages while the next page is loading, then replay them together when the refill finishes. Flush buffered history if a page request fails, the transcript overlay opens during the refill, or the five-second deadline from the first buffered page expires. The overlay still updates page by page. ## Testing Extend the scrollback refill test to cover batching across pages, replay after a page failure, and replay at the deadline with a request still pending. GitOrigin-RevId: 577b9f7394e2741267099e4595f69345a6a70a21