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
refactor(agent): remove redundant failure cause assignment
Steven Enamakel68fe9205d6a2
diff --git a/crates/openhuman-core/src/agent/tinyagents/middleware/repeated_failure.rs b/crates/openhuman-core/src/agent/tinyagents/middleware/repeated_failure.rsindex 0bd5e62aa5..0d93f379b6 100644--- a/crates/openhuman-core/src/agent/tinyagents/middleware/repeated_failure.rs+++ b/crates/openhuman-core/src/agent/tinyagents/middleware/repeated_failure.rs@@ -302,11 +302,8 @@ impl Middleware<(), crate::agent::tinyagents::host::OpenHumanRunContext>&self,_ctx: &mut RunContext<crate::agent::tinyagents::host::OpenHumanRunContext>,_state: &(),- run: &mut tinyagents_harness::middleware::AgentRun,+ _run: &mut tinyagents_harness::middleware::AgentRun,) -> TaResult<()> {- if run.failure_cause.is_none() {- run.failure_cause = self.stop.current_classified_cause();- }self.stop.finish_run();Ok(())}diff --git a/crates/openhuman-core/src/agent/turn_projection.rs b/crates/openhuman-core/src/agent/turn_projection.rsindex ea4becea26..e498d1bcdd 100644--- a/crates/openhuman-core/src/agent/turn_projection.rs+++ b/crates/openhuman-core/src/agent/turn_projection.rs@@ -1,8 +1,8 @@//! Host projection of harness turn-stop facts.//!-//! The vocabulary (`TurnStop`, `TurnStopKind`, the breaker-note parsing) is-//! owned by `tinyagents_harness::turn_stop`. OpenHuman keeps only the product-//! mapping of a stop note without a failure class to its stop-reason key+//! The typed stop vocabulary and classified causes are owned by+//! `tinyagents_harness::turn_stop`. OpenHuman keeps only the product mapping+//! of a stop note without typed classification to its stop-reason key//! ([`StopReasonKind`](crate::agent::session_host::stop_summary::StopReasonKind)).use crate::agent::tinyagents::host::LastTurnUsage;