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(threads): make staged attachment operations async
Steven Enamakel2c8326018c64
diff --git a/crates/openhuman-core/src/threads/attachments/staged.rs b/crates/openhuman-core/src/threads/attachments/staged.rsindex 95eeb295a4..c7604bdeee 100644--- a/crates/openhuman-core/src/threads/attachments/staged.rs+++ b/crates/openhuman-core/src/threads/attachments/staged.rs@@ -68,7 +68,7 @@ pub(super) fn get_staged_record(repo: &Repo, id: &str) -> Result<Option<StagedAt.map_err(|error| error.to_string())}-pub(super) fn read_staged_entries(+pub(super) async fn read_staged_entries(ctx: &crate::core::runtime::DispatchCtx,thread_id: &str,requested: &[ContentPart],@@ -325,7 +325,7 @@ pub(crate) async fn resolve_staged_parts(Ok(resolved)}-pub(super) fn validate_staged_files(+pub(super) async fn validate_staged_files(ctx: &crate::core::runtime::DispatchCtx,thread_id: &str,config: &crate::config::Config,@@ -395,7 +395,7 @@ pub(crate) async fn discard_staged_parts(discard_staged_entries(ctx, thread_id, &config, entries).await}-pub(super) fn discard_staged_entries(+pub(super) async fn discard_staged_entries(ctx: &crate::core::runtime::DispatchCtx,thread_id: &str,config: &crate::config::Config,diff --git a/crates/openhuman-core/src/threads/ops/queued_attachments.rs b/crates/openhuman-core/src/threads/ops/queued_attachments.rsindex c53b44a46c..67eb0f96de 100644--- a/crates/openhuman-core/src/threads/ops/queued_attachments.rs+++ b/crates/openhuman-core/src/threads/ops/queued_attachments.rs@@ -1,11 +1,9 @@//! Persistence helpers for admitted queued web-chat user messages.use super::support::message_to_record;-use crate::core::Outcome;use crate::core::runtime::DispatchCtx;-use crate::threads::ops::support::envelope;-use crate::threads::store::{self as conversations, ConversationMessage};-use crate::threads::{AppendConversationMessageRequest, ConversationMessageRecord, ThreadsError};+use crate::threads::store as conversations;+use crate::threads::{AppendConversationMessageRequest, ConversationMessageRecord};/// Persist an admitted queued web user message under its stable request ID.///