Skip to content

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

fix(approval): handle missing gate intercept in approval flow

Steven Enamakel1888e40bcfa4
diff --git a/crates/openhuman-core/src/security/approval/gate_intercept.rs b/crates/openhuman-core/src/security/approval/gate_intercept.rs
index ca7636e254..29090a65f1 100644
--- a/crates/openhuman-core/src/security/approval/gate_intercept.rs
+++ b/crates/openhuman-core/src/security/approval/gate_intercept.rs
@@ -493,8 +493,8 @@ impl ApprovalGate {
args_redacted,
thread_id: chat_thread_id.clone(),
client_id: chat_client_id.clone(),
- tool_call_id: None,
- expires_at: None,
+ tool_call_id: tool_call_id.map(str::to_string),
+ expires_at: expires_at.map(|t| t.to_rfc3339()),
});
// Flow-origin surface bridge (flow-approval-surface, PR3): a flow run