mirror of
https://github.com/open-webui/open-webui.git
synced 2026-07-16 14:39:31 -05:00
[PR #22845] [CLOSED] fix: skip message data fetch for pending/optimistic messages #130548
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/22845
Author: @themavik
Created: 3/19/2026
Status: ❌ Closed
Base:
dev← Head:fix/22753-channel-message-data-404📝 Commits (1)
6acb54efix: skip message data fetch for pending/optimistic messages (#22753)📊 Changes
1 file changed (+2 additions, -2 deletions)
View changed files
📝
src/lib/components/channel/Messages/Message.svelte(+2 -2)📄 Description
Summary
Fixes #22753.
Root cause:
loadMessageData()inMessage.svelteruns on mount for any message with truthydata, including optimistic messages that use a temporary UUID as theirid. The backend returns 404 because no DB record exists for the temp ID, causing an unhandled promise rejection.Fix: Added
!pendingguard to bothloadMessageData()and theonMountcall, so the API call is only made for messages that have a real server-assigned ID.Changes
src/lib/components/channel/Messages/Message.svelte: Added!pendingcheck before callinggetMessageData()in bothloadMessageData()andonMount().Testing
Made with Cursor
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.