Mermaid flowchart fails to render when creating a plan

Where does the bug appear (feature/product)?

Cursor IDE

Describe the Bug

Error with Mermaid flowchart rendering

https://mermaid.live/edit#pako:eNp1UstuwjAQ_JVoT60UEK-Qx6EXoFJVKqGGEwQhK9481MRGjtOSAv9ex6EBWnGxdmZ3Zvw6QMgpggcBizL-FSZESGM5DZhhpDTD9YtaNkan83R8xWp1NCKeUR8zDOU8Zbh-VnB7wZtadzuitYs0_FjwlMmH-eBxP2hsJgnnBfopPdtccGtzodotbJc8jjPN_bW5o7oNHzWqdyS0anJ12UZqpHUzJlFsffKpggq10vNp6_LeQWdFeNQXd2cv__pXcdctnVfTmgETchQ5Sal6qEPdD0AmmGMAniopRqTMZKDe8KRGSSm5X7EQPClKNEHwMk7Ai0hWKFTuKJE4TUksSN6yO8JWnOe_kljUUWc5MopiwksmwbP0KHgH2IM3dnpdZzR2-rbj2pYz7ptQgWf3u-OB1RvaQ8sajlzXPZnwrb3VtK0MkKaSi7fm2-nfd_oBE-va7Q

Error: Error: Parse error on line 4:
...ctLine -->|PickPoint(L2)x2| foldChooseSi
-----------------------^
Expecting 'SQE', 'DOUBLECIRCLEEND', 'PE', '-)', 'STADIUMEND', 'SUBROUTINEEND', 'PIPE', 'CYLINDEREND', 'DIAMOND_STOP', 'TAGEND', 'TRAPEND', 'INVTRAPEND', 'UNICODE_TEXT', 'TEXT', 'TAGSTART', got 'PS'

Steps to Reproduce

creating a plan

Expected Behavior

Mermaid Syntax Error

Operating System

Windows 10/11

Current Cursor Version (Menu → About Cursor → Copy)

Version: 2.3.41 (user setup)
VSCode Version: 1.105.1
Commit: 2ca326e0d1ce10956aea33d54c0e2d8c13c58a30
Date: 2026-01-16T19:14:00.150Z
Electron: 37.7.0
Chromium: 138.0.7204.251
Node.js: 22.20.0
V8: 13.8.258.32-electron.0
OS: Windows_NT x64 10.0.26200

For AI issues: which model did you use?

gpt-5.2-xhigh-fast

Additional Information

Error Mermaid

flowchart TD
  idle[Idle] -->|KeyZ| foldSelectLine[Fold_SelectLine]
  foldSelectLine -->|PickPoint(L2)x2| foldChooseSide[Fold_ChooseSide]
  foldChooseSide -->|KeyZ_ToggleSide| foldChooseSide
  foldChooseSide -->|PickPoint(L2)x4| foldReady[Fold_Ready]
  foldReady -->|Enter_Save| saved[Fold_Saved]
  foldSelectLine -->|Esc| idle
  foldChooseSide -->|Esc| idle
  foldReady -->|Esc| idle
  saved --> idle

Does this stop you from using Cursor

Sometimes - I can sometimes use Cursor

Hey, thanks for the report. The issue is that the model is generating invalid Mermaid syntax. Labels like PickPoint(L2)x2 with parentheses break the parser.

A similar issue came up in this thread and it was fixed. The team is working on improving rendering in Plan Mode.

To pass this to the engineers, we need a Request ID:

  • Click the chat menu (the three dots in the top right) > Copy Request ID
  • Even if the plan is created with an error, the ID should still be available

Send me the Request ID and I’ll pass it to the team so we can figure out why the model generates this syntax.

Request ID: 84c8856a-28f9-4422-a281-d24af72cac14

Hey, looks like you’ve got Privacy Mode turned on.

To fix this issue, we need to reproduce the error with Privacy Mode turned off. Here’s how:

  1. Open Cursor Settings with Ctrl+Shift+J
  2. Find “Privacy Mode”
  3. Turn it off temporarily
  4. Try creating the plan again that’s causing this Mermaid error
  5. Copy the new Request ID (three dots in chat > Copy Request ID)
  6. Send the new Request ID here

After that, you can turn Privacy Mode back on right away. With the full logs, the team will be able to see why the model is generating invalid Mermaid syntax with brackets in the labels.

I’m not able to reproduce the issue at the moment, so I don’t have a new Request ID to share right now.