Skip to content

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

fix(session_host): pass history by reference in resumed prefix

Steven Enamakel6bcafe8bebea
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 a4e0e7e097..d2bc0de7fc 100644
--- a/crates/openhuman-core/src/agent/session_host/runtime_session.rs
+++ b/crates/openhuman-core/src/agent/session_host/runtime_session.rs
@@ -1623,7 +1623,7 @@ impl OpenHumanSessionHost {
+ usize::from(view.history.last() != Some(&request.input));
let resumed_prefix = view
.resumed
- .then(|| super::prefix_snapshot::leading_system_prefix(&view.history));
+ .then(|| super::prefix_snapshot::leading_system_prefix(view.history));
Box::pin(async move {
let transcript_snapshot =
crate::agent::tinyagents::TranscriptSnapshotSink::default();