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 approval gate in intercept logic

Steven Enamakeld3405c22efa3
diff --git a/crates/openhuman-core/src/security/approval/gate_intercept.rs b/crates/openhuman-core/src/security/approval/gate_intercept.rs
index 312d2d5585..3064b60709 100644
--- a/crates/openhuman-core/src/security/approval/gate_intercept.rs
+++ b/crates/openhuman-core/src/security/approval/gate_intercept.rs
@@ -477,6 +477,8 @@ impl ApprovalGate {
args_redacted,
thread_id: chat_thread_id.clone(),
client_id: chat_client_id.clone(),
+ tool_call_id: None,
+ expires_at: None,
});
// Flow-origin surface bridge (flow-approval-surface, PR3): a flow run