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/mcp/host_sandbox.rs

Steven Enamakel81ecec5008f4
diff --git a/crates/openhuman-core/src/mcp/host_sandbox.rs b/crates/openhuman-core/src/mcp/host_sandbox.rs
index e86fc7955f..8005f6911e 100644
--- a/crates/openhuman-core/src/mcp/host_sandbox.rs
+++ b/crates/openhuman-core/src/mcp/host_sandbox.rs
@@ -159,11 +159,9 @@ fn admit_all(raw: &[String], home: Option<&Path>) -> Vec<String> {
/// Whether granting `path` would expose a credential store under `home`.
fn exposes_credentials(path: &Path, home: Option<&Path>) -> bool {
let Some(home) = home else { return false };
- path == home
- || ["", ".ssh", ".gnupg", ".aws", ".azure", ".kube"]
- .iter()
- .skip(1)
- .any(|dir| home.join(dir).starts_with(path))
+ [".ssh", ".gnupg", ".aws", ".azure", ".kube"]
+ .iter()
+ .any(|dir| home.join(dir).starts_with(path))
}
#[cfg(feature = "modules")]