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

Function clear_prompt

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

Source from the content-addressed store, hash-verified

3771}
3772
3773async fn clear_prompt(State(state): State<Arc<ServerState>>) -> Result<Json<bool>> {
3774 enqueue_tui_request(&state, "/tui/clear-prompt", serde_json::json!({})).await;
3775 Ok(Json(true))
3776}
3777
3778async fn open_help(State(state): State<Arc<ServerState>>) -> Result<Json<bool>> {
3779 enqueue_tui_request(

Callers

nothing calls this directly

Calls 1

enqueue_tui_requestFunction · 0.85

Tested by

no test coverage detected