Skip to content

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

fix(security): require approval for shell commands with chained operators

Steven Enamakelbf64f5d2d35e
diff --git a/crates/openhuman-core/src/security/approval/gate.rs b/crates/openhuman-core/src/security/approval/gate.rs
index ca5825ed94..288d2bf4cb 100644
--- a/crates/openhuman-core/src/security/approval/gate.rs
+++ b/crates/openhuman-core/src/security/approval/gate.rs
@@ -145,7 +145,7 @@ pub fn is_unanswered_approval_reason(reason: &str) -> bool {
/// (inside an [`ApprovalTurnContext`]); the turn's run context carries it to
/// the gate and to the tools that read it. Absent for non-chat callers (CLI,
/// detached sub-agents) — their approvals are simply not chat-routable.
-#[derive(Clone, Debug)]
+#[derive(Clone, Debug, PartialEq, Eq)]
pub struct ApprovalChatContext {
pub thread_id: String,
pub client_id: String,