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

Function removeExtraFields

src/utils/sessionStorage.ts:1815–1822  ·  view source on GitHub ↗
(
  transcript: TranscriptMessage[],
)

Source from the content-addressed store, hash-verified

1813}
1814
1815export function removeExtraFields(
1816 transcript: TranscriptMessage[],
1817): SerializedMessage[] {
1818 return transcript.map(m => {
1819 const { isSidechain, parentUuid, ...serializedMessage } = m
1820 return serializedMessage
1821 })
1822}
1823
1824/**
1825 * 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