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

Function clearBuffer

apps/sim/lib/copilot/request/session/buffer.ts:101–105  ·  view source on GitHub ↗
(streamId: string, operation = 'clear_outbox')

Source from the content-addressed store, hash-verified

99}
100
101export async function clearBuffer(streamId: string, operation = 'clear_outbox'): Promise<void> {
102 await withRedisRetry({ operation, streamId }, async (redis) => {
103 await redis.del(getEventsKey(streamId), getSeqKey(streamId), getAbortKey(streamId))
104 })
105}
106
107export async function scheduleBufferCleanup(
108 streamId: string,

Callers 2

buffer.test.tsFile · 0.90
resetBufferFunction · 0.85

Calls 4

getAbortKeyFunction · 0.85
withRedisRetryFunction · 0.70
getEventsKeyFunction · 0.70
getSeqKeyFunction · 0.70

Tested by

no test coverage detected