Files
codex/codex-rs
Eric Traut 3cae922e10 Keep streamed output visible until inline history is repainted (#63196)
## 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
2026-11-22 21:21:17 +00:00
..
…
…
…