Skip to content

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

chore: files changed crates/openhuman-core/src/agent/session_host/runtime_session_turn.rs

Steven Enamakelfcc92f9acdec
diff --git a/crates/openhuman-core/src/agent/session_host/runtime_session_turn.rs b/crates/openhuman-core/src/agent/session_host/runtime_session_turn.rs
index cd44eb3b89..0a91e5b7c8 100644
--- a/crates/openhuman-core/src/agent/session_host/runtime_session_turn.rs
+++ b/crates/openhuman-core/src/agent/session_host/runtime_session_turn.rs
@@ -39,9 +39,13 @@ impl OpenHumanSessionHost {
cancellation,
run_context: context.into_tinyagents(root_config),
};
- // Load a bound, otherwise empty session before its normal lifecycle so
- // the host prelude can rebuild its recorded integration executors.
- if matches!(options.resume, ResumeMode::Session)
+ // Load persisted state before the normal turn lifecycle so the host
+ // can read native recorded declarations for both bound sessions and
+ // cold, unthreaded latest-agent resumes.
+ if matches!(
+ options.resume,
+ ResumeMode::Session | ResumeMode::LatestForAgent
+ )
&& self
.runtime_session
.as_ref()