mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-07 03:18:23 -05:00
[GH-ISSUE #22891] issue: Action buttons appear under assistant message when switching chats immediately after sending #35365
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 @ShirasawaSama on GitHub (Mar 20, 2026).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/22891
Check Existing Issues
Installation Method
Git Clone
Open WebUI Version
v0.8.10
Ollama Version (if applicable)
No response
Operating System
MacOS 26
Browser (if applicable)
No response
Confirmation
README.md.Expected Behavior
The action buttons under the assistant message should only appear after the assistant response is fully completed (i.e., after the message is truly marked “done”).
Actual Behavior
The action buttons appear prematurely right after switching chats, even though the assistant response has not finished.
Steps to Reproduce
Logs & Screenshots
Additional Information
I suspect this is caused by the chat history handling in
src/lib/components/chat/Chat.svelte.When the UI switches to a new
history.currentId, the code iterates throughhistory.messagesand setsmessage.done = truefor assistant messages (see the logic aroundif (history.currentId) { ... message.role === 'assistant' ... message.done = true }).If this runs during a conversation switch while the assistant message from Conversation A is still streaming, it can incorrectly mark it as completed, which then triggers the bottom action buttons to render.
@tjbck commented on GitHub (Mar 20, 2026):
This is an intended behaviour as a fallback but updated in dev.
@ShirasawaSama commented on GitHub (Mar 23, 2026):
@tjbck There's a new issue: after sending a message, the
<Skeleton />tag no longer appears.