Skip to content

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

chore: files changed crates/openhuman-core/src/agent/session_host/runtime_session.rs

Steven Enamakel7f041e56ef99
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 3e68e3cd20..e2cc510179 100644
--- a/crates/openhuman-core/src/agent/session_host/runtime_session.rs
+++ b/crates/openhuman-core/src/agent/session_host/runtime_session.rs
@@ -1159,11 +1159,14 @@ impl OpenHumanSessionHost {
&overrides,
&mut options.run_context.data,
),
- prelude.memory_pre_turn(
+ // Boxed: the hook's future (config load, engine
+ // calls) would otherwise be inlined into this
+ // already-large hook future.
+ Box::pin(prelude.memory_pre_turn(
view.history,
view.committed_turns,
current_input,
- ),
+ )),
);
options.run_context.data.memory_turn = memory_turn;
request.input = user_message_from_text(&enriched);