Comments in mermaid diagrams

Describe the Bug

The mermaid parser in the chat does not support comments, which the agent likes to use.

Steps to Reproduce

Ask the agent to draw an example diagram and use comments to describe the syntax.

Expected Behavior

We get a mermaid syntax error (with no message), asking the agent to remove the comments resolves the error.

Operating System

MacOS

Current Cursor Version (Menu → About Cursor → Copy)

Version: 1.3.3
VSCode Version: 1.99.3
Commit: e589175333a2d938c3d944f9bf0993155e655e70
Date: 2025-07-26T19:15:16.148Z
Electron: 34.5.1
Chromium: 132.0.6834.210
Node.js: 20.19.0
V8: 13.2.152.41-electron.0
OS: Darwin arm64 24.5.0

Does this stop you from using Cursor

No - Cursor works, but with this issue

1 Like

Hey, I wasn’t able to reproduce this. Could you let me know which model you used? It would also be very helpful if you could create a screencast.

Would some request IDs help?

Actually, I’ve had another look and it wasn’t the comments, in my use case ther produced graph did not have a diagram type. When I asked for the comments to be removed the agent also added the missing type:

graph LR;

verb_supplier_credit_purchase -->|produces| token_order;
verb_admin_order_place -->|produces| token_order;
token_order -->|member| base_anySupplier;
token_order -->|member| base_someProviderWithCreditOffer;
token_order -->|member| base_theCurrentUser;
token_order -->|member| base_anyOffer;
verb_admin_invoice_raise -.->|requires| token_order;

verb_customer_event_startAnon -->|produces| conj_eventAndUser;
conj_eventAndUser -->|member| token_event;
conj_eventAndUser -->|member| base_theCurrentUser;

Yes, it would be great if you could share them. Also, could you let me know which model you are using?

I was using the MAX model with requests: 9e0e4003-fb28-49df-8e00-e96dc2dfd28b and 7221b31d-395f-4ca0-8352-4ebe3a3d0720

1 Like

This topic was automatically closed 22 days after the last reply. New replies are no longer allowed.