Skip to content

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

refactor(subagent_sessions): drop unused cancel_driver_job_for_session re-export

Steven Enamakel36019b773927
diff --git a/crates/openhuman-core/src/agent/orchestration/subagent_sessions/mod.rs b/crates/openhuman-core/src/agent/orchestration/subagent_sessions/mod.rs
index 7bd80443a4..891e53e881 100644
--- a/crates/openhuman-core/src/agent/orchestration/subagent_sessions/mod.rs
+++ b/crates/openhuman-core/src/agent/orchestration/subagent_sessions/mod.rs
@@ -6,7 +6,7 @@ mod types;
pub use ops::{
action_root_key, cancel_driver_job_by_task, cancel_driver_job_for_observed_session,
- cancel_driver_job_for_session, cancel_driver_jobs_for_thread, close_if_current, find_reusable,
+ cancel_driver_jobs_for_thread, close_if_current, find_reusable,
list_for_parent, mark_driver_pause_cancelled, mark_failed, mark_finished, normalize_task_key,
resolve_lifecycle_key, reuse_decision, task_title_from_prompt, upsert_running,
DriverTaskCancellation,
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 22a8527d8c..5835c702f2 100644
--- a/crates/openhuman-core/src/agent/orchestration/subagent_sessions/ops.rs
+++ b/crates/openhuman-core/src/agent/orchestration/subagent_sessions/ops.rs
@@ -18,8 +18,8 @@ mod driver;
use driver::record_cancel_reason;
pub use driver::{
cancel_driver_job_by_task, cancel_driver_job_for_observed_session,
- cancel_driver_job_for_session, cancel_driver_jobs_for_thread, mark_driver_pause_cancelled,
- resolve_lifecycle_key, DriverTaskCancellation,
+ cancel_driver_jobs_for_thread, mark_driver_pause_cancelled, resolve_lifecycle_key,
+ DriverTaskCancellation,
};
pub fn normalize_task_key(input: &str) -> String {
diff --git a/crates/openhuman-core/src/agent/orchestration/tools/tools_e2e_continuation_tests.rs b/crates/openhuman-core/src/agent/orchestration/tools/tools_e2e_continuation_tests.rs
index 3f5befe501..3ebb8172d5 100644
--- a/crates/openhuman-core/src/agent/orchestration/tools/tools_e2e_continuation_tests.rs
+++ b/crates/openhuman-core/src/agent/orchestration/tools/tools_e2e_continuation_tests.rs
@@ -215,7 +215,7 @@ async fn cancelling_a_paused_driver_through_rpc_settles_once_with_its_reason() {
assert_eq!(cancelled["data"]["cancelled"], true);
assert_eq!(provider.calls.load(std::sync::atomic::Ordering::SeqCst), 1);
assert!(matches!(
- jobs.get(&paused_job.id)
+ jobs.get(paused_job.id.as_str())
.expect("paused job remains inspectable")
.status,
SubAgentJobStatus::Cancelled