From b6c8da8cca3e383f3dc09369fd29133fa133e8e5 Mon Sep 17 00:00:00 2001 From: Adolfo Delorenzo Date: Wed, 25 Mar 2026 17:48:22 -0600 Subject: [PATCH] fix: increase WebSocket pub-sub timeout from 60s to 180s LLM responses can take >60s (especially with local models). The WebSocket listener was timing out before the response arrived, causing agent replies to appear in logs but not in the chat UI. Co-Authored-By: Claude Opus 4.6 (1M context) --- packages/gateway/gateway/channels/web.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/gateway/gateway/channels/web.py b/packages/gateway/gateway/channels/web.py index 5f76639..5649b31 100644 --- a/packages/gateway/gateway/channels/web.py +++ b/packages/gateway/gateway/channels/web.py @@ -58,7 +58,7 @@ logger = logging.getLogger(__name__) web_chat_router = APIRouter(tags=["web-chat"]) # Timeout for waiting for an agent response via Redis pub-sub (seconds) -_RESPONSE_TIMEOUT_SECONDS = 60 +_RESPONSE_TIMEOUT_SECONDS = 180 def normalize_web_event(event: dict[str, Any]) -> KonstructMessage: