mirror of
https://github.com/openai/codex.git
synced 2026-10-25 23:57:40 +00:00
## Why The custom TUI buffer diff emitted `ClearToEnd` for unchanged trailing blank regions, producing unnecessary terminal output. ## What changed - Clear a row tail only when its cached contents changed or a wide glyph overlaps the clear boundary. - Keep blank cells marked `AlwaysUpdate` in the drawable region so viewport invalidation still forces them to repaint. - Preserve Ratatui's native cell diff behavior for the remaining updates. ## Testing Add coverage for unchanged row tails, forced blank-cell updates, and shrinking wide graphemes, including half-width katakana with combining marks. GitOrigin-RevId: a9cac06f5624032a2b8c80a66c651cf3e85ec7fb