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
feat(console): address a group chat's composer to the chat
raullopez-sandboxfd516b169193
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 ff92ede33..2af578453 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@@ -135,6 +135,7 @@ export const ChatComposer = observer(function ChatComposer({serverId,timeline,agents,+ groupName,activity,replyTo,onClearReply,@@ -143,6 +144,8 @@ export const ChatComposer = observer(function ChatComposer({serverId: string;timeline: ChatTimeline;agents: ChatAgent[];+ /** The chat's name when it is a group, which is who a message goes to; null in a direct chat. */+ groupName: string | null;activity: AgentActivity | null;replyTo: ChatMessage | null;onClearReply: () => void;@@ -187,6 +190,7 @@ export const ChatComposer = observer(function ChatComposer({return () => document.removeEventListener('keydown', onKeyDown);}, []);const agent = agents[0] ?? null;+ const recipient = groupName ?? (agent ? chatAgentLabel(agent) : 'the agent');const stopActivity = activity?.runningTurn ? activity : null;const addFiles = (list: File[]) => {@@ -287,8 +291,8 @@ export const ChatComposer = observer(function ChatComposer({<PromptInputTextarearef={input}className="min-h-0 px-1 py-1.5"- aria-label={`Message ${agent ? chatAgentLabel(agent) : 'the agent'}`}- placeholder={disabled ?? `Message ${agent ? chatAgentLabel(agent) : 'the agent'}...`}+ aria-label={`Message ${recipient}`}+ placeholder={disabled ?? `Message ${recipient}...`}value={draft}disabled={disabled !== null}onChange={(event) => {diff --git a/console/apps/switch-console-desktop/src/renderer/features/chats/components/chat-panel.tsx b/console/apps/switch-console-desktop/src/renderer/features/chats/components/chat-panel.tsxindex bde28a362..defc68e8c 100644--- a/console/apps/switch-console-desktop/src/renderer/features/chats/components/chat-panel.tsx+++ b/console/apps/switch-console-desktop/src/renderer/features/chats/components/chat-panel.tsx@@ -177,6 +177,7 @@ export const ChatPanel = observer(function ChatPanel({serverId={serverId}timeline={timeline}agents={chat?.agents ?? []}+ groupName={chat && chat.channelType !== 'direct' ? chat.name : null}activity={activities[0] ?? null}replyTo={replyTo}onClearReply={() => setReplyTo(null)}