Skip to content

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

fix(channels): remove agent reply timeout

Steven Enamakel24bddf0d3339
diff --git a/crates/openhuman-core/src/channels/bus/subscriber.rs b/crates/openhuman-core/src/channels/bus/subscriber.rs
index 4023892b36..8a3424d68b 100644
--- a/crates/openhuman-core/src/channels/bus/subscriber.rs
+++ b/crates/openhuman-core/src/channels/bus/subscriber.rs
@@ -173,8 +173,6 @@ async fn run_channel_reply_loop(
session: tokio_util::sync::CancellationToken,
reply: &dyn ProgressiveReplySink,
) {
- let timeout = tokio::time::Duration::from_secs(180);
- let deadline = tokio::time::Instant::now() + timeout;
let mut pending = Vec::with_capacity(32);
let mut batch_timer = tokio::time::interval(tokio::time::Duration::from_millis(20));
batch_timer.set_missed_tick_behavior(tokio::time::MissedTickBehavior::Delay);
@@ -188,11 +186,6 @@ async fn run_channel_reply_loop(
return;
}
}
- _ = tokio::time::sleep_until(deadline) => {
- tracing::error!("[channel-inbound] agent timed out after {}s", timeout.as_secs());
- let _ = reply.finalize("Sorry, the request timed out.").await;
- return;
- }
event = event_rx.recv() => {
match event {
Ok(ev) if ev.context().request_id == request_id => {