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

Method LoadTaskRuntimeSnapshot

session/store.go:189–205  ·  view source on GitHub ↗
(sessionID string)

Source from the content-addressed store, hash-verified

187 return nil
188 }
189 return recoveryData
190}
191
192func (s *Store) LoadTaskRuntimeSnapshot(sessionID string) []map[string]any {
193 stateData, taskData, commitData := s.loadGenerationTriplet(sessionID, s.taskRuntimeReadPath(sessionID))
194 if stateData == nil || taskData == nil || commitData == nil || intFromAny(taskData["version"]) != 1 {
195 return nil
196 }
197 rawTasks, ok := taskData["tasks"].([]any)
198 if !ok {
199 return nil
200 }
201 tasks := make([]map[string]any, 0, len(rawTasks))
202 for _, raw := range rawTasks {
203 if task, ok := raw.(map[string]any); ok {
204 tasks = append(tasks, task)
205 }
206 }
207 return tasks
208}

Calls 3

loadGenerationTripletMethod · 0.95
taskRuntimeReadPathMethod · 0.95
intFromAnyFunction · 0.70