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

Function open_themes

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

Source from the content-addressed store, hash-verified

3796}
3797
3798async fn open_themes(State(state): State<Arc<ServerState>>) -> Result<Json<bool>> {
3799 enqueue_tui_request(
3800 &state,
3801 "/tui/open-themes",
3802 serde_json::json!({ "command": "theme.list" }),
3803 )
3804 .await;
3805 Ok(Json(true))
3806}
3807
3808async fn open_models(State(state): State<Arc<ServerState>>) -> Result<Json<bool>> {
3809 enqueue_tui_request(

Callers

nothing calls this directly

Calls 1

enqueue_tui_requestFunction · 0.85

Tested by

no test coverage detected