Skip to content

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

chore(web_chat): add debug tracing to surface output path

Steven Enamakelb5530b0ec3f2
diff --git a/crates/openhuman-core/src/web_chat/surface.rs b/crates/openhuman-core/src/web_chat/surface.rs
index 06fb4f66cf..916aa82c37 100644
--- a/crates/openhuman-core/src/web_chat/surface.rs
+++ b/crates/openhuman-core/src/web_chat/surface.rs
@@ -188,11 +188,14 @@ impl Surface {
/// sequence order. Module errors fail closed; the host never reimplements
/// the projection locally.
pub(crate) async fn output(&self, event: ChannelOutputEvent) {
+ eprintln!("surface output invoked");
self.project(event, None).await;
}
async fn project(&self, event: ChannelOutputEvent, interim_round: Option<u32>) {
+ eprintln!("surface project waiting for state");
let mut state = self.state.lock().await;
+ eprintln!("surface project acquired state");
if state.closed {
log::debug!(
"[web-channel] dropping output after terminal request_id={}",