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

Function pinCacheEdits

src/services/compact/microCompact.ts:111–118  ·  view source on GitHub ↗
(
  userMessageIndex: number,
  block: import('./cachedMicrocompact.js').CacheEditsBlock,
)

Source from the content-addressed store, hash-verified

109 * Called after inserting new edits so they are re-sent in subsequent calls.
110 */
111export function pinCacheEdits(
112 userMessageIndex: number,
113 block: import('./cachedMicrocompact.js').CacheEditsBlock,
114): void {
115 if (cachedMCState) {
116 cachedMCState.pinnedEdits.push({ userMessageIndex, block })
117 }
118}
119
120/**
121 * Marks all registered tools as sent to the API.

Callers 1

addCacheBreakpointsFunction · 0.85

Calls 1

pushMethod · 0.45

Tested by

no test coverage detected