Skip to content

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

fix(session-host): join tiered system messages into turn prompt

Steven Enamakel8306109ac406
diff --git a/crates/openhuman-core/src/agent/session_host/runtime_session/prompt_surface.rs b/crates/openhuman-core/src/agent/session_host/runtime_session/prompt_surface.rs
index 601900d218..6e6b9ceed2 100644
--- a/crates/openhuman-core/src/agent/session_host/runtime_session/prompt_surface.rs
+++ b/crates/openhuman-core/src/agent/session_host/runtime_session/prompt_surface.rs
@@ -8,7 +8,10 @@ impl OpenHumanSessionHost {
/// they need live integrations or synthesized tools.
pub fn render_current_turn_prompt(&self) -> Result<String> {
let prelude = self.create_turn_prelude(false);
- Ok(prelude.build_system_prompt_tiered()?.text)
+ Ok(prelude
+ .build_system_prompt_tiered()?
+ .system_messages()
+ .join(""))
}
pub(super) fn create_turn_prelude(