feat(agent-gui): render Mermaid diagrams#1083
Draft
chovy-ai wants to merge 1 commit into
Draft
Conversation
Signed-off-by: chovy <chovy@chovydeMac-mini.local>
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 join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Summary
mermaidblocks in AgentGUI transcript MarkdownWhy
AgentGUI previously displayed Mermaid flowchart source as an ordinary code block, so architecture and delivery flows were difficult to read in conversation transcripts.
User impact
Agent responses can now include diagrams using a fenced
mermaidblock. Invalid or incomplete diagrams remain readable as source instead of leaving an empty transcript row.Validation
pnpm check:fullpnpm --filter @tutti-os/agent-gui test(129 files, 2244 tests)pnpm --filter @tutti-os/agent-gui typecheckpnpm --filter @tutti-os/agent-gui buildpnpm --filter @tutti-os/desktop buildpnpm lint:tspnpm check:i18npnpm check:agent-activity-runtime-boundariesSummary by cubic
Render Mermaid diagrams in AgentGUI transcripts to make architecture and flow visuals readable. Fenced
mermaidcode blocks now render after streaming completes, with strict settings and a safe source fallback.New Features
mermaidblocks as diagrams in transcript Markdown.mermaidand defer layout until streaming ends.securityLevel: "strict", HTML labels off, bounded text/edge limits) with source shown on errors.mermaidcode blocks; add i18n for rendering status and failure.Dependencies
mermaid@11.16.0.Written for commit 9324c18. Summary will update on new commits.