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

Method Save

backend/session.go:252–260  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

250 }
251 if !c.busy.CompareAndSwap(false, true) {
252 return errors.New("session_busy")
253 }
254 runCtx, cancel := context.WithCancel(ctx)
255 c.submitMu.Lock()
256 c.submitCancel = cancel
257 c.submitMu.Unlock()
258 go func() {
259 defer func() {
260 if recovered := recover(); recovered != nil {
261 c.emitStatus("error", map[string]any{"error": fmt.Sprintf("session panic: %v", recovered)})
262 }
263 cancel()

Callers 4

SubmitMethod · 0.95
CompactMethod · 0.95
ToggleYoloMethod · 0.95
dispatchResultMethod · 0.45

Calls 1

persistStateSnapshotMethod · 0.95

Tested by

no test coverage detected