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 Enamakela73f64fa9bcc
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 9f9cb4476f..94d63278db 100644
--- a/crates/openhuman-core/src/agent/session_host/runtime_session.rs
+++ b/crates/openhuman-core/src/agent/session_host/runtime_session.rs
@@ -713,7 +713,7 @@ impl OpenHumanSessionHost {
}
let (
tool_result_budget_bytes,
- tokenjuice_compaction_enabled: tokenjuice_compaction_enabled && juice_on,
+ tokenjuice_compaction_enabled,
microcompact_keep_recent,
autocompact_enabled,
compaction,
@@ -736,13 +736,14 @@ impl OpenHumanSessionHost {
);
// `[components] juice = false`: truncation only, no compaction/summary.
- let juice_on = (self.runtime_config.as_ref()).map_or(true, |c| tokenjuice::enabled(c));
- let context_mw = TurnContextMiddleware {
+ let juice_on = (self.runtime_config.as_ref())
+ .map_or(true, |c| crate::inference::tokenjuice::enabled(c));
+ let context_mw = TurnContextMiddleware {
tool_result_budget_bytes,
payload_summarizer: self.payload_summarizer.clone().filter(|_| juice_on),
// Rooted outside the project; see `artifact_wiring` (#6408, #6483).
artifact_store: Some(artifact_store),
- tokenjuice_compaction_enabled,
+ tokenjuice_compaction_enabled: tokenjuice_compaction_enabled && juice_on,
tokenjuice_compression: self.tokenjuice_compression,
runtime_config: self.runtime_config.clone(),
microcompact_keep_recent,