Skip to content

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

fix(runtime_session): propagate error from refresh_turn_boundary

Steven Enamakel80edac41e041
diff --git a/crates/openhuman-core/src/agent/session_host/runtime_session.rs b/crates/openhuman-core/src/agent/session_host/runtime_session.rs
index 27f5de9939..f5ce225c6a 100644
--- a/crates/openhuman-core/src/agent/session_host/runtime_session.rs
+++ b/crates/openhuman-core/src/agent/session_host/runtime_session.rs
@@ -1229,7 +1229,12 @@ impl OpenHumanSessionHost {
)
})?;
let new_session = !view.resumed && view.history.is_empty();
- prelude.refresh_turn_boundary(new_session).await;
+ prelude
+ .refresh_turn_boundary(new_session)
+ .await
+ .map_err(|error| {
+ tinyagents_runtime::RuntimeError::Driver(error.to_string())
+ })?;
let context_window = prelude
.turn_model_source
.effective_context_window(&prelude.model_name)