mirror of
https://github.com/openai/codex.git
synced 2026-10-22 17:58:46 +00:00
## Why Finalized Markdown can be rendered repeatedly at the same width while measuring and displaying transcript history. ## What changed - Cache the latest rendered lines for finalized agent messages and proposed plans. - Invalidate cached lines when the width, syntax theme, terminal colors, or color level changes. - Keep visualization directives uncached because resolving their local files depends on current filesystem state. ## Testing Add tests for cache reuse, render-state invalidation, raw Markdown rendering, and visualization cache bypass. GitOrigin-RevId: ba08140041a229b8cb9d297de87dc7bb39ebfe5d