mirror of
https://github.com/openai/codex.git
synced 2026-11-24 23:20:47 +00:00
## Why Status line text collapses spaces and tabs by default. Authors need a way to retain indentation and alignment while styling parts of the text. ## What changed Add the optional `preserveWhitespace` prop to text nodes. When enabled, it preserves spaces and tabs across nested styles and uses the same wrapping rules as inline code. Inline code continues to preserve whitespace automatically. ## Testing Add a rendering test that compares styled and unstyled text across terminal widths and checks tab expansion and bold styling. Add a TypeScript contract fixture that uses the new prop. GitOrigin-RevId: 525ae1d7df2df036d74990e18092286030041b23