The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.
Rust agent-orchestrationai-agentsai-assistantdesktopllmlocal-firstmcppersonal-aiprivacyrustsecond-braintauri
feat(agent): add per-turn deadline tracking
Steven Enamakel2cf9040aa939
diff --git a/crates/openhuman-core/src/agent/turn_deadline.rs b/crates/openhuman-core/src/agent/turn_deadline.rsindex 413a545c71..fc6de93670 100644--- a/crates/openhuman-core/src/agent/turn_deadline.rs+++ b/crates/openhuman-core/src/agent/turn_deadline.rs@@ -24,8 +24,8 @@//! For every positive backstop, `wind_down < hard_stop < backstop`//! (see `turn_deadline_tests.rs`).//!-//! The web-turn guard scopes the deadline on a task-local-//! ([`with_turn_deadline`]). The top-level session turn+//! The web-turn guard builds the deadline and hands it to the session it runs+//! (`HostTurnEnv::turn_deadline`). The top-level session turn//! (`OpenHumanSessionHost::turn_with_origin`) copies it onto its explicit run//! context. Turns with no backstop, such as other channels or the CLI, carry//! `None` and keep their previous behaviour.diff --git a/crates/openhuman-core/src/agent/turn_deadline_tests.rs b/crates/openhuman-core/src/agent/turn_deadline_tests.rsindex c8e25996e9..460b884ccd 100644--- a/crates/openhuman-core/src/agent/turn_deadline_tests.rs+++ b/crates/openhuman-core/src/agent/turn_deadline_tests.rs@@ -15,18 +15,6 @@ fn parse_backstop_defaults_and_disables() {assert_eq!(parse_backstop(Some("0")), None);}-#[tokio::test]-async fn task_local_scope_is_visible_inside_and_absent_outside() {- assert!(current().is_none());- let deadline = TurnDeadline::starting_now(Duration::from_secs(60));- let seen = with_turn_deadline(Some(deadline), async { current() }).await;- assert_eq!(seen, Some(deadline));- assert!(current().is_none());- assert!(with_turn_deadline(None, async { current() })- .await- .is_none());-}-/// The grounded close gets what is left of the backstop minus the commit/// reserve, and nothing once the reserve itself is reached (#7716).#[test]