From 3b211eee043ff32be6a5816dc92afeef58acd139 Mon Sep 17 00:00:00 2001 From: kumarabhirup Date: Thu, 19 Mar 2026 19:46:52 -0700 Subject: [PATCH] =?UTF-8?q?=F0=9F=91=8C=20IMPROVE:=20responsiveness?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/web/app/components/workspace/chat-sessions-sidebar.tsx | 2 +- apps/web/lib/gateway-transcript.ts | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/apps/web/app/components/workspace/chat-sessions-sidebar.tsx b/apps/web/app/components/workspace/chat-sessions-sidebar.tsx index 324e8e6de8e..2ffb1e47182 100644 --- a/apps/web/app/components/workspace/chat-sessions-sidebar.tsx +++ b/apps/web/app/components/workspace/chat-sessions-sidebar.tsx @@ -563,7 +563,7 @@ export function ChatSessionsSidebar({ }); } for (const [channel, channelSessions] of gatewayByChannel.entries()) { - if (channelOrder.includes(channel) || channel === "cron") continue; + if (channelOrder.includes(channel) || channel === "cron" || channel === "unknown") continue; const meta = CHANNEL_META[channel]; result.push({ id: channel, diff --git a/apps/web/lib/gateway-transcript.ts b/apps/web/lib/gateway-transcript.ts index d8861697830..307b56a88c3 100644 --- a/apps/web/lib/gateway-transcript.ts +++ b/apps/web/lib/gateway-transcript.ts @@ -41,7 +41,7 @@ function deriveChannelFromKey(sessionKey: string, lastChannel?: string): string const parts = sessionKey.split(":"); if (parts.length >= 3) { const segment = parts[2]; - if (segment === "web") return "webchat"; + if (segment === "web" || segment === "main") return "webchat"; if (segment === "cron") return "cron"; if (segment === "telegram" || segment === "whatsapp" || segment === "discord" || segment === "slack" || segment === "signal" || segment === "imessage" @@ -67,7 +67,7 @@ export function readGatewaySessionsForAgent(agentId: string): GatewaySessionEntr if (key.includes(":subagent:")) continue; const channel = deriveChannelFromKey(key, val.lastChannel as string | undefined); - if (channel === "webchat") continue; + if (channel === "webchat" || channel === "unknown") continue; const origin = (val.origin ?? {}) as Record; entries.push({