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/desktop/notifications/bus.rs

Steven Enamakelbe3ebcbb57c4
diff --git a/crates/openhuman-core/src/desktop/notifications/bus.rs b/crates/openhuman-core/src/desktop/notifications/bus.rs
index dcc081ba4f..ddc48396d3 100644
--- a/crates/openhuman-core/src/desktop/notifications/bus.rs
+++ b/crates/openhuman-core/src/desktop/notifications/bus.rs
@@ -525,8 +525,8 @@ async fn persist_in_event_context(
dispatch: &crate::core::runtime::DispatchCtx,
config: &Config,
event: &CoreNotificationEvent,
-) -> Option<Result<bool>> {
- let persist = super::store::insert_core_notification(config, event);
+) -> Option<anyhow::Result<bool>> {
+ let persist = async { 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,