mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-08 21:09:41 -05:00
[GH-ISSUE #22889] issue: Artifacts sidebar does not auto-show when browser tab goes to background #58501
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 @ShirasawaSama on GitHub (Mar 20, 2026).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/22889
Check Existing Issues
Installation Method
Git Clone
Open WebUI Version
v0.8.10
Ollama Version (if applicable)
No response
Operating System
MacOS 26
Browser (if applicable)
No response
Confirmation
README.md.Expected Behavior
After returning to the foreground, the Artifacts side panel should automatically open (or at least populate with the generated artifacts) so the user can view and interact with the rendered content.
Actual Behavior
The Artifacts side panel does not automatically open and/or remains empty/collapsed even though the response contains artifact content. It may require manual actions such as clicking the Artifacts tab, manually toggling the sidebar, or reloading the page to show artifacts.
Steps to Reproduce
or生成一个hello world的html``).Logs & Screenshots
Additional Information
I believe this is related to
requestAnimationFrameusage insrc/lib/components/chat/Chat.svelte(specifically therequestAnimationFramecall and thecontentsRAFlogic that schedules the UI/content update for Artifacts).When I temporarily replaced
requestAnimationFramewithsetTimeout, the problem stopped occurring: after returning the tab to the foreground, the Artifacts side panel reliably auto-updates/shows the generated artifacts.However, switching to
setTimeoutis not an ideal fix.requestAnimationFrameis generally the correct mechanism for sync-ing UI updates with the browser’s rendering pipeline, andsetTimeoutmay introduce less optimal timing/efficiency (and could behave differently across browsers or under heavy load). My suspicion is thatrequestAnimationFramecallbacks are being throttled/paused while the tab is in the background, causing the scheduled Artifacts update to never run (or to run at an unexpected time) when the response finishes generating.@ShirasawaSama commented on GitHub (Mar 20, 2026):
@Algorithm5838
@Algorithm5838 commented on GitHub (Mar 20, 2026):
Hopefully this https://github.com/open-webui/open-webui/pull/22910 addresses it.
@tjbck commented on GitHub (Mar 20, 2026):
Addressed in dev.