Open-source AI teammates in Slack, Teams, Discord, Telegram and Mattermost. Self-host it, with any agent harness and any model.
Python agent-orchestrationaiai-agentschatopsdiscordlangchainmcpmicrosoft-teamsmulti-agentopen-sourceopenaiself-hostedslack
fix(console): name an invited group chat in the sidebar room list
raullopez-sandbox08903c2cd41b
diff --git a/console/apps/switch-console-desktop/src/renderer/features/sidebar/sidebar-room-grouping.test.ts b/console/apps/switch-console-desktop/src/renderer/features/sidebar/sidebar-room-grouping.test.tsindex 54a423f68..2894d49c1 100644--- a/console/apps/switch-console-desktop/src/renderer/features/sidebar/sidebar-room-grouping.test.ts+++ b/console/apps/switch-console-desktop/src/renderer/features/sidebar/sidebar-room-grouping.test.ts@@ -10,6 +10,7 @@ vi.mock('@renderer/features/switch-rooms/switch-rooms-store', () => ({vi.mock('@renderer/features/switch-servers/switch-rooms-store', () => ({switchRoomsStore: { roomNameById: (id: string) => id },}));+vi.mock('@renderer/features/chats/stores/chats', () => ({ chatsStore: { chat: () => undefined } }));const { groupByRoom } = await import('./sidebar-room-grouping');diff --git a/console/apps/switch-console-desktop/src/renderer/features/sidebar/sidebar-room-grouping.tsx b/console/apps/switch-console-desktop/src/renderer/features/sidebar/sidebar-room-grouping.tsxindex eec5daefd..6ecdecd48 100644--- a/console/apps/switch-console-desktop/src/renderer/features/sidebar/sidebar-room-grouping.tsx+++ b/console/apps/switch-console-desktop/src/renderer/features/sidebar/sidebar-room-grouping.tsx@@ -1,4 +1,5 @@import { ChevronRight, DoorOpen, ExternalLink, MoreVertical, Plus, Trash2 } from 'lucide-react';+import { chatsStore } from '@renderer/features/chats/stores/chats';import type { SessionStore } from '@renderer/features/sessions/stores/session-store';import { openRoomChannel } from '@renderer/features/switch-rooms/room-links';import { switchRoomsStore as roomConnectionsStore } from '@renderer/features/switch-rooms/switch-rooms-store';@@ -25,7 +26,7 @@ export function sessionRoomId(session: SessionStore): string | null {export function roomLabel(roomKey: string): string {if (roomKey === UNASSIGNED_ROOM_KEY) return 'Unassigned';- return switchRoomsStore.roomNameById(roomKey) ?? `Room ${roomKey.slice(0, 8)}`;+ return roomName(roomKey) ?? `Room ${roomKey.slice(0, 8)}`;}/**@@ -39,7 +40,12 @@ export function roomLabel(roomKey: string): string {*/export function isRoomNameKnown(roomKey: string): boolean {if (roomKey === UNASSIGNED_ROOM_KEY) return true;- return switchRoomsStore.roomNameById(roomKey) !== null;+ return roomName(roomKey) !== null;+}++/** From the room list, else from the chats list, which holds the chats you were invited to. */+function roomName(roomKey: string): string | null {+ return switchRoomsStore.roomNameById(roomKey) ?? chatsStore.chat(roomKey)?.name ?? null;}/**