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
chore: reformat test call sites and drop stray blank line
Steven Enamakelf94a8d91c937
diff --git a/crates/openhuman-core/src/agent/tinyagents/middleware/repeated_failure.rs b/crates/openhuman-core/src/agent/tinyagents/middleware/repeated_failure.rsindex 0d6b00c769..1127195687 100644--- a/crates/openhuman-core/src/agent/tinyagents/middleware/repeated_failure.rs+++ b/crates/openhuman-core/src/agent/tinyagents/middleware/repeated_failure.rs@@ -100,7 +100,6 @@ impl RepeatedToolFailureMiddleware {pub(crate) fn nudge_injector(&self) -> EphemeralInstructionMiddleware {self.owner.nudge_injector()}-}struct HostFailurePolicy {diff --git a/crates/openhuman-core/src/agent/tinyagents/middleware_command_exit_failure_tests.rs b/crates/openhuman-core/src/agent/tinyagents/middleware_command_exit_failure_tests.rsindex 91517db60e..e6ca8a67c8 100644--- a/crates/openhuman-core/src/agent/tinyagents/middleware_command_exit_failure_tests.rs+++ b/crates/openhuman-core/src/agent/tinyagents/middleware_command_exit_failure_tests.rs@@ -127,7 +127,14 @@ async fn an_identical_failing_command_repeated_unchanged_still_halts() {let mut context = ctx();let report = tinytools::render_command_failure(Some(2), "", "make: *** No rule to make target");for id in ["make-1", "make-2", "make-3", "make-4"] {- run_shell(&mw, &mut context, id, "make build", failing_result("shell", &report)).await;+ run_shell(+ &mw,+ &mut context,+ id,+ "make build",+ failing_result("shell", &report),+ )+ .await;}assert_eq!(drain_pause_count(&handle), 1);}diff --git a/crates/openhuman-core/src/agent/tinyagents/middleware_failure_policy_class_tests.rs b/crates/openhuman-core/src/agent/tinyagents/middleware_failure_policy_class_tests.rsindex 9cf5d200e4..839464fc8c 100644--- a/crates/openhuman-core/src/agent/tinyagents/middleware_failure_policy_class_tests.rs+++ b/crates/openhuman-core/src/agent/tinyagents/middleware_failure_policy_class_tests.rs@@ -338,7 +338,15 @@ async fn a_failed_browser_task_nudges_toward_its_hint_then_stops_on_a_repeat() {);let args =serde_json::json!({"action": "task", "goal": "book it", "url": "https://shop.test/"});- run_call(&mw, &mut context, "task-1", "browser", args.clone(), Err(&error)).await;+ run_call(+ &mw,+ &mut context,+ "task-1",+ "browser",+ args.clone(),+ Err(&error),+ )+ .await;assert_eq!(drain_pause_count(&handle), 0);let nudges = drain_nudge_messages(&mw, &mut context).await;assert_eq!(nudges.len(), 1, "{nudges:?}");diff --git a/crates/openhuman-core/src/agent/tinyagents/middleware_loop_guard_tests.rs b/crates/openhuman-core/src/agent/tinyagents/middleware_loop_guard_tests.rsindex 2c0726d5ca..e8a94a9021 100644--- a/crates/openhuman-core/src/agent/tinyagents/middleware_loop_guard_tests.rs+++ b/crates/openhuman-core/src/agent/tinyagents/middleware_loop_guard_tests.rs@@ -306,18 +306,28 @@ async fn repeated_tool_failure_nudges_change_of_strategy_before_the_halt() {let mut context = ctx();// First identical failure: not a loop yet — no steering.let mut r = failing_result("read_file", "file not found");- mw.after_tool(&mut context, &(), &invocation("read-1", "read_file"), &mut r)- .await- .unwrap();+ mw.after_tool(+ &mut context,+ &(),+ &invocation("read-1", "read_file"),+ &mut r,+ )+ .await+ .unwrap();assert!(handle.drain().is_empty(),"a single failure is never a loop");// Second identical failure: the nudge fires, still no halt.let mut r = failing_result("read_file", "file not found");- mw.after_tool(&mut context, &(), &invocation("read-2", "read_file"), &mut r)- .await- .unwrap();+ mw.after_tool(+ &mut context,+ &(),+ &invocation("read-2", "read_file"),+ &mut r,+ )+ .await+ .unwrap();let nudges = drain_nudge_messages(&mw, &mut context).await;assert_eq!(nudges.len(),