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
Rooms: a channel's card titles it #name, as the sidebar and the room do
Simon Flack401780a77438
diff --git a/console/apps/switch-console-desktop/src/renderer/features/switch-servers/room-card.tsx b/console/apps/switch-console-desktop/src/renderer/features/switch-servers/room-card.tsxindex 8c237e4f5..b87021dd1 100644--- a/console/apps/switch-console-desktop/src/renderer/features/switch-servers/room-card.tsx+++ b/console/apps/switch-console-desktop/src/renderer/features/switch-servers/room-card.tsx@@ -7,6 +7,7 @@ import {MoreVertical,User,} from 'lucide-react';+import { roomTitle } from '@renderer/features/switch-rooms/room-labels';import { ACCESS_LABELS } from '@renderer/features/switch-rooms/room-settings-sections';import { BridgeIcon, hasBridgeIcon } from '@renderer/lib/components/bridge-icon';import { Badge } from '@renderer/lib/ui/badge';@@ -80,7 +81,10 @@ export function RoomCard({</span>)}</span>- <h3 className="min-w-0 truncate font-medium text-foreground">{card.name}</h3>+ {/* A channel reads as one, `#name`, as it does in the sidebar and the room's title. */}+ <h3 className="min-w-0 truncate font-medium text-foreground">+ {roomTitle({ name: card.name, bridgeType: card.bridgeType })}+ </h3>{showYours && card.mine && <Badge variant="secondary">Yours</Badge>}</div><p className="line-clamp-2 text-sm text-foreground-muted">diff --git a/console/apps/switch-console-desktop/src/renderer/tests/browser/your-rooms-view.test.tsx b/console/apps/switch-console-desktop/src/renderer/tests/browser/your-rooms-view.test.tsxindex 30e1afb1b..9d2ef5fda 100644--- a/console/apps/switch-console-desktop/src/renderer/tests/browser/your-rooms-view.test.tsx+++ b/console/apps/switch-console-desktop/src/renderer/tests/browser/your-rooms-view.test.tsx@@ -194,10 +194,8 @@ async function render(): Promise<void> {const names = () =>[...container.querySelectorAll('[data-room-card] h3')].map((h) => h.textContent);-const cardFor = (name: string) =>- [...container.querySelectorAll<HTMLElement>('[data-room-card]')].find(- (card) => card.querySelector('h3')?.textContent === name- )!;+// Fixture rooms are named after their ids; a channel's card titles it `#name`.+const cardFor = (id: string) => container.querySelector<HTMLElement>(`[data-room-card="${id}"]`)!;const toggle = (label: string) =>[...container.querySelectorAll('button')].find((b) => b.textContent === label);const settle = async () => {@@ -214,9 +212,9 @@ it('lists your rooms by default, and drops a chat once you are removed from it',it('shows every room you can read under All rooms, never chats you are not in', async () => {await render();await act(async () => toggle('All rooms')!.click());- expect(names()).toEqual(['bobs-chat', 'private-tool-room', 'public-slack', 'yaml-room']);+ expect(names()).toEqual(['bobs-chat', 'private-tool-room', '#public-slack', 'yaml-room']);await removeFromBobsChat();- expect(names()).toEqual(['private-tool-room', 'public-slack', 'yaml-room']);+ expect(names()).toEqual(['private-tool-room', '#public-slack', 'yaml-room']);});it('keeps Mine to your rooms on a server Console runs, where the sidebar lists them all', async () => {@@ -266,7 +264,7 @@ it('lists archived rooms under Archived, and brings one back from its menu', asyawait settle();await act(async () => toggle('Archived')!.click());await settle();- expect(names()).toEqual(['old-slack']);+ expect(names()).toEqual(['#old-slack']);await act(async () =>cardFor('old-slack').querySelector<HTMLButtonElement>('[aria-label="old-slack actions"]')!