Skip to content

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

test(session_host): refresh prompt surface before rendering in cold-turn test

Steven Enamakel0b1248404301
diff --git a/crates/openhuman-core/src/agent/session_host/runtime_session_prompt_tests.rs b/crates/openhuman-core/src/agent/session_host/runtime_session_prompt_tests.rs
index a8f2bbfbc2..8f72b88ee9 100644
--- a/crates/openhuman-core/src/agent/session_host/runtime_session_prompt_tests.rs
+++ b/crates/openhuman-core/src/agent/session_host/runtime_session_prompt_tests.rs
@@ -18,6 +18,7 @@ async fn debug_prompt_matches_the_system_prompt_sent_on_a_cold_turn() {
.expect("session build");
host.set_thread_id(None::<&str>);
host.ensure_runtime_session().expect("runtime session");
+ host.refresh_prompt_surface().await;
let dumped = host
.render_current_turn_prompt()