mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-06 02:48:13 -05:00
[GH-ISSUE #23181] issue: Switching conversations while message queue is processing causes messages to be sent in bulk and race condition issues #35440
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 28, 2026).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/23181
Check Existing Issues
Installation Method
Git Clone
Open WebUI Version
v0.8.12
Ollama Version (if applicable)
No response
Operating System
Mac
Browser (if applicable)
No response
Confirmation
README.md.Expected Behavior
Actual Behavior
When the user switches away from the conversation and switches back, the queue processing loop loses its proper state. Instead of resuming sequential processing, it dumps all remaining messages at once. The queue state is effectively corrupted by the conversation switch, causing race conditions between the old and new execution contexts.
Steps to Reproduce
Issue 1: Switching conversations causes bulk send
Issue 2: "Send Now" triggers remaining messages
Logs & Screenshots
N/A
Additional Information
#23180
@TomTheWise commented on GitHub (Apr 3, 2026):
I dont know if this is exactly the behavior or similar or an completely different thing:
When sending a prompt with code execution (pyodide based) activated and then switching browser tabs (switching conversation) before the thinking process and code execution / code interpretation is finished - it will never finish but OWUI will stuck in the circling / queuning. The code will never be run inside pyodide.
So its currently absolutlely neccessary to stay in the tab and in the conversation and wait for the AI to compeltely finish thinking, code executing and fully responding.
Im unsure if this is another kind of the issue you described (switchign away from the conversation) or if its a complete seperate thing or maybe a bug/general limitation of the pyodide implementation?
@Classic298 commented on GitHub (Apr 3, 2026):
@ShirasawaSama could you confirm this is fixed in dev?
@TomTheWise commented on GitHub (Apr 3, 2026):
Just pulled latest dev and the issue I described is the same - do you think its the exact same thing as this issue or unrelated (maybe only with code execution)?
If it is highly likely to be unrelated I can create a new issue and post a video.
Just switching conversations (new chat or another older conversation within the same OWUI tab without manually refreshing) while a response with code execution is being generated breaks it too. Always reproducable. So leaving the borwser tab is not neccessary.
I guess this fits this issue as it fits the expected behavior and actual behavior?
@TomTheWise commented on GitHub (Apr 3, 2026):
https://github.com/user-attachments/assets/cc8d5ffc-eb71-4ba9-b877-9aab6112be7e
Had to shorten the video quite a lot and reduce quality to get it to upload here.