mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-07 11:28:35 -05:00
[PR #20242] [CLOSED] fix: prevent chat data corruption causing infinite loading spinner #48565
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?
📋 Pull Request Information
Original PR: https://github.com/open-webui/open-webui/pull/20242
Author: @Classic298
Created: 12/29/2025
Status: ❌ Closed
Base:
dev← Head:fix-msg-structure📝 Commits (1)
4b356a3fix: prevent chat data corruption causing infinite loading spinner📊 Changes
5 files changed (+63 additions, -16 deletions)
View changed files
📝
backend/open_webui/main.py(+1 -0)📝
backend/open_webui/models/chats.py(+22 -0)📝
backend/open_webui/utils/middleware.py(+1 -0)📝
src/lib/components/chat/Messages.svelte(+17 -4)📝
src/lib/utils/index.ts(+22 -12)📄 Description
Summary
This PR prevents chat data corruption that causes the "infinite loading spinner" bug where chats become permanently unloadable with no error messages.
Problem
Chats stored in the database can become corrupted when:
When the frontend tries to render corrupted chats, it enters an infinite loop or crashes silently.
Solution
Prevention (Backend)
Defense (Frontend)
Contributor License Agreement
By submitting this pull request, I confirm that I have read and fully agree to the Contributor License Agreement (CLA), and I am providing my contributions under its terms.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.