MCPcopy Index your code
hub / github.com/simstudioai/sim / resolvePendingChatStream

Function resolvePendingChatStream

apps/sim/lib/copilot/request/session/abort.ts:51–57  ·  view source on GitHub ↗
(chatId: string, streamId: string)

Source from the content-addressed store, hash-verified

49}
50
51function 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
59function getChatStreamLockKey(chatId: string): string {
60 return `copilot:chat-stream-lock:${chatId}`

Callers 1

releasePendingChatStreamFunction · 0.85

Calls 3

getMethod · 0.65
resolveMethod · 0.65
deleteMethod · 0.65

Tested by

no test coverage detected