Skip to content

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

chore(mcp): gate directory_pending behind non-mcp feature

Steven Enamakelee29ab1785f3
diff --git a/crates/openhuman-core/src/mcp/host_cleanup.rs b/crates/openhuman-core/src/mcp/host_cleanup.rs
index ebb3e37375..3e9ff51749 100644
--- a/crates/openhuman-core/src/mcp/host_cleanup.rs
+++ b/crates/openhuman-core/src/mcp/host_cleanup.rs
@@ -20,6 +20,7 @@ pub(super) struct CleanupReservation {
pub(super) static CLEANUP_RESERVATIONS: OnceLock<Mutex<HashMap<PathBuf, Arc<CleanupReservation>>>> =
OnceLock::new();
+#[cfg(not(feature = "mcp"))]
pub(super) fn directory_pending(workspace: &std::path::Path, agent_id: &str) -> bool {
CLEANUP_RESERVATIONS.get().is_some_and(|reservations| {
reservations