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

Method Tokens

backend/session.go:300–316  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

298 c.Abort()
299 if c.engine != nil {
300 c.engine.Shutdown()
301 }
302}
303
304func (c *SessionController) Clear() {
305 c.Abort()
306 c.engine.Reset()
307 c.stateMu.Lock()
308 c.state = nil
309 c.stateMu.Unlock()
310 c.ui.MountStateSnapshot(nil)
311}
312
313func (c *SessionController) Save() error {
314 c.stateMu.Lock()
315 state := c.state
316 c.stateMu.Unlock()
317 if state == nil {
318 return nil
319 }

Callers 1

dispatchResultMethod · 0.80

Calls 2

TokenTotalsMethod · 0.65
TurnCountValueMethod · 0.65

Tested by

no test coverage detected