mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-06 10:58:17 -05:00
[GH-ISSUE #6154] bug: artifact renders parts of content twice #52927
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 @Robotino04 on GitHub (Oct 13, 2024).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/6154
Bug Report
Installation Method
Docker
Environment
Confirmation:
Expected Behavior:
The content renders once.
Actual Behavior:
Some of the content is rendered twice.
Description
Bug Summary:
The artifacts view sometimes renders parts twice.
Reproduction Details
Steps to Reproduce:
Prompt a model with "Show me a code snippet of a website's sticky header and footer please." and open the artifact view.
Alternatively replace some other artifact's code with the following and save:
Logs and Screenshots
Browser Console Logs:
Logs
Docker Container Logs:
N/A (frontend bug)
Screenshots/Screen Recordings (if applicable):

Additional Information
It renders correctly if the
<html>opening and closing tags are removed.I suspect that everything is rendered twice, but only the non-header and non-footer parts are visible twice because those have
position: fixedand are just overlapping themselves, but I have no way of testing that.Note
If the bug report is incomplete or does not follow the provided instructions, it may not be addressed. Please ensure that you have followed the steps outlined in the README.md and troubleshooting.md documents, and provide all necessary information for us to reproduce and address the issue. Thank you!
@silentoplayz commented on GitHub (Oct 15, 2024):
Related PR which should include a fix - https://github.com/open-webui/open-webui/pull/6134
@TecReaGroup commented on GitHub (Nov 28, 2024):
I met the same question, and my friends too (only the models of Gemini face this problem). The codes are correct in Chrome and Edge HTML render, but not correctly work in artifacts. It's seemingly a bug of html rendering in artifacts or error processing of Gemini's outputs. But I don't know how to fix it. Can anyone help?
@atgehrhardt commented on GitHub (Dec 10, 2024):
Taking a look at this. Seems to be the way Gemini outputs tags.
I may need to adjust the preprocessor logic, but I'd like not to have to create model specific definitions.
I'll look into this soon.
@bjj commented on GitHub (Mar 6, 2025):
Also happens to QwQ-32B (the new, non-preview one). It's not related to thinking, because like the submitter, I can reproduce this just by editing any model response to include this generated HTML:
Solar System HTML from QwQ-32B
@silentoplayz commented on GitHub (Oct 9, 2025):
Should be solved with https://github.com/open-webui/open-webui/pull/18195. Testing wanted!