mirror of
https://github.com/openai/codex.git
synced 2026-11-25 23:30:49 +00:00
## Why Ordinary status line text collapses spaces and tabs, so it cannot preserve the spacing of commands and other literals. ## What changed Add a `code` element to the terminal UI tree and expose it as `CodeElement` in the status line TypeScript contract. Code spans preserve literal spacing, expand tabs to terminal tab stops, and use theme-aware foreground and background colors. They prefer word breaks and can wrap long tokens at grapheme boundaries in narrow layouts. ## Testing Add renderer coverage for whitespace, wrapping across styled children, clipping, and theme contrast. Extend the TypeScript contract fixture to check that `CodeElement` requires a child list. GitOrigin-RevId: 626d7624829a25e342fc052ab5194ff53b2a7673