Your team of AI agents, on your Mac, Windows or Linux. Agents that talk in channels, write code, review each other and use your tools, on the Claude Code, Codex, OpenCode or Pi you already have. Anything that touches the real world waits for your yes.
TypeScript agent-teamagentic-aiai-agentsai-assistantclaude-codecodexcursorelectrongrokgrok-bot-alternativelinuxlocal-firstmacosmcpmulti-agentopenclaw-alternativeopencodewindows
Keep a channel's archived agents out of the room (#13)
Gian Moraesd684bee21539
diff --git a/src/renderer/src/components/Conversation.tsx b/src/renderer/src/components/Conversation.tsxindex bcb511f..982c201 100644--- a/src/renderer/src/components/Conversation.tsx+++ b/src/renderer/src/components/Conversation.tsx@@ -45,7 +45,13 @@ import { AgentProposal } from './Tuca'export function ConversationView({ id }: { id: string }): ReactNode {const conv = useStore((s) => s.conversations.find((c) => c.id === id))const title = useStore((s) => (conv ? conversationTitle(s, conv) : ''))- const members = useStore((s) => (conv ? conv.members.map((m) => agentById(s, m)).filter((a): a is Agent => !!a) : []))+ // An archived agent stays in the channel for when it comes back, but it isn't in+ // the room: out of the stack, the count and the @ list. A DM still shows whose it is.+ const members = useStore((s) => {+ if (!conv) return []+ const all = conv.members.map((m) => agentById(s, m)).filter((a): a is Agent => !!a)+ return conv.kind === 'dm' ? all : all.filter(isTeam)+ })const messages = useStore((s) => s.messages.filter((m) => m.conversationId === id))const focus = useStore((s) => (s.view?.kind === 'conversation' && s.view.id === id ? s.view.message : undefined))const [showSummary, setShowSummary] = useState(false)diff --git a/src/renderer/src/components/Dialogs.tsx b/src/renderer/src/components/Dialogs.tsxindex 580ab54..8ee6c6f 100644--- a/src/renderer/src/components/Dialogs.tsx+++ b/src/renderer/src/components/Dialogs.tsx@@ -53,6 +53,8 @@ function MembersDialog({ id, name, members, onClose }: { id: string; name: strinconst [error, setError] = useState<string | null>(null)const toggle = (a: string): void => setPicked(picked.includes(a) ? picked.filter((x) => x !== a) : [...picked, a])const changed = picked.length !== members.length || picked.some((a) => !members.includes(a))+ // Archived agents can't be shown, so they don't show up in the count either (they stay picked: saving keeps them in the channel).+ const inRoom = picked.filter((a) => agents.some((x) => x.id === a))return (<Modal title={L(`Agentes em #${name}`, `Agents in #${name}`)} onClose={onClose}><p className="muted small modal__lead">{L('Quem está no canal lê a conversa e pode responder. Sem @menção, o router escolhe entre eles.', 'Whoever is in the channel reads the conversation and can reply. Without an @mention, the router picks among them.')}</p>@@ -77,7 +79,7 @@ function MembersDialog({ id, name, members, onClose }: { id: string; name: strin{error && <p className="field__error">{error}</p>}<footer className="modal__foot"><span className="muted small">- {picked.length} {picked.length === 1 ? L('agente', 'agent') : L('agentes', 'agents')}+ {inRoom.length} {inRoom.length === 1 ? L('agente', 'agent') : L('agentes', 'agents')}</span><button className="btn btn--ghost btn--sm" onClick={onClose}>{L('Cancelar', 'Cancel')}