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

Method list

crates/opencode-session/src/status.rs:77–80  ·  view source on GitHub ↗

List all tracked session statuses. Matches TS `SessionStatus.list()`.

(&self)

Source from the content-addressed store, hash-verified

75 /// List all tracked session statuses.
76 /// Matches TS `SessionStatus.list()`.
77 pub async fn list(&self) -> HashMap<String, SessionStatusInfo> {
78 let state = self.state.read().await;
79 state.clone()
80 }
81
82 /// Set the status for a session and publish bus events.
83 /// Matches TS `SessionStatus.set(sessionID, status)`.

Callers 9

session_statusFunction · 0.45
list_agentsFunction · 0.45
test_set_idle_removesFunction · 0.45
test_listFunction · 0.45

Calls 2

readMethod · 0.80
cloneMethod · 0.45

Tested by 2

test_set_idle_removesFunction · 0.36
test_listFunction · 0.36