(ctx context.Context, state *AgentState, force bool)
| 1267 | } |
| 1268 | e.cacheEditState.Pinned = append(e.cacheEditState.Pinned, edit) |
| 1269 | existing[edit.ToolUseID] = struct{}{} |
| 1270 | } |
| 1271 | e.cacheEditState.ConsumedInFlight = nil |
| 1272 | } |
| 1273 | |
| 1274 | func (e *CoreExecutionEngine) restoreInFlightCacheEdits() { |
| 1275 | if len(e.cacheEditState.ConsumedInFlight) == 0 { |
| 1276 | return |
| 1277 | } |
| 1278 | restored := make([]api.CacheEdit, 0, len(e.cacheEditState.ConsumedInFlight)+len(e.cacheEditState.Pending)) |
| 1279 | restored = append(restored, e.cacheEditState.ConsumedInFlight...) |
| 1280 | restored = append(restored, e.cacheEditState.Pending...) |
| 1281 | e.cacheEditState.Pending = restored |
| 1282 | e.cacheEditState.ConsumedInFlight = nil |
no test coverage detected