anomalyco / anomalyco/opencode

Version 2 Web - Mermaid Diagram - Not Copy-able

Open
#49,829 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

2.0
Dominant language
TypeScript
Stars
209k
Forks
27.5k
PR merge metrics
PR metrics pending

Description

Description

Hi, can you please check why Mermaid diagrams are not showing copy button or even ability to see the code snippet behind it,

I have to copy the whole output , including the text before and after , when i only need the diagram

Image
Plugins

No response

OpenCode version

opencode2 v0.0.0-beta-17823

Steps to reproduce
  1. Generate and mermaid diagram.
  2. Through Opencode2 Web, try to click on the mermaid diagram, the mermaid code does not show.
  3. Hover over the corners of the Mermaid diagram, no copy option.
Screenshot and/or share link
Image
Operating System

No response

Terminal

No response

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start in the Version 2 Web path that renders Mermaid diagrams and reproduce the missing copy action from the listed steps. Trace how the diagram is displayed and where its source code could be exposed. Done means the rendered diagram provides a way to copy the Mermaid code without copying surrounding message text; verify this in the web interface.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
frontend, web-dev
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Active
Clarity
Mostly clear
Newbie friendliness
55/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.