Browse Source

fix: reset taskId after conversation to prevent incorrect cancellation behavior

hurxxxx 4 months ago
parent
commit
1160e21d45
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

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