{"record":{"id":"baa300ea842c972b","repo":"tinyhumansai/openhuman","slug":"wait-teammate-worker-failed-e","errorCode":null,"errorMessage":"wait teammate worker failed: {e}","messagePattern":"wait teammate worker failed: (.+?)","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"src/openhuman/agent/orchestration/agent_teams/runtime.rs","lineNumber":294,"sourceCode":"                            (\"teamId\".to_string(), team_id),\n                            (\"memberId\".to_string(), member_id),\n                            (\"taskId\".to_string(), task_id),\n                            (\"teamRunId\".to_string(), run_id),\n                        ]\n                        .into_iter()\n                        .collect(),\n                        ..Default::default()\n                    })\n                    .await\n                    .map_err(|e| anyhow!(\"spawn teammate worker failed: {e}\"))?;\n\n                let wait = session\n                    .wait_agents(WaitAgentOptions {\n                        orchestration_ids: vec![resp.orchestration_id.clone()],\n                        timeout_ms: None,\n                    })\n                    .await\n                    .map_err(|e| anyhow!(\"wait teammate worker failed: {e}\"))?;\n\n                let snapshot = wait\n                    .agents\n                    .into_iter()\n                    .find(|a| a.orchestration_id == resp.orchestration_id)\n                    .ok_or_else(|| anyhow!(\"worker snapshot missing after wait\"))?;\n\n                Ok(match snapshot.status {\n                    AgentStatus::Completed => super::graph::MemberOutcome::Completed {\n                        output: snapshot.result_summary.unwrap_or_default(),\n                    },\n                    AgentStatus::Failed | AgentStatus::Cancelled | AgentStatus::Closed => {\n                        super::graph::MemberOutcome::Failed {\n                            reason: snapshot\n                                .error\n                                .unwrap_or_else(|| \"worker ended without completing\".to_string()),\n                        }\n                    }","sourceCodeStart":276,"sourceCodeEnd":312,"githubUrl":"https://github.com/tinyhumansai/openhuman/blob/749120085864ce16e0f273c7b86fac7740b39c5b/src/openhuman/agent/orchestration/agent_teams/runtime.rs#L276-L312","documentation":"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.","triggerScenarios":"Thrown at src/openhuman/agent/orchestration/agent_teams/runtime.rs:294 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","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)"],"exampleFix":null,"handlingStrategy":"retry","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"749120085864ce16e0f273c7b86fac7740b39c5b","analyzedAt":"2026-08-17T21:21:45.363Z","contentChangedAt":null,"schemaVersion":2},"datasetVersion":"2026-09-14T05:17:10.506Z"}