mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-05 18:38:17 -05:00
[GH-ISSUE #20825] Chat becomes permanently stuck loading after cancelling a streaming response from suggested prompts #57966
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 @bernadinm on GitHub (Jan 20, 2026).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/20825
When using a suggested/pre-queued follow-up message and cancelling the response quickly while it's still streaming, the chat becomes permanently stuck in a loading state.
Steps to reproduce
Technical details
Cancellation creates a corrupted message in
history.messageswith:role: "unknown"instead of "user" or "assistant"parentId(orphaned from the message tree)childrenIdsThe
history.currentIdgets set to this orphaned message. The frontend can't render the chat becausecurrentIdpoints to an unlinked node in the message tree.Expected behavior
Cancelling a streaming response should either properly link the partial message into the tree or roll back
currentIdto the previous valid message.Environment
@silentoplayz commented on GitHub (Jan 21, 2026):
I am unable to reproduce. Also, please follow the provided PR checklist.