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

Function append_prompt

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

Source from the content-addressed store, hash-verified

3732}
3733
3734async 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
3747async fn set_prompt(
3748 State(state): State<Arc<ServerState>>,

Callers

nothing calls this directly

Calls 1

enqueue_tui_requestFunction · 0.85

Tested by

no test coverage detected