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

Function init_session

crates/opencode-server/src/routes.rs:2028–2035  ·  view source on GitHub ↗
(
    Path(_id): Path<String>,
    Json(_req): Json<InitSessionRequest>,
)

Source from the content-addressed store, hash-verified

2026}
2027
2028async fn init_session(
2029 Path(_id): Path<String>,
2030 Json(_req): Json<InitSessionRequest>,
2031) -> Result<Json<serde_json::Value>> {
2032 Ok(Json(
2033 serde_json::json!({ "initialized": true, "message": "Session initialized successfully" }),
2034 ))
2035}
2036
2037#[derive(Debug, Deserialize)]
2038pub struct SummarizeSessionRequest {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected