Skip to content

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

fix(sandbox): handle live handle methods without modules feature

Steven Enamakela1df8ff26eea
diff --git a/crates/openhuman-core/src/sandbox/shell_live.rs b/crates/openhuman-core/src/sandbox/shell_live.rs
index e33afe61b1..6c16e3471d 100644
--- a/crates/openhuman-core/src/sandbox/shell_live.rs
+++ b/crates/openhuman-core/src/sandbox/shell_live.rs
@@ -65,6 +65,8 @@ impl LiveHandle {
Self::TinyBox(live) => live.read(wait).await,
#[cfg(test)]
Self::Fixture(live) => live.read(wait).await,
+ #[cfg(not(any(feature = "modules", test)))]
+ _ => anyhow::bail!("live process support requires the modules feature"),
}
}
@@ -76,6 +78,8 @@ impl LiveHandle {
Self::TinyBox(live) => live.released,
#[cfg(test)]
Self::Fixture(live) => live.finished(),
+ #[cfg(not(any(feature = "modules", test)))]
+ _ => true,
}
}
@@ -86,6 +90,8 @@ impl LiveHandle {
Self::TinyBox(live) => live.kill().await,
#[cfg(test)]
Self::Fixture(live) => live.kill().await,
+ #[cfg(not(any(feature = "modules", test)))]
+ _ => anyhow::bail!("live process support requires the modules feature"),
}
}
}