mirror of
https://github.com/openai/codex.git
synced 2026-11-24 23:20:47 +00:00
Add runtime guardrails for terminal resize reflow so the experimental feature does not keep doing expensive full transcript rebuilds on very large sessions. The resize reflow path now measures render and terminal-flush time for every reflow pass, pauses resize reflow for the current session when the configured time budget is exceeded, limits reflow rendering to the most recent configured rows, and reports timing plus row-cap diagnostics in the transcript during the experiment. This keeps the source-backed resize behavior available for normal sessions while giving large transcripts a bounded failure mode instead of repeatedly stalling the UI during terminal resize.