Skip to content

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

fix(session_host): instrument turn preparation with diagnostics

Steven Enamakele24d5b69e729
diff --git a/crates/openhuman-core/src/agent/session_host/runtime_session/prelude.rs b/crates/openhuman-core/src/agent/session_host/runtime_session/prelude.rs
index 6085b859b4..f52d3444fb 100644
--- a/crates/openhuman-core/src/agent/session_host/runtime_session/prelude.rs
+++ b/crates/openhuman-core/src/agent/session_host/runtime_session/prelude.rs
@@ -232,7 +232,10 @@ impl OpenHumanTurnPrelude {
None
} else if let Some(thread_id) = self.thread_id.as_deref() {
let store = crate::agent::goals::goal_store(&self.workspace_dir, &self.dispatch_ctx());
- match store.prepare_turn(thread_id).await {
+ super::concurrent_turn_diagnostic(11);
+ let result = store.prepare_turn(thread_id).await;
+ super::concurrent_turn_diagnostic(12);
+ match result {
Ok(preparation) => {
if let Some(block) = preparation.context_block {
context.push_str(&block);