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/agent/orchestration/tools/spawn_async_subagent_execut

Steven Enamakelfca1e090fc14
diff --git a/crates/openhuman-core/src/agent/orchestration/tools/spawn_async_subagent_execute.rs b/crates/openhuman-core/src/agent/orchestration/tools/spawn_async_subagent_execute.rs
index 3772d693f5..ddb7554df8 100644
--- a/crates/openhuman-core/src/agent/orchestration/tools/spawn_async_subagent_execute.rs
+++ b/crates/openhuman-core/src/agent/orchestration/tools/spawn_async_subagent_execute.rs
@@ -115,7 +115,7 @@ impl SpawnAsyncSubagentTool {
workspace.root.clone()
})
.or_else(|| {
- crate::security::live_policy::effective().map(|policy| policy.action_dir.clone())
+ crate::security::live_policy::effective_in(&dispatch).map(|policy| policy.action_dir.clone())
});
let selector = SubagentSessionSelector {
parent_session: parent_session.clone(),