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

Method RecordSessionMemory

agent/loop.go:1269–1279  ·  view source on GitHub ↗
(ctx context.Context, state *AgentState, force bool)

Source from the content-addressed store, hash-verified

1267 }
1268 e.cacheEditState.Pinned = append(e.cacheEditState.Pinned, edit)
1269 existing[edit.ToolUseID] = struct{}{}
1270 }
1271 e.cacheEditState.ConsumedInFlight = nil
1272}
1273
1274func (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

Callers 3

queryLoopMethod · 0.95
maybeCompressContextMethod · 0.95
SubmitMessageMethod · 0.80

Calls 1

ObserveMethod · 0.80

Tested by

no test coverage detected