The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.
Rust agent-orchestrationai-agentsai-assistantdesktopllmlocal-firstmcppersonal-aiprivacyrustsecond-braintauri
chore: files changed crates/openhuman-core/src/mcp/host_sandbox.rs,tests/storage_desktop_upgrade_e2e
Steven Enamakeld078f28018c5
diff --git a/crates/openhuman-core/src/mcp/host_sandbox.rs b/crates/openhuman-core/src/mcp/host_sandbox.rsindex 8005f6911e..6fbd77624f 100644--- a/crates/openhuman-core/src/mcp/host_sandbox.rs+++ b/crates/openhuman-core/src/mcp/host_sandbox.rs@@ -143,8 +143,13 @@ fn admit_all(raw: &[String], home: Option<&Path>) -> Vec<String> {if !expanded.is_absolute() || !expanded.exists() {continue;}- let path = expanded.canonicalize().unwrap_or(expanded);- if SecurityPolicy::is_always_forbidden(&path) || exposes_credentials(&path, home) {+ // Check the spelled path as well as the resolved one: on macOS `/etc`+ // resolves to `/private/etc`, which the prefix floor does not name.+ let path = expanded.canonicalize().unwrap_or_else(|_| expanded.clone());+ if SecurityPolicy::is_always_forbidden(&expanded)+ || SecurityPolicy::is_always_forbidden(&path)+ || exposes_credentials(&path, home)+ {tracing::warn!("[mcp] refused a stdio sandbox grant: host floor forbids it");continue;}diff --git a/tests/storage_desktop_upgrade_e2e.rs b/tests/storage_desktop_upgrade_e2e.rsindex 8766307e87..74ef7095f5 100644--- a/tests/storage_desktop_upgrade_e2e.rs+++ b/tests/storage_desktop_upgrade_e2e.rs@@ -27,7 +27,7 @@ use openhuman_core::storage::{rusqlite, DocumentStoreExt, Scope, ScopedStorage,use sha2::Digest;use tinyagents_session::transcript::{session_stem, SessionRef, TranscriptMessage, TranscriptMeta};use tinyagents_session::turn_state::TurnState;-use tinystoragedrivers_core::{Capability, Query};+use tinystoragedrivers_core::Query;// The classic-transcript fixture writer, shared with the core's unit tests.#[path = "../crates/openhuman-core/src/util/classic_transcript_fixture.rs"]