The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.
Rust agent-orchestrationai-agentsai-assistantdesktopllmlocal-firstmcppersonal-aiprivacyrustsecond-braintauri
feat(security): let an agent context turn the approval gate off (#7032)
oxoxDev563527030a26
diff --git a/crates/openhuman-core/src/security/approval/gate_intercept.rs b/crates/openhuman-core/src/security/approval/gate_intercept.rsindex 29b0b201f6..6487be4f4d 100644--- a/crates/openhuman-core/src/security/approval/gate_intercept.rs+++ b/crates/openhuman-core/src/security/approval/gate_intercept.rs@@ -158,6 +158,20 @@ impl ApprovalGate {return (GateOutcome::Allow, None);}+ if !forced+ && !matches!(&origin, AgentTurnOrigin::Unknown)+ && crate::core::runtime::CoreContext::current_approvals_disabled()+ {+ tracing::info!(+ tool = tool_name,+ origin_class = %origin.class(),+ agent_id = crate::core::runtime::agent_scope::current_agent_id().as_deref().unwrap_or(""),+ auto_approved = true,+ "[approval::gate] approval gate off for this agent — allowing without prompt"+ );+ return (GateOutcome::Allow, None);+ }+// "Always allow" allowlist shortcut — the user's persisted// `autonomy.auto_approve` set. Read from the live policy first so a// grant made earlier in this session (which writes config + reloads the