tinyhumansai/openhuman · error
wait teammate worker failed: {e}
Error message
wait teammate worker failed: {e} What it means
wait_agents (waiting on the spawned teammate worker's orchestration_id, no timeout) failed while awaiting the member's completion. Distinct from the worker itself failing: the wait/observation machinery errored (session closed, orchestration id invalid, harness shutdown). The worker may still have run; the error prevents collecting its outcome.
Source
Thrown at src/openhuman/agent/orchestration/agent_teams/runtime.rs:294
("teamId".to_string(), team_id),
("memberId".to_string(), member_id),
("taskId".to_string(), task_id),
("teamRunId".to_string(), run_id),
]
.into_iter()
.collect(),
..Default::default()
})
.await
.map_err(|e| anyhow!("spawn teammate worker failed: {e}"))?;
let wait = session
.wait_agents(WaitAgentOptions {
orchestration_ids: vec![resp.orchestration_id.clone()],
timeout_ms: None,
})
.await
.map_err(|e| anyhow!("wait teammate worker failed: {e}"))?;
let snapshot = wait
.agents
.into_iter()
.find(|a| a.orchestration_id == resp.orchestration_id)
.ok_or_else(|| anyhow!("worker snapshot missing after wait"))?;
Ok(match snapshot.status {
AgentStatus::Completed => super::graph::MemberOutcome::Completed {
output: snapshot.result_summary.unwrap_or_default(),
},
AgentStatus::Failed | AgentStatus::Cancelled | AgentStatus::Closed => {
super::graph::MemberOutcome::Failed {
reason: snapshot
.error
.unwrap_or_else(|| "worker ended without completing".to_string()),
}
}View on GitHub (pinned to 7491200858)
Solutions
- Check whether the worker actually completed by inspecting its run/ledger records before retrying
- Verify the orchestration session stayed alive for the duration of the wait
- Retry the member run if the wait failure was transient (session hiccup)
Defensive patterns
Strategy: retry
When it happens
Trigger: Thrown at src/openhuman/agent/orchestration/agent_teams/runtime.rs:294 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of tinyhumansai/openhuman@7491200858 (2026-08-17).
Data as JSON: /api/errors/baa300ea842c972b.
Report an issue: GitHub.