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

Method persistStateSnapshot

backend/session.go:272–282  ·  view source on GitHub ↗
(state *agent.AgentState)

Source from the content-addressed store, hash-verified

270 state := c.state
271 c.stateMu.Unlock()
272 c.emitStatus("running", nil)
273 c.ui.RunSubmitMessage(runCtx, input, state, c.id)
274 if c.engine.CoreEngine != nil {
275 c.stateMu.Lock()
276 c.state = c.engine.CoreEngine.LastState
277 c.stateMu.Unlock()
278 }
279 _ = c.Save()
280 c.emitStatus("idle", nil)
281 c.bridge.emitEvent("session.done", c.Snapshot())
282 }()
283 return nil
284}
285

Callers 2

SaveMethod · 0.95
observeStateMethod · 0.95

Calls 3

ExportSnapshotMethod · 0.45

Tested by

no test coverage detected