Skip to content

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

feat(subagent_host): add HostInFlightMap type alias

Steven Enamakelcf268f964991
diff --git a/crates/openhuman-core/src/agent/subagent_host/lifecycle_outcome.rs b/crates/openhuman-core/src/agent/subagent_host/lifecycle_outcome.rs
index 54cf9aeda4..094a136646 100644
--- a/crates/openhuman-core/src/agent/subagent_host/lifecycle_outcome.rs
+++ b/crates/openhuman-core/src/agent/subagent_host/lifecycle_outcome.rs
@@ -2,6 +2,9 @@
use super::*;
+/// The host's in-flight subagent runs of one agent context.
+pub(super) type HostInFlightMap = AsyncMutex<HashMap<HostLifecycleKey, Arc<HostInFlight>>>;
+
pub(super) fn host_outcome_to_neutral(
outcome: SubagentRunOutcome,
definition: &crate::agent_registry::host_definition::AgentDefinition,