mirror of
https://github.com/open-webui/open-webui.git
synced 2026-09-12 23:02:35 +00:00
fix: reset taskIds and messageQueue on new chat (#21731)
fix: reset taskIds and messageQueue on new chat Fixes a bug where clicking "New Chat" after sending a message would silently drop subsequent messages. The initNewChat function reset most chat state but did not clear taskIds or messageQueue, causing submitPrompt to queue messages indefinitely instead of sending them.
This commit is contained in:
parent
75c5d9b179
commit
2ef55972ff
1 changed files with 2 additions and 0 deletions
|
|
@ -1065,6 +1065,8 @@
|
|||
|
||||
chatFiles = [];
|
||||
params = {};
|
||||
taskIds = null;
|
||||
messageQueue = [];
|
||||
|
||||
if ($page.url.searchParams.get('youtube')) {
|
||||
await uploadWeb(`https://www.youtube.com/watch?v=${$page.url.searchParams.get('youtube')}`);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue