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

Function recordContextCollapseCommit

src/utils/sessionStorage.ts:1541–1556  ·  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

1539 * array and handed to restoreFromEntries() which rebuilds the commit log.
1540 */
1541export async function recordContextCollapseCommit(commit: {
1542 collapseId: string
1543 summaryUuid: string
1544 summaryContent: string
1545 summary: string
1546 firstArchivedUuid: string
1547 lastArchivedUuid: string
1548}): Promise<void> {
1549 const sessionId = getSessionId() as UUID
1550 if (!sessionId) return
1551 await getProject().appendEntry({
1552 type: 'marble-origami-commit',
1553 sessionId,
1554 ...commit,
1555 })
1556}
1557
1558/**
1559 * 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