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): tighten module-fault detection and fix python bootstrap check
Steven Enamakelc4f2f15428ac
diff --git a/crates/openhuman-core/src/agent/tinyagents/middleware/repeated_failure.rs b/crates/openhuman-core/src/agent/tinyagents/middleware/repeated_failure.rsindex fe7adfb92d..4243199771 100644--- a/crates/openhuman-core/src/agent/tinyagents/middleware/repeated_failure.rs+++ b/crates/openhuman-core/src/agent/tinyagents/middleware/repeated_failure.rs@@ -301,7 +301,9 @@ fn classified_recovery_policy(// so retrying the same tool cannot help. Steer the model off it once// rather than halting the run on the first call or spending a transient// budget on it (`restart the app to try again` read as recoverable).- if error.contains(crate::tools::status::MODULE_FAULT_MARKER) {+ if error.contains(crate::tools::status::MODULE_FAULT_MARKER)+ && error.contains("restart the app to try again")+ {return Some(("unavailable", 1));}// A tool-owned JSON error contract is less ambiguous than rendered prose.diff --git a/crates/openhuman-core/src/tools/impl/system/shell.rs b/crates/openhuman-core/src/tools/impl/system/shell.rsindex 9a1eb602d8..c2257d177d 100644--- a/crates/openhuman-core/src/tools/impl/system/shell.rs+++ b/crates/openhuman-core/src/tools/impl/system/shell.rs@@ -579,7 +579,7 @@ impl ShellTool {prepend_dirs.push(resolved.bin_dir);}Err(error) => {- if !self.python_bootstrap.as_ref().is_some_and(|bootstrap| bootstrap.is_enabled()) {+ if !bootstrap.config().runtime_python.enabled {tracing::debug!(error = %error,"[shell] python runtime disabled — running on the inherited PATH"diff --git a/crates/openhuman-core/src/tools/impl/system/shell_tests_runtime_and_sandbox_tests.rs b/crates/openhuman-core/src/tools/impl/system/shell_tests_runtime_and_sandbox_tests.rsindex 989f9d19e3..5d3e661a68 100644--- a/crates/openhuman-core/src/tools/impl/system/shell_tests_runtime_and_sandbox_tests.rs+++ b/crates/openhuman-core/src/tools/impl/system/shell_tests_runtime_and_sandbox_tests.rs@@ -107,12 +107,11 @@ async fn shell_keeps_inherited_path_when_python_runtime_is_unavailable() {.execute(json!({"command": "python3 -c 'print(1)' || echo no-host-python"})).await.unwrap();+ let output = result.output();assert!(- !result- .output()- .contains("Failed to resolve command runtime"),- "the command must run on the inherited PATH: {}",- result.output()+ !output.contains("Failed to resolve command runtime")+ && (output.contains('1') || output.contains("no-host-python")),+ "the command must run on the inherited PATH: {output}");}