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(sandbox): pass workspace_dir to resolve_sandbox_policy in all call sites
Steven Enamakel7c19cea79820
diff --git a/crates/openhuman-core/src/flows/tinyflows/caps/code.rs b/crates/openhuman-core/src/flows/tinyflows/caps/code.rsindex 74122fe991..8e7587474d 100644--- a/crates/openhuman-core/src/flows/tinyflows/caps/code.rs+++ b/crates/openhuman-core/src/flows/tinyflows/caps/code.rs@@ -76,6 +76,7 @@ impl CodeRunner for OpenHumanCode {let policy = resolve_sandbox_policy(SandboxMode::Sandboxed,&self.config.action_dir,+ &self.config.workspace_dir,&self.config.runtime,false,);diff --git a/crates/openhuman-core/src/sandbox/schemas.rs b/crates/openhuman-core/src/sandbox/schemas.rsindex 39ba5bc8e4..e42ab709c4 100644--- a/crates/openhuman-core/src/sandbox/schemas.rs+++ b/crates/openhuman-core/src/sandbox/schemas.rs@@ -195,6 +195,7 @@ fn handle_status(params: Map<String, Value>) -> ControllerFuture {let policy = super::ops::resolve_sandbox_policy(mode,&config.workspace_dir,+ &config.workspace_dir,&config.runtime,is_remote,);@@ -243,6 +244,7 @@ fn handle_resolve_policy(params: Map<String, Value>) -> ControllerFuture {let policy = super::ops::resolve_sandbox_policy(mode,&config.action_dir,+ &config.workspace_dir,&config.runtime,is_remote,);diff --git a/crates/openhuman-core/src/tools/impl/system/node_exec.rs b/crates/openhuman-core/src/tools/impl/system/node_exec.rsindex f1044863e6..22c1f743aa 100644--- a/crates/openhuman-core/src/tools/impl/system/node_exec.rs+++ b/crates/openhuman-core/src/tools/impl/system/node_exec.rs@@ -496,6 +496,7 @@ impl NodeExecTool {let policy = sandbox::resolve_sandbox_policy(crate::agent::harness::definition::SandboxMode::Sandboxed,&security.action_dir,+ &security.workspace_dir,&runtime_cfg,false,);diff --git a/crates/openhuman-core/src/tools/impl/system/npm_exec.rs b/crates/openhuman-core/src/tools/impl/system/npm_exec.rsindex 9aae24e92d..c2eb43ccfd 100644--- a/crates/openhuman-core/src/tools/impl/system/npm_exec.rs+++ b/crates/openhuman-core/src/tools/impl/system/npm_exec.rs@@ -419,6 +419,7 @@ impl NpmExecTool {let policy = sandbox::resolve_sandbox_policy(crate::agent::harness::definition::SandboxMode::Sandboxed,&security.action_dir,+ &security.workspace_dir,&runtime_cfg,false,);diff --git a/crates/openhuman-core/src/tools/impl/system/python_exec.rs b/crates/openhuman-core/src/tools/impl/system/python_exec.rsindex 6fbf1e71a6..bb3bc01130 100644--- a/crates/openhuman-core/src/tools/impl/system/python_exec.rs+++ b/crates/openhuman-core/src/tools/impl/system/python_exec.rs@@ -431,6 +431,7 @@ impl PythonExecTool {let policy = sandbox::resolve_sandbox_policy(crate::agent::harness::definition::SandboxMode::Sandboxed,&security.action_dir,+ &security.workspace_dir,&runtime_cfg,false,);diff --git a/crates/openhuman-core/src/tools/impl/system/shell.rs b/crates/openhuman-core/src/tools/impl/system/shell.rsindex ae0954f306..9677aed955 100644--- a/crates/openhuman-core/src/tools/impl/system/shell.rs+++ b/crates/openhuman-core/src/tools/impl/system/shell.rs@@ -470,6 +470,7 @@ impl ShellTool {let policy = sandbox::resolve_sandbox_policy(crate::agent::harness::definition::SandboxMode::Sandboxed,action_dir,+ &self.security.workspace_dir,&config,false,);