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
style: format local-only search guard
Steven Enamakelcfb3ab64b91a
diff --git a/crates/openhuman-core/src/search/tools.rs b/crates/openhuman-core/src/search/tools.rsindex 0023e2d711..36792f8586 100644--- a/crates/openhuman-core/src/search/tools.rs+++ b/crates/openhuman-core/src/search/tools.rs@@ -181,15 +181,13 @@ impl Tool for TinySearchTool {}fn local_only_search_block(tool_name: &str) -> Option<String> {- crate::security::egress::local_only_tool_block(- &crate::security::egress::EgressDescriptor::new(- "tinysearch",- tool_name,- true,- crate::security::egress::EgressReason::ToolCall,- vec![crate::security::egress::DataKind::ToolArguments],- ),- )+ crate::security::egress::local_only_tool_block(&crate::security::egress::EgressDescriptor::new(+ "tinysearch",+ tool_name,+ true,+ crate::security::egress::EgressReason::ToolCall,+ vec![crate::security::egress::DataKind::ToolArguments],+ ))}/// Build the agent's search tools from config. Empty when search is off or nodiff --git a/crates/openhuman-core/src/search/tools_tests.rs b/crates/openhuman-core/src/search/tools_tests.rsindex 752e06d733..8cdc4e17df 100644--- a/crates/openhuman-core/src/search/tools_tests.rs+++ b/crates/openhuman-core/src/search/tools_tests.rs@@ -85,9 +85,8 @@ fn recorded_tools_keep_their_declaration() {#[test]fn local_only_blocks_external_search_tool_dispatch() {- let _privacy = crate::security::live_policy::test_privacy_scope(- crate::config::PrivacyMode::LocalOnly,- );+ let _privacy =+ crate::security::live_policy::test_privacy_scope(crate::config::PrivacyMode::LocalOnly);let message = local_only_search_block("web_search_tool").expect("search requests must be blocked in LocalOnly mode");@@ -96,9 +95,8 @@ fn local_only_blocks_external_search_tool_dispatch() {#[test]fn standard_privacy_mode_allows_search_tool_dispatch() {- let _privacy = crate::security::live_policy::test_privacy_scope(- crate::config::PrivacyMode::Standard,- );+ let _privacy =+ crate::security::live_policy::test_privacy_scope(crate::config::PrivacyMode::Standard);assert!(local_only_search_block("web_search_tool").is_none());}