Skip to content

Explain Mermaid rendering fallbacks in the TUI - #47572

Merged
copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/6ac7914b398c855e7aed3775ee0de70fb4484b78
Sep 23, 2026
Merged

copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/6ac7914b398c855e7aed3775ee0de70fb4484b78

Conversation

@copyberry

@copyberry copyberry Bot commented Sep 23, 2026 •

Copy link
Copy Markdown

Explain Mermaid rendering fallbacks in the TUI

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.

## 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
@copyberry
copyberry Bot force-pushed the copyberry/codex-internal-to-codex-oss/6ac7914b398c855e7aed3775ee0de70fb4484b78 branch from 3e02517 to cb1eea3 Compare September 23, 2026 15:16
@copyberry
copyberry Bot merged commit cb1eea3 into main Sep 23, 2026
@copyberry
copyberry Bot deleted the copyberry/codex-internal-to-codex-oss/6ac7914b398c855e7aed3775ee0de70fb4484b78 branch September 23, 2026 15:16
@github-actions github-actions Bot locked and limited conversation to collaborators Sep 23, 2026
@Axagon79
Axagon79 deployed to issue-triage September 23, 2026 15:28 — with GitHub Actions Active
@Axagon79
Axagon79 deployed to issue-triage September 23, 2026 15:28 — with GitHub Actions Active
@Axagon79
Axagon79 deployed to issue-triage September 23, 2026 15:28 — with GitHub Actions Active
@SD-Gusto
SD-Gusto deployed to issue-triage September 23, 2026 16:00 — with GitHub Actions Active
@SD-Gusto
SD-Gusto deployed to issue-triage September 23, 2026 16:00 — with GitHub Actions Active
@SD-Gusto
SD-Gusto deployed to issue-triage September 23, 2026 16:00 — with GitHub Actions Active
@SD-Gusto
SD-Gusto deployed to issue-triage September 23, 2026 16:01 — with GitHub Actions Active
@fcrhu
fcrhu deployed to issue-triage September 23, 2026 16:09 — with GitHub Actions Active
@fcrhu
fcrhu deployed to issue-triage September 23, 2026 16:09 — with GitHub Actions Active
@fcrhu
fcrhu deployed to issue-triage September 23, 2026 16:09 — with GitHub Actions Active
@fcrhu
fcrhu deployed to issue-triage September 23, 2026 16:10 — with GitHub Actions Active

This branch was successfully deployed

1 active deployment
issue-triage — cb1eea3e Deployed Sep 23, 2026 by fcrhu via Identify potential duplicates (open issues fallback) #47751
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

10 participants