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

Function get_session_children

crates/opencode-server/src/routes.rs:443–450  ·  view source on GitHub ↗
(
    State(state): State<Arc<ServerState>>,
    Path(id): Path<String>,
)

Source from the content-addressed store, hash-verified

441}
442
443async fn get_session_children(
444 State(state): State<Arc<ServerState>>,
445 Path(id): Path<String>,
446) -> Result<Json<Vec<SessionInfo>>> {
447 let manager = state.sessions.lock().await;
448 let children = manager.children(&id);
449 Ok(Json(children.into_iter().map(session_to_info).collect()))
450}
451
452#[derive(Debug, Serialize)]
453pub struct TodoInfo {

Callers

nothing calls this directly

Calls 1

childrenMethod · 0.80

Tested by

no test coverage detected