Skip to content

The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.

fix(threads): replace inline deletion with shared helper

Steven Enamakel386a332729f5
diff --git a/crates/openhuman-core/src/threads/ops/edit.rs b/crates/openhuman-core/src/threads/ops/edit.rs
index 3c6db446fd..6c6abcd7c1 100644
--- a/crates/openhuman-core/src/threads/ops/edit.rs
+++ b/crates/openhuman-core/src/threads/ops/edit.rs
@@ -111,13 +111,7 @@ pub async fn edit_message(request: EditMessageRequest) -> Result<RpcOutcome<Valu
// Truncate the message log at the edited message itself (inclusive) —
// it and everything after it is replaced by the fresh turn below.
- conversations::blocking::delete_messages_from(
- dir.clone(),
- thread_id.clone(),
- request.message_id.clone(),
- )
- .await
- .map_err(|e| ThreadsError::from_thread_scoped_store_error(&thread_id, e))?;
+ super::delete_after(&thread_id, &request.message_id).await?;
crate::web_chat::invalidate_thread_sessions(&thread_id).await;