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

Method insertFileHistorySnapshot

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

Source from the content-addressed store, hash-verified

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

Callers 1

Calls 2

trackWriteMethod · 0.95
appendEntryMethod · 0.95

Tested by

no test coverage detected