Skip to content

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

chore: files changed crates/openhuman-core/src/sandbox/native_jail.rs,crates/openhuman-core/src/sand

Steven Enamakel0fa25cc149b1
diff --git a/crates/openhuman-core/src/sandbox/native_jail.rs b/crates/openhuman-core/src/sandbox/native_jail.rs
index 9e39affae8..0e8e3701ad 100644
--- a/crates/openhuman-core/src/sandbox/native_jail.rs
+++ b/crates/openhuman-core/src/sandbox/native_jail.rs
@@ -3,7 +3,7 @@
use std::{
collections::{BTreeMap, HashMap},
ffi::{OsStr, OsString},
- path::{Path, PathBuf},
+ path::Path,
time::Duration,
};
@@ -177,7 +177,7 @@ fn execution_environment(
for name in super::ops::SANDBOX_ENV_PASSTHROUGH {
if let Some(value) = std::env::var_os(name) {
env.insert(
- name.to_owned(),
+ (*name).to_owned(),
value
.into_string()
.map_err(|_| anyhow::anyhow!("sandbox environment is not UTF-8"))?,
diff --git a/crates/openhuman-core/src/sandbox/native_jail_tests.rs b/crates/openhuman-core/src/sandbox/native_jail_tests.rs
index 2eb54430dc..b14dd0e53b 100644
--- a/crates/openhuman-core/src/sandbox/native_jail_tests.rs
+++ b/crates/openhuman-core/src/sandbox/native_jail_tests.rs
@@ -1,6 +1,7 @@
//! Host-side request mapping for TinyBox native-jail execution.
use super::*;
+use std::path::PathBuf;
#[test]
fn jail_status_is_ready_only_above_the_isolation_floor() {