Skip to content

feat(session-ui): render mermaid diagrams - #47014

Closed
SamMousa wants to merge 1 commit into
anomalyco:devfrom
collecthor:mermaid-diagrams
Closed

SamMousa wants to merge 1 commit into
anomalyco:devfrom
collecthor:mermaid-diagrams

Conversation

@SamMousa

@SamMousa SamMousa commented Sep 3, 2026 •

Copy link
Copy Markdown

Issue for this PR

Closes N/A

Type of change

  • Bug fix
  • New feature
  • Refactor / code improvement
  • Documentation

What does this PR do?

This PR adds MermaidJS (https://mermaid.ai/open-source) to the web UI. I've been using the web UI more and more and felt like adding MermaidJS could improve the UX when asking AI to explain flows to me.

I've built this using OpenCode, and did a manual review. Before I do manual testing I would like an opinion of one of the maintainer of whether this feature is even desired.
Currently there's no way for opencode plugins to alter the web UI so this changes needs to live in the core.

If you paste a large clearly AI generated description here your PR may be IGNORED or CLOSED!

How did you verify your code works?

I did not yet. I'll mark this PR as draft while I go and figure out how to build and test this locally.

Screenshots / recordings

Todo

Checklist

  • I have tested my changes locally
  • I have not included unrelated changes in this PR

@github-actions github-actions Bot added the needs:compliance This means the issue will auto-close after 2 hours. label Sep 3, 2026
@github-actions

github-actions Bot commented Sep 3, 2026 •

Copy link
Copy Markdown
Contributor

This PR doesn't fully meet our contributing guidelines and PR template.

What needs to be fixed:

  • Not all checklist items are checked. Please confirm you have tested locally and have not included unrelated changes.

Please edit this PR description to address the above within 2 hours, or it will be automatically closed.

If you believe this was flagged incorrectly, please let a maintainer know.

@github-actions

github-actions Bot commented Sep 3, 2026

Copy link
Copy Markdown
Contributor

The following comment was made by an LLM, it may be inaccurate:

Based on the search results, I found several related PRs:

Potential Duplicates/Related PRs:

  1. PR feat(session-ui): render Mermaid diagrams #39818 - feat(session-ui): render Mermaid diagrams

    • Same title and scope as the current PR. This appears to be a prior implementation attempt for rendering Mermaid diagrams in session-ui.
  2. PR fix(session-ui): render Mermaid after remounting messages #45768 - fix(session-ui): render Mermaid after remounting messages

    • Related fix for Mermaid rendering issues in session-ui.
  3. PR fix(session-ui): render sequence labels with semicolons #46990 - fix(session-ui): render sequence labels with semicolons

    • Another Mermaid-related fix in session-ui context.
  4. PR feat(app): add markdown preview with mermaid diagram support #23688 - feat(app): add markdown preview with mermaid diagram support

    • Earlier feature adding Mermaid support to markdown preview in the app.

Most Relevant: PR #39818 has the identical title and appears to be a previous attempt at the same feature. You should investigate whether this was merged, closed, or abandoned before proceeding.

@SamMousa

SamMousa commented Sep 3, 2026

Copy link
Copy Markdown
Author

The checklist items are not yet checked because this is a draft PR, I don't think that's unreasonable. I've explicitly noted it and asked for interest from the project before I spend time, if the project doesn't want this the code quality isn't that relevant...

@SamMousa SamMousa closed this Sep 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

needs:compliance This means the issue will auto-close after 2 hours.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant