MCPcopy Create free account
hub / github.com/ChrisFeldmeier/OpenCodeRust / new

Method new

crates/opencode-session/src/session.rs:205–209  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

203
204impl SessionStateManager {
205 pub fn new() -> Self {
206 Self {
207 states: HashMap::new(),
208 }
209 }
210
211 pub fn set(&mut self, session_id: &str, status: RunStatus) {
212 self.states.insert(session_id.to_string(), status);

Callers

nothing calls this directly

Calls 1

newFunction · 0.85

Tested by

no test coverage detected