Skip to content

Support stadium nodes in Mermaid terminal diagrams - #46856

Merged
copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/5ebd8babfd25ab4429b3e6c408cb7be8d7f1bb8e
Sep 20, 2026
Merged

copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/5ebd8babfd25ab4429b3e6c408cb7be8d7f1bb8e

Conversation

@copyberry

@copyberry copyberry Bot commented Sep 20, 2026 •

Copy link
Copy Markdown

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.

## 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
copyberry Bot force-pushed the copyberry/codex-internal-to-codex-oss/5ebd8babfd25ab4429b3e6c408cb7be8d7f1bb8e branch from f5e7bd8 to 2426ed7 Compare September 20, 2026 17:36
@copyberry
copyberry Bot merged commit 2426ed7 into main Sep 20, 2026
1 check passed
@copyberry
copyberry Bot deleted the copyberry/codex-internal-to-codex-oss/5ebd8babfd25ab4429b3e6c408cb7be8d7f1bb8e branch September 20, 2026 17:37
@github-actions github-actions Bot locked and limited conversation to collaborators Sep 20, 2026
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.

1 participant