Skip to content

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

fix(agent): clone lifecycle key before filtering to avoid move error

Steven Enamakel2ec73cb3b772
diff --git a/crates/openhuman-core/src/agent/orchestration/subagent_sessions/ops.rs b/crates/openhuman-core/src/agent/orchestration/subagent_sessions/ops.rs
index 869911a044..0730500967 100644
--- a/crates/openhuman-core/src/agent/orchestration/subagent_sessions/ops.rs
+++ b/crates/openhuman-core/src/agent/orchestration/subagent_sessions/ops.rs
@@ -97,6 +97,7 @@ pub fn cancel_driver_job_for_session(
};
let key = session
.lifecycle_key
+ .clone()
.filter(|key| key.task_id == task_id && key.thread_id.as_deref() == parent_thread_id)
.or_else(|| {
resolve_lifecycle_key(