Skip to content

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

fix(orchestration): use RunningSubagentMetadata in CallerWorkspace::admits

Steven Enamakel4b959d65b8fe
diff --git a/crates/openhuman-core/src/agent/orchestration/running_subagents/cancel.rs b/crates/openhuman-core/src/agent/orchestration/running_subagents/cancel.rs
index 132874622c..8e2a8b96d0 100644
--- a/crates/openhuman-core/src/agent/orchestration/running_subagents/cancel.rs
+++ b/crates/openhuman-core/src/agent/orchestration/running_subagents/cancel.rs
@@ -197,7 +197,7 @@ pub(crate) enum CallerWorkspace {
}
impl CallerWorkspace {
- pub(crate) fn admits(&self, metadata: &SubagentMetadata) -> bool {
+ pub(crate) fn admits(&self, metadata: &super::registry::RunningSubagentMetadata) -> bool {
match self {
Self::All => true,
Self::Only(dir) => metadata.workspace_dir == *dir,