mirror of
https://github.com/openai/codex.git
synced 2026-11-22 23:00:42 +00:00
## Why A warning or paste error can break the trailing run of streamed answer fragments. Finalizing only that run can leave part of the answer duplicated in the transcript and after a terminal resize. ## What changed Use the current stream's fragment count to consolidate the answer into one Markdown cell, preserving the order of notices after it. Preserve the transcript reader's position and active search match during regrouping. When a visible notice splits output already printed to native scrollback, reflow it to restore the answer and notice order. ## Testing Regression coverage checks transcript rendering and resize reflow with interleaved and trailing notices, search match retention, and output queued behind a running tool. GitOrigin-RevId: 8899a1d1d9ea0264548442001a80e1cb8948022a