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
test(shell): cover explicit env forwarding into sandbox
Steven Enamakel21a0bbe1662e
diff --git a/crates/openhuman-core/src/tools/impl/system/shell_tests_platform_tests.rs b/crates/openhuman-core/src/tools/impl/system/shell_tests_platform_tests.rsindex 286e5f5e64..8037b2875a 100644--- a/crates/openhuman-core/src/tools/impl/system/shell_tests_platform_tests.rs+++ b/crates/openhuman-core/src/tools/impl/system/shell_tests_platform_tests.rs@@ -130,6 +130,13 @@ fn the_container_environment_forwards_explicit_turn_variables() {assert_eq!(env.get("WORKER_LABEL").map(String::as_str), Some("test"));assert!(!env.contains_key("PATH"));assert_eq!(env.get("PYTHONUTF8").map(String::as_str), Some("1"));++ let mut sandbox = HashMap::<OsString, OsString>::new();+ super::super::super::shell_support::extend_explicit_environment(&mut sandbox, Some(&explicit));+ assert_eq!(+ sandbox.get(OsString::from("TURN_OWNER").as_os_str()),+ Some(&OsString::from("isolated"))+ );}#[test]