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

Function submit_tui_response

crates/opencode-server/src/routes.rs:3945–3951  ·  view source on GitHub ↗
(Json(body): Json<serde_json::Value>)

Source from the content-addressed store, hash-verified

3943}
3944
3945async fn submit_tui_response(Json(body): Json<serde_json::Value>) -> Json<bool> {
3946 let mut queue = TUI_RESPONSE_QUEUE.lock().await;
3947 queue.push_back(body);
3948 drop(queue);
3949 TUI_RESPONSE_NOTIFY.notify_one();
3950 Json(true)
3951}
3952
3953fn global_routes() -> Router<Arc<ServerState>> {
3954 Router::new()

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected