MCPcopy Create free account
hub / github.com/AnukarOP/claude-code-leaked / pinCacheEdits

Function pinCacheEdits

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

Source from the content-addressed store, hash-verified

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

Callers 1

addCacheBreakpointsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected