diff --git a/src/lib/components/chat/Chat.svelte b/src/lib/components/chat/Chat.svelte index 3d31c91979..7c24cb57d4 100644 --- a/src/lib/components/chat/Chat.svelte +++ b/src/lib/components/chat/Chat.svelte @@ -4469,12 +4469,12 @@ } }; - const continueResponse = async () => { + const continueResponse = async (message) => { console.log('continueResponse'); const _chatId = JSON.parse(JSON.stringify($chatId)); - if (history.currentId && history.messages[history.currentId].done == true) { - const responseMessage = history.messages[history.currentId]; + if (history.messages[message.id].done == true) { + const responseMessage = history.messages[message.id]; responseMessage.done = false; await tick(); diff --git a/src/lib/components/chat/Messages/ResponseMessage.svelte b/src/lib/components/chat/Messages/ResponseMessage.svelte index c38124d7af..754503b735 100644 --- a/src/lib/components/chat/Messages/ResponseMessage.svelte +++ b/src/lib/components/chat/Messages/ResponseMessage.svelte @@ -1383,7 +1383,7 @@ ? 'visible' : 'hover-reveal'} p-1.5 hover:bg-black/5 dark:hover:bg-white/5 rounded-lg dark:hover:text-white hover:text-black transition" on:click={() => { - continueResponse(); + continueResponse(message); }} >