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

Function open_sessions

crates/opencode-server/src/routes.rs:3788–3796  ·  view source on GitHub ↗
(State(state): State<Arc<ServerState>>)

Source from the content-addressed store, hash-verified

3786}
3787
3788async fn open_sessions(State(state): State<Arc<ServerState>>) -> Result<Json<bool>> {
3789 enqueue_tui_request(
3790 &state,
3791 "/tui/open-sessions",
3792 serde_json::json!({ "command": "session.list" }),
3793 )
3794 .await;
3795 Ok(Json(true))
3796}
3797
3798async fn open_themes(State(state): State<Arc<ServerState>>) -> Result<Json<bool>> {
3799 enqueue_tui_request(

Callers

nothing calls this directly

Calls 1

enqueue_tui_requestFunction · 0.85

Tested by

no test coverage detected