Skip to content

Open-source AI teammates in Slack, Teams, Discord, Telegram and Mattermost. Self-host it, with any agent harness and any model.

594 B
Raw Blame
import { chatsStore } from '@renderer/features/chats/stores/chats';
import { queryClient } from '@renderer/lib/query-client';

/**
 * An agent's name or display name changed: read again what shows it in rooms
 * and chats, which nothing else refreshes until a reload — the rooms' own
 * participant lists and the chat summaries mention suggestions are read from.
 */
export function agentNamesChanged(): void {
  for (const key of ['remote-room-detail', 'chat-members', 'workspace-agents'])
    void queryClient.invalidateQueries({ queryKey: [key] });
  void chatsStore.refreshSummaries();
}