Skip to content

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

refactor(subagent_host): widen lifecycle helper visibility

Steven Enamakele79e4b6870d9
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 fa1c583ab1..41000a07ae 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
@@ -24,10 +24,8 @@ async fn continue_subagent_resumes_paused_job_through_shared_driver() {
parent
.subagent_tool_ceiling_names
.insert("ask_user_clarification".into());
- let live = crate::agent::orchestration::tools::live_parent_run_context(
- "continue-paused-e2e",
- parent,
- );
+ let live =
+ crate::agent::orchestration::tools::live_parent_run_context("continue-paused-e2e", parent);
let paused = SpawnSubagentTool::new()
.execute_with_live_parent_context(
json!({
diff --git a/crates/openhuman-core/src/agent/subagent_host/lifecycle.rs b/crates/openhuman-core/src/agent/subagent_host/lifecycle.rs
index 328563c542..9f4d914f22 100644
--- a/crates/openhuman-core/src/agent/subagent_host/lifecycle.rs
+++ b/crates/openhuman-core/src/agent/subagent_host/lifecycle.rs
@@ -36,8 +36,8 @@ mod checkpoint;
#[path = "lifecycle_outcome.rs"]
mod outcome;
use checkpoint::absolute_checkpoint_dir;
-use outcome::HostInFlightMap;
use driver_adapter::HostInvocation;
+use outcome::HostInFlightMap;
use super::{
SubagentRunError, SubagentRunOptions, SubagentRunOutcome, SubagentRunStatus, SubagentUsage,
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 a7ef97771a..0440935764 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
@@ -85,7 +85,10 @@ struct OpenHumanPlanner {
/// Appends the new continuation input to the exact durable history supplied by
/// TinyAgents. Kept separate so the no-drop/no-duplicate resume contract has a
/// focused regression test independent of provider execution.
-pub(super) fn merged_resume_history(mut history: Vec<Message>, input: String) -> Vec<Message> {
+pub(in crate::agent::subagent_host) fn merged_resume_history(
+ mut history: Vec<Message>,
+ input: String,
+) -> Vec<Message> {
if !input.is_empty() {
history.push(Message::user(input));
}
@@ -325,7 +328,7 @@ impl SubagentExecutor<crate::agent::tinyagents::host::OpenHumanRunContext> for O
use super::outcome::{HostInFlightMap, host_outcome_to_neutral};
use super::persistence::OpenHumanPersistence;
-pub(super) fn outcome_to_host(
+pub(in crate::agent::subagent_host) fn outcome_to_host(
result: SubagentRunResult,
host: Option<SubagentRunOutcome>,
persistence: &OpenHumanPersistence,