Skip to content

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

chore(subagent_host): tidy imports and visibility

Steven Enamakel69196d99a29b
diff --git a/crates/openhuman-core/src/agent/orchestration/tools/spawn_async_subagent_surface.rs b/crates/openhuman-core/src/agent/orchestration/tools/spawn_async_subagent_surface.rs
index da6f522547..9ca710e330 100644
--- a/crates/openhuman-core/src/agent/orchestration/tools/spawn_async_subagent_surface.rs
+++ b/crates/openhuman-core/src/agent/orchestration/tools/spawn_async_subagent_surface.rs
@@ -12,7 +12,7 @@ use crate::agent::orchestration::subagent_sessions::{
SubagentSessionUpsert,
};
use crate::agent::orchestration::tools::dispatch::incomplete_stop;
-use crate::agent::subagent_host::{SubagentRunOptions, SubagentRunOutcome, SubagentRunStatus};
+use crate::agent::subagent_host::SubagentRunOptions;
use crate::agent_registry::host_definition::AgentDefinitionRegistry;
use crate::core::runtime::DispatchCtx;
use crate::progress::AgentProgress;
diff --git a/crates/openhuman-core/src/agent/subagent_host/lifecycle/driver_adapter.rs b/crates/openhuman-core/src/agent/subagent_host/lifecycle/driver_adapter.rs
index 0440935764..ba29e83429 100644
--- a/crates/openhuman-core/src/agent/subagent_host/lifecycle/driver_adapter.rs
+++ b/crates/openhuman-core/src/agent/subagent_host/lifecycle/driver_adapter.rs
@@ -325,7 +325,7 @@ impl SubagentExecutor<crate::agent::tinyagents::host::OpenHumanRunContext> for O
/// task key. The key is encoded rather than using a task id as a filename, so
/// equally named children of separate roots/parents can never resume or close
/// one another's lifecycle.
-use super::outcome::{HostInFlightMap, host_outcome_to_neutral};
+use super::outcome::host_outcome_to_neutral;
use super::persistence::OpenHumanPersistence;
pub(in crate::agent::subagent_host) fn outcome_to_host(
diff --git a/crates/openhuman-core/src/agent/subagent_host/lifecycle/persistence.rs b/crates/openhuman-core/src/agent/subagent_host/lifecycle/persistence.rs
index 3556aea3f3..69fa6b80d4 100644
--- a/crates/openhuman-core/src/agent/subagent_host/lifecycle/persistence.rs
+++ b/crates/openhuman-core/src/agent/subagent_host/lifecycle/persistence.rs
@@ -23,7 +23,7 @@ enum CompatibleTerminalRecord {
}
impl OpenHumanPersistence {
- pub(super) fn new(checkpoint_dir: std::path::PathBuf) -> Self {
+ pub(in crate::agent::subagent_host) fn new(checkpoint_dir: std::path::PathBuf) -> Self {
Self {
checkpoint_dir,
host_outcome: Arc::new(Mutex::new(HashMap::new())),