mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-07 03:18:23 -05:00
[GH-ISSUE #4535] UI hangs when rendering mermaid diagrams #13648
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 @mike-stewart on GitHub (Aug 12, 2024).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/4535
Originally assigned to: @tjbck on GitHub.
Bug Report
Installation Method
Docker
Environment
Confirmation:
Expected Behavior:
A prompt that generates mermaid syntax should be displayed as a mermaid diagram.
Actual Behavior:
The UI hangs indefinitely midway through streaming the response, as soon as it tries to render the diagram. Refreshing the page resolves the problem.
Description
Bug Summary:
Rendering mermaid diagrams in streaming chat responses seems to have been broken between 0.3.11 and 0.3.12.
Reproduction Details
Steps to Reproduce:
Logs and Screenshots
Screenshots/Screen Recordings (if applicable):
On 0.3.12:

On 0.3.11:

Additional Information
I can consistently reproduce this bug on 0.3.12, but not on 0.3.11.
@tjbck commented on GitHub (Aug 14, 2024):
Should be fixed on dev, let me know if the issue persists!
@mike-stewart commented on GitHub (Aug 15, 2024):
0.3.13 seems to have fixed it!
@mike-stewart commented on GitHub (Aug 16, 2024):
@tjbck Can you reopen this? The specific case I mentioned initially is fixed, but I can still reproduce it when asking for Pie charts. The only difference is that now the UI doesn't hang, it just deletes the visualization after momentarily displaying it.
Screen recording:
https://github.com/user-attachments/assets/462cc646-2c9f-4b1f-ae98-acb4561b594c
@mike-stewart commented on GitHub (Aug 19, 2024):
Opened #4731