Skip to content

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

Merge remote-tracking branch 'upstream/main' into storage-7809-host-1

Steven Enamakeld4ca7bab09a7
diff --cc crates/openhuman-core/src/threads/ops/edit.rs
index 28ae7e573b,733eecb0ad..32697a4752
--- a/crates/openhuman-core/src/threads/ops/edit.rs
+++ b/crates/openhuman-core/src/threads/ops/edit.rs
@@@ -88,11 -88,8 +88,11 @@@ pub async fn edit_message
let client_id = request.client_id.unwrap_or_else(|| "system".to_string());
let thread_id = request.thread_id;
let dir = workspace_dir().await.map_err(ThreadsError::Message)?;
+ // The request's own tenant picks the store key, so a SaaS profile edits
+ // the transcript its turns were written to.
+ let store = transcript_store(ctx).await.map_err(ThreadsError::Message)?;
- crate::web_chat::cancel_chat_scoped(&client_id, &thread_id, None)
+ crate::web_chat::cancel_chat_scoped(ctx, &client_id, &thread_id, None)
.await
.map_err(ThreadsError::Message)?;
@@@ -155,11 -156,8 +155,11 @@@ pub async fn regenerate
let client_id = request.client_id.unwrap_or_else(|| "system".to_string());
let thread_id = request.thread_id;
let dir = workspace_dir().await.map_err(ThreadsError::Message)?;
+ // The request's own tenant picks the store key, so a SaaS profile edits
+ // the transcript its turns were written to.
+ let store = transcript_store(ctx).await.map_err(ThreadsError::Message)?;
- crate::web_chat::cancel_chat_scoped(&client_id, &thread_id, None)
+ crate::web_chat::cancel_chat_scoped(ctx, &client_id, &thread_id, None)
.await
.map_err(ThreadsError::Message)?;