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(edit): rename variable to avoid shadowing in spawn_blocking closure
Steven Enamakel9bea61b8a1a4
diff --git a/crates/openhuman-core/src/threads/ops/edit.rs b/crates/openhuman-core/src/threads/ops/edit.rsindex 59a96273ca..1715f585cd 100644--- a/crates/openhuman-core/src/threads/ops/edit.rs+++ b/crates/openhuman-core/src/threads/ops/edit.rs@@ -97,11 +97,11 @@ pub async fn edit_message(request: EditMessageRequest) -> Result<RpcOutcome<Valu.map_err(ThreadsError::Message)?;if let Some(cut_request_id) = &cut_request_id {- let dir = dir.clone();+ let dir_for_blocking = dir.clone();let thread_id_owned = thread_id.clone();let cut_request_id_owned = cut_request_id.clone();tokio::task::spawn_blocking(move || {- truncate_transcript_before_turn(&dir, &thread_id_owned, &cut_request_id_owned)+ truncate_transcript_before_turn(&dir_for_blocking, &thread_id_owned, &cut_request_id_owned)}).await.map_err(|e| ThreadsError::Message(format!("truncate transcript task: {e}")))?