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

Function get_pty

crates/opencode-server/src/routes.rs:3415–3422  ·  view source on GitHub ↗
(Path(id): Path<String>)

Source from the content-addressed store, hash-verified

3413}
3414
3415async fn get_pty(Path(id): Path<String>) -> Result<Json<PtyInfo>> {
3416 let manager = get_pty_manager();
3417 let session = manager
3418 .get_session(&id)
3419 .await
3420 .ok_or_else(|| ApiError::NotFound("PTY session not found".to_string()))?;
3421 Ok(Json(PtyInfo::from(session)))
3422}
3423
3424#[derive(Debug, Deserialize)]
3425pub struct UpdatePtyRequest {

Callers

nothing calls this directly

Calls 2

get_pty_managerFunction · 0.85
get_sessionMethod · 0.45

Tested by

no test coverage detected