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 setup in approval flow

Steven Enamakelc4a19536cdfa
diff --git a/crates/openhuman-core/src/security/approval/gate_setup.rs b/crates/openhuman-core/src/security/approval/gate_setup.rs
index 16e8766f96..0de0391d55 100644
--- a/crates/openhuman-core/src/security/approval/gate_setup.rs
+++ b/crates/openhuman-core/src/security/approval/gate_setup.rs
@@ -108,8 +108,7 @@ impl ApprovalGate {
/// policy reload) takes effect on the very next tool call.
///
/// Callers MUST still exclude `AgentTurnOrigin::Unknown` before trusting
- /// this flag — see the
- /// `matches!` guard at the call site below. This method only reports the
+ /// this flag — see the `matches!` guard at the call site below. This method only reports the
/// user's setting; it does not know about origin.
fn is_auto_approve_all_enabled(&self) -> bool {
if let Some(policy) = crate::security::live_policy::current() {