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

Function removeExtraFields

source code/utils/sessionStorage.ts:1816–1823  ·  view source on GitHub ↗
(
  transcript: TranscriptMessage[],
)

Source from the content-addressed store, hash-verified

1814}
1815
1816export function removeExtraFields(
1817 transcript: TranscriptMessage[],
1818): SerializedMessage[] {
1819 return transcript.map(m => {
1820 const { isSidechain, parentUuid, ...serializedMessage } = m
1821 return serializedMessage
1822 })
1823}
1824
1825/**
1826 * Splice the preserved segment back into the chain after compaction.

Callers 4

convertToLogOptionFunction · 0.85
loadFullLogFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected