Skip to content

The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.

fix(web_chat): add request_id to approval context

Steven Enamakel501583841d2b
diff --git a/crates/openhuman-core/src/web_chat/ops/start_chat.rs b/crates/openhuman-core/src/web_chat/ops/start_chat.rs
index 09a94acdde..86b3d65150 100644
--- a/crates/openhuman-core/src/web_chat/ops/start_chat.rs
+++ b/crates/openhuman-core/src/web_chat/ops/start_chat.rs
@@ -492,6 +492,7 @@ pub async fn start_chat(
let approval_ctx = crate::security::approval::ApprovalChatContext {
thread_id: thread_id_task.clone(),
client_id: client_id_task.clone(),
+ request_id: Some(request_id_task.clone()),
};
let origin = crate::agent::turn_origin::AgentTurnOrigin::WebChat {
thread_id: thread_id_task.clone(),