Skip to content

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

fix(test): replace empty-filter hack with empty HashSet\n\nThe test was using a convoluted filter expression that always produced an empty set to reset the visible tool names. Replacing it with a direct empty HashSet makes the intent clearer and removes unnecessary complexity.\n\nAuto-committed-on: dragonfly\n

Steven Enamakel7d1f8bb1a198
diff --git a/src/openhuman/agent/harness/session/tests.rs b/src/openhuman/agent/harness/session/tests.rs
index a09238f4e4..d38748dcd4 100644
--- a/src/openhuman/agent/harness/session/tests.rs
+++ b/src/openhuman/agent/harness/session/tests.rs
@@ -1858,12 +1858,7 @@ fn hide_tools_seeds_allowlist_when_no_filter_present() {
// Reset to the "all visible" sentinel so the no-filter seed path below is
// actually exercised, matching the historical precondition.
- agent.set_visible_tool_names(
- ["not_on_belt".to_string()]
- .into_iter()
- .filter(|_| false)
- .collect(),
- );
+ agent.set_visible_tool_names(std::collections::HashSet::new());
assert!(
agent.visible_tool_names_for_test().is_empty(),
"precondition: sentinel reset yields an empty visible-tool set"