MCPcopy Index your code
hub / github.com/codeaashu/claude-code / collectReplIds

Function collectReplIds

src/utils/sessionStorage.ts:4369–4381  ·  view source on GitHub ↗
(messages: readonly Message[])

Source from the content-addressed store, hash-verified

4367}
4368
4369function collectReplIds(messages: readonly Message[]): Set<string> {
4370 const ids = new Set<string>()
4371 for (const m of messages) {
4372 if (m.type === 'assistant' && Array.isArray(m.message.content)) {
4373 for (const b of m.message.content) {
4374 if (b.type === 'tool_use' && b.name === REPL_TOOL_NAME) {
4375 ids.add(b.id)
4376 }
4377 }
4378 }
4379 }
4380 return ids
4381}
4382
4383/**
4384 * For external users, make REPL invisible in the persisted transcript: strip

Callers 1

cleanMessagesForLoggingFunction · 0.85

Calls 1

addMethod · 0.45

Tested by

no test coverage detected