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

Function list_pty

crates/opencode-server/src/routes.rs:3393–3397  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

3391}
3392
3393async fn list_pty() -> Json<Vec<PtyInfo>> {
3394 let manager = get_pty_manager();
3395 let sessions = manager.list_sessions().await;
3396 Json(sessions.into_iter().map(PtyInfo::from).collect())
3397}
3398
3399#[derive(Debug, Deserialize)]
3400pub struct CreatePtyRequest {

Callers

nothing calls this directly

Calls 2

get_pty_managerFunction · 0.85
list_sessionsMethod · 0.45

Tested by

no test coverage detected