Skip to content

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

chore: files changed src/openhuman/agent/harness/session/turn/core_session.rs

Steven Enamakel64cc8d024b4e
diff --git a/src/openhuman/agent/harness/session/turn/core_session.rs b/src/openhuman/agent/harness/session/turn/core_session.rs
index b112c42783..e79539cb8b 100644
--- a/src/openhuman/agent/harness/session/turn/core_session.rs
+++ b/src/openhuman/agent/harness/session/turn/core_session.rs
@@ -26,9 +26,8 @@ impl Agent {
// This turn's stamped user message is already the last entry in
// `self.history` (pushed by `turn()` before the engine branch), so build
// the provider messages straight from history — do NOT push the user
- // again. When a cached transcript prefix is present (a resumed session's
- // KV-cache warm-up), prepend it and clear it so the first request reuses
- // the cached prefix exactly once.
+ // again. A resumed session's replayed prefix is folded into that same
+ // history first (see below), so there is exactly one sequence to read.
if let Some(cached) = self.cached_transcript_messages.take() {
// A resumed session's replayed prefix is **absorbed into
// `self.history`**, not merely prepended to this one request.