mirror of
https://github.com/openai/codex.git
synced 2026-10-24 04:58:35 +00:00
## Why Moving between prompts in backtrack mode rebuilt every transcript renderable and discarded their cached heights, causing the entire transcript to be laid out again for each selection change. ## What changed Rerender only the previously highlighted cell and the newly highlighted cell. Keep all other renderables, cached heights, and the live tail intact while continuing to scroll the selected prompt into view. ## Testing Add regression tests that verify selection changes preserve unrelated height caches and produce the same viewport and scroll position as a full rebuild, including with a live tail and terminal width changes. GitOrigin-RevId: 685a8ce65ecadef20521ce2ded7b516fdf8499c9