Skip to content

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

refactor(channels): reuse shared ReplyContext from tinychannels_bus

Steven Enamakelc34eda565662
diff --git a/crates/openhuman-core/src/channels/host/channel_events.rs b/crates/openhuman-core/src/channels/host/channel_events.rs
index b140482891..f3ab8ad75b 100644
--- a/crates/openhuman-core/src/channels/host/channel_events.rs
+++ b/crates/openhuman-core/src/channels/host/channel_events.rs
@@ -8,13 +8,7 @@ use std::path::PathBuf;
use std::sync::{Arc, Mutex};
use tinybus::module::ModuleClient;
use tinybus::EventHandler;
-use tinychannels_bus::ChannelMessage;
-
-#[derive(Clone)]
-struct ReplyContext {
- reply_target: String,
- thread_ts: Option<String>,
-}
+use tinychannels_bus::{ChannelMessage, approvals::ReplyContext};
/// Captures the account configuration and reply addresses used by approvals.
pub struct ChannelApprovalSurfaceSubscriber {