Skip to content

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

fix(channels): route progressive sends through typed send path

Steven Enamakel0d30a9c6a41e
diff --git a/crates/openhuman-core/src/channels/runtime/startup/module_providers.rs b/crates/openhuman-core/src/channels/runtime/startup/module_providers.rs
index 9440b35cf6..ee0b5d6424 100644
--- a/crates/openhuman-core/src/channels/runtime/startup/module_providers.rs
+++ b/crates/openhuman-core/src/channels/runtime/startup/module_providers.rs
@@ -485,7 +485,7 @@ impl Channel for ModuleChannel {
}
impl ModuleChannel {
- async fn send_progressive_typed(
+ pub(super) async fn send_progressive_typed(
&self,
message: &tinychannels_bus::channel::ChannelOutboundMessage,
) -> anyhow::Result<tinychannels_bus::channel::ChannelSendOutcome> {
diff --git a/crates/openhuman-core/src/channels/runtime/startup/progressive_transport.rs b/crates/openhuman-core/src/channels/runtime/startup/progressive_transport.rs
index dedc389ea4..ac0263efeb 100644
--- a/crates/openhuman-core/src/channels/runtime/startup/progressive_transport.rs
+++ b/crates/openhuman-core/src/channels/runtime/startup/progressive_transport.rs
@@ -46,7 +46,7 @@ impl ProgressiveChannelTransport for ModuleChannel {
parts,
};
let outcome = self
- .send_typed_with_receipt(&outbound)
+ .send_progressive_typed(&outbound)
.await
.map_err(|_| tinybus::Error::failed("progressive channel send failed"))?;
Ok(Result::Outcome(Box::new(outcome)))
@@ -77,7 +77,7 @@ impl ProgressiveChannelTransport for ModuleChannel {
outbound.idempotency_key = key;
}
let outcome = self
- .send_typed_with_receipt(&outbound)
+ .send_progressive_typed(&outbound)
.await
.map_err(|_| tinybus::Error::failed("progressive channel send failed"))?;
Ok(Result::Outcome(Box::new(outcome)))