MCPcopy Create free account
hub / github.com/AnukarOP/claude-code-leaked / flush

Function flush

source code/utils/toolResultStorage.ts:608–611  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

606 let current: ToolResultCandidate[] = []
607
608 const flush = () => {
609 if (current.length > 0) groups.push(current)
610 current = []
611 }
612
613 // Track all assistant message.ids seen so far — same-ID fragments are
614 // merged by normalizeMessagesForAPI (messages.ts ~2126 walks back PAST

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected