Skip to content

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

refactor(orchestration): reimport DetachedSubagentStatus from tinyagents_orchestration

Steven Enamakelb44084deff36
diff --git a/crates/openhuman-core/src/agent/orchestration/subagent_control_tests.rs b/crates/openhuman-core/src/agent/orchestration/subagent_control_tests.rs
index 87b5848c50..14727b143e 100644
--- a/crates/openhuman-core/src/agent/orchestration/subagent_control_tests.rs
+++ b/crates/openhuman-core/src/agent/orchestration/subagent_control_tests.rs
@@ -56,9 +56,8 @@ fn field(out: &Value, name: &str) -> Option<Value> {
/// user". A failed run must come back `failed`, never as a success.
#[tokio::test]
async fn cancel_of_a_finished_run_reports_its_outcome_and_rewrites_nothing() {
- use crate::agent::orchestration::running_subagents::{
- register, status_channel, DetachedSubagentStatus,
- };
+ use crate::agent::orchestration::running_subagents::{register, status_channel};
+ use tinyagents_orchestration::subagent::DetachedSubagentStatus;
use crate::agent::orchestration::subagent_sessions::SubagentSessionStore;
use std::sync::Arc;
use tinyagents_harness::run_queue::RunQueue;
diff --git a/crates/openhuman-core/src/agent/orchestration/tools/spawn_async_subagent.rs b/crates/openhuman-core/src/agent/orchestration/tools/spawn_async_subagent.rs
index 7f69e9e803..3891c3d464 100644
--- a/crates/openhuman-core/src/agent/orchestration/tools/spawn_async_subagent.rs
+++ b/crates/openhuman-core/src/agent/orchestration/tools/spawn_async_subagent.rs
@@ -8,7 +8,8 @@ use super::subagent_abort_report::AbortReport;
use crate::agent::harness::definition::AgentDefinitionRegistry;
use crate::agent::messages::ChatMessage;
use crate::agent::orchestration::fleet_tools::FleetToolSet;
-use crate::agent::orchestration::running_subagents::{self, DetachedSubagentStatus};
+use crate::agent::orchestration::running_subagents;
+use tinyagents_orchestration::subagent::DetachedSubagentStatus;
use crate::agent::orchestration::subagent_sessions::{
self, DurableSubagentStatus, SubagentSessionSelector, SubagentSessionStore,
SubagentSessionUpsert,
diff --git a/crates/openhuman-core/src/agent/orchestration/tools/wait_subagent.rs b/crates/openhuman-core/src/agent/orchestration/tools/wait_subagent.rs
index 6dada7513c..a9e87b76b5 100644
--- a/crates/openhuman-core/src/agent/orchestration/tools/wait_subagent.rs
+++ b/crates/openhuman-core/src/agent/orchestration/tools/wait_subagent.rs
@@ -8,9 +8,8 @@
use std::time::Duration;
use crate::agent::harness::fork_context::ParentExecutionContext;
-use crate::agent::orchestration::running_subagents::{
- self, DetachedSubagentStatus, WaitError, WaitOutcome,
-};
+use crate::agent::orchestration::running_subagents;
+use tinyagents_orchestration::subagent::{DetachedSubagentStatus, WaitError, WaitOutcome};
use async_trait::async_trait;
use serde_json::json;
use std::sync::Arc;