Open source Grok Bot alternative, Bring your own agent and subscription: message Claude Code, Codex, Gemini CLI, Cursor, Copilot and 40+ AI agents as bots on your own computer, from iPhone, Mac, Windows, Linux or terminal. Agent-agnostic and free. Also a Muse and Dots alternative. Built in Rust.
Rust acpagent-client-protocolai-agentsai-assistantclaudeclaude-codecodexcoding-agentscursorgeminigemini-cligrok-bot-alternativeiosiphonelinuxmacosmcpopen-sourcerustself-hosted
feat(desktop): redesign group details and member list
leepokai13a8fbbd07ed
diff --git a/apps/desktop/src/renderer/store/bot-store.ts b/apps/desktop/src/renderer/store/bot-store.tsindex c60b3013..9eadcd08 100644--- a/apps/desktop/src/renderer/store/bot-store.ts+++ b/apps/desktop/src/renderer/store/bot-store.ts@@ -230,6 +230,17 @@ export class BotStore extends BotSync {this.changed()}+ /** Takes one bot out of a group; an automatic "Alice, Bob" name follows the new roster. */+ removeMember(group: Bot, memberId: string) {+ const members = group.members.filter((m) => m !== memberId)+ const autoName = (ids: string[]) => ids.map((id) => this.bots.get(id)?.name).join(', ')+ const name = group.name === autoName(group.members) ? autoName(members) : group.name+ this.bots.set(group.id, { ...group, name, members })+ this.changed()+ const draft: GroupDraft = { id: group.id, kind: 'group', name, description: group.description, members, pinned: group.pinned }+ this.perform((c) => c.call('updateBot', draft), true)+ }+async loadThread(botId: string, root: string) {if (!this.client) returntry {diff --git a/apps/desktop/src/renderer/views/BotRow.tsx b/apps/desktop/src/renderer/views/BotRow.tsxindex de308293..7237b190 100644--- a/apps/desktop/src/renderer/views/BotRow.tsx+++ b/apps/desktop/src/renderer/views/BotRow.tsx@@ -1,5 +1,5 @@import { memo } from 'react'-import { folderName, isWorking, needsInput, type Bot } from '@shared/models'+import { folderName, isGroup, isWorking, needsInput, type Bot } from '@shared/models'import { AvatarWithStatus } from '../components/Avatar'import { Icon } from '../components/Icon'import { ThinkingOrb } from '../components/ThinkingOrb'@@ -71,5 +71,5 @@ function Preview({ bot, store }: { bot: Bot; store: BotStore }) {)}if (bot.status === 'error') return <span style={{ ...line, color: 'var(--danger)' }}>{firstLine(bot.lastMessage ?? 'Something went wrong')}</span>- return <span style={{ ...line, color: 'var(--secondary)' }}>{firstLine(bot.lastMessage ?? `${store.backendName(bot.backend)} · ${folderName(bot)}`)}</span>+ return <span style={{ ...line, color: 'var(--secondary)' }}>{firstLine(bot.lastMessage ?? (isGroup(bot) ? `${bot.members.length} bots` : `${store.backendName(bot.backend)} · ${folderName(bot)}`))}</span>}diff --git a/apps/desktop/src/renderer/views/bots/GroupEditorView.tsx b/apps/desktop/src/renderer/views/bots/GroupEditorView.tsxindex ce873fbb..5113ccd5 100644--- a/apps/desktop/src/renderer/views/bots/GroupEditorView.tsx+++ b/apps/desktop/src/renderer/views/bots/GroupEditorView.tsx@@ -1,13 +1,13 @@import { useState } from 'react'-import { folderName, isGroup, type Bot } from '@shared/models'+import { isGroup, type Bot } from '@shared/models'import { BotAvatar, GroupAvatar } from '../../components/Avatar'-import { Button, IconButton, Spinner } from '../../components/Controls'+import { IconButton, Spinner } from '../../components/Controls'import { Icon } from '../../components/Icon'import { Dialog, ModalHeader, useDismiss } from '../../components/Overlay'import { font } from '../../lib/fonts'import { useStore } from '../../store/context'import { errorText } from './drafts'-import { AutoTextArea, BotChip, Field } from './parts'+import { AutoTextArea } from './parts'import './bots.css'/**@@ -23,6 +23,8 @@ export function GroupEditorView({ group, members: initialMembers = [] }: { groupconst [about, setAbout] = useState(group?.description ?? '')const [members, setMembers] = useState<string[]>(group?.members ?? initialMembers)const [query, setQuery] = useState('')+ // A new group starts in the picker; an existing one shows its members first.+ const [adding, setAdding] = useState(group === null && initialMembers.length === 0)const [saving, setSaving] = useState(false)const [error, setError] = useState<string | null>(null)const [confirmDelete, setConfirmDelete] = useState<Bot | null>(null)@@ -61,56 +63,58 @@ export function GroupEditorView({ group, members: initialMembers = [] }: { group<div style={{ display: 'flex', flexDirection: 'column', height: '100%', background: 'var(--background)' }}><ModalHeader title={isNew ? 'New group chat' : 'Group chat'} trailing={saving ? <Spinner /> : <IconButton title={isNew ? 'Create' : 'Save'} icon="checkmark" disabled={!canSave} onClick={save} />} /><div style={{ flex: 1, minHeight: 0, overflowY: 'auto' }}>- <div style={{ display: 'flex', flexDirection: 'column', gap: 12, padding: 16, ...font('body') }}>- <div style={{ display: 'flex', justifyContent: 'center' }}>- <GroupAvatar members={picked} size={72} />+ <div className="group-form">+ <div className="group-identity">+ <GroupAvatar members={picked} size={84} />+ <input className="group-name" value={name} placeholder={defaultName} aria-label="Name" onChange={(e) => setName(e.target.value)} />+ <AutoTextArea className="group-about" value={about} placeholder="What this group works on" minRows={1} maxRows={4} onChange={setAbout} /></div>- <Field label={`Bots · ${members.length}`}>- <div style={{ display: 'flex', flexDirection: 'column', gap: 8 }}>- {picked.length ? (- <div className="chip-row">- {picked.map((bot) => (- <BotChip key={bot.id} bot={bot} onRemove={() => toggle(bot.id)} />- ))}- </div>- ) : null}- <input- className="field-box"- value={query}- placeholder={picked.length ? 'Add another bot' : 'Search bots'}- onChange={(e) => setQuery(e.target.value)}- onKeyDown={(e) => {- if (e.key === 'Enter' && !e.nativeEvent.isComposing && candidates[0]) toggle(candidates[0].id)- }}- />- <div style={{ display: 'flex', flexDirection: 'column', gap: 2 }}>+ <div style={{ display: 'flex', flexDirection: 'column' }}>+ <div className="group-section-title">Members</div>+ {picked.map((bot) => (+ <div key={bot.id} className="member-row fade-in">+ <BotAvatar bot={bot} size={32} animated={false} />+ <span className="member-name">{bot.name}</span>+ <IconButton title={`Remove ${bot.name}`} icon="xmark" onClick={() => toggle(bot.id)} />+ </div>+ ))}+ {adding ? (+ <>+ <input+ className="field-box fade-in"+ style={{ margin: '6px 0', background: 'var(--surface)' }}+ autoFocus+ value={query}+ placeholder="Search bots"+ onChange={(e) => setQuery(e.target.value)}+ onKeyDown={(e) => {+ if (e.key === 'Enter' && !e.nativeEvent.isComposing && candidates[0]) toggle(candidates[0].id)+ if (e.key === 'Escape') setAdding(false)+ }}+ />{candidates.map((bot) => (- <button key={bot.id} className="press pick-row fade-in" aria-label={`Add ${bot.name}`} onClick={() => toggle(bot.id)}>- <BotAvatar bot={bot} size={26} animated={false} />- <span style={{ flex: 1, minWidth: 0, display: 'flex', flexDirection: 'column', gap: 1 }}>- <span style={{ color: 'var(--text)', whiteSpace: 'nowrap', overflow: 'hidden', textOverflow: 'ellipsis' }}>{bot.name}</span>- <span style={{ ...font('caption'), color: 'var(--tertiary)', whiteSpace: 'nowrap', overflow: 'hidden', textOverflow: 'ellipsis' }}>{folderName(bot)}</span>- </span>- <Icon name="plus.circle" size={20} color="var(--tertiary)" />+ <button key={bot.id} className="member-row press fade-in" aria-label={`Add ${bot.name}`} onClick={() => toggle(bot.id)}>+ <BotAvatar bot={bot} size={32} animated={false} />+ <span className="member-name" style={{ color: 'var(--secondary)' }}>{bot.name}</span>+ <Icon name="plus.circle" size={18} color="var(--secondary)" /></button>))}- </div>- </div>- <span style={{ ...font('caption'), color: 'var(--tertiary)' }}>Everyone answers in turn unless you @mention someone. Each bot works in its own folder with its own tools.</span>- </Field>- <Field label="Name">- <input className="field-box" value={name} placeholder={defaultName} onChange={(e) => setName(e.target.value)} />- </Field>- <Field label="About">- <AutoTextArea className="field-box" value={about} placeholder="What this group works on (optional)" minRows={2} maxRows={5} onChange={setAbout} />- </Field>+ </>+ ) : candidates.length ? (+ <button className="member-row press" onClick={() => setAdding(true)}>+ <span style={{ width: 32, display: 'grid', placeItems: 'center' }}>+ <Icon name="plus" size={16} color="var(--secondary)" />+ </span>+ <span className="member-name" style={{ color: 'var(--secondary)' }}>Add Member</span>+ </button>+ ) : null}+ <div style={{ ...font('caption'), color: 'var(--tertiary)', padding: '10px 0 0' }}>Everyone answers in turn unless you @mention someone.</div>+ </div>{error ? <span className="fade-in" style={{ ...font('footnote'), color: 'var(--danger)' }}>{error}</span> : null}{current ? (- <div style={{ paddingTop: 8 }}>- <Button kind="secondary" onClick={() => setConfirmDelete(current)}>- Delete group chat- </Button>- </div>+ <button className="press" style={{ ...font('body'), color: 'var(--danger)', alignSelf: 'flex-start' }} onClick={() => setConfirmDelete(current)}>+ Delete group chat+ </button>) : null}</div></div>diff --git a/apps/desktop/src/renderer/views/bots/bots.css b/apps/desktop/src/renderer/views/bots/bots.cssindex 945eb81d..ac7c1294 100644--- a/apps/desktop/src/renderer/views/bots/bots.css+++ b/apps/desktop/src/renderer/views/bots/bots.css@@ -161,3 +161,90 @@ textarea.field-box {opacity: 0;}}++/* Group editor (Grok Bot's group details): identity on top, then a plain member list. */+.group-form {+ display: flex;+ flex-direction: column;+ gap: 28px;+ padding: 8px 20px 24px;+}+.group-identity {+ display: flex;+ flex-direction: column;+ align-items: center;+ gap: 10px;+}+.group-name,+.group-about {+ width: 100%;+ text-align: center;+ background: transparent;+ color: var(--text);+ resize: none;+}+.group-name {+ font-size: calc(22px * var(--scale));+ font-weight: 600;+ margin-top: 6px;+}+.group-about {+ font-size: calc(13px * var(--scale));+ color: var(--secondary);+ line-height: 1.35;+}+.group-name::placeholder,+.group-about::placeholder {+ color: var(--tertiary);+}+.group-section-title {+ font-size: calc(13px * var(--scale));+ font-weight: 600;+ color: var(--secondary);+ padding-bottom: 4px;+}+.member-row {+ display: flex;+ align-items: center;+ gap: 14px;+ width: calc(100% + 16px);+ min-height: 48px;+ margin: 0 -8px;+ padding: 4px 8px;+ border-radius: 12px;+ text-align: left;+ transition: background-color var(--hover), transform var(--press);+}+button.member-row:hover {+ background: var(--bubble-agent);+}+.member-name {+ flex: 1;+ min-width: 0;+ color: var(--text);+ white-space: nowrap;+ overflow: hidden;+ text-overflow: ellipsis;+}++/* A member row that opens the bot's chat, with a remove button shown on hover. */+.member-row.removable:hover {+ background: var(--bubble-agent);+}+.member-open {+ display: flex;+ align-items: center;+ gap: 14px;+ flex: 1;+ min-width: 0;+ min-height: 40px;+ text-align: left;+}+.member-row.removable > :last-child:not(.member-open) {+ opacity: 0;+ transition: opacity var(--hover);+}+.member-row.removable:hover > :last-child,+.member-row.removable:focus-within > :last-child {+ opacity: 1;+}diff --git a/apps/desktop/src/renderer/views/thread/Composer.tsx b/apps/desktop/src/renderer/views/thread/Composer.tsxindex 68285950..ce3014d5 100644--- a/apps/desktop/src/renderer/views/thread/Composer.tsx+++ b/apps/desktop/src/renderer/views/thread/Composer.tsx@@ -46,7 +46,7 @@ function DestinationComposer({ botId, thread, onCall, onInterrupt }: {const canSend = !empty && (store.connection.kind === 'online' || (store.canQueue && !files.length))const canAttach = !!bot- const placeholder = thread ? 'Reply…' : bot && isGroup(bot) ? `Message ${bot.name} · @ to ask one bot` : working ? `Queue a message for ${bot?.name ?? ''}` : `Ask ${bot?.name ?? ''}`+ const placeholder = thread ? 'Reply…' : bot && isGroup(bot) ? 'Message everyone · @ to ask one bot' : working ? `Queue a message for ${bot?.name ?? ''}` : `Ask ${bot?.name ?? ''}`// A routine's "Try it" fills the box.const routineDraft = store.routineDrafts.get(botId)diff --git a/apps/desktop/src/renderer/views/thread/DetailsPanel.tsx b/apps/desktop/src/renderer/views/thread/DetailsPanel.tsxindex 0bf8f072..6595a1c0 100644--- a/apps/desktop/src/renderer/views/thread/DetailsPanel.tsx+++ b/apps/desktop/src/renderer/views/thread/DetailsPanel.tsx@@ -2,7 +2,7 @@ import { useState, type ReactNode } from 'react'import { folderName, isGroup, isWorking, type Bot } from '@shared/models'import { AgentIcon } from '../../components/AgentIcon'import { BotAvatar } from '../../components/Avatar'-import { CardSection } from '../../components/Controls'+import { CardSection, IconButton } from '../../components/Controls'import { Icon } from '../../components/Icon'import { font } from '../../lib/fonts'import { useStore } from '../../store/context'@@ -10,6 +10,7 @@ import { BotSettingsPanel } from '../bots/BotEditorView'import { ComputerBadge } from '../ComputerBadge'import { RoutinesView } from '../routines/RoutinesView'import { MacChatButton } from './MacChatButton'+import '../bots/bots.css'const isMac = window.codync.platform === 'darwin'@@ -42,8 +43,7 @@ export function DetailsPanel({ botId, routineId, editing, setEditing, editGroup,header = (<><PanelTitle>Members</PanelTitle>- <span style={{ flex: 1 }} />- <RoundButton label="Edit group" symbol="gearshape" action={editGroup} />+ <span style={{ ...font(13), color: 'var(--tertiary)', flex: 1 }}>{bot.members.length}</span></>)} else {@@ -64,7 +64,7 @@ export function DetailsPanel({ botId, routineId, editing, setEditing, editGroup,</div><div style={{ flex: 1, minHeight: 0, position: 'relative', overflow: 'hidden' }}>{bot && isGroup(bot) ? (- <GroupMembersList group={bot} />+ <GroupMembersList group={bot} editGroup={editGroup} />) : editing ? (<div className="panel-slide from-trailing" style={{ height: '100%' }}><BotSettingsPanel botId={botId} />@@ -92,21 +92,29 @@ function RoundButton({ label, symbol, action }: { label: string; symbol: string;return <MacChatButton title={label} icon={symbol} direction={symbol === 'chevron.right.2' ? [1, 0] : [0, 0]} onClick={action} />}-/** A group's bots; clicking one opens its own chat. */-function GroupMembersList({ group }: { group: Bot }) {+/** A group's bots (Grok Bot's member list); clicking one opens its own chat. */+function GroupMembersList({ group, editGroup }: { group: Bot; editGroup: () => void }) {const store = useStore()return (- <div style={{ height: '100%', overflowY: 'auto', padding: '0 16px' }}>- <div style={{ ...font(13, 'semibold'), paddingBottom: 6 }}>{group.members.length} bots</div>+ <div style={{ height: '100%', overflowY: 'auto', padding: '0 20px' }}>{store.members(group).map((bot) => (- <button key={bot.id} className="press" title={`Open ${bot.name}'s own chat`} onClick={() => store.setSelection(bot.id)} style={{ display: 'flex', alignItems: 'center', gap: 10, padding: '6px 0', width: '100%' }}>- <BotAvatar bot={bot} size={26} />- <span style={{ display: 'flex', flexDirection: 'column', gap: 1, minWidth: 0, flex: 1 }}>- <span style={{ ...font(13), color: 'var(--text)' }}>{bot.name}</span>- <span style={{ ...font(11), color: 'var(--tertiary)', whiteSpace: 'nowrap', overflow: 'hidden', textOverflow: 'ellipsis' }}>{isWorking(bot) ? bot.activity || 'Working…' : folderName(bot)}</span>- </span>- </button>+ <div key={bot.id} className="member-row removable">+ <button className="member-open press" title={`Open ${bot.name}'s own chat`} onClick={() => store.setSelection(bot.id)}>+ <BotAvatar bot={bot} size={32} />+ <span style={{ display: 'flex', flexDirection: 'column', gap: 1, minWidth: 0, flex: 1 }}>+ <span className="member-name">{bot.name}</span>+ {isWorking(bot) ? <span className="member-name" style={{ ...font('compactSecondary'), color: 'var(--secondary)' }}>{bot.activity || 'Working…'}</span> : null}+ </span>+ </button>+ {group.members.length > 1 ? <IconButton title={`Remove ${bot.name} from the group`} icon="xmark" onClick={() => store.removeMember(group, bot.id)} /> : null}+ </div>))}+ <button className="member-row press" onClick={editGroup}>+ <span style={{ width: 32, display: 'grid', placeItems: 'center' }}>+ <Icon name="plus" size={16} color="var(--secondary)" />+ </span>+ <span className="member-name" style={{ color: 'var(--secondary)' }}>Add Member</span>+ </button></div>)}diff --git a/apps/desktop/src/renderer/views/thread/ThreadView.tsx b/apps/desktop/src/renderer/views/thread/ThreadView.tsxindex 385e927e..83490a04 100644--- a/apps/desktop/src/renderer/views/thread/ThreadView.tsx+++ b/apps/desktop/src/renderer/views/thread/ThreadView.tsx@@ -367,13 +367,14 @@ function Row({ item, chat, openTrace, openThread, openRoutine }: { item: ChatItefunction GroupIntroCard({ group }: { group: Bot }) {const store = useStore()const members = store.members(group)+ const names = members.map((m) => m.name)return (<div className="intro-card"><GroupAvatar members={members} size={72} /><div style={{ ...font('title2', 'semibold'), color: 'var(--text)' }}>{group.name}</div>- <div style={{ ...font('subheadline'), color: 'var(--secondary)' }}>{members.map((m) => m.name).join(' · ')}</div>+ {group.name !== names.join(', ') ? <div style={{ ...font('subheadline'), color: 'var(--secondary)' }}>{names.join(' · ')}</div> : null}{group.description ? <div style={{ ...font('subheadline'), color: 'var(--secondary)' }}>{group.description}</div> : null}- <div style={{ ...font('footnote'), color: 'var(--tertiary)', paddingTop: 4 }}>Everyone answers in turn. @mention a bot to ask just that one. Each bot works in its own folder.</div>+ <div style={{ ...font('footnote'), color: 'var(--tertiary)', paddingTop: 4, maxWidth: 360, textWrap: 'balance' }}>Everyone answers in turn. @mention a bot to ask just that one.</div></div>)}diff --git a/apps/ios/Kit/Sources/CodyncUI/Bots/BotEditorView.swift b/apps/ios/Kit/Sources/CodyncUI/Bots/BotEditorView.swiftindex 600998f1..22fd36d3 100644--- a/apps/ios/Kit/Sources/CodyncUI/Bots/BotEditorView.swift+++ b/apps/ios/Kit/Sources/CodyncUI/Bots/BotEditorView.swift@@ -289,11 +289,11 @@ private struct PluginToggles: View {extension View {/// A rounded input box.- func fieldBox() -> some View {+ func fieldBox(fill: Color = Palette.background) -> some View {textFieldStyle(.plain).padding(.horizontal, 14).padding(.vertical, 11)- .background(Palette.background, in: RoundedRectangle(cornerRadius: 12, style: .continuous))+ .background(fill, in: RoundedRectangle(cornerRadius: 12, style: .continuous))}}diff --git a/apps/ios/Kit/Sources/CodyncUI/Bots/BotRow.swift b/apps/ios/Kit/Sources/CodyncUI/Bots/BotRow.swiftindex 5530d9df..ef23b8e8 100644--- a/apps/ios/Kit/Sources/CodyncUI/Bots/BotRow.swift+++ b/apps/ios/Kit/Sources/CodyncUI/Bots/BotRow.swift@@ -79,7 +79,7 @@ public struct BotRow: View {.foregroundStyle(Palette.danger).lineLimit(1)} else {- Text(bot.lastMessage ?? "\(model.backendName(bot.backend)) · \(bot.folderName)")+ Text(bot.lastMessage ?? (bot.isGroup ? "\(bot.members.count) bots" : "\(model.backendName(bot.backend)) · \(bot.folderName)")).font(.subheadline).foregroundStyle(Palette.secondary).lineLimit(1)diff --git a/apps/ios/Kit/Sources/CodyncUI/Bots/GroupEditorView.swift b/apps/ios/Kit/Sources/CodyncUI/Bots/GroupEditorView.swiftindex d1f048b7..4fb897cc 100644--- a/apps/ios/Kit/Sources/CodyncUI/Bots/GroupEditorView.swift+++ b/apps/ios/Kit/Sources/CodyncUI/Bots/GroupEditorView.swift@@ -12,6 +12,8 @@ public struct GroupEditorView: View {@State private var about: String@State private var members: [String]@State private var query = ""+ /// A new group starts in the picker; an existing one shows its members first.+ @State private var adding: Bool@State private var saving = false@State private var error: String?@State private var confirmDelete: Bot?@@ -21,6 +23,7 @@ public struct GroupEditorView: View {_name = State(initialValue: group?.name ?? "")_about = State(initialValue: group?.description ?? "")_members = State(initialValue: group?.members ?? members)+ _adding = State(initialValue: group == nil && members.isEmpty)}private var picked: [Bot] { members.compactMap { model.bots[$0] } }@@ -43,52 +46,79 @@ public struct GroupEditorView: View {}}ScrollView {- VStack(alignment: .leading, spacing: 18) {- GroupAvatar(members: picked, size: 72)- .frame(maxWidth: .infinity)- .animation(Motion.layout, value: members)- Field("Bots · \(members.count)") {- VStack(alignment: .leading, spacing: 8) {- if !picked.isEmpty {- ScrollView(.horizontal, showsIndicators: false) {- HStack(spacing: 6) {- ForEach(picked) { bot in- BotChip(bot: bot) { toggle(bot.id) }- .transition(.scale(scale: 0.85).combined(with: .opacity))- }+ VStack(alignment: .leading, spacing: 28) {+ VStack(spacing: 10) {+ GroupAvatar(members: picked, size: 84)+ .animation(Motion.layout, value: members)+ TextField(defaultName, text: $name)+ .textFieldStyle(.plain)+ .font(.title2.weight(.semibold))+ .foregroundStyle(Palette.text)+ .multilineTextAlignment(.center)+ .padding(.top, 6)+ TextField("What this group works on", text: $about, axis: .vertical)+ .textFieldStyle(.plain)+ .lineLimit(1...4)+ .font(.subheadline)+ .foregroundStyle(Palette.secondary)+ .multilineTextAlignment(.center)+ }+ .frame(maxWidth: .infinity)+ VStack(alignment: .leading, spacing: 0) {+ Text("Members")+ .font(.subheadline.weight(.semibold))+ .foregroundStyle(Palette.secondary)+ .padding(.bottom, 4)+ ForEach(picked) { bot in+ memberRow(bot) {+ IconButton("Remove \(bot.name)", systemImage: "xmark") { toggle(bot.id) }+ }+ .transition(.opacity)+ }+ if adding {+ TextField("Search bots", text: $query)+ .fieldBox(fill: Palette.surface)+ .onSubmit { if let first = candidates.first { toggle(first.id) } }+ .padding(.vertical, 6)+ ForEach(candidates) { bot in+ Button { toggle(bot.id) } label: {+ memberRow(bot, dimmed: true) {+ Image(systemName: "plus.circle").font(.system(size: 18)).foregroundStyle(Palette.secondary)}}+ .buttonStyle(PressScale())+ .accessibilityLabel("Add \(bot.name)")}- TextField(picked.isEmpty ? "Search bots" : "Add another bot", text: $query)- .fieldBox()- .onSubmit { if let first = candidates.first { toggle(first.id) } }- VStack(spacing: 2) {- ForEach(candidates) { bot in candidateRow(bot) }+ } else if !candidates.isEmpty {+ Button { withAnimation(Motion.layout) { adding = true } } label: {+ HStack(spacing: 14) {+ Image(systemName: "plus").font(.system(size: 16)).foregroundStyle(Palette.secondary).frame(width: 32)+ Text("Add Member").foregroundStyle(Palette.secondary)+ Spacer(minLength: 0)+ }+ .frame(minHeight: 48)+ .contentShape(Rectangle())}+ .buttonStyle(PressScale())}- .animation(Motion.layout, value: members)- Text("Everyone answers in turn unless you @mention someone. Each bot works in its own folder with its own tools.")+ Text("Everyone answers in turn unless you @mention someone.").font(.caption).foregroundStyle(Palette.tertiary)+ .padding(.top, 10)}- Field("Name") {- TextField(defaultName, text: $name).fieldBox()- }- Field("About") {- TextField("What this group works on (optional)", text: $about, axis: .vertical)- .lineLimit(2...5)- .fieldBox()- }+ .animation(Motion.layout, value: members)if let error {Text(error).font(.footnote).foregroundStyle(Palette.danger).transition(.opacity)}if let group = groupId.flatMap({ model.bots[$0] }) {Button("Delete group chat", role: .destructive) { confirmDelete = group }- .buttonStyle(.secondary)- .padding(.top, 8)+ .foregroundStyle(Palette.danger)+ .buttonStyle(PressScale())}}- .padding(20)+ .padding(.horizontal, 20)+ .padding(.top, 8)+ .padding(.bottom, 24)}.scrollDismissesKeyboard(.interactively)}@@ -109,25 +139,16 @@ public struct GroupEditorView: View {query = ""}- private func candidateRow(_ bot: Bot) -> some View {- Button { toggle(bot.id) } label: {- HStack(spacing: 12) {- CharacterAvatar(bot: bot, size: 34, animated: false)- VStack(alignment: .leading, spacing: 1) {- Text(bot.name).foregroundStyle(Palette.text).lineLimit(1)- Text(bot.folderName).font(.caption).foregroundStyle(Palette.tertiary).lineLimit(1)- }- Spacer()- Image(systemName: "plus.circle")- .font(.system(size: 20))- .foregroundStyle(Palette.tertiary)- }- .padding(.horizontal, 12)- .padding(.vertical, 8)- .contentShape(Rectangle())+ /// A member or candidate: avatar, name, and a trailing control (Grok Bot's member list).+ private func memberRow(_ bot: Bot, dimmed: Bool = false, @ViewBuilder trailing: () -> some View) -> some View {+ HStack(spacing: 14) {+ CharacterAvatar(bot: bot, size: 32, animated: false)+ Text(bot.name).foregroundStyle(dimmed ? Palette.secondary : Palette.text).lineLimit(1)+ Spacer(minLength: 0)+ trailing()}- .buttonStyle(PressScale())- .accessibilityLabel("Add \(bot.name)")+ .frame(minHeight: 48)+ .contentShape(Rectangle())}private func save() {@@ -154,36 +175,3 @@ public struct GroupEditorView: View {}}}--/// A picked bot (To: field, group editor); its x takes it back out.-struct BotChip: View {- let bot: Bot- let remove: () -> Void-- var body: some View {- HStack(spacing: 6) {- CharacterAvatar(bot: bot, size: 20, animated: false)- Text(bot.name)- .font(.body)- .foregroundStyle(Palette.text)- .lineLimit(1)- .frame(maxWidth: 220, alignment: .leading)- .fixedSize(horizontal: true, vertical: false)- Button(action: remove) {- Image(systemName: "xmark")- .font(.system(size: 10, weight: .semibold))- .foregroundStyle(Palette.secondary)- .frame(width: 18, height: 18)- .contentShape(Rectangle())- }- .buttonStyle(.plain)- .accessibilityLabel("Remove \(bot.name)")- .help("Remove \(bot.name)")- }- .padding(.leading, 8)- .padding(.trailing, 6)- .padding(.vertical, 5)- .background(Palette.bubbleAgent, in: Capsule())- }-}-diff --git a/apps/ios/Kit/Sources/CodyncUI/Thread/Composer.swift b/apps/ios/Kit/Sources/CodyncUI/Thread/Composer.swiftindex 08d50587..fb4f3d9a 100644--- a/apps/ios/Kit/Sources/CodyncUI/Thread/Composer.swift+++ b/apps/ios/Kit/Sources/CodyncUI/Thread/Composer.swift@@ -43,7 +43,7 @@ struct Composer: View {private var placeholder: String {let name = bot?.name ?? ""if thread != nil { return "Reply…" }- if bot?.isGroup == true { return "Message \(name) · @ to ask one bot" }+ if bot?.isGroup == true { return "Message everyone · @ to ask one bot" }return working ? "Queue a message for \(name)" : "Ask \(name)"}diff --git a/apps/ios/Kit/Sources/CodyncUI/Thread/ThreadView.swift b/apps/ios/Kit/Sources/CodyncUI/Thread/ThreadView.swiftindex cfeb74af..3a3f7c1d 100644--- a/apps/ios/Kit/Sources/CodyncUI/Thread/ThreadView.swift+++ b/apps/ios/Kit/Sources/CodyncUI/Thread/ThreadView.swift@@ -272,17 +272,20 @@ struct GroupIntroCard: View {VStack(spacing: 12) {GroupAvatar(members: model.members(of: group), size: 72)Text(group.name).font(.title2.weight(.semibold)).foregroundStyle(Palette.text)- Text(model.members(of: group).map(\.name).joined(separator: " · "))- .font(.subheadline)- .foregroundStyle(Palette.secondary)- .multilineTextAlignment(.center)+ let names = model.members(of: group).map(\.name)+ if group.name != names.joined(separator: ", ") {+ Text(names.joined(separator: " · "))+ .font(.subheadline)+ .foregroundStyle(Palette.secondary)+ .multilineTextAlignment(.center)+ }if !group.description.isEmpty {Text(group.description).font(.subheadline).foregroundStyle(Palette.secondary).multilineTextAlignment(.center)}- Text("Everyone answers in turn. @mention a bot to ask just that one. Each bot works in its own folder.")+ Text("Everyone answers in turn. @mention a bot to ask just that one.").font(.footnote).foregroundStyle(Palette.tertiary).multilineTextAlignment(.center)diff --git a/host/src/tui/view/chat.rs b/host/src/tui/view/chat.rsindex 79924e63..47a60751 100644--- a/host/src/tui/view/chat.rs+++ b/host/src/tui/view/chat.rs@@ -110,7 +110,7 @@ pub(super) fn chat(buf: &mut Buffer, r: Rect, app: &mut App, narrow: bool) {} else if app.thread.is_some() {"Reply…".to_owned()} else if b.group {- format!("Message {} · @ to ask one bot", b.name)+ "Message everyone · @ to ask one bot".to_owned()} else {format!("Message {}…", b.name)};