{"record":{"id":"a075ccd1e6ac0a9f","repo":"tinyhumansai/openhuman","slug":"tinyagents-harness-run-failed-e","errorCode":null,"errorMessage":"tinyagents harness run failed: {e}","messagePattern":"tinyagents harness run failed: (.+?)","errorType":"exception","errorClass":"anyhow::Error","httpStatus":null,"severity":"error","filePath":"src/openhuman/agent/tinyagents/mod.rs","lineNumber":439,"sourceCode":"    let request_base_len = input.len();\n    // Box the (large) harness drive future — see `run_turn_via_tinyagents_shared`.\n    let run = match Box::pin(harness.invoke(&(), (), config, input)).await {\n        Ok(run) => run,\n        Err(e) => {\n            // #4469 item 3: recover from a poisoned slot instead of panicking.\n            // A thread that panicked mid-run while holding this mutex would\n            // otherwise turn every subsequent error-recovery read into a second\n            // panic, masking the original provider failure. `into_inner` yields\n            // the guarded value regardless of poison so we still re-surface the\n            // typed error.\n            if let Some(original) = error_slot\n                .lock()\n                .unwrap_or_else(std::sync::PoisonError::into_inner)\n                .take()\n            {\n                return Err(original);\n            }\n            return Err(anyhow::anyhow!(\"tinyagents harness run failed: {e}\"));\n        }\n    };\n\n    let text = run.text().unwrap_or_default();\n    let out_history = crate::openhuman::agent::message_convert::messages_to_history(&run.messages);\n    let conversation = crate::openhuman::agent::message_convert::messages_to_conversation(\n        crate::openhuman::agent::message_convert::messages_since_request(\n            &run.messages,\n            request_base_len,\n        ),\n    );\n    tracing::debug!(\n        request_base_len,\n        transcript_len = run.messages.len(),\n        persisted_messages = run.messages.len().saturating_sub(request_base_len),\n        \"[tinyagents] persisting post-request transcript (thin path; steer-safe boundary)\"\n    );\n","sourceCodeStart":421,"sourceCodeEnd":457,"githubUrl":"https://github.com/tinyhumansai/openhuman/blob/749120085864ce16e0f273c7b86fac7740b39c5b/src/openhuman/agent/tinyagents/mod.rs#L421-L457","documentation":"The boxed tinyagents harness invoke() for a turn failed before producing a run. The surrounding code (#4469 item 3) recovers from a poisoned error-recovery mutex via into_inner so a previously-panicked thread doesn't mask the original provider failure with a second panic — this wrap is the surfaced original harness error (provider unreachable, harness config invalid, etc.).","triggerScenarios":"Thrown at src/openhuman/agent/tinyagents/mod.rs:439 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Inspect the inner tinyagents error for the root cause (provider vs config vs harness)","Fix provider/model configuration and retry the turn","If a panic preceded it, check logs for the original panic site that poisoned the slot"],"exampleFix":null,"handlingStrategy":"try-catch","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-23T08:17:48.524Z"}