Skip to content

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

fix(web_chat): treat only final messages as terminal events

Steven Enamakelffe952471771
diff --git a/crates/openhuman-core/src/web_chat/surface.rs b/crates/openhuman-core/src/web_chat/surface.rs
index ca06f97e66..47a3df23b7 100644
--- a/crates/openhuman-core/src/web_chat/surface.rs
+++ b/crates/openhuman-core/src/web_chat/surface.rs
@@ -154,12 +154,7 @@ impl Surface {
return;
}
};
- let terminal = matches!(
- &event,
- ChannelOutputEvent::FinalMessage { .. }
- | ChannelOutputEvent::ChatError { .. }
- | ChannelOutputEvent::ChatCancelled { .. }
- );
+ let terminal = matches!(&event, ChannelOutputEvent::FinalMessage { .. });
let projected: tinychannels_bus::module_web_output::WebOutputEvents = match state
.module
.call_confidential(