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

Method get_session

crates/opencode-server/src/pty.rs:178–180  ·  view source on GitHub ↗
(&self, id: &str)

Source from the content-addressed store, hash-verified

176 }
177
178 pub async fn get_session(&self, id: &str) -> Option<PtySession> {
179 self.sessions.read().await.get(id).map(|(s, _)| s.clone())
180 }
181
182 pub async fn list_sessions(&self) -> Vec<PtySession> {
183 self.sessions

Callers 1

get_ptyFunction · 0.45

Calls 3

readMethod · 0.80
getMethod · 0.45
cloneMethod · 0.45

Tested by

no test coverage detected