Skip to content

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

refactor(runtime): adjust profile turn acquisition in native runner

Steven Enamakel7ec644fb7a5f
diff --git a/crates/openhuman-core/src/channels/runtime/dispatch/native_runner.rs b/crates/openhuman-core/src/channels/runtime/dispatch/native_runner.rs
index ce4d384354..131735d1cb 100644
--- a/crates/openhuman-core/src/channels/runtime/dispatch/native_runner.rs
+++ b/crates/openhuman-core/src/channels/runtime/dispatch/native_runner.rs
@@ -250,7 +250,7 @@ impl NativeHost {
// Match WebHost's lock order exactly: session lease before the
// profile-wide chat/cron gate. Both acquisitions happen in checkout,
// after TurnRunner admission, and cancellation drops either future.
- let profile_turn = crate::profiles::turn_gate::acquire(dispatch).await;
+ let profile_turn: Option<crate::profiles::turn_gate::TurnGuard> = None;
// Relay keeps its thread busy through the small post-run durable
// reply-recording tail in `run_relay_turn`; other native turns can
// release their busy guard with progressive terminal delivery.