Skip to content

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

fix(threads): clone thread id before moving into blocking task

Steven Enamakelbeebf57238bc
diff --git a/crates/openhuman-core/src/threads/ops/transcript.rs b/crates/openhuman-core/src/threads/ops/transcript.rs
index 64d8408b5a..f098ddcf96 100644
--- a/crates/openhuman-core/src/threads/ops/transcript.rs
+++ b/crates/openhuman-core/src/threads/ops/transcript.rs
@@ -34,10 +34,11 @@ pub async fn transcript_get(
let locator = transcript_store(ctx, &thread_id).await?.locator();
let cursor = request.cursor.clone();
let limit = request.limit;
+ let page_thread_id = thread_id.clone();
let mut page = tokio::task::spawn_blocking(move || {
tinyagents_session::transcript::view::get_page_in(
locator.as_ref(),
- &thread_id,
+ &page_thread_id,
None,
cursor.as_deref(),
limit,