Skip to content

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

fix(web_chat): log unprojected subagent progress events

Steven Enamakele7274a1044e3
diff --git a/crates/openhuman-core/src/web_chat/progress_subagent.rs b/crates/openhuman-core/src/web_chat/progress_subagent.rs
index c70db7ea53..8d32fd58c0 100644
--- a/crates/openhuman-core/src/web_chat/progress_subagent.rs
+++ b/crates/openhuman-core/src/web_chat/progress_subagent.rs
@@ -12,6 +12,7 @@ impl ProgressProjection {
event: AgentProgress,
ledger_context: ProgressLedgerContext,
) {
+ let event_kind = std::mem::discriminant(&event);
if let AgentProgress::SubagentFailed {
agent_id, error, ..
} = &event
@@ -27,6 +28,11 @@ impl ProgressProjection {
if let Some(output) = map::subagent_event(event, self.round, ledger_context.parent_call_id)
{
self.surface.output(output).await;
+ } else {
+ log::debug!(
+ "[web_channel][bridge] unprojected event={event_kind:?} request_id={}",
+ self.ids.request_id,
+ );
}
}
}