diff --git a/src/lib/components/chat/Chat.svelte b/src/lib/components/chat/Chat.svelte index 869ab7a880..4a5d1e3b96 100644 --- a/src/lib/components/chat/Chat.svelte +++ b/src/lib/components/chat/Chat.svelte @@ -612,10 +612,14 @@ if (event.chat_id === $chatId) { await tick(); + const type = event?.data?.type ?? null; + if (type === 'chat:reload') { + await loadChat(); + return; + } let message = history.messages[event.message_id]; if (message) { - const type = event?.data?.type ?? null; const data = event?.data?.data ?? null; if (type === 'status') {