diff --git a/src/routes/+page.svelte b/src/routes/+page.svelte index 396c259f..42e08c38 100644 --- a/src/routes/+page.svelte +++ b/src/routes/+page.svelte @@ -236,6 +236,9 @@ const loadChat = async (id) => { const chat = await db.get('chats', id); if (chatId !== chat.id) { + if (chat.messages.length > 0) { + chat.messages.at(-1).done = true; + } messages = chat.messages; title = chat.title; chatId = chat.id;