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(shell): let the timeout_secs schema accept the documented 0 (review)
M3gA-Mindfafa0a0a23e0
diff --git a/crates/openhuman-core/src/tools/impl/system/shell.rs b/crates/openhuman-core/src/tools/impl/system/shell.rsindex 172420bfad..26d0917ba8 100644--- a/crates/openhuman-core/src/tools/impl/system/shell.rs+++ b/crates/openhuman-core/src/tools/impl/system/shell.rs@@ -209,9 +209,9 @@ impl Tool for ShellTool {},"timeout_secs": {"type": "integer",- "minimum": 1,+ "minimum": 0,"maximum": 3600,- "description": "Optional wall-clock timeout (seconds, 1..=3600) for this command before it is killed. Use a larger value for long-running work (builds, test suites, solvers). Omitted or 0 runs without a deadline; larger values are capped at 3600."+ "description": "Optional wall-clock timeout (seconds, up to 3600) for this command before it is killed. Use a larger value for long-running work (builds, test suites, solvers). Omitted or 0 runs without a deadline."}},"required": ["command"]diff --git a/crates/openhuman-core/src/tools/impl/system/shell_tests_schema_and_env_tests.rs b/crates/openhuman-core/src/tools/impl/system/shell_tests_schema_and_env_tests.rsindex 83b9db21e8..bda9912511 100644--- a/crates/openhuman-core/src/tools/impl/system/shell_tests_schema_and_env_tests.rs+++ b/crates/openhuman-core/src/tools/impl/system/shell_tests_schema_and_env_tests.rs@@ -334,7 +334,9 @@ fn shell_schema_advertises_timeout_secs() {let schema = tool.parameters_schema();let timeout = &schema["properties"]["timeout_secs"];assert_eq!(timeout["type"], "integer");- assert_eq!(timeout["minimum"], 1);+ // 0 is the documented "no deadline" value, so a schema-validating+ // provider must accept it.+ assert_eq!(timeout["minimum"], 0);assert_eq!(timeout["maximum"], 3600);}