(chatId: string, streamId: string)
| 49 | } |
| 50 | |
| 51 | function resolvePendingChatStream(chatId: string, streamId: string): void { |
| 52 | const entry = pendingChatStreams.get(chatId) |
| 53 | if (entry && entry.streamId === streamId) { |
| 54 | entry.resolve() |
| 55 | pendingChatStreams.delete(chatId) |
| 56 | } |
| 57 | } |
| 58 | |
| 59 | function getChatStreamLockKey(chatId: string): string { |
| 60 | return `copilot:chat-stream-lock:${chatId}` |
no test coverage detected