Skip to content

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

fix(progress_bridge): restore progress event forwarding

Steven Enamakel31c3818b1b20
diff --git a/crates/openhuman-core/src/web_chat/progress_bridge.rs b/crates/openhuman-core/src/web_chat/progress_bridge.rs
index 299e72a129..98f0256b4a 100644
--- a/crates/openhuman-core/src/web_chat/progress_bridge.rs
+++ b/crates/openhuman-core/src/web_chat/progress_bridge.rs
@@ -611,10 +611,13 @@ pub(crate) fn spawn_progress_bridge(
success,
output_chars,
output,
+ arguments,
elapsed_ms,
iteration,
failure,
- ..
+ display_label,
+ display_detail,
+ structured,
} => {
// Serialize the classified failure (if any) for the UI + ledger.
let failure_json = failure.as_ref().and_then(|f| serde_json::to_value(f).ok());
@@ -634,6 +637,17 @@ pub(crate) fn spawn_progress_bridge(
}),
},
);
+ log::debug!(
+ "[web_channel][bridge] tool_result round={} tool={} call_id={} \
+ success={} elapsed_ms={} has_structured={} request_id={}",
+ iteration,
+ tool_name,
+ call_id,
+ success,
+ elapsed_ms,
+ structured.is_some(),
+ request_id
+ );
publish_seq_stamped(
&mut emit_seq,
WebChannelEvent {
@@ -648,10 +662,23 @@ pub(crate) fn spawn_progress_bridge(
// `subagent_tool_result` path. Frontends that only
// need size/timing read the ledger telemetry instead.
output: Some(cap_wire_output(output)),
+ // The call arguments the harness captured at
+ // completion (`ToolCallStarted.arguments` is
+ // always `Null` on this path). Omitted when the
+ // harness ran with payload capture off.
+ args: arguments.filter(|v| !v.is_null()),
success: Some(success),
round: Some(iteration),
tool_call_id: Some(call_id),
failure: failure_json,
+ elapsed_ms: Some(elapsed_ms),
+ structured,
+ // Recomputed from the real arguments (unlike the
+ // started event's args-free computation), so a
+ // completed row can pick up a detail that only
+ // became knowable once the arguments existed.
+ tool_display_label: display_label,
+ tool_display_detail: display_detail,
..Default::default()
},
);