Skip to content

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

fix(channels): handle missing response text in inbound subscriber

Steven Enamakel408468be3f36
diff --git a/crates/openhuman-core/src/channels/bus/subscriber.rs b/crates/openhuman-core/src/channels/bus/subscriber.rs
index 3c812466c0..febc55de97 100644
--- a/crates/openhuman-core/src/channels/bus/subscriber.rs
+++ b/crates/openhuman-core/src/channels/bus/subscriber.rs
@@ -191,7 +191,7 @@ impl EventHandler<DomainEvent> for ChannelInboundSubscriber {
tracing::error!("[channel-inbound] delivery failed: {error}");
return;
}
- let full_response = full_response.as_str();
+ let full_response = full_response.as_deref().unwrap_or_default();
// Even when the agent produced no visible
// text, we must close out any draft we
// already posted — otherwise the user is