👌 IMPROVE: responsiveness

This commit is contained in:
kumarabhirup 2026-03-19 19:46:52 -07:00
parent 5ebb752600
commit 3b211eee04
No known key found for this signature in database
GPG Key ID: DB7CA2289CAB0167
2 changed files with 3 additions and 3 deletions

View File

@ -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,

View File

@ -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<string, unknown>;
entries.push({