Skip to content

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

feat(security): gate tool calls through approval intercept

Steven Enamakele36055f5f58e
diff --git a/crates/openhuman-core/src/channels/runtime/dispatch/processor/turn.rs b/crates/openhuman-core/src/channels/runtime/dispatch/processor/turn.rs
index cb7dac993a..e5aacadd50 100644
--- a/crates/openhuman-core/src/channels/runtime/dispatch/processor/turn.rs
+++ b/crates/openhuman-core/src/channels/runtime/dispatch/processor/turn.rs
@@ -344,7 +344,7 @@ pub(crate) async fn process_channel_runtime_message(
sender: Some(msg.sender.clone()),
reply_target: msg.reply_target.clone(),
message_id: msg.id.clone(),
- history_key: None,
+ history_key: Some(history_key.clone()),
};
let turn_request = AgentTurnRequest {
diff --git a/crates/openhuman-core/src/security/approval/gate_intercept.rs b/crates/openhuman-core/src/security/approval/gate_intercept.rs
index 245a14d869..29b0b201f6 100644
--- a/crates/openhuman-core/src/security/approval/gate_intercept.rs
+++ b/crates/openhuman-core/src/security/approval/gate_intercept.rs
@@ -237,7 +237,7 @@ impl ApprovalGate {
sender,
reply_target,
message_id,
- ..,
+ ..
} => {
tracing::info!(
tool = tool_name,
diff --git a/vendor/tinyagents b/vendor/tinyagents
index bac517d52e..3ac204640f 160000
--- a/vendor/tinyagents
+++ b/vendor/tinyagents
@@ -1 +1 @@
-Subproject commit bac517d52e61bfefe16750511ab8a1f67061647a
+Subproject commit 3ac204640f4c134b65065883c9f6315238ee371c