Skip to content

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

fix(processor): add request id to approval chat context

Steven Enamakel2426d076a431
diff --git a/crates/openhuman-core/src/channels/runtime/dispatch/processor/turn.rs b/crates/openhuman-core/src/channels/runtime/dispatch/processor/turn.rs
index 8692b13a2b..5f55f05fe5 100644
--- a/crates/openhuman-core/src/channels/runtime/dispatch/processor/turn.rs
+++ b/crates/openhuman-core/src/channels/runtime/dispatch/processor/turn.rs
@@ -447,6 +447,7 @@ pub(crate) async fn process_channel_runtime_message(
let approval_ctx = crate::security::approval::ApprovalChatContext {
thread_id: history_key.clone(),
client_id: msg.channel.clone(),
+ request_id: Some(msg.id.clone()),
};
crate::security::approval::APPROVAL_CHAT_CONTEXT
.scope(approval_ctx, agent_call)