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
style(console): format three files for main's newer oxfmt
raullopez-sandboxcd65ef3cff71
diff --git a/console/apps/switch-console-desktop/src/renderer/features/chats/components/chat-composer.tsx b/console/apps/switch-console-desktop/src/renderer/features/chats/components/chat-composer.tsxindex 5142c221a..f7b7ebf4c 100644--- a/console/apps/switch-console-desktop/src/renderer/features/chats/components/chat-composer.tsx+++ b/console/apps/switch-console-desktop/src/renderer/features/chats/components/chat-composer.tsx@@ -321,12 +321,16 @@ export const ChatComposer = observer(function ChatComposer({const query = mentionable ? mentionQuery(draft, caret) : null;const suggestions: Suggestion[] = query? [- ...filterMentionAgents(agents, query.query).map(- (agent): Suggestion => ({ kind: 'agent', id: agent.id, agent })- ),- ...filterMentionPeople(mentionPeople, query.query).map(- (person): Suggestion => ({ kind: 'person', id: `user:${person.userId}`, person })- ),+ ...filterMentionAgents(agents, query.query).map((agent): Suggestion => ({+ kind: 'agent',+ id: agent.id,+ agent,+ })),+ ...filterMentionPeople(mentionPeople, query.query).map((person): Suggestion => ({+ kind: 'person',+ id: `user:${person.userId}`,+ person,+ })),]: [];const suggesting = query !== null && query.start !== dismissedAt && suggestions.length > 0;diff --git a/console/apps/switch-console-desktop/src/renderer/features/chats/mentions.ts b/console/apps/switch-console-desktop/src/renderer/features/chats/mentions.tsindex 144c51e24..c4826caad 100644--- a/console/apps/switch-console-desktop/src/renderer/features/chats/mentions.ts+++ b/console/apps/switch-console-desktop/src/renderer/features/chats/mentions.ts@@ -233,14 +233,12 @@ export function mentionSpans(tokens: MentionToken[]): ChatMentionSpan[] {export function tokensFromSpans(body: string, spans: ChatMentionSpan[]): MentionToken[] {return spans.filter((span) => span.offset >= 0 && span.offset + span.length <= body.length)- .map(- (span): MentionToken => ({- kind: span.kind === 'user' ? 'person' : 'agent',- id: span.id,- start: span.offset,- end: span.offset + span.length,- })- )+ .map((span): MentionToken => ({+ kind: span.kind === 'user' ? 'person' : 'agent',+ id: span.id,+ start: span.offset,+ end: span.offset + span.length,+ })).sort((a, b) => a.start - b.start);}diff --git a/console/apps/switch-console-desktop/src/renderer/features/switch-servers/room-filters.ts b/console/apps/switch-console-desktop/src/renderer/features/switch-servers/room-filters.tsindex 8afa65288..2a79cb049 100644--- a/console/apps/switch-console-desktop/src/renderer/features/switch-servers/room-filters.ts+++ b/console/apps/switch-console-desktop/src/renderer/features/switch-servers/room-filters.ts@@ -40,24 +40,22 @@ export function withConsoleGroupChats(const listed = new Set(rooms.map((room) => room.id));const added = [...chats].filter((chat) => isConsoleGroupChatSummary(chat) && !listed.has(chat.roomId))- .map(- (chat): RemoteRoomSummary => ({- id: chat.roomId,- name: chat.name,- description: '',- channelType: chat.channelType,- agentCount: chat.agents.length,- bridgeDisplayName: null,- bridgeType: null,- externalChannelUrl: null,- // shortcut: a chat summary names no owner, so a chat-only row offers no delete; read it from the room detail if one is wanted.- ownerId: null,- viewerIsMember: true,- isConsoleChat: true,- archived: false,- createdAt: chat.lastMessage?.sentAt ?? '',- })- );+ .map((chat): RemoteRoomSummary => ({+ id: chat.roomId,+ name: chat.name,+ description: '',+ channelType: chat.channelType,+ agentCount: chat.agents.length,+ bridgeDisplayName: null,+ bridgeType: null,+ externalChannelUrl: null,+ // shortcut: a chat summary names no owner, so a chat-only row offers no delete; read it from the room detail if one is wanted.+ ownerId: null,+ viewerIsMember: true,+ isConsoleChat: true,+ archived: false,+ createdAt: chat.lastMessage?.sentAt ?? '',+ }));if (added.length === 0) return rooms;return [...rooms, ...added].sort((a, b) => a.name.localeCompare(b.name));}