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

Method busy_sessions

crates/opencode-session/src/session.rs:258–264  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

256 }
257
258 pub fn busy_sessions(&self) -> Vec<&str> {
259 self.states
260 .iter()
261 .filter(|(_, s)| matches!(s, RunStatus::Busy | RunStatus::Retrying { .. }))
262 .map(|(id, _)| id.as_str())
263 .collect()
264 }
265
266 /// List all session statuses.
267 /// Matches TS `SessionStatus.list()` returning all tracked states.

Callers

nothing calls this directly

Calls 2

filterMethod · 0.45
as_strMethod · 0.45

Tested by

no test coverage detected