[GH-ISSUE #22223] issue: An infinite loop caused by circular dependencies in the Chat and Artifacts components #35196

Closed
opened 2026-04-25 09:25:59 -05:00 by GiteaMirror · 5 comments
Owner

Originally created by @ShirasawaSama on GitHub (Mar 4, 2026).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/22223

Check Existing Issues

  • I have searched for any existing and/or related issues.
  • I have searched for any existing and/or related discussions.
  • I have also searched in the CLOSED issues AND CLOSED discussions and found no related items (your issue might already be addressed on the development branch!).
  • I am using the latest version of Open WebUI.

Installation Method

Git Clone

Open WebUI Version

v0.8.8

Ollama Version (if applicable)

No response

Operating System

Mac

Browser (if applicable)

No response

Confirmation

  • I have read and followed all instructions in README.md.
  • I am using the latest version of both Open WebUI and Ollama.
  • I have included the browser console logs.
  • I have included the Docker container logs.
  • I have provided every relevant configuration, setting, and environment variable used in my setup.
  • I have clearly listed every relevant configuration, custom setting, environment variable, and command-line option that influences my setup (such as Docker Compose overrides, .env values, browser settings, authentication configurations, etc).
  • I have documented step-by-step reproduction instructions that are precise, sequential, and leave nothing to interpretation. My steps:
  • Start with the initial platform/version/OS and dependencies used,
  • Specify exact install/launch/configure commands,
  • List URLs visited, user input (incl. example values/emails/passwords if needed),
  • Describe all options and toggles enabled or changed,
  • Include any files or environmental changes,
  • Identify the expected and actual result at each stage,
  • Ensure any reasonably skilled user can follow and hit the same issue.

Expected Behavior

When the content of the Chat and Artifacts components remains unchanged, they will not repeatedly trigger rendering.

Actual Behavior

When Artifacts are included in the chat, it will cause a circular update between Chat and Artifacts, resulting in a sharp decline in page performance.

Steps to Reproduce

  1. Let AI generate an HTML file containing JavaScript
  2. Open the Artifacts sidebar

Logs & Screenshots

Image Image

Additional Information

I suspect it might be related to 6863ca482c. After reverting this commit locally, the infinite loop disappeared.

@Algorithm5838 Could you please investigate this? Thanks.

Originally created by @ShirasawaSama on GitHub (Mar 4, 2026). Original GitHub issue: https://github.com/open-webui/open-webui/issues/22223 ### Check Existing Issues - [x] I have searched for any existing and/or related issues. - [x] I have searched for any existing and/or related discussions. - [x] I have also searched in the CLOSED issues AND CLOSED discussions and found no related items (your issue might already be addressed on the development branch!). - [x] I am using the latest version of Open WebUI. ### Installation Method Git Clone ### Open WebUI Version v0.8.8 ### Ollama Version (if applicable) _No response_ ### Operating System Mac ### Browser (if applicable) _No response_ ### Confirmation - [x] I have read and followed all instructions in `README.md`. - [x] I am using the latest version of **both** Open WebUI and Ollama. - [x] I have included the browser console logs. - [x] I have included the Docker container logs. - [x] I have **provided every relevant configuration, setting, and environment variable used in my setup.** - [x] I have clearly **listed every relevant configuration, custom setting, environment variable, and command-line option that influences my setup** (such as Docker Compose overrides, .env values, browser settings, authentication configurations, etc). - [x] I have documented **step-by-step reproduction instructions that are precise, sequential, and leave nothing to interpretation**. My steps: - Start with the initial platform/version/OS and dependencies used, - Specify exact install/launch/configure commands, - List URLs visited, user input (incl. example values/emails/passwords if needed), - Describe all options and toggles enabled or changed, - Include any files or environmental changes, - Identify the expected and actual result at each stage, - Ensure any reasonably skilled user can follow and hit the same issue. ### Expected Behavior When the content of the Chat and Artifacts components remains unchanged, they will not repeatedly trigger rendering. ### Actual Behavior When Artifacts are included in the chat, it will cause a circular update between Chat and Artifacts, resulting in a sharp decline in page performance. ### Steps to Reproduce 1. Let AI generate an HTML file containing JavaScript 2. Open the Artifacts sidebar ### Logs & Screenshots <img width="1466" height="1564" alt="Image" src="https://github.com/user-attachments/assets/25fa113a-c185-4807-ae1b-9b445f9a7369" /> <img width="717" height="726" alt="Image" src="https://github.com/user-attachments/assets/e1b03186-812e-4831-a59a-2c482092aa85" /> ### Additional Information I suspect it might be related to https://github.com/open-webui/open-webui/commit/6863ca482c8bda5e4dd89212a2969ec2daecb3d3. After reverting this commit locally, the infinite loop disappeared. @Algorithm5838 Could you please investigate this? Thanks.
GiteaMirror added the bug label 2026-04-25 09:25:59 -05:00
Author
Owner

@ShirasawaSama commented on GitHub (Mar 4, 2026):

At this point, we will find that we cannot switch artifacts by clicking the arrow button on the top left of the Artifacts window.

<!-- gh-comment-id:3998005515 --> @ShirasawaSama commented on GitHub (Mar 4, 2026): At this point, we will find that we cannot switch artifacts by clicking the arrow button on the top left of the Artifacts window.
Author
Owner

@Algorithm5838 commented on GitHub (Mar 4, 2026):

https://github.com/open-webui/open-webui/pull/22238 https://github.com/open-webui/open-webui/pull/22239
These should help. I will test them later.

<!-- gh-comment-id:3999487588 --> @Algorithm5838 commented on GitHub (Mar 4, 2026): https://github.com/open-webui/open-webui/pull/22238 https://github.com/open-webui/open-webui/pull/22239 These should help. I will test them later.
Author
Owner

@Algorithm5838 commented on GitHub (Mar 5, 2026):

I can confirm the second PR fixed the switching issue. Would you be able to confirm if the first PR fixed the looping issue?

<!-- gh-comment-id:4001270507 --> @Algorithm5838 commented on GitHub (Mar 5, 2026): I can confirm the second PR fixed the switching issue. Would you be able to confirm if the first PR fixed the looping issue?
Author
Owner

@ShirasawaSama commented on GitHub (Mar 5, 2026):

Yes, these two commits did indeed fix the issue.

<!-- gh-comment-id:4002554164 --> @ShirasawaSama commented on GitHub (Mar 5, 2026): Yes, these two commits did indeed fix the issue.
Author
Owner

@Algorithm5838 commented on GitHub (Mar 5, 2026):

Great, thanks for confirming! Hopefully these can get merged soon.

<!-- gh-comment-id:4006321686 --> @Algorithm5838 commented on GitHub (Mar 5, 2026): Great, thanks for confirming! Hopefully these can get merged soon.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/open-webui#35196