mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-08 04:16:03 -05:00
[GH-ISSUE #14417] issue: Artifact iframe doesn't open for javascript code blocks only #55911
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 @theimpostor on GitHub (May 27, 2025).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/14417
Check Existing Issues
Installation Method
Docker
Open WebUI Version
v0.6.11
Ollama Version (if applicable)
No response
Operating System
macOS Sonoma
Browser (if applicable)
136.0.7103.114
Confirmation
README.md.Expected Behavior
If the assistant response includes a Javascript code block, the artifact iframe doesn't appear automatically like it does for html code blocks. Opening the artifact panel manually shows the artifact has been populated however.
Actual Behavior
A valid javascript code block is produced however the artifact remains hidden.
Steps to Reproduce
Prompt: "Write a short snippet of javascript which adds a 'hello world' div to the body"
Response:
Logs & Screenshots
src/lib/components/chat/Messages/ContentRenderer.svelte should probably check for
javascript,js, andcssin addition tohtmlandsvg.Additional Information
No response