mirror of
https://github.com/openai/codex.git
synced 2026-11-22 23:00:42 +00:00
## Why A streamed Markdown table can briefly disappear as the inline TUI moves it from the live response into scrollback. A resize during that handoff can also leave queued history wrapped to the previous terminal width. ## What changed Keep the last frame visible while stream consolidation is pending, while still accepting keyboard input. Clear and replay terminal history in the same synchronized update. If the terminal resizes before a queued replay is painted, rebuild it at the new width without waiting for the resize debounce. ## Testing Add a regression test that keeps a streamed table visible while accepting typeahead, then widens the terminal and checks that the table moves into scrollback and the next message fits on one line. Extend the terminal lifecycle test to cover resuming with a replay pending. GitOrigin-RevId: 11eb2ca0eef90e9e014383546e807cb73cdacfd8