MCPcopy Create free account
hub / github.com/GongShichen/LuminaCode / RestoreInFlightCacheEdits

Method RestoreInFlightCacheEdits

agent/loop.go:1162–1164  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1160 if len(blocks) == 0 {
1161 result = append(result, msg)
1162 continue
1163 }
1164 newBlocks := append([]map[string]any{}, blocks...)
1165 last := copyMap(newBlocks[len(newBlocks)-1])
1166 last["cache_control"] = map[string]any{"type": "ephemeral"}
1167 newBlocks[len(newBlocks)-1] = last

Calls 1