feat: prompt returns answer to caller + commit on own header line

This commit is contained in:
Helios Agent 2026-03-05 21:22:18 +01:00
parent c5ef006414
commit 996f74b24f
No known key found for this signature in database
GPG key ID: C8259547CD8309B5
5 changed files with 15 additions and 9 deletions

View file

@ -564,6 +564,9 @@ pub async fn prompt_user(
})
.await
{
Ok(ClientMessage::PromptResponse { answer, .. }) => {
(StatusCode::OK, Json(serde_json::json!({ "ok": true, "answer": answer }))).into_response()
}
Ok(_) => (StatusCode::OK, Json(serde_json::json!({ "ok": true }))).into_response(),
Err(e) => e.into_response(),
}