Skip to content

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

fix(orchestration): preserve pre-proposal output in completion status

Steven Enamakel8c438da6c2bc
diff --git a/crates/openhuman-core/src/agent/orchestration/tools/spawn_async_subagent_execute.rs b/crates/openhuman-core/src/agent/orchestration/tools/spawn_async_subagent_execute.rs
index 33bf5cc8bf..1418abf888 100644
--- a/crates/openhuman-core/src/agent/orchestration/tools/spawn_async_subagent_execute.rs
+++ b/crates/openhuman-core/src/agent/orchestration/tools/spawn_async_subagent_execute.rs
@@ -553,6 +553,7 @@ impl SpawnAsyncSubagentTool {
);
// An incomplete run may still have produced a full
// proposal before stalling — preserve it durably too.
+ let status_output = framed.clone();
let framed = attach_workflow_proposal(
&background_workspace_dir,
background_parent_thread_id.as_deref(),
@@ -565,7 +566,7 @@ impl SpawnAsyncSubagentTool {
.completed(&outcome.task_id, &outcome.agent_id, framed)
.await;
let _ = status_tx.send(DetachedSubagentStatus::Completed {
- output: framed.clone(),
+ output: status_output,
iterations: outcome.iterations,
});
if emit_lifecycle_effects {