Skip to content

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

test(subagent-host): match tool name without call syntax in prompt assertion

Steven Enamakelb575c5047c0b
diff --git a/crates/openhuman-core/src/agent/subagent_host/tool_prep_tests.rs b/crates/openhuman-core/src/agent/subagent_host/tool_prep_tests.rs
index 1709f95b6d..9466034919 100644
--- a/crates/openhuman-core/src/agent/subagent_host/tool_prep_tests.rs
+++ b/crates/openhuman-core/src/agent/subagent_host/tool_prep_tests.rs
@@ -112,7 +112,7 @@ fn dynamic_child_prompt_lists_text_dialect_catalogue_once() {
let prompt = load_prompt_source(&definition, &context).unwrap();
assert_eq!(
- prompt.matches("unique_probe_tool(").count(),
+ prompt.matches("unique_probe_tool").count(),
1,
"dynamic {format:?} prompt should render its tool catalogue once"
);