mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-07 03:18:23 -05:00
[GH-ISSUE #15227] issue: Mermaid syntax error only shows up in specific circumstances, fails silently #33032
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @GhostDog98 on GitHub (Jun 23, 2025).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/15227
Check Existing Issues
Installation Method
Docker
Open WebUI Version
v0.6.15
Ollama Version (if applicable)
N/A
Operating System
Debian Kernel 6.8.12-10-pve
Browser (if applicable)
Firefox
Confirmation
README.md.Expected Behavior
When a model attempts rendering of an invalid mermaid template it should show the error image 100% of the time, to communicate rendering failed.
Actual Behavior
That does not happen, instead, it only shows in the shared to openwebui community link.
Steps to Reproduce
Ask model to generate a mermaid code block (e.g.
Write me a mermaid graph about going outside for exercise.). I usedMistral: Mixtral 8x22B Instructfor this example.See it complete successfully.
Ask it to add details in brackets
(). The exact prompt i used wasAdd extra details in brackets ()Watch prompt fail to render, silently.
Click
Share to open webui communitylinkHit Publish
See that there is still no error.
Press shift+refresh to force refresh.
See that there is now the rendering error.
Logs & Screenshots
Video Demo: https://youtu.be/ABSVIzMF7oQ
Open-Webui dev console:

Share page console:
Additional Information
No response
@tjbck commented on GitHub (Jun 23, 2025):
Invalid mermaid won't be rendered.
@GhostDog98 commented on GitHub (Jun 24, 2025):
I'm aware of this, however, should the error message not be displayed in all scenarios, not just in the case of sharing it to community? There is no indication that the mermaid is invalid when in a chat window, apart from it not rendering.