Skip to content

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

fix(agent): preserve subagent session state across host restarts

Steven Enamakel857b5209315c
diff --git a/crates/openhuman-core/src/agent/session_host/runtime_session.rs b/crates/openhuman-core/src/agent/session_host/runtime_session.rs
index c23ff0f539..843efc04e2 100644
--- a/crates/openhuman-core/src/agent/session_host/runtime_session.rs
+++ b/crates/openhuman-core/src/agent/session_host/runtime_session.rs
@@ -183,7 +183,6 @@ struct OpenHumanTurnPreludeMutable {
}
impl OpenHumanTurnPrelude {
-
#[allow(clippy::type_complexity)]
fn current_tool_source(
&self,
diff --git a/crates/openhuman-core/src/agent/subagent_host/ops/runner.rs b/crates/openhuman-core/src/agent/subagent_host/ops/runner.rs
index 566c837624..fcc7d0b634 100644
--- a/crates/openhuman-core/src/agent/subagent_host/ops/runner.rs
+++ b/crates/openhuman-core/src/agent/subagent_host/ops/runner.rs
@@ -772,9 +772,7 @@ async fn run_typed_mode(
visible_tool_names: &visible_tool_names,
tool_call_format: prompt_tool_call_format,
connected_integrations: &connected_integrations_for_prompt,
- connected_identities_md: crate::agent::prompts::render_connected_identities(
- &options.run_context.dispatch_ctx(),
- ),
+ connected_identities_md: render_connected_identities(&options.run_context.dispatch_ctx()),
user_identity: crate::security::credentials::identity::peek_credential_user_identity(),
personality_roster: vec![],
agents_md_global: agents_md.global.clone(),