(
State(state): State<Arc<ServerState>>,
Json(req): Json<PromptRequest>,
)
| 3732 | } |
| 3733 | |
| 3734 | async fn append_prompt( |
| 3735 | State(state): State<Arc<ServerState>>, |
| 3736 | Json(req): Json<PromptRequest>, |
| 3737 | ) -> Result<Json<bool>> { |
| 3738 | enqueue_tui_request( |
| 3739 | &state, |
| 3740 | "/tui/append-prompt", |
| 3741 | serde_json::json!({ "text": req.text }), |
| 3742 | ) |
| 3743 | .await; |
| 3744 | Ok(Json(true)) |
| 3745 | } |
| 3746 | |
| 3747 | async fn set_prompt( |
| 3748 | State(state): State<Arc<ServerState>>, |
nothing calls this directly
no test coverage detected