MCPcopy Index your code
hub / github.com/ChrisFeldmeier/OpenCodeRust / delete_pty

Function delete_pty

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

Source from the content-addressed store, hash-verified

3440}
3441
3442async fn delete_pty(Path(id): Path<String>) -> Result<Json<bool>> {
3443 let manager = get_pty_manager();
3444 let deleted = manager.delete_session(&id).await;
3445 Ok(Json(deleted))
3446}
3447
3448#[derive(Debug, Deserialize)]
3449pub struct PtyConnectQuery {

Callers

nothing calls this directly

Calls 2

get_pty_managerFunction · 0.85
delete_sessionMethod · 0.45

Tested by

no test coverage detected