MCPcopy
hub / github.com/claude-code-best/claude-code / insertFileHistorySnapshot

Method insertFileHistorySnapshot

src/utils/sessionStorage.ts:1108–1122  ·  view source on GitHub ↗
(
    messageId: UUID,
    snapshot: FileHistorySnapshot,
    isSnapshotUpdate: boolean,
  )

Source from the content-addressed store, hash-verified

1106 }
1107
1108 async insertFileHistorySnapshot(
1109 messageId: UUID,
1110 snapshot: FileHistorySnapshot,
1111 isSnapshotUpdate: boolean,
1112 ) {
1113 return this.trackWrite(async () => {
1114 const fileHistoryMessage: FileHistorySnapshotMessage = {
1115 type: 'file-history-snapshot',
1116 messageId,
1117 snapshot,
1118 isSnapshotUpdate,
1119 }
1120 await this.appendEntry(fileHistoryMessage)
1121 })
1122 }
1123
1124 async insertQueueOperation(queueOp: QueueOperationMessage) {
1125 return this.trackWrite(async () => {

Callers 1

Calls 2

trackWriteMethod · 0.95
appendEntryMethod · 0.95

Tested by

no test coverage detected