MCPcopy Index your code
hub / github.com/claude-code-best/claude-code / recordContextCollapseCommit

Function recordContextCollapseCommit

src/utils/sessionStorage.ts:1578–1593  ·  view source on GitHub ↗
(commit: {
  collapseId: string
  summaryUuid: string
  summaryContent: string
  summary: string
  firstArchivedUuid: string
  lastArchivedUuid: string
})

Source from the content-addressed store, hash-verified

1576 * array and handed to restoreFromEntries() which rebuilds the commit log.
1577 */
1578export async function recordContextCollapseCommit(commit: {
1579 collapseId: string
1580 summaryUuid: string
1581 summaryContent: string
1582 summary: string
1583 firstArchivedUuid: string
1584 lastArchivedUuid: string
1585}): Promise<void> {
1586 const sessionId = getSessionId() as UUID
1587 if (!sessionId) return
1588 await getProject().appendEntry({
1589 type: 'marble-origami-commit',
1590 sessionId,
1591 ...commit,
1592 })
1593}
1594
1595/**
1596 * Snapshot the staged queue + spawn state. Written after each ctx-agent

Callers

nothing calls this directly

Calls 3

getSessionIdFunction · 0.85
getProjectFunction · 0.85
appendEntryMethod · 0.80

Tested by

no test coverage detected