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

Method insertFileHistorySnapshot

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

Source from the content-addressed store, hash-verified

1084 }
1085
1086 async insertFileHistorySnapshot(
1087 messageId: UUID,
1088 snapshot: FileHistorySnapshot,
1089 isSnapshotUpdate: boolean,
1090 ) {
1091 return this.trackWrite(async () => {
1092 const fileHistoryMessage: FileHistorySnapshotMessage = {
1093 type: 'file-history-snapshot',
1094 messageId,
1095 snapshot,
1096 isSnapshotUpdate,
1097 }
1098 await this.appendEntry(fileHistoryMessage)
1099 })
1100 }
1101
1102 async insertQueueOperation(queueOp: QueueOperationMessage) {
1103 return this.trackWrite(async () => {

Callers 1

Calls 2

trackWriteMethod · 0.95
appendEntryMethod · 0.95

Tested by

no test coverage detected