Cursor does not see when it made a mistake in its mermaid syntax in chat

Where does the bug appear (feature/product)?

Cursor IDE

Describe the Bug

Getting output like this:

After asking it to correct:

Expectation: should run a linter/compiler on mermaid to detect errors and fix them before output.

I’ve also encountered it outputting erroneous mermaid to markdown files without noticing.

Steps to Reproduce

Ask it to output some mermaid in chat.

Operating System

MacOS

Current Cursor Version (Menu → About Cursor → Copy)

Version: 2.2.20 (Universal)
VSCode Version: 1.105.1
Commit: b3573281c4775bfc6bba466bf6563d3d498d1070
Date: 2025-12-12T06:29:26.017Z
Electron: 37.7.0
Chromium: 138.0.7204.251
Node.js: 22.20.0
V8: 13.8.258.32-electron.0
OS: Darwin x64 22.6.0

Does this stop you from using Cursor

No - Cursor works, but with this issue

Hey, thanks for the report.

Currently, chat doesn’t perform automatic validation/linting of Mermaid before output. We’re working on improving diagram rendering.

If possible, please share:

  • Request ID(s) for responses with errors: chat menu > Copy Request ID
  • Example fragment from markdown file where incorrect Mermaid was generated

This will help us reproduce and push fixes forward.