MCPcopy Index your code
hub / github.com/ChatLab/ChatLab / clearActiveTask

Function clearActiveTask

src/stores/aiChat.ts:476–481  ·  view source on GitHub ↗
(chatKey: string, requestId?: string)

Source from the content-addressed store, hash-verified

474 }
475
476 function clearActiveTask(chatKey: string, requestId?: string): void {
477 if (!activeTask.value) return
478 if (activeTask.value.chatKey !== chatKey) return
479 if (requestId && activeTask.value.requestId !== requestId) return
480 activeTask.value = null
481 }
482
483 /**
484 * 会话创建成功后,把后台任务绑定到真实 aiChatId。

Callers 3

sendMessageFunction · 0.85
editCurrentRoundOnlyFunction · 0.85
stopGenerationFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected