Skip to content

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

fix(web_chat): normalize projected wire fields before publishing

Steven Enamakel1bf6d5def521
diff --git a/crates/openhuman-core/src/web_chat/surface.rs b/crates/openhuman-core/src/web_chat/surface.rs
index 8097224adc..e42f4c7162 100644
--- a/crates/openhuman-core/src/web_chat/surface.rs
+++ b/crates/openhuman-core/src/web_chat/surface.rs
@@ -167,6 +167,7 @@ impl Surface {
}
fn publish(&self, mut event: bus_web::WebChannelEvent, interim_round: Option<u32>) {
+ event.normalize_projected_wire_fields();
if let bus_web::WebChannelEvent::ChatInterim { round, .. } = &mut event {
if round.is_none() {
*round = interim_round.filter(|round| *round > 0);
diff --git a/crates/openhuman-tui/src/state.rs b/crates/openhuman-tui/src/state.rs
index 3bfe0d0dfc..681db80dea 100644
--- a/crates/openhuman-tui/src/state.rs
+++ b/crates/openhuman-tui/src/state.rs
@@ -282,8 +282,8 @@ impl TranscriptState {
self.append_thinking(delta);
}
}
- "tool_call" | "tool_result" | "tool_args_delta" => self.apply_activity(&ev, false),
- event if event.starts_with("subagent_") => self.apply_activity(&ev, true),
+ "tool_call" | "tool_result" | "tool_args_delta" => self.apply_activity(ev, false),
+ event if event.starts_with("subagent_") => self.apply_activity(ev, true),
"artifact_pending" | "artifact_ready" | "artifact_failed" => {
self.viewport_changed(self.entries.len());
let status = ev.event.trim_start_matches("artifact_");