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
fix(storage): make import done check awaitable and relax closure bounds
Steven Enamakel112b0ce0db64
diff --git a/crates/openhuman-core/src/desktop/notifications/store_documents.rs b/crates/openhuman-core/src/desktop/notifications/store_documents.rsindex cd542744ae..4f5866a4f5 100644--- a/crates/openhuman-core/src/desktop/notifications/store_documents.rs+++ b/crates/openhuman-core/src/desktop/notifications/store_documents.rs@@ -47,7 +47,7 @@ use crate::storage::{DocumentStore, DocumentStoreExt, StorageError};pub(super) use super::storage_schema::{core_id, CORE, DEDUP, NOTIFICATIONS, SETTINGS};use super::storage_schema::{legacy_collections, specs};-use crate::storage::schema_support::{key_of, ms_rfc3339};+use crate::storage::schema_support::key_of;/// The `workspace` key of core notifications in the per-workspace default/// file (see [`current`]).diff --git a/crates/openhuman-core/src/integrations/composio/file_store_documents.rs b/crates/openhuman-core/src/integrations/composio/file_store_documents.rsindex 11fcb51e12..3e9d8c08e1 100644--- a/crates/openhuman-core/src/integrations/composio/file_store_documents.rs+++ b/crates/openhuman-core/src/integrations/composio/file_store_documents.rs@@ -114,7 +114,7 @@ impl Docs {pub(super) fn update<T, R>(&self,name: &str,- change: impl Fn(&mut T) -> (R, bool) + Send + 'static,+ change: impl Fn(&mut T) -> (R, bool) + Send + Sync + 'static,) -> Result<R>whereT: DeserializeOwned + Serialize + Default + Send + 'static,diff --git a/crates/openhuman-core/src/integrations/task_sources/store_documents.rs b/crates/openhuman-core/src/integrations/task_sources/store_documents.rsindex 645f2aa38d..df4e6c1e3f 100644--- a/crates/openhuman-core/src/integrations/task_sources/store_documents.rs+++ b/crates/openhuman-core/src/integrations/task_sources/store_documents.rs@@ -22,7 +22,7 @@use anyhow::{anyhow, Context, Result};use chrono::{DateTime, Utc};use serde_json::{json, Map, Value};-use tinystoragedrivers::{CollectionSpec, Filter, IndexSpec, Precondition, Query, Sort, Versioned};+use tinystoragedrivers::{CollectionSpec, Filter, Precondition, Query, Sort, Versioned};use super::store::{apply_patch, content_hash, IngestedTaskRef};use super::types::{diff --git a/crates/openhuman-core/src/storage/import/mod.rs b/crates/openhuman-core/src/storage/import/mod.rsindex d08d71dce1..1dcc36a531 100644--- a/crates/openhuman-core/src/storage/import/mod.rs+++ b/crates/openhuman-core/src/storage/import/mod.rs@@ -394,7 +394,9 @@ pub fn is_done(.for_scope(&super::scope::tenant_scope(None)).map_err(|error| anyhow!("open the local scope: {error}"))?;let step = marker_step(source.domain, &config.workspace_dir);- Ok(block_on(super::import_state::done(&scoped, MARKER_OWNER, &step))?)+ Ok(block_on(async move {+ super::import_state::done(&scoped, MARKER_OWNER, &step).await+ })?)}#[cfg(test)]