mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-06 02:48:13 -05:00
[GH-ISSUE #22267] issue: HTML Preview renders code blocks inside thinking blocks for certain models #58348
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 @adhusch on GitHub (Mar 5, 2026).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/22267
Check Existing Issues
Installation Method
Docker
Open WebUI Version
v0.8.8
Ollama Version (if applicable)
No response
Operating System
N/A
Browser (if applicable)
No response
Confirmation
README.md.Expected Behavior
Thinking models of all popular vendors should correctly output artifacts
Actual Behavior
Several thinking models produce an addtional block of raw code output in the artifact frame before the actual artifact, containing many addtional ">" symbols, exactly as described in #20801
Steps to Reproduce
Logs & Screenshots
See screenshots in #20801
Additional Information
No response
@ShirasawaSama commented on GitHub (Mar 7, 2026):
I've encountered the same issue, particularly with Google Gemini 3's reasoning process. Since each line of its reasoning chain begins with a “<” character, this prevents the previewed webpage from being displayed.
@tjbck commented on GitHub (Mar 8, 2026):
Should be addressed in dev, testing wanted here.
@Classic298 commented on GitHub (Mar 8, 2026):
35bc831077@adhusch commented on GitHub (Mar 9, 2026):
Thank you! @Classic298 Tested with Mistral Models in 0.8.10, problem unfortunatly still exists for them.
@Classic298 commented on GitHub (Mar 9, 2026):
Ways to reproduce?
@adhusch commented on GitHub (Mar 9, 2026):
As described above, just try with a Mistral reasoning model, e.g. Magistral. Thx.
@Classic298 commented on GitHub (Mar 9, 2026):
any prompt in particular? Can i try with mistral large?
@adhusch commented on GitHub (Mar 9, 2026):
Thank you! Something like "Generate a simple HTML page with button labelled click-me". Never tried with Mistral Large, but should be similar if it uses the same reasoning format. Are you referrig to Mistral Large 3? As Ministral 3 is affected i would expect the whole Mistral 3 model familiy.
@motosir you had reported same issue with GLM 4.7. Is this fixed?
@ShirasawaSama commented on GitHub (Mar 9, 2026):
I have a method that is 100% reproducible (on v0.8.10 and 03092026 dev).
Reproduction Steps:
Markdown output
2cc8d9596c/gemini_3.1_example.md@adhusch commented on GitHub (Mar 9, 2026):
@ShirasawaSama im not entirly sure if this is the same bug as discussed here? It could be a common root cause, but the behaviour seems different. Here, we so far referred specificially to the situation that an artifact is created, and in this case HTML code drafted in the thinking process of a model beeing displayed additionaly to the final code in front of the artifact, as in screenshot. This is 100% reproducible for any HTML output in all recent Mistral reasoning models i tested so far.
(See also the screenshots from different people and models in #20801)
@tjbck commented on GitHub (Mar 25, 2026):
Unable to reproduce with the latest dev.