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
refactor(agent): move turn busy guard to busy_guard module
Steven Enamakel3f06848336cb
diff --git a/crates/openhuman-core/src/agent/session_host/runtime/run_loop.rs b/crates/openhuman-core/src/agent/session_host/runtime/run_loop.rsindex 80418252c8..f69fffa248 100644--- a/crates/openhuman-core/src/agent/session_host/runtime/run_loop.rs+++ b/crates/openhuman-core/src/agent/session_host/runtime/run_loop.rs@@ -78,7 +78,7 @@ impl OpenHumanSessionHost {// Busy state for background-result delivery is marked here, in the// turn's own (profile) scope; the bus subscriber runs off-task.// A guard, so a turn dropped mid-flight does not leave it busy.- let busy = crate::agent::orchestration::background_delivery::TurnBusy::start(+ let busy = crate::agent::orchestration::busy_guard::TurnBusy::start(self.event_session_id(),);BUS.publish(DomainEvent::AgentTurnStarted {diff --git a/crates/openhuman-core/src/web_chat/ops/channel_ops.rs b/crates/openhuman-core/src/web_chat/ops/channel_ops.rsindex bbc1648266..03d48c0dbb 100644--- a/crates/openhuman-core/src/web_chat/ops/channel_ops.rs+++ b/crates/openhuman-core/src/web_chat/ops/channel_ops.rs@@ -155,7 +155,7 @@ async fn cancel_chat_inner(// Only once nothing is left running on the thread: a scoped cancel can leave// the primary or a parallel turn alive, and those still owe a terminal event.if cancelled_any.is_some() && !thread_has_live_turn(thread_id, &map_key).await {- crate::agent::orchestration::background_delivery::clear_busy_for_thread(thread_id);+ crate::agent::orchestration::busy_guard::clear_busy_for_thread(thread_id);// A drain that fired while the cancelled turn counted as busy returned// without claiming anything; ask for another.crate::agent::orchestration::background_delivery::kick_delivery(thread_id);