Skip to content

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

test(spawn_subagent): assert unknown agent id reaches scoped lookup

Steven Enamakel7fcab4bd0a0d
diff --git a/crates/openhuman-core/src/agent/orchestration/tools/spawn_subagent_tests.rs b/crates/openhuman-core/src/agent/orchestration/tools/spawn_subagent_tests.rs
index 146f23c0cd..500abf0d24 100644
--- a/crates/openhuman-core/src/agent/orchestration/tools/spawn_subagent_tests.rs
+++ b/crates/openhuman-core/src/agent/orchestration/tools/spawn_subagent_tests.rs
@@ -104,6 +104,10 @@ async fn unknown_agent_id_lists_available() {
.await;
assert!(result.is_error);
let out = result.output();
+ assert!(
+ out.contains("unknown agent_id 'totally_made_up'"),
+ "the request must reach scoped registry lookup: {out}"
+ );
// Should list at least one valid built-in.
assert!(out.contains("task_manager_agent"));
}