Skip to content

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

feat(channels): wire progressive transport into host callbacks

Steven Enamakel9a068a75df74
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 7c2df04b20..620d18cde3 100644
--- a/crates/openhuman-core/src/channels/runtime/startup/module_providers.rs
+++ b/crates/openhuman-core/src/channels/runtime/startup/module_providers.rs
@@ -1,6 +1,6 @@
//! Host adapters over one identity-scoped TinyChannels module object.
-use super::callback::ChannelHostCallbacks;
+use super::callback::{ChannelHostCallbacks, ProgressiveChannelTransport};
use super::credentials::hydrate_channel_credentials;
use crate::channels::runtime::dispatch::RuntimeChannelMessage;
use crate::config::Config;
@@ -73,8 +73,14 @@ impl ModuleChannelRuntime {
tracing::warn!("[channels] legacy delivery import failed, will retry: {error:#}");
}
}
- let callback =
- ChannelHostCallbacks::new(dispatch_ctx, Arc::clone(&config), context, dispatch);
+ let progressive_channels = Arc::new(OnceLock::new());
+ let callback = ChannelHostCallbacks::new(
+ dispatch_ctx,
+ Arc::clone(&config),
+ context,
+ Arc::clone(&progressive_channels),
+ dispatch,
+ );
let lease = ChannelRuntimeLease::open(client.clone(), callback)
.await
.map_err(anyhow::Error::new)