Skip to content

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

fix(sandbox): use constant for unsupported backend name

Steven Enamakele8511ba03b1c
diff --git a/crates/openhuman-core/src/sandbox/ops.rs b/crates/openhuman-core/src/sandbox/ops.rs
index 9be378fab8..226fd1008e 100644
--- a/crates/openhuman-core/src/sandbox/ops.rs
+++ b/crates/openhuman-core/src/sandbox/ops.rs
@@ -113,7 +113,7 @@ pub fn resolve_sandbox_policy(
/// passes unnoticed. That is exactly how the original defect survived.
pub(crate) fn local_status_for_backend(backend_name: &str) -> SandboxStatus {
if backend_name == cwd_jail::NOOP_BACKEND_NAME
- || backend_name == "unsupported"
+ || backend_name == cwd_jail::detect::UNSUPPORTED_BACKEND_NAME
{
// The noop backend enforces nothing — it spawns the command as-is. The
// `unsupported` backend is what `pick_backend` answers when no OS jail