mirror of
https://github.com/open-webui/open-webui.git
synced 2026-11-25 14:57:43 -05:00
fix: Stop button stays after Send now until the page is reloaded (#35027)
After Send now on a queued message in a saved chat, the answer to the queued messages could stay empty with the Stop button showing until a reload. It happened when that answer finished before the page had loaded the chat again, so the page missed the end of the answer and then showed the chat as it was before the answer finished. Now the page loads the chat again when an answer it has not shown yet finishes, so the finished answer shows and the Stop button goes away. Fixes #35024
This commit is contained in:
1 parent
9f80154483
commit
24af96520d
1 file changed
+8
@@ -1956,6 +1956,14 @@
|
||||
await loadChat();
|
||||
return;
|
||||
}
|
||||
// A reply this page has not loaded yet ended.
|
||||
if (
|
||||
type === 'chat:active' &&
|
||||
!event.data.data?.active &&
|
||||
!$temporaryChat &&
|
||||
!history.messages[event.message_id]
|
||||
)
|
||||
await loadChat();
|
||||
if (type === 'chat:list') {
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user