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

Function publish_tui_event

crates/opencode-server/src/routes.rs:3888–3902  ·  view source on GitHub ↗
(
    State(state): State<Arc<ServerState>>,
    Json(req): Json<PublishEventRequest>,
)

Source from the content-addressed store, hash-verified

3886}
3887
3888async fn publish_tui_event(
3889 State(state): State<Arc<ServerState>>,
3890 Json(req): Json<PublishEventRequest>,
3891) -> Result<Json<bool>> {
3892 enqueue_tui_request(
3893 &state,
3894 "/tui/publish",
3895 serde_json::json!({
3896 "event": req.event,
3897 "data": req.data,
3898 }),
3899 )
3900 .await;
3901 Ok(Json(true))
3902}
3903
3904#[derive(Debug, Deserialize)]
3905pub struct SelectSessionRequest {

Callers

nothing calls this directly

Calls 1

enqueue_tui_requestFunction · 0.85

Tested by

no test coverage detected