(
State(state): State<Arc<ServerState>>,
Json(req): Json<PromptRequest>,
)
| 3758 | } |
| 3759 | |
| 3760 | async fn submit_prompt( |
| 3761 | State(state): State<Arc<ServerState>>, |
| 3762 | Json(req): Json<PromptRequest>, |
| 3763 | ) -> Result<Json<bool>> { |
| 3764 | enqueue_tui_request( |
| 3765 | &state, |
| 3766 | "/tui/submit-prompt", |
| 3767 | serde_json::json!({ "text": req.text }), |
| 3768 | ) |
| 3769 | .await; |
| 3770 | Ok(Json(true)) |
| 3771 | } |
| 3772 | |
| 3773 | async fn clear_prompt(State(state): State<Arc<ServerState>>) -> Result<Json<bool>> { |
| 3774 | enqueue_tui_request(&state, "/tui/clear-prompt", serde_json::json!({})).await; |
nothing calls this directly
no test coverage detected