Skip to content

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

refactor(running_subagents): pass owners by value to resolvers

Steven Enamakel8b58020c869b
diff --git a/crates/openhuman-core/src/agent/orchestration/running_subagents/resolve.rs b/crates/openhuman-core/src/agent/orchestration/running_subagents/resolve.rs
index ca37b4c580..38cefc6782 100644
--- a/crates/openhuman-core/src/agent/orchestration/running_subagents/resolve.rs
+++ b/crates/openhuman-core/src/agent/orchestration/running_subagents/resolve.rs
@@ -45,7 +45,7 @@ pub(crate) fn task_id_for_session_in_workspace(
registry(),
store.as_ref(),
subagent_session_id,
- &owners,
+ owners,
)?;
let task_id = resolved.task_id;
log::debug!(
@@ -83,7 +83,7 @@ pub(crate) fn resume_ref_for_task_in_workspace(
let store = scoped_task_store(ctx, workspace_dir)?;
let owners = DetachedSubagentOwners::new(&owner, parent_session);
let reference =
- resolve_detached_or_durable_with_owners(registry(), store.as_ref(), task_id, &owners)?;
+ resolve_detached_or_durable_with_owners(registry(), store.as_ref(), task_id, owners)?;
log::debug!(
"[running_subagents] resolved resume ref from task store task_id={} workspace_dir={}",
task_id,
diff --git a/crates/openhuman-core/src/agent/orchestration/running_subagents/wait.rs b/crates/openhuman-core/src/agent/orchestration/running_subagents/wait.rs
index 7b28072546..a916c533ed 100644
--- a/crates/openhuman-core/src/agent/orchestration/running_subagents/wait.rs
+++ b/crates/openhuman-core/src/agent/orchestration/running_subagents/wait.rs
@@ -34,7 +34,7 @@ pub(crate) async fn wait(
store.as_ref(),
&super::super::background_completions::router_for_workspace_ctx(ctx, &workspace_dir),
task_id,
- &owners,
+ owners,
timeout,
)
.await
@@ -56,7 +56,7 @@ pub(crate) async fn wait_in_workspace(
store.as_ref(),
&super::super::background_completions::router_for_workspace_ctx(ctx, workspace_dir),
task_id,
- &owners,
+ owners,
timeout,
)
.await