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(),
}

View file

@ -93,6 +93,7 @@ async fn handle_client_message(session_id: Uuid, msg: ClientMessage, state: &App
| ClientMessage::LogsResponse { request_id, .. }
| ClientMessage::DownloadResponse { request_id, .. }
| ClientMessage::ClipboardGetResponse { request_id, .. }
| ClientMessage::PromptResponse { request_id, .. }
| ClientMessage::Ack { request_id }
| ClientMessage::Error { request_id, .. } => {
let rid = *request_id;