Skip to content

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

refactor(channels): update cron channel bridge registration

Steven Enamakel1ae2c42237a0
diff --git a/crates/openhuman-core/src/channels/runtime/startup/start_channels.rs b/crates/openhuman-core/src/channels/runtime/startup/start_channels.rs
index 0d085c7cab..d8a1521dba 100644
--- a/crates/openhuman-core/src/channels/runtime/startup/start_channels.rs
+++ b/crates/openhuman-core/src/channels/runtime/startup/start_channels.rs
@@ -253,7 +253,7 @@ async fn start_channels_inner(mut config: Config, session: CancellationToken) ->
// Cron channel context and replies use the durable agent transcript; this
// bridge retains only the live channel transport adapters.
crate::cron::channel_bridge::register_channel_bridge(Arc::clone(
- &runtime_ctx.channels_by_name,
+ &runtime_ctx.module_objects,
));
let startup = module_runtime
@@ -271,6 +271,7 @@ async fn start_channels_inner(mut config: Config, session: CancellationToken) ->
_ = session.cancelled() => {},
_ = run_message_dispatch_loop(rx, runtime_ctx, max_in_flight_messages) => {},
}
+ crate::cron::channel_bridge::clear_channel_bridge();
if let Some(runtime) = module_runtime.as_mut() {
runtime.close().await?;
}