mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-05 18:38:17 -05:00
[GH-ISSUE #14541] issue: Rendering an artifact with an error breaks code blocks. #17297
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 @MicahZoltu on GitHub (May 31, 2025).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/14541
Check Existing Issues
Installation Method
Docker
Open WebUI Version
0.6.10
Ollama Version (if applicable)
0.7.1
Operating System
Windows 11
Browser (if applicable)
Firefox
Confirmation
README.md.Expected Behavior
When text in a code in a code block that is destined to be rendered as an artifact encounters an error, it should still render in a code block as a fallback, not as regular text.
The error encountered should also be presented.
Actual Behavior
If an artifact fails to render, the entire code block is removed and the text is printed as plain text (outside of a code block) and the error is not surfaced to the user anywhere.
Steps to Reproduce
Logs & Screenshots
Browser Console:
Additional Information
Note: The problem occurs if the code block is in the user prompt as well, as OWUI also attempts to render that as an artifact.
I spent a lot of time troubleshooting because of the lack of any error. I think maybe even more important than the failed code block rendering would be surfacing the artifact rendering error to the user somehow. I'm not sure what the best way to do this is, but at the moment troubleshooting failed artifact generation is a serious pain point.