Skip to content

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

fix(openhuman-embed): use borrowed lifetime in boxed turn future

Steven Enamakel14bab95fd62c
diff --git a/crates/openhuman-embed/src/turn.rs b/crates/openhuman-embed/src/turn.rs
index 5f64868537..c4137c248c 100644
--- a/crates/openhuman-embed/src/turn.rs
+++ b/crates/openhuman-embed/src/turn.rs
@@ -724,7 +724,7 @@ async fn dispatch(
// inlined, and nesting it inside `Turn::send`'s own state machine
// pushes rustc's layout query past its depth limit. One heap
// allocation per turn is nothing next to the turn itself.
- let turn: futures_box::BoxFuture<'static, Result<AgentReply, CoreError>> =
+ let turn: futures_box::BoxFuture<'_, Result<AgentReply, CoreError>> =
Box::pin(async move {
use openhuman_core::inference::host_runtime::ops::{
agent_chat_for, AgentChatTarget,