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

Method Clear

backend/session.go:243–250  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

241 Busy: c.busy.Load(),
242 Model: c.cfg.APIModel,
243 CWD: c.cfg.CWD,
244 }
245}
246
247func (c *SessionController) Submit(ctx context.Context, input string) error {
248 if strings.TrimSpace(input) == "" {
249 return errors.New("empty input")
250 }
251 if !c.busy.CompareAndSwap(false, true) {
252 return errors.New("session_busy")
253 }

Callers 6

dispatchResultMethod · 0.80
applyRollingCacheMethod · 0.80
TryCollapseDrainMethod · 0.80
ReactiveCompactMethod · 0.80
CompactMethod · 0.80

Calls 3

AbortMethod · 0.95
MountStateSnapshotMethod · 0.80
ResetMethod · 0.45

Tested by

no test coverage detected