Repository navigation
Support stadium nodes in Mermaid terminal diagrams - #46856
Merged
copyberry[bot] merged 1 commit intoSep 20, 2026
Merged
copyberry[bot] merged 1 commit into
copyberry[bot] merged 1 commit into
Conversation
## Why Flowcharts containing stadium nodes such as `A([Start])` currently fall back to source text instead of rendering in the TUI. ## What changed Parse stadium declarations and render them with rounded box corners in every supported flowchart direction. Track node shapes explicitly so repeated declarations must agree on both label and shape. Document the supported `([label])` syntax. ## Testing Add parser and snapshot coverage for repeated references, conflicting declarations, malformed syntax, Unicode labels, mixed shapes, and width limits across all four directions. Add a TUI snapshot for a stadium flowchart and verify source fallback when the diagram is too wide or malformed. GitOrigin-RevId: 5ebd8babfd25ab4429b3e6c408cb7be8d7f1bb8e
copyberry
Bot
force-pushed
the
copyberry/codex-internal-to-codex-oss/5ebd8babfd25ab4429b3e6c408cb7be8d7f1bb8e
branch
from
September 20, 2026 17:36
f5e7bd8 to
2426ed7
Compare
copyberry
Bot
deleted the
copyberry/codex-internal-to-codex-oss/5ebd8babfd25ab4429b3e6c408cb7be8d7f1bb8e
branch
September 20, 2026 17:37
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Support stadium nodes in Mermaid terminal diagrams
Why
Flowcharts containing stadium nodes such as
A([Start])currently fall back to source text instead of rendering in the TUI.What changed
Parse stadium declarations and render them with rounded box corners in every supported flowchart direction. Track node shapes explicitly so repeated declarations must agree on both label and shape. Document the supported
([label])syntax.Testing
Add parser and snapshot coverage for repeated references, conflicting declarations, malformed syntax, Unicode labels, mixed shapes, and width limits across all four directions. Add a TUI snapshot for a stadium flowchart and verify source fallback when the diagram is too wide or malformed.