Skip to content

The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.

test(tinyagents): cover missing executable recovery for shell

Steven Enamakel037705462bb2
diff --git a/crates/openhuman-core/src/agent/tinyagents/middleware_failure_effect_tests.rs b/crates/openhuman-core/src/agent/tinyagents/middleware_failure_effect_tests.rs
index 3968430678..590bd05323 100644
--- a/crates/openhuman-core/src/agent/tinyagents/middleware_failure_effect_tests.rs
+++ b/crates/openhuman-core/src/agent/tinyagents/middleware_failure_effect_tests.rs
@@ -230,9 +230,13 @@ fn a_missing_shell_command_gets_one_correction() {
recovery_policy("shell", "bash: jq: command not found", false),
Some(("missing_app", 1))
);
- // Other tools keep the zero-retry `unsupported` verdict.
assert_eq!(
recovery_policy("shell", "executable not found", false),
+ Some(("missing_app", 1))
+ );
+ // Other tools keep the zero-retry `unsupported` verdict.
+ assert_eq!(
+ recovery_policy("browser_open", "executable not found", false),
Some(("unsupported", 0))
);
}