Skip to content

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

feat(channels): delegate typing refresh to module channels

Steven Enamakelbbe16da450a4
diff --git a/crates/openhuman-core/src/channels/runtime/startup.rs b/crates/openhuman-core/src/channels/runtime/startup.rs
index ca98a1a74d..34d9ad538d 100644
--- a/crates/openhuman-core/src/channels/runtime/startup.rs
+++ b/crates/openhuman-core/src/channels/runtime/startup.rs
@@ -180,10 +180,8 @@ impl ChannelHandle {
recipient: &str,
interval_secs: u64,
) -> anyhow::Result<Option<String>> {
- let _ = (recipient, interval_secs);
match self {
- // Typing refresh runs inside the module's progressive worker.
- Self::Module(_) => Ok(None),
+ Self::Module(module) => module.begin_typing_refresh(recipient, interval_secs).await,
Self::Relay(_) => Ok(None),
#[cfg(test)]
Self::Test(channel) => match &channel.begin_typing_refresh {
@@ -194,9 +192,8 @@ impl ChannelHandle {
}
pub(crate) async fn end_typing_refresh(&self, handle: &str) -> anyhow::Result<()> {
- let _ = handle;
match self {
- Self::Module(_) => Ok(()),
+ Self::Module(module) => module.end_typing_refresh(handle).await,
Self::Relay(_) => Ok(()),
#[cfg(test)]
Self::Test(channel) => match &channel.end_typing_refresh {