The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.
Rust agent-orchestrationai-agentsai-assistantdesktopllmlocal-firstmcppersonal-aiprivacyrustsecond-braintauri
fix(tinyagents): retry timed-out reads instead of ending the turn
Steven Enamakele5eabd124950
diff --git a/crates/openhuman-core/src/agent/tinyagents/harness_assembly.rs b/crates/openhuman-core/src/agent/tinyagents/harness_assembly.rsindex f84101fb0e..a39334613e 100644--- a/crates/openhuman-core/src/agent/tinyagents/harness_assembly.rs+++ b/crates/openhuman-core/src/agent/tinyagents/harness_assembly.rs@@ -372,12 +372,17 @@ pub(super) fn assemble_turn_harness(// error `REPEATED_TOOL_FAILURE_THRESHOLD` times in a row, so a deterministic// security/approval denial or terminal tool error surfaces its root cause// instead of burning the whole iteration budget (legacy ProgressGuard parity).+ // It reads each call's side effect from the registered tools' own+ // declarations, so a timed-out read is retried instead of ending the turn.let repeated_failure = handle.as_ref().map(|handle| {- Arc::new(middleware::RepeatedToolFailureMiddleware::new(- handle.clone(),- REPEATED_TOOL_FAILURE_THRESHOLD,- halt_summary.clone(),- ))+ Arc::new(+ middleware::RepeatedToolFailureMiddleware::new(+ handle.clone(),+ REPEATED_TOOL_FAILURE_THRESHOLD,+ halt_summary.clone(),+ )+ .with_tool_facts(middleware::tool_sets_lookup(tool_sets.clone())),+ )});if let Some(mw) = &repeated_failure {harness.push_middleware(mw.clone());