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

Function cleanMessagesForLogging

src/utils/sessionStorage.ts:4450–4461  ·  view source on GitHub ↗
(
  messages: Message[],
  allMessages: readonly Message[] = messages,
)

Source from the content-addressed store, hash-verified

4448}
4449
4450export function cleanMessagesForLogging(
4451 messages: Message[],
4452 allMessages: readonly Message[] = messages,
4453): Transcript {
4454 const filtered = messages.filter(isLoggableMessage) as Transcript
4455 return getUserType() !== 'ant'
4456 ? transformMessagesForExternalTranscript(
4457 filtered,
4458 collectReplIds(allMessages),
4459 )
4460 : filtered
4461}
4462
4463/**
4464 * Gets a log by its index

Callers 3

recordTranscriptFunction · 0.85
useLogMessagesFunction · 0.85

Calls 3

getUserTypeFunction · 0.85
collectReplIdsFunction · 0.85

Tested by

no test coverage detected