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: remove unused imports across modules
Steven Enamakela4e22d474fe8
diff --git a/crates/openhuman-core/src/agent/orchestration/background_delivery.rs b/crates/openhuman-core/src/agent/orchestration/background_delivery.rsindex e17dcaf4f9..8010936524 100644--- a/crates/openhuman-core/src/agent/orchestration/background_delivery.rs+++ b/crates/openhuman-core/src/agent/orchestration/background_delivery.rs@@ -273,7 +273,7 @@ fn schedule_delivery_inner(.push((thread_id.clone(), delay));// Scoped: the thread -> workspace table is keyed per profile, so the// delayed task must run under the profile that scheduled it.- ctx.spawn(async move {+ ctx.clone().spawn(async move {let turn_fence = fence.clone();let turn_thread = thread_id.clone();let outcome = run_drain(diff --git a/crates/openhuman-core/src/cron/scheduler/origin_delivery.rs b/crates/openhuman-core/src/cron/scheduler/origin_delivery.rsindex 5d81cff90c..e8e68fb883 100644--- a/crates/openhuman-core/src/cron/scheduler/origin_delivery.rs+++ b/crates/openhuman-core/src/cron/scheduler/origin_delivery.rs@@ -263,7 +263,7 @@ async fn deliver_to_web_thread(let persist_request = request_id.clone();let persist_text = text.to_string();let persist_ctx = ctx.clone();- persist_ctx.spawn_blocking(move || {+ persist_ctx.clone().spawn_blocking(move || {crate::web_chat::persist_delivered_reply(&persist_ctx,&workspace,diff --git a/crates/openhuman-core/src/desktop/notifications/rpc.rs b/crates/openhuman-core/src/desktop/notifications/rpc.rsindex bd8dcb2d9e..f92882ba67 100644--- a/crates/openhuman-core/src/desktop/notifications/rpc.rs+++ b/crates/openhuman-core/src/desktop/notifications/rpc.rs@@ -90,7 +90,7 @@ pub async fn handle_ingest(ctx: &DispatchCtx, params: Map<String, Value>) -> Reslet id_for_triage = id.clone();let config_for_triage = config.clone();let ctx = ctx.clone();- ctx.spawn(async move {+ ctx.clone().spawn(async move {let envelope = TriggerEnvelope {source: TriggerSource::WebviewIntegration {provider: req.provider.clone(),diff --git a/crates/openhuman-core/src/integrations/task_sources/bus.rs b/crates/openhuman-core/src/integrations/task_sources/bus.rsindex ca6c453989..eecdebe3a6 100644--- a/crates/openhuman-core/src/integrations/task_sources/bus.rs+++ b/crates/openhuman-core/src/integrations/task_sources/bus.rs@@ -126,7 +126,7 @@ async fn fire_for_connection(let config = config.clone();let ctx = ctx.clone();// Scoped: the fetch keeps the scope's agent context.- ctx.spawn(async move {+ ctx.clone().spawn(async move {let _ = pipeline::run_source_once(&ctx, &config, &source, FetchReason::ConnectionCreated).await;});diff --git a/crates/openhuman-core/src/memory/lifecycle/prefetch.rs b/crates/openhuman-core/src/memory/lifecycle/prefetch.rsindex fa24145ef2..3cfb144d93 100644--- a/crates/openhuman-core/src/memory/lifecycle/prefetch.rs+++ b/crates/openhuman-core/src/memory/lifecycle/prefetch.rs@@ -166,7 +166,7 @@ pub(crate) fn pre_turn(key,guard_turn_work(&config.clone(),- Box::pin(dispatch.enter(async move {+ Box::pin(dispatch.clone().enter(async move {if config.memory.conversations.enabled {if let Some(channel) = channel {let workspace = config.workspace_dir.clone();diff --git a/crates/openhuman-core/src/tinymemes/mod.rs b/crates/openhuman-core/src/tinymemes/mod.rsindex 2462771472..e075c548fc 100644--- a/crates/openhuman-core/src/tinymemes/mod.rs+++ b/crates/openhuman-core/src/tinymemes/mod.rs@@ -196,7 +196,7 @@ async fn load(let config = config.clone();let thread_id = thread_id.to_owned();let ctx = ctx.clone();- ctx.spawn_blocking(move || {+ ctx.clone().spawn_blocking(move || {crate::threads::store::get_messages(&ctx,config.workspace_dir.clone(),diff --git a/crates/openhuman-core/src/web_chat/progress_bridge.rs b/crates/openhuman-core/src/web_chat/progress_bridge.rsindex c2931a5a1b..db6b9264bd 100644--- a/crates/openhuman-core/src/web_chat/progress_bridge.rs+++ b/crates/openhuman-core/src/web_chat/progress_bridge.rs@@ -294,7 +294,7 @@ pub(crate) fn spawn_progress_bridge(std::sync::Mutex<Option<super::turn_timing::TurnTimingSnapshot>>,> = std::sync::Arc::new(std::sync::Mutex::new(None));let timing_snapshot_for_task = timing_snapshot.clone();- dispatch_ctx.spawn(async move {+ dispatch_ctx.clone().spawn(async move {log::debug!("[web_channel][bridge] spawned client_id={} thread_id={} request_id={} speak_reply={:?} source={:?} session_id={:?} hold_text_stream={}",client_id,