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
chore: files changed crates/openhuman-core/src/memory/lifecycle/prefetch.rs,crates/openhuman-core/sr
Steven Enamakel820b62554c47
diff --git a/crates/openhuman-core/src/memory/lifecycle/prefetch.rs b/crates/openhuman-core/src/memory/lifecycle/prefetch.rsindex 8e0a09b67f..789542a409 100644--- a/crates/openhuman-core/src/memory/lifecycle/prefetch.rs+++ b/crates/openhuman-core/src/memory/lifecycle/prefetch.rs@@ -129,12 +129,12 @@ pub(crate) fn invalidate_all() {}fn completed(cache: &Cache, key: &Key) -> Option<TurnPack> {- cache.0.completed(key)+ cache.0.completed(key).map(TurnPack::from_native)}fn enqueue(cache: Arc<Cache>, key: Key, work: Work) {tracing::debug!(thread_id = %key.thread, agent_id = %key.identity.agent_id, compaction = key.compaction, "[memory:prefetch] enqueue refresh");- cache.0.enqueue(key, work);+ cache.0.enqueue(key, Box::pin(async move { work.await.map(|pack| pack.native) }));}/// Returns the last completed pack immediately, then logs this user turn anddiff --git a/crates/openhuman-core/src/memory/lifecycle/prefetch_tests.rs b/crates/openhuman-core/src/memory/lifecycle/prefetch_tests.rsindex 8214ce598f..978fbf6cba 100644--- a/crates/openhuman-core/src/memory/lifecycle/prefetch_tests.rs+++ b/crates/openhuman-core/src/memory/lifecycle/prefetch_tests.rs@@ -4,6 +4,7 @@ use crate::memory::test_fixtures::{bind_reference, config_in, stored};use tinymemory_tools::lifecycle::turn::TurnPack as NativeTurnPack;const MAX_PENDING: usize = 16;+const MAX_PACK_BYTES: usize = 64 * 1024;static TEST_LOCK: LazyLock<tokio::sync::Mutex<()>> = LazyLock::new(|| tokio::sync::Mutex::new(()));