Skip to content

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

refactor(web_chat): route tool call args delta through turn_event mapper

Steven Enamakelf6b69767c148
diff --git a/crates/openhuman-core/src/web_chat/progress.rs b/crates/openhuman-core/src/web_chat/progress.rs
index 40c103fc02..665e868e8e 100644
--- a/crates/openhuman-core/src/web_chat/progress.rs
+++ b/crates/openhuman-core/src/web_chat/progress.rs
@@ -292,12 +292,15 @@ impl ProgressProjection {
iteration,
} => {
self.surface
- .output(ChannelOutputEvent::ToolCallArgsDelta {
- call_id,
- tool_name,
- delta,
- iteration,
- })
+ .output(
+ map::turn_event(AgentProgress::ToolCallArgsDelta {
+ call_id,
+ tool_name,
+ delta,
+ iteration,
+ })
+ .expect("tool argument progress maps to a channel event"),
+ )
.await;
}
AgentProgress::ToolCallProgress { call_id, message } => {