mirror of
https://github.com/open-webui/open-webui.git
synced 2026-07-16 23:21:44 -05:00
[GH-ISSUE #24424] Chat stuck on Loading after failed message regeneration #91036
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 (May 6, 2026).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/24424
Description
When an API response fails mid-stream during message regeneration (e.g., connection timeout), the chat can become permanently stuck showing "Loading..." and never renders.
Root Cause
Failed regeneration attempts leave orphaned entries in the chat data structure:
history.messagesaccumulates entries for failed regeneration attempts that never completecurrentIdcan end up pointing to a message ID that doesn't exist in themessagesarraychildrenIdsarrays reference non-existent message IDsSteps to Reproduce
Example of Corrupted State
Suggested Fix
history.messagescurrentIdexists inmessagesarray before renderingWorkaround
Manually clean up the SQLite database:
history.messagesthat don't exist inmessagesarraycurrentIdto point to a valid messagechildrenIdsreferencesEnvironment
@owui-terminator[bot] commented on GitHub (May 6, 2026):
⚠️ Missing Issue Title Prefix
@bernadinm, your issue title is missing a categorising prefix (e.g.
bug:,feat:,docs:).Please update the title to lead with one of:
Example:
bug: Login fails when the password contains special characters@owui-terminator[bot] commented on GitHub (May 6, 2026):
🔍 Related Issues Found
I found some existing issues that might be related. Please check if any of these are duplicates or contain helpful solutions:
🟢 #24157 issue: Chat stuck in infinite Loading when history.currentId points to a malformed provider response object after safety rejection
Very similar failure mode: the chat gets stuck in infinite loading because
history.currentIdpoints to an invalid message object. Your issue also involves broken chat-tree references causing the frontend to hang.by mcxiaochenn ·
bug🟣 #20474 Chat infinitely loads when history.currentId points to orphaned/deleted message
This is the closest match: it reports infinite loading when
history.currentIdpoints to an orphaned/deleted message. Your issue describes orphaned entries and invalidcurrentIdafter failed regenerations, which is the same class of corruption.by MacJedi42 ·
bug🟢 #15189 issue: Bug: Lack of Data Integrity Validation on Chat Model Causes Silent Failure and Frontend Deadlock
Broader but clearly related data-integrity issue. It describes malformed chat structure causing frontend deadlock/infinite loading, matching your root cause of broken message-tree integrity.
by robotmikhro ·
bug,confirmed issue🟣 #20825 Chat becomes permanently stuck loading after cancelling a streaming response from suggested prompts
Related because cancellation during streaming leaves an orphaned message and
history.currentIdpointing to it, which then causes the chat to stick loading forever. While triggered by cancel rather than regen failure, the underlying broken tree state is highly similar.by bernadinm
💡 If your issue is a duplicate, please close it and add any additional details to the existing issue instead.
This comment was generated automatically. React with 👍 if helpful, 👎 if not.
@tjbck commented on GitHub (May 8, 2026):
Likely addressed with the latest dev.