Skip to content

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

fix: clone extraction thread context per chunk

Steven Enamakela75d163d9f6c
diff --git a/crates/openhuman-core/src/agent/harness/subagent_runner/extract_tool.rs b/crates/openhuman-core/src/agent/harness/subagent_runner/extract_tool.rs
index 884cc3306b..a66632a9ee 100644
--- a/crates/openhuman-core/src/agent/harness/subagent_runner/extract_tool.rs
+++ b/crates/openhuman-core/src/agent/harness/subagent_runner/extract_tool.rs
@@ -326,6 +326,7 @@ impl ExtractFromResultTool {
let parent_chain = parent_chain.clone();
let owner_agent_id = owner_agent_id.clone();
let model = model.clone();
+ let thread_id = thread_id.clone();
async move {
let user_prompt = format!(
"Tool name: {tool_name}\nChunk {idx} of {total}\n\n\