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/desktop/notifications/bus.rs,crates/openhuman-core/sr
Steven Enamakelef8f592193ff
diff --git a/crates/openhuman-core/src/desktop/notifications/bus.rs b/crates/openhuman-core/src/desktop/notifications/bus.rsindex 39a780a6bf..dcc081ba4f 100644--- a/crates/openhuman-core/src/desktop/notifications/bus.rs+++ b/crates/openhuman-core/src/desktop/notifications/bus.rs@@ -528,11 +528,9 @@ async fn persist_in_event_context() -> Option<Result<bool>> {let persist = super::store::insert_core_notification(config, event);match dispatch.core() {- Some(core) => Some(crate::core::runtime::CoreContext::scope(- std::sync::Arc::clone(core),- persist,- )- .await),+ Some(core) => Some(+ crate::core::runtime::CoreContext::scope(std::sync::Arc::clone(core), persist).await,+ ),None if !crate::core::runtime::is_saas() => Some(persist.await),None => None,}diff --git a/crates/openhuman-core/src/desktop/notifications/bus_tests_3_tests.rs b/crates/openhuman-core/src/desktop/notifications/bus_tests_3_tests.rsindex 48da279a8d..15deb87872 100644--- a/crates/openhuman-core/src/desktop/notifications/bus_tests_3_tests.rs+++ b/crates/openhuman-core/src/desktop/notifications/bus_tests_3_tests.rs@@ -12,8 +12,10 @@ async fn cron_completion_stays_in_each_profile_when_agent_ids_match() {CoreContext::for_test(DomainSet::full(), None),));let suffix = uuid::Uuid::new_v4().simple().to_string();- let profile_a = ProfileId::for_user(&format!("profile-a-{suffix}"), ProfileIdMode::Raw).unwrap();- let profile_b = ProfileId::for_user(&format!("profile-b-{suffix}"), ProfileIdMode::Raw).unwrap();+ let profile_a =+ ProfileId::for_user(&format!("profile-a-{suffix}"), ProfileIdMode::Raw).unwrap();+ let profile_b =+ ProfileId::for_user(&format!("profile-b-{suffix}"), ProfileIdMode::Raw).unwrap();host.provision(&profile_a).await.unwrap();host.provision(&profile_b).await.unwrap();let state_a = host.open(&profile_a).await.unwrap();@@ -37,21 +39,13 @@ async fn cron_completion_stays_in_each_profile_when_agent_ids_match() {let config_a = host.provisioned_config(&profile_a).await.unwrap();let config_b = host.provisioned_config(&profile_b).await.unwrap();- let events_a = CoreContext::scope(- state_a.context().for_agent("shared-agent-id"),- async {- crate::desktop::notifications::store::list_core_notifications(&config_a, true, 10)- .unwrap()- },- )+ let events_a = CoreContext::scope(state_a.context().for_agent("shared-agent-id"), async {+ crate::desktop::notifications::store::list_core_notifications(&config_a, true, 10).unwrap()+ }).await;- let events_b = CoreContext::scope(- state_b.context().for_agent("shared-agent-id"),- async {- crate::desktop::notifications::store::list_core_notifications(&config_b, true, 10)- .unwrap()- },- )+ let events_b = CoreContext::scope(state_b.context().for_agent("shared-agent-id"), async {+ crate::desktop::notifications::store::list_core_notifications(&config_b, true, 10).unwrap()+ }).await;assert_eq!(events_a.len(), 1, "profile A owns its completion");