Skip to content

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

refactor(tinyagents): remove duplicate progress sink setup in drive_turn

Steven Enamakel904cb12cedd1
diff --git a/crates/openhuman-core/src/agent/tinyagents/turn_exec/drive.rs b/crates/openhuman-core/src/agent/tinyagents/turn_exec/drive.rs
index 475a605b79..8867259c6a 100644
--- a/crates/openhuman-core/src/agent/tinyagents/turn_exec/drive.rs
+++ b/crates/openhuman-core/src/agent/tinyagents/turn_exec/drive.rs
@@ -211,15 +211,6 @@ pub(super) async fn drive_turn(
ctx
};
- let streaming = on_progress.is_some();
- // Retain a clone of the progress sink so the turn can emit a terminal
- // `TurnCompleted` after the run (the harness event stream the bridge mirrors
- // has no run-completed event). Parent turns only — a sub-agent turn reports
- // via its `Subagent*` events, not a top-level `TurnCompleted`.
- //
- // #4457 (defect C): suppressed entirely when `defer_turn_completed_to_caller`
- // is set — the caller (chat/session path) emits the single terminal
- // `TurnCompleted` itself, after its post-run wrap-up finishes streaming.
let streaming = on_progress.is_some();
// Retain a clone of the progress sink so the turn can emit a terminal
// `TurnCompleted` after the run (the harness event stream the bridge mirrors