(chatKey: string, requestId?: string)
| 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。 |
no outgoing calls
no test coverage detected