Skip to content

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

test(security-gate): pass text by reference in screen_input test

Steven Enamakel96fd9184137c
diff --git a/crates/openhuman-core/src/agent/tinyagents/host/security_gate_screen_and_policy_tests.rs b/crates/openhuman-core/src/agent/tinyagents/host/security_gate_screen_and_policy_tests.rs
index 139e4450fc..4c0b6f20a1 100644
--- a/crates/openhuman-core/src/agent/tinyagents/host/security_gate_screen_and_policy_tests.rs
+++ b/crates/openhuman-core/src/agent/tinyagents/host/security_gate_screen_and_policy_tests.rs
@@ -200,7 +200,7 @@ async fn screen_input_redacts_credentials_without_changing_screening_policy() {
.collect();
let text = format!("credential={secret}");
let outcome = gate
- .screen_input(text, ContentOrigin::User)
+ .screen_input(&text, ContentOrigin::User)
.await
.unwrap();
let ScreenOutcome::Redacted(redacted) = outcome else {