Skip to content

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

fix(subagent_host): annotate shared map types in lifecycle

Steven Enamakelbb1aab37b870
diff --git a/crates/openhuman-core/src/agent/subagent_host/lifecycle.rs b/crates/openhuman-core/src/agent/subagent_host/lifecycle.rs
index f93cae54fc..ad466a0dc9 100644
--- a/crates/openhuman-core/src/agent/subagent_host/lifecycle.rs
+++ b/crates/openhuman-core/src/agent/subagent_host/lifecycle.rs
@@ -335,8 +335,10 @@ impl OpenHumanSubagentHost {
continuation: bool,
checkpoint_dir: PathBuf,
) -> Result<SubagentRunOutcome, SubagentRunError> {
- let failures = Arc::new(Mutex::new(HashMap::new()));
- let host_outcome = Arc::new(Mutex::new(HashMap::new()));
+ let failures = Arc::new(Mutex::new(HashMap::<SubagentTaskKey, SubagentRunError>::new()));
+ let host_outcome = Arc::new(Mutex::new(
+ HashMap::<SubagentTaskKey, SubagentRunOutcome>::new(),
+ ));
let fallback_agent_id = self.definition.id.clone();
let request = HostRequest {
definition: self.definition,