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

Function hasAbortMarker

apps/sim/lib/copilot/request/session/buffer.ts:238–243  ·  view source on GitHub ↗
(streamId: string)

Source from the content-addressed store, hash-verified

236}
237
238export async function hasAbortMarker(streamId: string): Promise<boolean> {
239 return withRedisRetry({ operation: 'read_abort_marker', streamId }, async (redis) => {
240 const marker = await redis.get(getAbortKey(streamId))
241 return marker === '1'
242 })
243}
244
245export async function clearAbortMarker(streamId: string): Promise<void> {
246 await withRedisRetry({ operation: 'clear_abort_marker', streamId }, async (redis) => {

Callers 2

runStreamLoopFunction · 0.90
startAbortPollerFunction · 0.90

Calls 3

getAbortKeyFunction · 0.85
withRedisRetryFunction · 0.70
getMethod · 0.65

Tested by

no test coverage detected