The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.
Rust agent-orchestrationai-agentsai-assistantdesktopllmlocal-firstmcppersonal-aiprivacyrustsecond-braintauri
refactor: replace map_or with is_none_or for option checks
Steven Enamakelbd5101c7b9fa
diff --git a/crates/openhuman-core/src/agent/session_host/runtime_session.rs b/crates/openhuman-core/src/agent/session_host/runtime_session.rsindex 94d63278db..e2e8bd3680 100644--- a/crates/openhuman-core/src/agent/session_host/runtime_session.rs+++ b/crates/openhuman-core/src/agent/session_host/runtime_session.rs@@ -736,8 +736,8 @@ impl OpenHumanSessionHost {);// `[components] juice = false`: truncation only, no compaction/summary.- let juice_on = (self.runtime_config.as_ref())- .map_or(true, |c| crate::inference::tokenjuice::enabled(c));+ let juice_on =+ (self.runtime_config.as_ref()).is_none_or(crate::inference::tokenjuice::enabled);let context_mw = TurnContextMiddleware {tool_result_budget_bytes,payload_summarizer: self.payload_summarizer.clone().filter(|_| juice_on),diff --git a/crates/openhuman-core/src/modules/host.rs b/crates/openhuman-core/src/modules/host.rsindex a60447476f..84a33a0d88 100644--- a/crates/openhuman-core/src/modules/host.rs+++ b/crates/openhuman-core/src/modules/host.rs@@ -188,7 +188,7 @@ async fn build_runtime() -> tinybus::Result<ModuleRuntime> {// The summary callback exists for the module alone; with the component off// the module never loads, so nothing would call it.let juice_on = crate::core::runtime::context::CoreContext::current()- .map_or(true, |ctx| ctx.components().juice);+ .is_none_or(|ctx| ctx.components().juice);if juice_on {super::tokenjuice_host::install(&connection).await?;} else {