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

Function releasePendingChatStream

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

Source from the content-addressed store, hash-verified

173}
174
175export async function releasePendingChatStream(chatId: string, streamId: string): Promise<void> {
176 try {
177 await releaseLock(getChatStreamLockKey(chatId), streamId)
178 } catch (error) {
179 logger.warn('Failed to release chat stream lock', {
180 chatId,
181 streamId,
182 error: toError(error).message,
183 })
184 } finally {
185 resolvePendingChatStream(chatId, streamId)
186 }
187}
188
189export async function acquirePendingChatStream(
190 chatId: string,

Callers 4

startFunction · 0.90
abort.test.tsFile · 0.90
handleUnifiedChatPostFunction · 0.90
route.tsFile · 0.90

Calls 5

releaseLockFunction · 0.90
toErrorFunction · 0.90
getChatStreamLockKeyFunction · 0.85
resolvePendingChatStreamFunction · 0.85
warnMethod · 0.65

Tested by

no test coverage detected