Skip to content

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

test(session_host): bind session only when a history locator exists

Steven Enamakelc4bf83302f00
diff --git a/crates/openhuman-core/src/agent/session_host/resume_bound_session_tests.rs b/crates/openhuman-core/src/agent/session_host/resume_bound_session_tests.rs
index 4c6b1789c5..b17deac9f0 100644
--- a/crates/openhuman-core/src/agent/session_host/resume_bound_session_tests.rs
+++ b/crates/openhuman-core/src/agent/session_host/resume_bound_session_tests.rs
@@ -30,7 +30,10 @@ impl OpenHumanSessionHost {
request_id: None,
thread_id: self.thread_id.clone(),
stream: false,
- session: Some(session),
+ session: self
+ .session_history_locator
+ .as_ref()
+ .map(|_| session),
resume: ResumeMode::Session,
cancellation,
run_context: context.into_tinyagents(root_config),