Skip to content

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

refactor(orchestration): drop unused cancel_by_task_with_workspace wrapper

Steven Enamakel0f5b37d78fd3
diff --git a/crates/openhuman-core/src/agent/orchestration/running_subagents.rs b/crates/openhuman-core/src/agent/orchestration/running_subagents.rs
index d42ef30e0b..19bf8df6cf 100644
--- a/crates/openhuman-core/src/agent/orchestration/running_subagents.rs
+++ b/crates/openhuman-core/src/agent/orchestration/running_subagents.rs
@@ -67,8 +67,8 @@ pub(crate) use cancel::prune;
#[cfg(test)]
pub(crate) use cancel::{caller_workspace_in, CallerWorkspace};
pub(crate) use cancel::{
- cancel_all, cancel_by_session_in_workspace, cancel_by_task, cancel_by_task_with_workspace,
- cancel_for_thread, stop_for_thread, CancelledSubagent,
+ cancel_all, cancel_by_session_in_workspace, cancel_by_task,
+ cancel_by_task_with_workspace_reason, cancel_for_thread, stop_for_thread, CancelledSubagent,
};
pub(crate) use registry::admit_spawn;
#[cfg(test)]
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 0156913592..ae172cf417 100644
--- a/crates/openhuman-core/src/agent/orchestration/running_subagents/cancel.rs
+++ b/crates/openhuman-core/src/agent/orchestration/running_subagents/cancel.rs
@@ -48,20 +48,6 @@ pub(crate) fn cancel_by_task(
.flatten()
}
-/// Cancels a child by public task id using the authenticated active workspace
-/// when a non-SaaS transport has no bound `CoreContext`. In that case
-/// `slot_for` still resolves the same host-owned unscoped Jobs registry used by
-/// the unbound turn, while the workspace identifies its durable product row.
-pub(crate) fn cancel_by_task_with_workspace(
- ctx: &crate::core::runtime::DispatchCtx,
- task_id: &str,
- fallback_workspace: Option<&Path>,
-) -> Option<CancelledSubagent> {
- cancel_by_task_with_workspace_reason(ctx, task_id, fallback_workspace, None)
- .ok()
- .flatten()
-}
-
/// Cancel with an optional user-provided reason for the driver-owned
/// completion callback. Store failures are returned so the RPC does not report
/// an unknown task when its durable selector could not be read.