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(memory): extract engine helpers into dedicated methods
Steven Enamakel7973fdad8c54
diff --git a/crates/openhuman-core/src/memory/engine.rs b/crates/openhuman-core/src/memory/engine.rsindex 7853cff0a5..dd432a230f 100644--- a/crates/openhuman-core/src/memory/engine.rs+++ b/crates/openhuman-core/src/memory/engine.rs@@ -278,13 +278,20 @@ pub fn bind_with_root(config: &Config, root: Option<&str>) -> MemoryResult<Bound};}}- if host_engine().is_some() && root.is_some() {+ // As in `resolve`: a SaaS process never hands out the process-wide host+ // engine, which every user would share.+ let host = if crate::core::runtime::is_saas() {+ None+ } else {+ host_engine()+ };+ if host.is_some() && root.is_some() {return Err(MemoryError::Engine("the host's memory engine cannot be bound below a scope root".to_string(),));}if root.is_none() {- if let Some(bound) = host_engine() {+ if let Some(bound) = host {return Ok(bound);}}