Skip to content

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

refactor(subagent_sessions): remove unused imports and widen cancel reason visibility

Steven Enamakel3c489041dd92
diff --git a/crates/openhuman-core/src/agent/orchestration/subagent_sessions/ops_driver.rs b/crates/openhuman-core/src/agent/orchestration/subagent_sessions/ops_driver.rs
index 17f368261a..c8d2e43a19 100644
--- a/crates/openhuman-core/src/agent/orchestration/subagent_sessions/ops_driver.rs
+++ b/crates/openhuman-core/src/agent/orchestration/subagent_sessions/ops_driver.rs
@@ -1,14 +1,6 @@
use std::path::Path;
-use std::sync::{Mutex, OnceLock};
-
-use crate::agent::subagent_host::SubagentRunStatus;
-use tinyagents_session::transcript::TranscriptMessage;
use super::*;
-use super::{
- DurableSubagentSession, DurableSubagentStatus, ReuseDecision, SubagentSessionSelector,
- SubagentSessionStore, SubagentSessionUpsert,
-};
/// Requests cancellation of driver-backed children owned by a thread being
/// removed. The TinyAgents registry owns cancellation and settlement; this
@@ -347,7 +339,7 @@ pub fn mark_driver_pause_cancelled(
/// the awaited completion callback can include it in the single cancellation
/// notice. The current task check prevents a stale cancel from annotating a
/// later reuse of the same durable session.
-pub(super) fn record_cancel_reason(
+pub(crate) fn record_cancel_reason(
store: &SubagentSessionStore,
observed: &DurableSubagentSession,
reason: &str,