Skip to content

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

fix(orchestration): propagate already_finished when cancelling subagent

Steven Enamakel1b68d041ec87
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 7b6212b3d3..a15e89096d 100644
--- a/crates/openhuman-core/src/agent/orchestration/running_subagents/cancel.rs
+++ b/crates/openhuman-core/src/agent/orchestration/running_subagents/cancel.rs
@@ -110,7 +110,7 @@ pub(crate) fn cancel_by_task_with_workspace(
subagent_session_id: Some(selected.subagent_session_id),
workspace_dir: selected.workspace_dir,
parent_thread_id: selected.parent_thread_id,
- already_finished: None,
+ already_finished: selected.already_finished,
driver_managed: true,
})
}