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

Method Get

backend/session.go:70–78  ·  view source on GitHub ↗
(sessionID string)

Source from the content-addressed store, hash-verified

68 return nil, fmt.Errorf("session %s not found", sessionID)
69 }
70 return m.createWithState(sessionID, cwd, state)
71}
72
73func (m *SessionManager) Get(sessionID string) (*SessionController, error) {
74 m.mu.Lock()
75 defer m.mu.Unlock()
76 session := m.sessions[sessionID]
77 if session == nil {
78 return nil, fmt.Errorf("session %s not found", sessionID)
79 }
80 return session, nil
81}

Callers 3

handleWSMethod · 0.45
dispatchResultMethod · 0.45
optionalControllerMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected