mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-06 19:08:59 -05:00
[GH-ISSUE #22931] [Bug]: Message queue stuck after rapid chat switching - queued messages not auto-sent #35373
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 @ai-nurmamat on GitHub (Mar 22, 2026).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/22931
Bug Summary
When using Message Queue feature, rapid switching between conversations causes the queue to get stuck. Queued messages remain but are not automatically sent when the conversation is in a stopped state.
Steps to Reproduce
Expected Behavior
Actual Behavior
Root Cause Analysis
The issue likely stems from the queue consumer not properly handling conversation context switches. When rapidly switching between conversations:
Likely Code Location
backend/apps/webui/routers/chat.py- Chat completion endpointbackend/apps/webui/routers/queue.py- Queue managementSuggested Fix
Impact
Labels
bug, message-queue, chat-switching
@jhammons commented on GitHub (Mar 24, 2026):
Hi @tjbck , thanks for your work! I came by interested in the parent issue (something I am experiencing with minor use) but I saw you closed it as completed. Is it perhaps a duplicate? Is there an issue I can follow to track elsewhere? I may not be sharp enough to troubleshoot this but would be willing to take a look if nobody else is. Thank you.
@Classic298 commented on GitHub (Mar 24, 2026):
@jhammons thanks for offering your time; please test the dev branch and try to reproduce, it should be fixed there. Then report back thanks
@jhammons commented on GitHub (Mar 24, 2026):
You are correct--dev branch is currently working well. Thank you!