Skip to content

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

chore(agent): gate finish_spawn_registration behind cfg(test)

Steven Enamakelce7a9c2f94fa
diff --git a/crates/openhuman-core/src/agent/orchestration/tools/spawn_async_subagent.rs b/crates/openhuman-core/src/agent/orchestration/tools/spawn_async_subagent.rs
index 9748595e3d..be9b76fb2d 100644
--- a/crates/openhuman-core/src/agent/orchestration/tools/spawn_async_subagent.rs
+++ b/crates/openhuman-core/src/agent/orchestration/tools/spawn_async_subagent.rs
@@ -373,6 +373,7 @@ include!("spawn_async_subagent_args.rs");
include!("spawn_async_subagent_results.rs");
/// Settle a late registration refusal before an accepted response is built.
+#[cfg(test)]
fn finish_spawn_registration(
registration: Result<(), running_subagents::RegistrationError>,
store: &SubagentSessionStore,