tinyhumansai/openhuman · error
spawn teammate worker failed: {e}
Error message
spawn teammate worker failed: {e} What it means
session.spawn_agent failed while launching a teammate's worker sub-agent (SpawnAgentRequest with teamId/memberId/taskId/teamRunId metadata). The {e} is the tinyagents orchestration error — provider unreachable, agent definition missing, or harness failure at spawn. The team member's run cannot start, so this error propagates out of the member-run driver.
Source
Thrown at src/openhuman/agent/orchestration/agent_teams/runtime.rs:286
let run_id = run_id.clone();
async move {
let resp = session
.spawn_agent(SpawnAgentRequest {
agent_id,
prompt,
model,
metadata: [
("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(),View on GitHub (pinned to 7491200858)
Solutions
- Inspect the inner orchestration error to identify spawn-stage vs provider-stage failure
- Verify the member's agent definition resolves and its model/provider are configured
- Retry the member run once the underlying cause (provider outage, config) is fixed
Defensive patterns
Strategy: retry
When it happens
Trigger: Thrown at src/openhuman/agent/orchestration/agent_teams/runtime.rs:286 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/e977a6c20c308909.
Report an issue: GitHub.