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

Method insertContentReplacement

src/utils/sessionStorage.ts:1136–1149  ·  view source on GitHub ↗
(
    replacements: ContentReplacementRecord[],
    agentId?: AgentId,
  )

Source from the content-addressed store, hash-verified

1134 }
1135
1136 async insertContentReplacement(
1137 replacements: ContentReplacementRecord[],
1138 agentId?: AgentId,
1139 ) {
1140 return this.trackWrite(async () => {
1141 const entry: ContentReplacementEntry = {
1142 type: 'content-replacement',
1143 sessionId: getSessionId() as UUID,
1144 agentId,
1145 replacements,
1146 }
1147 await this.appendEntry(entry)
1148 })
1149 }
1150
1151 async appendEntry(entry: Entry, sessionId: UUID = getSessionId() as UUID) {
1152 if (this.shouldSkipPersistence()) {

Callers 1

recordContentReplacementFunction · 0.80

Calls 3

trackWriteMethod · 0.95
appendEntryMethod · 0.95
getSessionIdFunction · 0.85

Tested by

no test coverage detected