mirror of
https://github.com/open-webui/open-webui.git
synced 2026-10-12 03:48:33 +00:00
refac
This commit is contained in:
parent
7cd0785033
commit
3d31123467
1 changed files with 7 additions and 1 deletions
|
|
@ -1810,7 +1810,13 @@
|
|||
syncChatRoom($socket, $chatId, $temporaryChatEnabled);
|
||||
const id = $chatId;
|
||||
const tasks = await getTaskIdsByChatId(localStorage.token, id).catch(() => null);
|
||||
if ($chatId === id && tasks) taskIds = tasks.task_ids?.length ? tasks.task_ids : null;
|
||||
if ($chatId !== id || !tasks) return;
|
||||
taskIds = tasks.task_ids?.length ? tasks.task_ids : null;
|
||||
if (!taskIds && hasPendingAssistantLeaf()) {
|
||||
// A server restart can leave unfinished messages without a completion event.
|
||||
const loaded = await loadChat();
|
||||
if (loaded && $chatId === id) await processNextInQueue(id);
|
||||
}
|
||||
};
|
||||
|
||||
onMount(() => {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue