mirror of
https://github.com/openai/codex.git
synced 2026-10-21 17:48:44 +00:00
## Why Mermaid diagrams that cannot be rendered currently fall back to source without explaining why the preview is unavailable. ## What changed Show a dimmed notice above the preserved source when a completed Mermaid block uses unsupported syntax, exceeds renderer size limits, or does not fit the terminal width. Wrap the notice to the available width and preserve indentation inside lists and blockquotes. Leave unfinished fences and disabled Mermaid rendering without notices. ## Testing Add coverage for fallback reasons, dimmed styling, source preservation, nested indentation, and suppression of notices for unfinished fences and disabled rendering. Update the streaming resize snapshot to include the width notice. GitOrigin-RevId: 6ac7914b398c855e7aed3775ee0de70fb4484b78