Browse Source

Merge pull request #11545 from hurxxxx/fix/reset-taskId-after-conversation

fix: Reset taskId after completion to prevent incorrect cancellation behavior
Timothy Jaeryang Baek 4 months ago
parent
commit
64fa37c15d
1 changed files with 2 additions and 0 deletions
  1. 2 0
      src/lib/components/chat/Chat.svelte

+ 2 - 0
src/lib/components/chat/Chat.svelte

@@ -894,6 +894,8 @@
 				await chats.set(await getChatList(localStorage.token, $currentChatPage));
 			}
 		}
+		
+		taskId = null
 	};
 
 	const chatActionHandler = async (chatId, actionId, modelId, responseMessageId, event = null) => {