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: place the lead bot like any bot and drop New session
leepokai04a95d84fe78
diff --git a/apps/Codync.xcodeproj/project.pbxproj b/apps/Codync.xcodeproj/project.pbxprojindex 52295ef8..e6905d4b 100644--- a/apps/Codync.xcodeproj/project.pbxproj+++ b/apps/Codync.xcodeproj/project.pbxproj@@ -8,6 +8,7 @@/* Begin PBXBuildFile section */00F78E3DAAF66E8E0933D091 /* ActivityGalleryView.swift in Sources */ = {isa = PBXBuildFile; fileRef = DD3DE9A4EEB369C4F75C9448 /* ActivityGalleryView.swift */; };+ 0137767F43A65AB592869ADD /* ShortcutLeadSettings.swift in Sources */ = {isa = PBXBuildFile; fileRef = 6ABB70475ABEE88EFAFBA1BB /* ShortcutLeadSettings.swift */; };01A1F820EFEE49A8FCCFC3F3 /* BotListView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 0582B6169BFC36E4BCD51C0D /* BotListView.swift */; };0631979397E0D6822747E03A /* RootView.swift in Sources */ = {isa = PBXBuildFile; fileRef = B6E13F8EA6C7B0DA4D899FEE /* RootView.swift */; };0C920E4962F182ADF75670C5 /* CodyncBot-tablet-Ink.ttf in Resources */ = {isa = PBXBuildFile; fileRef = 120FD9DBA315A6DD543463D8 /* CodyncBot-tablet-Ink.ttf */; };@@ -151,6 +152,7 @@5C4EB0DBA2F08CD7C0E25E30 /* OpenBotIntent.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = OpenBotIntent.swift; sourceTree = "<group>"; };60422D3CA8FEBCDC5AC465E0 /* iOS.app */ = {isa = PBXFileReference; includeInIndex = 0; lastKnownFileType = wrapper.application; path = iOS.app; sourceTree = BUILT_PRODUCTS_DIR; };64888B10E98F19723500FBCA /* NotificationService.entitlements */ = {isa = PBXFileReference; lastKnownFileType = text.plist.entitlements; path = NotificationService.entitlements; sourceTree = "<group>"; };+ 6ABB70475ABEE88EFAFBA1BB /* ShortcutLeadSettings.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ShortcutLeadSettings.swift; sourceTree = "<group>"; };6BC00039A6C2C0D3F39A5F67 /* ComputerStatus.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ComputerStatus.swift; sourceTree = "<group>"; };6D734BEE7CD3F84677B0218B /* Widgets.appex */ = {isa = PBXFileReference; includeInIndex = 0; lastKnownFileType = "wrapper.app-extension"; path = Widgets.appex; sourceTree = BUILT_PRODUCTS_DIR; };6FC76D28AB02DF1427D530ED /* LaunchSplash.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = LaunchSplash.swift; sourceTree = "<group>"; };@@ -331,6 +333,7 @@B708DF60FB00E1724260BCD2 /* RowLabel.swift */,09B4BF594A570A303880D6E4 /* SectionNameDialog.swift */,0A87B0091DAF0E4807D62017 /* SettingsView.swift */,+ 6ABB70475ABEE88EFAFBA1BB /* ShortcutLeadSettings.swift */,9AD0BD16672E128A4F26272B /* SignInButtons.swift */,CFEBE2E6A9D0AF0A0D89FFE7 /* UsageView.swift */,D57A7C09154869DD84BACE19 /* WelcomeView.swift */,@@ -730,6 +733,7 @@1302DAC1A6D9AE9E33654B84 /* RowLabel.swift in Sources */,9C5F3D805E170CDF68EA4A19 /* SectionNameDialog.swift in Sources */,BF77DD7946621D8818EDAB9B /* SettingsView.swift in Sources */,+ 0137767F43A65AB592869ADD /* ShortcutLeadSettings.swift in Sources */,76E77CC8A2B7C74213512FAB /* SignInButtons.swift in Sources */,684F7F77EECBA0BD95BDD658 /* UsageView.swift in Sources */,501377099B6CF42761B230CB /* WelcomeView.swift in Sources */,diff --git a/apps/android/WhatsNew.md b/apps/android/WhatsNew.mdindex 20c52e34..e596292a 100644--- a/apps/android/WhatsNew.md+++ b/apps/android/WhatsNew.md@@ -10,9 +10,11 @@ else a generic "Bug fixes and improvements" line. Delete old sections.## 2.33.0### zh-Hant-- 任何 Bot 都能當主助理:長按 Bot 選「設為主助理」,它就會排在最上面,通話時也會先開口。-- 不需要的主助理也可以直接刪除。+- 任何 Bot 都能當主助理:長按 Bot 選「設為主助理」,通話時它會先開口。+- 主助理可以像其他 Bot 一樣拖曳排序、釘選或移到分組,不需要時也可以直接刪除。+- Bot 選單更簡潔:不再需要手動開新的工作階段,Codync 會在需要時自動接續。### en-US-- Any bot can be your lead: touch and hold it and choose Make lead agent. It moves to the top and speaks first on calls.-- You can delete the lead bot if you don't need one.+- Any bot can be your lead: touch and hold it and choose Make lead agent. It speaks first on calls.+- Drag, pin or move the lead into a section like any bot, or delete it if you don't need one.+- A simpler bot menu: no more New session, since Codync starts a fresh one on its own when a conversation needs it.diff --git a/apps/android/app/src/androidTest/kotlin/com/codync/android/ScreenPresentationTest.kt b/apps/android/app/src/androidTest/kotlin/com/codync/android/ScreenPresentationTest.ktindex e90473dc..1fabef08 100644--- a/apps/android/app/src/androidTest/kotlin/com/codync/android/ScreenPresentationTest.kt+++ b/apps/android/app/src/androidTest/kotlin/com/codync/android/ScreenPresentationTest.kt@@ -71,15 +71,10 @@ class ScreenPresentationTest {compose.onNodeWithContentDescription("Save").assertDoesNotExist()}- @Test fun onlyABotsTouchAndHoldMenuStartsANewSession() {- val group = Bot("presentation-group", "Crew", kind = "group", members = listOf(bot.id))- compose.setContent { Hosted { CodyncApp(fixture().copy(bots = listOf(bot, group)), viewModel()) } }- compose.rosterAction(bot.name, "New session")- compose.onNodeWithText("Start a new session?").assertIsDisplayed()- compose.onNodeWithText("Cancel").performClick()- compose.onNodeWithText("Start a new session?").assertDoesNotExist()- compose.rosterActions(group.name)- compose.onNodeWithText("Edit group").assertIsDisplayed()+ @Test fun aBotsTouchAndHoldMenuHasNoNewSession() {+ compose.setContent { Hosted { CodyncApp(fixture(), viewModel()) } }+ compose.rosterActions(bot.name)+ compose.onNodeWithText("Edit profile").assertIsDisplayed()compose.onNodeWithText("New session").assertDoesNotExist()}diff --git a/apps/android/app/src/main/kotlin/com/codync/android/BotListView.kt b/apps/android/app/src/main/kotlin/com/codync/android/BotListView.ktindex b97c58a6..ad24cc31 100644--- a/apps/android/app/src/main/kotlin/com/codync/android/BotListView.kt+++ b/apps/android/app/src/main/kotlin/com/codync/android/BotListView.kt@@ -73,7 +73,6 @@ import kotlinx.serialization.json.putJsonArrayfolded = foldsAfterRefusal(FoldedSections.load(context), renamed, before).also { FoldedSections.save(context, it) }}}- var confirmNewSession by remember { mutableStateOf<Bot?>(null) }val roster = roster(state.bots)val sections = menuSections(state.bots)val reorder = remember { RosterReorder() }@@ -117,7 +116,7 @@ import kotlinx.serialization.json.putJsonArray.then(if (lifted) Modifier.zIndex(1f).graphicsLayer { translationY = reorder.offset; scaleX = 1.02f; scaleY = 1.02f }else Modifier.animateItem())) {BotRowItem(bot, state, store, reorder.handle(bot.id) { store.reorder(it) }, sections, edit = { edit(bot) },- newSession = { confirmNewSession = bot }, delete = { confirmDelete = bot },+ delete = { confirmDelete = bot },newSection = { naming = SectionNaming("New section", "") { store.setSection(bot.id, it) } })}}@@ -126,11 +125,6 @@ import kotlinx.serialization.json.putJsonArray}}}- val restarting = confirmNewSession- CodyncDialog("Start a new session?", restarting != null, { confirmNewSession = null },- message = "The conversation stays here, but the agent starts with a fresh context.") {- listOf(DialogAction("New session") { restarting?.let { store.command("newSession", body("botId" to it.id)) } })- }val deleting = confirmDeleteCodyncDialog("Delete ${deleting?.name ?: "bot"}?", deleting != null, { confirmDelete = null },message = if (deleting?.kind == "group") "Its bots and their own chats stay." else "Files it changed on your computer stay as they are.") {@@ -181,13 +175,13 @@ private class RosterReorder {}}-/** Roster order: the lead, then pinned bots, then where the user dragged them, then most recent activity. */+/** Roster order: pinned bots, then where the user dragged them, then most recent activity. */internal fun roster(bots: List<Bot>): List<Bot> = bots.filter { !it.deleted && !it.hidden }.sortedWith(compareBy<Bot> { it.band }.thenBy { it.position }.thenByDescending { it.lastAt })/*** The roster order with a bot swapped with the next bot up (-1) or down (+1) that shows beside it, or null when there's none:- * a bot stays in its band (`Bot.band`: the lead, pinned bots, the rest); pinned bots move among all the pinned, the others+ * a bot stays in its band (`Bot.band`: pinned bots, the rest); pinned bots move among all the pinned, the others* among bots of their section (or of none), skipping the bots between.*/internal fun moved(roster: List<Bot>, id: String, offset: Int): List<String>? {@@ -198,34 +192,32 @@ internal fun moved(roster: List<Bot>, id: String, offset: Int): List<String>? {return roster.map(Bot::id).toMutableList().apply { this[at] = roster[next].id; this[next] = id }}-private fun Bot.movesWith(other: Bot) = band == other.band && (staysOnTop || section == other.section)+private fun Bot.movesWith(other: Bot) = band == other.band && (pinned || section == other.section)@Composable private fun BotRowItem(bot: Bot, state: AppState, store: AppStore, drag: ContextDrag, sections: List<String>, edit: () -> Unit,- newSession: () -> Unit, delete: () -> Unit, newSection: () -> Unit) {- // The lead stays on top and in the list: no drag, pin, section or hide.- Box(Modifier.fillMaxWidth().contextActions(onClick = { store.openBot(bot.id) }, reorder = drag.takeUnless { bot.lead }, preview = {+ delete: () -> Unit, newSection: () -> Unit) {+ Box(Modifier.fillMaxWidth().contextActions(onClick = { store.openBot(bot.id) }, reorder = drag, preview = {Box(Modifier.padding(horizontal = 8.dp)) { BotRow(bot, state) }}) {listOfNotNull(MenuItem(if (bot.pinned) "Unpin" else "Pin", icon = if (bot.pinned) "pin.slash" else "pin") {store.command("updateBot", buildJsonObject { put("id", bot.id); put("pinned", !bot.pinned) }, "roster:" + bot.id)- }.takeUnless { bot.lead },- if (state.supportsSections && !bot.lead) sectionMenu(bot, sections, { store.setSection(bot.id, it) }, newSection) else null,+ },+ if (state.supportsSections) sectionMenu(bot, sections, { store.setSection(bot.id, it) }, newSection) else null,if (bot.kind == "group") MenuItem("Edit group", icon = "person.2", action = edit)else MenuItem("Edit profile", icon = "pencil", action = edit),MenuItem("Mark as read", icon = "checkmark.message") {store.command("markRead", buildJsonObject { put("botId", bot.id) }, "roster:" + bot.id)},- // A group has no agent session of its own.- MenuItem("New session", icon = "arrow.counterclockwise", action = newSession).takeIf { bot.kind != "group" },MenuItem("Make lead agent", icon = "star") {store.command("setLead", buildJsonObject { put("botId", bot.id) }, "roster:" + bot.id)}.takeIf { !bot.lead && bot.kind != "group" && state.supportsLeadChoice },+ // The lead stays in the list.MenuItem("Hide from list", icon = "eye.slash") {store.command("updateBot", buildJsonObject { put("id", bot.id); put("hidden", true) }, "roster:" + bot.id)}.takeUnless { bot.lead },// An older computer keeps its lead.- MenuItem("Delete", icon = "trash", destructive = true, divider = true, action = delete).takeIf { !bot.lead || state.supportsLeadChoice },+ MenuItem("Delete", icon = "trash", destructive = true, action = delete).takeIf { !bot.lead || state.supportsLeadChoice },)}.semantics {contentDescription = bot.name@@ -246,7 +238,7 @@ private fun Bot.movesWith(other: Bot) = band == other.band && (staysOnTop || secColumn(Modifier.weight(1f), verticalArrangement = Arrangement.spacedBy(4.dp)) {Row(verticalAlignment = Alignment.CenterVertically) {Row(Modifier.weight(1f), verticalAlignment = Alignment.CenterVertically, horizontalArrangement = Arrangement.spacedBy(6.dp)) {- if (bot.pinned && !bot.lead) Symbol("pin.fill", size = 13.dp, tint = Palette.tertiary)+ if (bot.pinned) Symbol("pin.fill", size = 13.dp, tint = Palette.tertiary)Text(bot.name, Modifier.weight(1f, fill = false), style = Type.body.semibold, color = Palette.text, maxLines = 1,overflow = TextOverflow.Ellipsis)}diff --git a/apps/android/app/src/main/kotlin/com/codync/android/RosterSections.kt b/apps/android/app/src/main/kotlin/com/codync/android/RosterSections.ktindex 5bb2a0a3..ed2c5399 100644--- a/apps/android/app/src/main/kotlin/com/codync/android/RosterSections.kt+++ b/apps/android/app/src/main/kotlin/com/codync/android/RosterSections.kt@@ -28,16 +28,13 @@ internal sealed interface RosterLine {}}-/** The lead and pinned bots stay on top, outside sections. */-internal val Bot.staysOnTop get() = lead || pinned-/**- * The sorted [roster] as it shows: the lead and pinned bots, then each section by name (its header,- * then its bots in roster order unless it's [folded]), then bots without a section, under- * [RosterLine.Label] when there are sections. The lead and a pinned bot show only on top.+ * The sorted [roster] as it shows: the pinned bots, then each section by name (its header, then its+ * bots in roster order unless it's [folded]), then bots without a section, under [RosterLine.Label]+ * when there are sections. A pinned bot shows only on top.*/internal fun rosterLines(roster: List<Bot>, folded: Set<String>): List<RosterLine> = buildList {- val (pinned, unpinned) = roster.partition { it.staysOnTop }+ val (pinned, unpinned) = roster.partition { it.pinned }val sections = unpinned.groupBy(Bot::section)pinned.forEach { add(RosterLine.Row(it)) }val names = sectionNames(unpinned)diff --git a/apps/android/app/src/test/kotlin/com/codync/android/RosterMoveTest.kt b/apps/android/app/src/test/kotlin/com/codync/android/RosterMoveTest.ktindex e66641df..8cef4885 100644--- a/apps/android/app/src/test/kotlin/com/codync/android/RosterMoveTest.kt+++ b/apps/android/app/src/test/kotlin/com/codync/android/RosterMoveTest.kt@@ -29,11 +29,11 @@ class RosterMoveTest {assertEquals(listOf("pin2", "pin", "a", "b", "c"), moved(sectioned, "pin", 1))}- @Test fun theLeadComesFirstAndStaysThere() {- val bots = listOf(Bot("pin", pinned = true, lastAt = 9), Bot("a", lastAt = 5), Bot("lead", lead = true, position = 3, lastAt = 1))+ @Test fun theLeadIsPlacedAndMovedLikeAnyBot() {+ val bots = listOf(Bot("pin", pinned = true, lastAt = 9), Bot("a", position = 1, lastAt = 5), Bot("lead", lead = true, position = 3, lastAt = 1))val sorted = roster(bots)- assertEquals(listOf("lead", "pin", "a"), sorted.map(Bot::id))+ assertEquals(listOf("pin", "a", "lead"), sorted.map(Bot::id))+ assertEquals(listOf("pin", "lead", "a"), moved(sorted, "lead", -1))assertNull(moved(sorted, "lead", 1))- assertNull(moved(sorted, "pin", -1))}}diff --git a/apps/android/app/src/test/kotlin/com/codync/android/RosterSectionsTest.kt b/apps/android/app/src/test/kotlin/com/codync/android/RosterSectionsTest.ktindex b3a3467f..7e5fb797 100644--- a/apps/android/app/src/test/kotlin/com/codync/android/RosterSectionsTest.kt+++ b/apps/android/app/src/test/kotlin/com/codync/android/RosterSectionsTest.kt@@ -24,14 +24,14 @@ class RosterSectionsTest {), rosterLines(roster, folded = emptySet()))}- @Test fun theLeadStaysOnTopOutsideItsSection() {+ @Test fun theLeadSitsInItsSectionLikeAnyBot() {val lead = Bot("lead", lead = true, section = "Work")assertEquals(listOf(- RosterLine.Row(lead), RosterLine.Row(pinned),- RosterLine.Header("Work", count = 1, unread = 2, folded = false), RosterLine.Row(work1),+ RosterLine.Row(pinned),+ RosterLine.Header("Work", count = 2, unread = 2, folded = false), RosterLine.Row(work1), RosterLine.Row(lead),RosterLine.Label, RosterLine.Row(loose),- ), rosterLines(listOf(lead, pinned, work1, loose), folded = emptySet()))- assertNull(moved(listOf(lead, work1), "w1", -1))+ ), rosterLines(listOf(pinned, work1, lead, loose), folded = emptySet()))+ assertEquals(listOf("lead", "w1"), moved(listOf(work1, lead), "lead", -1))}@Test fun aFoldedSectionKeepsItsHeaderAndUnreadAndHidesItsBots() {diff --git a/apps/android/core/src/main/kotlin/com/codync/android/core/HostClient.kt b/apps/android/core/src/main/kotlin/com/codync/android/core/HostClient.ktindex 305b3e45..e3195e2c 100644--- a/apps/android/core/src/main/kotlin/com/codync/android/core/HostClient.kt+++ b/apps/android/core/src/main/kotlin/com/codync/android/core/HostClient.kt@@ -51,7 +51,7 @@ data class Bot(val activity: String = "",val backend: String = "",val pinned: Boolean = false,- /** The computer's lead bot: the host makes the first, and the user may pick another (`setLead`) or delete it. First in the roster, never hidden or pinned. */+ /** The computer's lead bot: the host makes the first, and the user may pick another (`setLead`) or delete it. Placed in the roster like any bot, never hidden. */val lead: Boolean = false,/** The roster section the user put it in; null for none (or a host without sections). Kept while pinned or hidden. */val section: String? = null,@@ -70,8 +70,8 @@ data class Bot(/** Agents of its chain resting now. */val resting: List<Resting> = emptyList(),) {- /** Its band in the roster: the lead, then pinned bots, then the rest. Reordering stays inside a band. */- val band: Int get() = when { lead -> 0; pinned -> 1; else -> 2 }+ /** Its band in the roster: pinned bots, then the rest. Reordering stays inside a band. */+ val band: Int get() = if (pinned) 0 else 1/** [agent]'s rest, unless it's over. */fun restOf(agent: String, now: Long = System.currentTimeMillis()): Resting? = resting.firstOrNull { it.agent == agent && it.until > now }diff --git a/apps/desktop/src/renderer/demo/fake-host.ts b/apps/desktop/src/renderer/demo/fake-host.tsindex 9baf88d4..f1f70837 100644--- a/apps/desktop/src/renderer/demo/fake-host.ts+++ b/apps/desktop/src/renderer/demo/fake-host.ts@@ -215,8 +215,6 @@ export class FakeHost {this.settle(id)return {}}- case 'newSession':- return {}case 'createBot':case 'updateBot':return { bot: this.saveBot(b as unknown as BotDraft | GroupDraft) }diff --git a/apps/desktop/src/renderer/lib/computer-roster.test.ts b/apps/desktop/src/renderer/lib/computer-roster.test.tsindex 2bbf6d20..ad9ba29b 100644--- a/apps/desktop/src/renderer/lib/computer-roster.test.ts+++ b/apps/desktop/src/renderer/lib/computer-roster.test.ts@@ -30,12 +30,10 @@ test('each computer keeps its own bots in activity order, including duplicate boassert.equal(sections[0]?.items[0]?.ref.computerId, 'a')})-test('the lead sorts first, even above pinned bots, and no drag crosses into its band', () => {+test('pinned bots sort first; the lead is placed like any bot', () => {const bot = (id: string, over: Partial<{ lead: boolean; pinned: boolean; position: number; lastAt: number }> = {}) =>({ id, lead: false, pinned: false, position: 0, lastAt: 0, ...over })const bots = [bot('recent', { lastAt: 9 }), bot('pinned', { pinned: true, position: -5 }), bot('lead', { lead: true, position: 3 }), bot('dragged', { position: -1 })]- assert.deepEqual([...bots].sort(rosterOrder).map((b) => b.id), ['lead', 'pinned', 'dragged', 'recent'])- const bands = new Set(bots.map(rosterBand))- assert.equal(bands.size, 3, 'lead, pinned and the rest are separate bands: a drag stays inside its own')- assert.notEqual(rosterBand(bot('x', { lead: true, pinned: true })), rosterBand(bot('y', { pinned: true })))+ assert.deepEqual([...bots].sort(rosterOrder).map((b) => b.id), ['pinned', 'dragged', 'recent', 'lead'])+ assert.equal(rosterBand(bot('lead', { lead: true })), rosterBand(bot('other')), 'a drag moves the lead among the rest')})diff --git a/apps/desktop/src/renderer/lib/computer-roster.ts b/apps/desktop/src/renderer/lib/computer-roster.tsindex 2e34d496..f6afebc7 100644--- a/apps/desktop/src/renderer/lib/computer-roster.ts+++ b/apps/desktop/src/renderer/lib/computer-roster.ts@@ -1,9 +1,9 @@import type { Bot } from '@shared/models'-type Ranked = Pick<Bot, 'lead' | 'pinned' | 'position' | 'lastAt'>+type Ranked = Pick<Bot, 'pinned' | 'position' | 'lastAt'>-/** A bot's band in its computer's roster: the lead, then pinned bots, then the rest. A drag moves a bot only within its band. */-export const rosterBand = (b: Pick<Bot, 'lead' | 'pinned'>) => (b.lead ? 0 : b.pinned ? 1 : 2)+/** A bot's band in its computer's roster: pinned bots, then the rest. A drag moves a bot only within its band. */+export const rosterBand = (b: Pick<Bot, 'pinned'>) => (b.pinned ? 0 : 1)/** Roster order: by band, then where the user dragged them, then most recent activity. */export const rosterOrder = (a: Ranked, b: Ranked) => rosterBand(a) - rosterBand(b) || a.position - b.position || b.lastAt - a.lastAtdiff --git a/apps/desktop/src/renderer/lib/roster-sections.test.ts b/apps/desktop/src/renderer/lib/roster-sections.test.tsindex a242a558..ed265827 100644--- a/apps/desktop/src/renderer/lib/roster-sections.test.ts+++ b/apps/desktop/src/renderer/lib/roster-sections.test.ts@@ -2,7 +2,7 @@ import assert from 'node:assert/strict'import { test } from 'node:test'import { chainedMoves, foldsAfterRename, hostHasSections, limitSectionName, placedBots, restoredBots, rosterLines, sameRosterGroup, sectionMembers, sectionName, sectionNames, sectionRename, shownRows, type RosterLine } from './roster-sections.ts'-const item = (id: string, section?: string, { lead = false, pinned = false, unread = 0 } = {}) => ({ id, bot: { lead, pinned, section, unread } })+const item = (id: string, section?: string, { pinned = false, unread = 0 } = {}) => ({ id, bot: { pinned, section, unread } })type Item = ReturnType<typeof item>/** Each line as text: a row's id, the "Bots" label, or a header's name, count, unread and fold. */@@ -46,21 +46,14 @@ test('the label shows only with a section header and a bot in none', () => {assert.deepEqual(outline(rosterLines([item('p', undefined, { pinned: true }), item('a', 'Work')], [])), ['p', 'Work 1 0: a'])})-test('the lead stays on top, outside its section', () => {- const items = [item('l', 'Work', { lead: true }), item('p', undefined, { pinned: true }), item('w', 'Work'), item('c')]- assert.deepEqual(outline(rosterLines(items, [])), ['l', 'p', 'Work 1 0: w', 'BOTS', 'c'])-})-test('a bot moves past bots with the same pin state and section; pinned bots ignore sections', () => {- const bot = (section?: string, pinned = false, lead = false) => ({ lead, pinned, section })+ const bot = (section?: string, pinned = false) => ({ pinned, section })assert.equal(sameRosterGroup(bot('Work'), bot('Work')), true)assert.equal(sameRosterGroup(bot('Work'), bot('Home')), false)assert.equal(sameRosterGroup(bot('Work'), bot()), false)assert.equal(sameRosterGroup(bot(), bot('')), true)assert.equal(sameRosterGroup(bot('Work', true), bot('Home', true)), true)assert.equal(sameRosterGroup(bot('Work', true), bot('Work')), false)- assert.equal(sameRosterGroup(bot('Work', false, true), bot('Work')), false, 'the lead moves past no one')- assert.equal(sameRosterGroup(bot(undefined, false, true), bot(undefined, true)), false)})test('every section once, sorted by name', () => {diff --git a/apps/desktop/src/renderer/lib/roster-sections.ts b/apps/desktop/src/renderer/lib/roster-sections.tsindex 937b9f2f..c8c8bc23 100644--- a/apps/desktop/src/renderer/lib/roster-sections.ts+++ b/apps/desktop/src/renderer/lib/roster-sections.ts@@ -9,9 +9,8 @@ export function hostHasSections(version: string): boolean {return !isBelow(version, ROSTER_SECTIONS_HOST)}-/** What placing a bot in the roster reads: lead, its pin, the section the user put it in, its unread count. */+/** What placing a bot in the roster reads: its pin, the section the user put it in, its unread count. */interface Placed {- lead: booleanpinned: booleansection?: stringunread: number@@ -23,18 +22,15 @@ export type RosterLine<T> =| { kind: 'section'; name: string; count: number; unread: number; folded: boolean; items: T[] }| { kind: 'label' }-/** The lead and pinned bots stay on top, outside sections. */-const onTop = (bot: Omit<Placed, 'unread' | 'section'>) => bot.lead || bot.pinned-/**- * A computer's roster (already in roster order, hidden bots left out) as lines: the lead and pinned- * rows, then each section by name with its rows, then rows without a section, under a "Bots" label- * when there are sections. The lead and a pinned bot show only on top. A folded section still holds- * its rows, so its fold can animate.+ * A computer's roster (already in roster order, hidden bots left out) as lines: the pinned rows, then+ * each section by name with its rows, then rows without a section, under a "Bots" label when there are+ * sections. A pinned bot shows only on top. A folded section still holds its rows, so its fold can+ * animate.*/export function rosterLines<T extends { bot: Placed }>(items: T[], folded: readonly string[]): RosterLine<T>[] {const row = (item: T): RosterLine<T> => ({ kind: 'row', item })- const unpinned = items.filter((item) => !onTop(item.bot))+ const unpinned = items.filter((item) => !item.bot.pinned)const sections = sectionNames(unpinned.map((item) => item.bot)).map((name): RosterLine<T> => {const rows = unpinned.filter((item) => item.bot.section === name)const unread = rows.reduce((sum, item) => sum + item.bot.unread, 0)@@ -42,7 +38,7 @@ export function rosterLines<T extends { bot: Placed }>(items: T[], folded: reado})const loose = unpinned.filter((item) => !item.bot.section).map(row)const label: RosterLine<T>[] = sections.length && loose.length ? [{ kind: 'label' }] : []- return [...items.filter((item) => onTop(item.bot)).map(row), ...sections, ...label, ...loose]+ return [...items.filter((item) => item.bot.pinned).map(row), ...sections, ...label, ...loose]}/** The rows on screen, top to bottom: a folded section's rows are left out. */@@ -50,12 +46,12 @@ export function shownRows<T>(lines: RosterLine<T>[]): T[] {return lines.flatMap((line) => (line.kind === 'row' ? [line.item] : line.kind === 'label' || line.folded ? [] : line.items))}-/** The section a bot shows in: none for the lead and pinned bots, which stay on top (terminal `Bot::shown_section`). */+/** The section a bot shows in: none for pinned bots, which stay on top (terminal `Bot::shown_section`). */export function shownSection(bot: Omit<Placed, 'unread'>): string | undefined {- return onTop(bot) ? undefined : bot.section || undefined+ return bot.pinned ? undefined : bot.section || undefined}-/** Whether a drag (or Alt+↑/↓) may move one bot past another: the same band (lead, pinned, the rest) and the same section shown. */+/** Whether a drag (or Alt+↑/↓) may move one bot past another: the same band (pinned, the rest) and the same section shown. */export function sameRosterGroup(a: Omit<Placed, 'unread'>, b: Omit<Placed, 'unread'>): boolean {return rosterBand(a) === rosterBand(b) && shownSection(a) === shownSection(b)}diff --git a/apps/desktop/src/renderer/store/bot-store.ts b/apps/desktop/src/renderer/store/bot-store.tsindex 12cc96f2..5a8a931f 100644--- a/apps/desktop/src/renderer/store/bot-store.ts+++ b/apps/desktop/src/renderer/store/bot-store.ts@@ -162,10 +162,6 @@ export class BotStore extends BotSync {this.perform((c) => c.call('stop', { botId }), true)}- newSession(botId: string) {- this.perform((c) => c.call('newSession', { botId }))- }-/** Back to the bot's own agent from a fallback: now if it's idle, else from its next turn. The host posts the chat line. */switchBack(botId: string) {this.perform((c) => c.call('switchBack', { botId }), true)diff --git a/apps/desktop/src/renderer/views/BotRoster.tsx b/apps/desktop/src/renderer/views/BotRoster.tsxindex 1a3b815b..af922ae5 100644--- a/apps/desktop/src/renderer/views/BotRoster.tsx+++ b/apps/desktop/src/renderer/views/BotRoster.tsx@@ -202,8 +202,7 @@ export function BotRoster({ roster, compact, onContext, onSectionContext, openExonClick={() => app.select(item.ref)}onContext={(x, y) => onContext(item.bot, item.store, x, y)}lifted={held && lift !== null}- // The lead stays on top.- drag={item.bot.lead ? undefined : pointerDrag({ start: (from) => liftRow(item, siblings, from), over: dragOver, drop, cancel: endDrag })}+ drag={pointerDrag({ start: (from) => liftRow(item, siblings, from), over: dragOver, drop, cancel: endDrag })}><RosterBotRow item={item} compact={compact} /></RosterRow>diff --git a/apps/desktop/src/renderer/views/BotRow.tsx b/apps/desktop/src/renderer/views/BotRow.tsxindex dabbfed3..f6ecca3b 100644--- a/apps/desktop/src/renderer/views/BotRow.tsx+++ b/apps/desktop/src/renderer/views/BotRow.tsx@@ -19,7 +19,7 @@ export const BotRow = memo(function BotRow({ bot, store, compact, usingComputer,<AvatarWithStatus bot={bot} members={members} size={30} /><VStack gap={2} className={`bot-row-text ${compact ? 'collapsed' : ''}`} aria-hidden={compact}><HStack align="baseline" gap={4} shrink>- {!bot.lead && bot.pinned ? <Icon name="pin.fill" size={10} color="var(--tertiary)" /> : null}+ {bot.pinned ? <Icon name="pin.fill" size={10} color="var(--tertiary)" /> : null}<Text size="body" weight={bot.unread > 0 ? 'semibold' : 'medium'} tone="text" truncate>{bot.name}</Text>{usingComputer ? <Icon name="cursorarrow.motionlines" size={10} color="var(--accent)" title="Using the computer" /> : null}</HStack>diff --git a/apps/desktop/src/renderer/views/ChatWindow.tsx b/apps/desktop/src/renderer/views/ChatWindow.tsxindex 58f108ba..ce70deee 100644--- a/apps/desktop/src/renderer/views/ChatWindow.tsx+++ b/apps/desktop/src/renderer/views/ChatWindow.tsx@@ -206,7 +206,6 @@ function ChatSplitView() {const [naming, setNaming] = useState<SectionNaming | null>(null)const [editing, setEditing] = useState<EditTarget | null>(null)const [confirmDelete, setConfirmDelete] = useState<BotTarget | null>(null)- const [newSessionBot, setNewSessionBot] = useState<BotTarget | null>(null)const [marketplace, setMarketplace] = useState<string | null>(null)const [settings, setSettings] = useState<SettingsPage | null>(null)const openVoiceSettings = useCallback(() => setSettings('voice'), [])@@ -289,17 +288,16 @@ function ChatSplitView() {const openMarketplace = () => setMarketplace((selectedStore ?? app.local ?? onlineStores[0])?.computer.id ?? null)- // The lead stays on top and in sight: no pin, section or hide.+ // One plain list. The lead stays in sight: no hide.const botActions = (bot: Bot, store: BotStore): ActionItem[] => [- ...(bot.lead ? [] : [{ title: bot.pinned ? 'Unpin' : 'Pin', icon: 'pin', action: () => store.setPinned(bot, !bot.pinned) }]),+ { title: bot.pinned ? 'Unpin' : 'Pin', icon: 'pin', action: () => store.setPinned(bot, !bot.pinned) },...moveToSectionItems(bot, store, setNaming),{ title: 'Mark as Read', icon: 'bell.badge', action: () => store.markAllRead(bot.id) },- { title: 'Edit Profile…', icon: 'square.and.pencil', divider: true, action: () => setEditing({ id: crypto.randomUUID(), draft: draftOf(bot), store }) },- { title: 'Copy conversation ID', icon: 'square.on.square', divider: true, action: () => window.codync.app.copy(bot.id) },- { title: 'New session', icon: 'arrow.counterclockwise', action: () => setNewSessionBot({ bot, store }) },+ { title: 'Edit Profile…', icon: 'square.and.pencil', action: () => setEditing({ id: crypto.randomUUID(), draft: draftOf(bot), store }) },+ { title: 'Copy conversation ID', icon: 'square.on.square', action: () => window.codync.app.copy(bot.id) },...makeLeadItems(bot, store),- ...(bot.lead ? [] : [{ title: 'Hide from sidebar', icon: 'eye.slash', divider: true, action: () => store.setHidden(bot, true) }]),- ...(offersDelete(bot, store) ? [{ title: 'Delete', icon: 'trash', destructive: true, divider: bot.lead, action: () => setConfirmDelete({ bot, store }) }] : []),+ ...(bot.lead ? [] : [{ title: 'Hide from sidebar', icon: 'eye.slash', action: () => store.setHidden(bot, true) }]),+ ...(offersDelete(bot, store) ? [{ title: 'Delete', icon: 'trash', destructive: true, action: () => setConfirmDelete({ bot, store }) }] : []),]// ↑/↓ in the roster move the selection; Alt+↑/↓ moves the selected bot itself.@@ -474,13 +472,6 @@ function ChatSplitView() {<Sheet open={settings !== null} onClose={() => setSettings(null)} width={Math.min(800, windowSize.width - 80)} height={Math.min(620, sheetHeight)}>{settings ? <SettingsView page={settings} setPage={setSettings} /> : null}</Sheet>- <Dialog- open={newSessionBot !== null}- title={tr('Start a new session?')}- message={tr('The conversation stays here, but the agent starts with a fresh context.')}- actions={newSessionBot ? [{ title: 'New session', action: () => newSessionBot.store.newSession(newSessionBot.bot.id) }] : []}- onClose={() => setNewSessionBot(null)}- /><Dialogopen={confirmDelete !== null}title={`Delete ${confirmDelete?.bot.name ?? 'bot'}?`}diff --git a/apps/desktop/src/renderer/views/section-menus.test.ts b/apps/desktop/src/renderer/views/section-menus.test.tsindex 5ac95b28..f306c03a 100644--- a/apps/desktop/src/renderer/views/section-menus.test.ts+++ b/apps/desktop/src/renderer/views/section-menus.test.ts@@ -56,9 +56,9 @@ test('a header renames its section from its name, or removes it', () => {assert.deepEqual(calls, [['rename', 'Jobs'], ['rename', null]])})-test('the lead gets no Move to section: it stays on top, outside sections', () => {+test('the lead moves to a section like any bot', () => {const { store, bot } = computer()- assert.deepEqual(moveToSectionItems({ ...bot('work'), lead: true }, store, () => {}), [])+ assert.equal(moveToSectionItems({ ...bot('work'), lead: true }, store, () => {}).length, 1)})test('a host without sections gets no section menus', () => {diff --git a/apps/desktop/src/renderer/views/section-menus.ts b/apps/desktop/src/renderer/views/section-menus.tsindex 528e7b59..85fcdc07 100644--- a/apps/desktop/src/renderer/views/section-menus.ts+++ b/apps/desktop/src/renderer/views/section-menus.ts@@ -11,9 +11,9 @@ export interface SectionNaming {save: (name: string) => void}-/** A bot row's "Move to section"; none for the lead (it stays on top, outside sections) or while its computer runs a host without sections. */+/** A bot row's "Move to section"; none while its computer runs a host without sections. */export function moveToSectionItems(bot: Bot, store: BotStore, askName: (naming: SectionNaming) => void): ActionItem[] {- if (bot.lead || !store.hasRosterSections) return []+ if (!store.hasRosterSections) return []const others = sectionNames(store.bots.values()).filter((name) => name !== bot.section)const submenu: MenuItem[] = [...others.map((name) => ({ title: name, icon: 'tray', verbatim: true, action: () => store.sections.move(bot, name) })),diff --git a/apps/desktop/src/shared/models.ts b/apps/desktop/src/shared/models.tsindex 98292a86..02d137a1 100644--- a/apps/desktop/src/shared/models.ts+++ b/apps/desktop/src/shared/models.ts@@ -40,7 +40,7 @@ export interface Bot {/** Agents of its chain (its own included) resting now; one whose `until` passed isn't. */resting: Resting[]pinned: boolean- /** The computer's lead bot: the host makes the first, and the user may pick another (`setLead`) or delete it. First in the roster, never hidden or pinned. */+ /** The computer's lead bot: the host makes the first, and the user may pick another (`setLead`) or delete it. Placed in the roster like any bot, never hidden. */lead: boolean/** Where the user dragged it, lowest first within its band (`rosterBand`); ties sort by recent activity. */position: numberdiff --git a/apps/ios/Kit/Sources/CodyncKit/Client/HostClient.swift b/apps/ios/Kit/Sources/CodyncKit/Client/HostClient.swiftindex 14a9de7f..b0b0141e 100644--- a/apps/ios/Kit/Sources/CodyncKit/Client/HostClient.swift+++ b/apps/ios/Kit/Sources/CodyncKit/Client/HostClient.swift@@ -333,10 +333,6 @@ public extension HostClient {let _: Empty = try await call("stop", ["botId": botId])}- func newSession(_ botId: String) async throws {- let _: Empty = try await call("newSession", ["botId": botId])- }-func respondPermission(entryId: String, optionId: String?) async throws {struct Body: Encodable { var entryId: String; var optionId: String? }let _: Empty = try await call("respondPermission", Body(entryId: entryId, optionId: optionId))diff --git a/apps/ios/Kit/Sources/CodyncKit/Client/SharedStore.swift b/apps/ios/Kit/Sources/CodyncKit/Client/SharedStore.swiftindex fd32cb4f..214399db 100644--- a/apps/ios/Kit/Sources/CodyncKit/Client/SharedStore.swift+++ b/apps/ios/Kit/Sources/CodyncKit/Client/SharedStore.swift@@ -32,7 +32,7 @@ public enum SharedStore {self.suite = suite}- private static let names = ["computers", "bots", "usage", "lastComputerId", "composerDrafts", "computerOrder"]+ private static let names = ["computers", "bots", "usage", "lastComputerId", "composerDrafts", "computerOrder", "shortcutLeadComputer"]private func key(_ name: String) -> String { accountID == nil ? name : "account.\(id).\(name)" }public static func digest(_ value: String) -> String {SHA256.hash(data: Data(value.utf8)).map { String(format: "%02x", $0) }.joined()@@ -69,6 +69,12 @@ public enum SharedStore {nonmutating set { write(newValue, "composerDrafts") }}+ /// The computer whose lead a shortcut that names no bot calls (Settings); nil: the first computer with one.+ public var shortcutLeadComputer: ComputerID? {+ get { defaults.string(forKey: key("shortcutLeadComputer")) }+ nonmutating set { defaults.set(newValue, forKey: key("shortcutLeadComputer")) }+ }+/// The most recently active computer; the Usage widget shows only this one.public var lastComputerId: ComputerID? {get { defaults.string(forKey: key("lastComputerId")) }diff --git a/apps/ios/Kit/Sources/CodyncKit/Models/Bot.swift b/apps/ios/Kit/Sources/CodyncKit/Models/Bot.swiftindex 3508bef4..9a4454d3 100644--- a/apps/ios/Kit/Sources/CodyncKit/Models/Bot.swift+++ b/apps/ios/Kit/Sources/CodyncKit/Models/Bot.swift@@ -34,7 +34,7 @@ public struct Bot: Codable, Identifiable, Hashable, Sendable {public var selfFallbacks: Bool?public var pinned: Bool/// The computer's lead bot: the host makes the first, and the user may pick another (`setLead`) or delete it.- /// First in the list, never hidden, and the one a call or shortcut that names no bot talks to.+ /// Placed in the list like any bot, never hidden, and the one a call or shortcut that names no bot talks to.public var lead: Bool = false/// Where the user dragged it, lowest first within its `band`; ties sort by recent activity.public var position: Int = 0@@ -91,8 +91,8 @@ public struct Bot: Codable, Identifiable, Hashable, Sendable {isWorking && (workingChat ?? id) == chat}public var needsInput: Bool { status == "needsInput" }- /// Its band in the list: the lead, then pinned bots, then the rest. Dragging stays inside a band.- public var band: Int { lead ? 0 : pinned ? 1 : 2 }+ /// Its band in the list: pinned bots, then the rest. Dragging stays inside a band.+ public var band: Int { pinned ? 0 : 1 }public var folderName: String { managedWorkspace ? "Personal workspace" : (cwd as NSString).lastPathComponent }}diff --git a/apps/ios/Kit/Sources/CodyncKit/Models/ShortcutBotEntity.swift b/apps/ios/Kit/Sources/CodyncKit/Models/ShortcutBotEntity.swiftindex 674d7774..54156ac2 100644--- a/apps/ios/Kit/Sources/CodyncKit/Models/ShortcutBotEntity.swift+++ b/apps/ios/Kit/Sources/CodyncKit/Models/ShortcutBotEntity.swift@@ -46,11 +46,13 @@ public struct ShortcutBotQuery: EntityStringQuery {.compactMap { entity($0, among: computers, in: storage) }}- /// The lead of the first computer, in the user's order, that has one: who a shortcut that names no bot talks to.+ /// Who a shortcut that names no bot talks to: the lead of the computer chosen in Settings+ /// (`shortcutLeadComputer`), else of the first computer, in the user's order, that has one.public static func lead(in storage: SharedStore.Context) -> ShortcutBotEntity? {let (computers, bots) = (storage.computers, storage.bots)let order = (storage.computerOrder ?? ComputerOrder()).orderedIDs(computers.map(\.id))- return order.lazy.compactMap { id in+ let chosen = storage.shortcutLeadComputer.map { [$0] } ?? []+ return (chosen + order).lazy.compactMap { id inbots.first { $0.computerId == id && $0.bot.lead }.flatMap { entity($0, among: computers, in: storage) }}.first}diff --git a/apps/ios/Kit/Sources/CodyncKit/Resources/Languages/de.json b/apps/ios/Kit/Sources/CodyncKit/Resources/Languages/de.jsonindex a9ebfbce..f959368c 100644--- a/apps/ios/Kit/Sources/CodyncKit/Resources/Languages/de.json+++ b/apps/ios/Kit/Sources/CodyncKit/Resources/Languages/de.json@@ -99,9 +99,12 @@"Lead agent": "Leitender Agent","About the lead agent": "Über den leitenden Agenten","Make lead agent": "Zum leitenden Agenten machen",+ "Shortcuts": "Kurzbefehle",+ "Lead to call": "Anzurufender leitender Agent",+ "Automatic": "Automatisch",+ "Siri, the Action button and Open Live Mode without a bot call this lead. Automatic calls the lead of the first computer in your list.": "Siri, die Aktionstaste und Open Live Mode ohne Bot rufen diesen leitenden Agenten an. Automatisch ruft den leitenden Agenten des ersten Computers in Ihrer Liste an.","↑↓ scroll · esc close": "↑↓ scrollen · esc schließen","Your lead agent is your first point of contact. It follows your goals and unfinished tasks, suggests useful next steps, and coordinates work with your other bots. The lead Codync sets up has a Check in routine that runs twice a day by default; you can change or pause it in Routines.": "Ihr leitender Agent ist Ihre erste Anlaufstelle. Er verfolgt Ihre Ziele und offenen Aufgaben, schlägt hilfreiche nächste Schritte vor und koordiniert die Arbeit mit Ihren anderen Bots. Der leitende Agent, den Codync einrichtet, hat eine Check in-Routine, die standardmäßig zweimal täglich läuft; unter Routinen können Sie sie ändern oder pausieren.",- "The lead bot always stays on top": "Der Haupt-Bot bleibt immer oben","Move to section": "In Abschnitt verschieben","New section…": "Neuer Abschnitt…","Remove from section": "Aus Abschnitt entfernen",@@ -431,7 +434,6 @@"Privacy": "Datenschutz","Full conversation": "Gesamtes Gespräch","Settings": "Einstellungen",- "New session": "Neue Sitzung","Delete bot": "Bot löschen","Delete group": "Gruppe löschen","Memory": "Gedächtnis",@@ -904,7 +906,6 @@"↑↓ move · ↵ run · esc back": "↑↓ bewegen · ↵ ausführen · esc zurück","A bot has an update.": "Ein Bot hat Neuigkeiten.","A group has no memory of its own": "Eine Gruppe hat kein eigenes Gedächtnis",- "A group has no session of its own": "Eine Gruppe hat keine eigene Sitzung","ACP command, e.g. my-agent --acp": "ACP-Befehl, z. B. my-agent --acp","API key": "API-Schlüssel","Access request": "Zugriffsanfrage",@@ -1033,18 +1034,14 @@"Skip the check": "Prüfung überspringen","Star Codync on GitHub": "Codync auf GitHub einen Stern geben","Star on GitHub": "Stern auf GitHub geben",- "Start a new session?": "Neue Sitzung starten?","Starting the sign-in…": "Anmeldung wird gestartet…","Stopping…": "Wird gestoppt…","That choice isn't offered; use 1–9": "Diese Auswahl gibt es nicht; verwende 1–9","That computer isn't in your account.": "Dieser Computer ist nicht in deinem Konto.",- "The agent forgets this conversation's context.": "Der Agent vergisst den Kontext dieses Gesprächs.",- "The conversation stays here, but the agent starts with a fresh context.": "Das Gespräch bleibt hier, aber der Agent beginnt mit einem frischen Kontext.","The host is missing": "Der Host fehlt","The host is up to date.": "Der Host ist aktuell.","The language you speak in calls.": "Die Sprache, die du bei Anrufen sprichst.","The new one is copied in a curl command.": "Der neue wird in einem curl-Befehl kopiert.",- "The transcript stays here.": "Das Transkript bleibt hier.","This connection request needs a newer app.": "Diese Verbindungsanfrage benötigt eine neuere App.","This deletes the routine and stops its future runs. This can't be undone.": "Dies löscht die Routine und stoppt ihre künftigen Ausführungen. Das kann nicht rückgängig gemacht werden.","Time zone": "Zeitzone",diff --git a/apps/ios/Kit/Sources/CodyncKit/Resources/Languages/es.json b/apps/ios/Kit/Sources/CodyncKit/Resources/Languages/es.jsonindex f15dbb68..58eaa6e9 100644--- a/apps/ios/Kit/Sources/CodyncKit/Resources/Languages/es.json+++ b/apps/ios/Kit/Sources/CodyncKit/Resources/Languages/es.json@@ -99,9 +99,12 @@"Lead agent": "Agente principal","About the lead agent": "Acerca del agente principal","Make lead agent": "Convertir en agente principal",+ "Shortcuts": "Atajos",+ "Lead to call": "Agente principal al que llamar",+ "Automatic": "Automático",+ "Siri, the Action button and Open Live Mode without a bot call this lead. Automatic calls the lead of the first computer in your list.": "Siri, el botón de acción y Open Live Mode sin bot llaman a este agente principal. Automático llama al agente principal del primer ordenador de tu lista.","↑↓ scroll · esc close": "↑↓ desplazar · esc cerrar","Your lead agent is your first point of contact. It follows your goals and unfinished tasks, suggests useful next steps, and coordinates work with your other bots. The lead Codync sets up has a Check in routine that runs twice a day by default; you can change or pause it in Routines.": "Tu agente principal es tu primer punto de contacto. Sigue tus objetivos y tareas pendientes, sugiere próximos pasos útiles y coordina el trabajo con tus otros bots. El agente principal que crea Codync tiene una rutina Check in que se ejecuta dos veces al día de forma predeterminada; puedes cambiarla o pausarla en Rutinas.",- "The lead bot always stays on top": "El bot principal siempre queda arriba","Move to section": "Mover a una sección","New section…": "Nueva sección…","Remove from section": "Quitar de la sección",@@ -431,7 +434,6 @@"Privacy": "Privacidad","Full conversation": "Conversación completa","Settings": "Ajustes",- "New session": "Nueva sesión","Delete bot": "Eliminar bot","Delete group": "Eliminar grupo","Memory": "Memoria",@@ -904,7 +906,6 @@"↑↓ move · ↵ run · esc back": "↑↓ mover · ↵ ejecutar · esc volver","A bot has an update.": "Un bot tiene novedades.","A group has no memory of its own": "Un grupo no tiene memoria propia",- "A group has no session of its own": "Un grupo no tiene sesión propia","ACP command, e.g. my-agent --acp": "Comando ACP, ej. my-agent --acp","API key": "Clave API","Access request": "Solicitud de acceso",@@ -1033,18 +1034,14 @@"Skip the check": "Omitir la comprobación","Star Codync on GitHub": "Darle una estrella a Codync en GitHub","Star on GitHub": "Dar una estrella en GitHub",- "Start a new session?": "¿Iniciar una nueva sesión?","Starting the sign-in…": "Iniciando sesión…","Stopping…": "Deteniendo…","That choice isn't offered; use 1–9": "Esa opción no está disponible; usa 1–9","That computer isn't in your account.": "Esa computadora no está en tu cuenta.",- "The agent forgets this conversation's context.": "El agente olvida el contexto de esta conversación.",- "The conversation stays here, but the agent starts with a fresh context.": "La conversación permanece aquí, pero el agente empieza con un contexto nuevo.","The host is missing": "Falta el host","The host is up to date.": "El host está actualizado.","The language you speak in calls.": "El idioma que hablas en las llamadas.","The new one is copied in a curl command.": "La nueva se copia dentro de un comando curl.",- "The transcript stays here.": "La transcripción permanece aquí.","This connection request needs a newer app.": "Esta solicitud de conexión requiere una app más reciente.","This deletes the routine and stops its future runs. This can't be undone.": "Esto elimina la rutina y detiene sus ejecuciones futuras. No se puede deshacer.","Time zone": "Zona horaria",diff --git a/apps/ios/Kit/Sources/CodyncKit/Resources/Languages/fr.json b/apps/ios/Kit/Sources/CodyncKit/Resources/Languages/fr.jsonindex 3d5f3d35..2438a3ba 100644--- a/apps/ios/Kit/Sources/CodyncKit/Resources/Languages/fr.json+++ b/apps/ios/Kit/Sources/CodyncKit/Resources/Languages/fr.json@@ -99,9 +99,12 @@"Lead agent": "Agent principal","About the lead agent": "À propos de l’agent principal","Make lead agent": "Définir comme agent principal",+ "Shortcuts": "Raccourcis",+ "Lead to call": "Agent principal à appeler",+ "Automatic": "Automatique",+ "Siri, the Action button and Open Live Mode without a bot call this lead. Automatic calls the lead of the first computer in your list.": "Siri, le bouton Action et Open Live Mode sans bot appellent cet agent principal. Automatique appelle l’agent principal du premier ordinateur de votre liste.","↑↓ scroll · esc close": "↑↓ défiler · esc fermer","Your lead agent is your first point of contact. It follows your goals and unfinished tasks, suggests useful next steps, and coordinates work with your other bots. The lead Codync sets up has a Check in routine that runs twice a day by default; you can change or pause it in Routines.": "Votre agent principal est votre premier interlocuteur. Il suit vos objectifs et vos tâches inachevées, propose les prochaines étapes utiles et coordonne le travail avec vos autres bots. L’agent principal créé par Codync a une routine Check in qui s’exécute deux fois par jour par défaut ; vous pouvez la modifier ou la suspendre dans Routines.",- "The lead bot always stays on top": "Le bot principal reste toujours en haut","Move to section": "Déplacer vers une section","New section…": "Nouvelle section…","Remove from section": "Retirer de la section",@@ -431,7 +434,6 @@"Privacy": "Confidentialité","Full conversation": "Conversation complète","Settings": "Réglages",- "New session": "Nouvelle session","Delete bot": "Supprimer le bot","Delete group": "Supprimer le groupe","Memory": "Mémoire",@@ -904,7 +906,6 @@"↑↓ move · ↵ run · esc back": "↑↓ déplacer · ↵ exécuter · esc retour","A bot has an update.": "Un bot a une nouveauté.","A group has no memory of its own": "Un groupe n’a pas de mémoire propre",- "A group has no session of its own": "Un groupe n’a pas de session propre","ACP command, e.g. my-agent --acp": "Commande ACP, ex. my-agent --acp","API key": "Clé API","Access request": "Demande d’accès",@@ -1033,18 +1034,14 @@"Skip the check": "Ignorer la vérification","Star Codync on GitHub": "Mettre une étoile à Codync sur GitHub","Star on GitHub": "Mettre une étoile sur GitHub",- "Start a new session?": "Démarrer une nouvelle session ?","Starting the sign-in…": "Démarrage de la connexion…","Stopping…": "Arrêt…","That choice isn't offered; use 1–9": "Ce choix n’est pas proposé ; utilisez 1–9","That computer isn't in your account.": "Cet ordinateur n’est pas dans votre compte.",- "The agent forgets this conversation's context.": "L’agent oublie le contexte de cette conversation.",- "The conversation stays here, but the agent starts with a fresh context.": "La conversation reste ici, mais l’agent repart avec un contexte vierge.","The host is missing": "L’hôte est absent","The host is up to date.": "L’hôte est à jour.","The language you speak in calls.": "La langue que vous parlez pendant les appels.","The new one is copied in a curl command.": "La nouvelle clé est copiée dans une commande curl.",- "The transcript stays here.": "La transcription reste ici.","This connection request needs a newer app.": "Cette demande de connexion nécessite une app plus récente.","This deletes the routine and stops its future runs. This can't be undone.": "Cela supprime la routine et arrête ses prochaines exécutions. Cette action est irréversible.","Time zone": "Fuseau horaire",diff --git a/apps/ios/Kit/Sources/CodyncKit/Resources/Languages/ja.json b/apps/ios/Kit/Sources/CodyncKit/Resources/Languages/ja.jsonindex 7f6b88d0..c75667bc 100644--- a/apps/ios/Kit/Sources/CodyncKit/Resources/Languages/ja.json+++ b/apps/ios/Kit/Sources/CodyncKit/Resources/Languages/ja.json@@ -99,9 +99,12 @@"Lead agent": "リードエージェント","About the lead agent": "リードエージェントについて","Make lead agent": "リードエージェントにする",+ "Shortcuts": "ショートカット",+ "Lead to call": "呼び出すリードエージェント",+ "Automatic": "自動",+ "Siri, the Action button and Open Live Mode without a bot call this lead. Automatic calls the lead of the first computer in your list.": "Siri、アクションボタン、ボットを指定しない「Open Live Mode」はこのリードエージェントを呼び出します。「自動」では、リストの最初のコンピュータのリードエージェントを呼び出します。","↑↓ scroll · esc close": "↑↓ スクロール · esc 閉じる","Your lead agent is your first point of contact. It follows your goals and unfinished tasks, suggests useful next steps, and coordinates work with your other bots. The lead Codync sets up has a Check in routine that runs twice a day by default; you can change or pause it in Routines.": "リードエージェントは最初の相談相手です。目標や未完了のタスクを追跡し、役立つ次の一歩を提案して、他のボットとの作業を調整します。Codync が用意したリードエージェントには「Check in」ルーチンがあり、初期設定で1日2回実行されます。ルーチンで変更または一時停止できます。",- "The lead bot always stays on top": "メインボットは常に一番上です","Move to section": "セクションに移動","New section…": "新しいセクション…","Remove from section": "セクションから外す",@@ -431,7 +434,6 @@"Privacy": "プライバシー","Full conversation": "会話全体","Settings": "設定",- "New session": "新しいセッション","Delete bot": "ボットの削除","Delete group": "グループの削除","Memory": "記憶",@@ -904,7 +906,6 @@"↑↓ move · ↵ run · esc back": "↑↓ 移動・↵ 実行・esc 戻る","A bot has an update.": "ボットにアップデートがあります。","A group has no memory of its own": "集団にはそれ自体の記憶がない",- "A group has no session of its own": "グループには独自のセッションがありません","ACP command, e.g. my-agent --acp": "ACPコマンド(例:my-agent --acp)","API key": "APIキー","Access request": "アクセスリクエスト",@@ -1033,18 +1034,14 @@"Skip the check": "チェックをスキップする","Star Codync on GitHub": "GitHub のスター Codync","Star on GitHub": "GitHub にスターを付ける",- "Start a new session?": "新しいセッションを開始しますか?","Starting the sign-in…": "サインインを開始しています…","Stopping…": "停止中…","That choice isn't offered; use 1–9": "その選択肢は提供されていません。 1 ~ 9 を使用する","That computer isn't in your account.": "そのコンピュータはあなたのアカウントにありません。",- "The agent forgets this conversation's context.": "エージェントはこの会話のコンテキストを忘れます。",- "The conversation stays here, but the agent starts with a fresh context.": "会話はここに残りますが、エージェントは新しいコンテキストから開始します。","The host is missing": "ホストが見つかりません","The host is up to date.": "ホストは最新です。","The language you speak in calls.": "通話で話す言語。","The new one is copied in a curl command.": "新しいものはcurlコマンドでコピーされます。",- "The transcript stays here.": "トランスクリプトはここに残ります。","This connection request needs a newer app.": "この接続リクエストには新しいアプリが必要です。","This deletes the routine and stops its future runs. This can't be undone.": "これによりルーチンが削除され、今後の実行が停止されます。これを元に戻すことはできません。","Time zone": "タイムゾーン",diff --git a/apps/ios/Kit/Sources/CodyncKit/Resources/Languages/ko.json b/apps/ios/Kit/Sources/CodyncKit/Resources/Languages/ko.jsonindex fa403146..46cae55b 100644--- a/apps/ios/Kit/Sources/CodyncKit/Resources/Languages/ko.json+++ b/apps/ios/Kit/Sources/CodyncKit/Resources/Languages/ko.json@@ -99,9 +99,12 @@"Lead agent": "리드 에이전트","About the lead agent": "리드 에이전트 소개","Make lead agent": "리드 에이전트로 지정",+ "Shortcuts": "단축어",+ "Lead to call": "호출할 리드 에이전트",+ "Automatic": "자동",+ "Siri, the Action button and Open Live Mode without a bot call this lead. Automatic calls the lead of the first computer in your list.": "Siri, 동작 버튼, 봇을 지정하지 않은 Open Live Mode는 이 리드 에이전트를 호출합니다. 자동은 목록에서 첫 번째 컴퓨터의 리드 에이전트를 호출합니다.","↑↓ scroll · esc close": "↑↓ 스크롤 · esc 닫기","Your lead agent is your first point of contact. It follows your goals and unfinished tasks, suggests useful next steps, and coordinates work with your other bots. The lead Codync sets up has a Check in routine that runs twice a day by default; you can change or pause it in Routines.": "리드 에이전트는 가장 먼저 연락할 도우미입니다. 목표와 미완료 작업을 추적하고 유용한 다음 단계를 제안하며 다른 봇과 작업을 조율합니다. Codync가 만든 리드 에이전트에는 Check in 루틴이 있어 기본적으로 하루 두 번 실행되며, 루틴에서 변경하거나 일시 중지할 수 있습니다.",- "The lead bot always stays on top": "메인 봇은 항상 맨 위에 있습니다","Move to section": "섹션으로 이동","New section…": "새 섹션…","Remove from section": "섹션에서 제거",@@ -431,7 +434,6 @@"Privacy": "개인정보 보호","Full conversation": "전체 대화","Settings": "설정",- "New session": "새 세션","Delete bot": "봇 삭제","Delete group": "그룹 삭제","Memory": "기억",@@ -904,7 +906,6 @@"↑↓ move · ↵ run · esc back": "↑↓ 이동 · ↵ 실행 · esc 뒤로","A bot has an update.": "봇에 업데이트가 있습니다.","A group has no memory of its own": "그룹에는 자체 기억이 없습니다",- "A group has no session of its own": "그룹에는 자체 세션이 없습니다","ACP command, e.g. my-agent --acp": "ACP 명령(예: my-agent --acp)","API key": "API 키","Access request": "접근 요청",@@ -1033,18 +1034,14 @@"Skip the check": "확인 건너뛰기","Star Codync on GitHub": "GitHub에서 Codync에 별표 주기","Star on GitHub": "GitHub에서 별표 주기",- "Start a new session?": "새 세션을 시작할까요?","Starting the sign-in…": "로그인 시작 중…","Stopping…": "중지 중…","That choice isn't offered; use 1–9": "해당 선택지는 없습니다. 1–9를 사용하세요","That computer isn't in your account.": "해당 컴퓨터는 내 계정에 없습니다.",- "The agent forgets this conversation's context.": "에이전트가 이 대화의 맥락을 잊습니다.",- "The conversation stays here, but the agent starts with a fresh context.": "대화는 여기에 남지만 에이전트는 새로운 맥락으로 시작합니다.","The host is missing": "호스트가 없습니다","The host is up to date.": "호스트가 최신 상태입니다.","The language you speak in calls.": "통화할 때 사용하는 언어입니다.","The new one is copied in a curl command.": "새 키가 curl 명령에 포함되어 복사됩니다.",- "The transcript stays here.": "대화 기록은 여기에 남습니다.","This connection request needs a newer app.": "이 연결 요청을 처리하려면 더 최신 앱이 필요합니다.","This deletes the routine and stops its future runs. This can't be undone.": "루틴을 삭제하고 앞으로의 실행을 중지합니다. 되돌릴 수 없습니다.","Time zone": "시간대",diff --git a/apps/ios/Kit/Sources/CodyncKit/Resources/Languages/zh-Hans.json b/apps/ios/Kit/Sources/CodyncKit/Resources/Languages/zh-Hans.jsonindex a72aa826..de054781 100644--- a/apps/ios/Kit/Sources/CodyncKit/Resources/Languages/zh-Hans.json+++ b/apps/ios/Kit/Sources/CodyncKit/Resources/Languages/zh-Hans.json@@ -99,9 +99,12 @@"Lead agent": "主助理(Lead agent)","About the lead agent": "关于主助理","Make lead agent": "设为主助理",+ "Shortcuts": "快捷指令",+ "Lead to call": "要呼叫的主助理",+ "Automatic": "自动",+ "Siri, the Action button and Open Live Mode without a bot call this lead. Automatic calls the lead of the first computer in your list.": "Siri、操作按钮和未指定 Bot 的「Open Live Mode」会呼叫这个主助理。选「自动」时,会呼叫列表中第一台电脑的主助理。","↑↓ scroll · esc close": "↑↓ 滚动 · esc 关闭","Your lead agent is your first point of contact. It follows your goals and unfinished tasks, suggests useful next steps, and coordinates work with your other bots. The lead Codync sets up has a Check in routine that runs twice a day by default; you can change or pause it in Routines.": "主助理是你优先联系的 agent。它会跟进你的目标与未完成的任务、建议实用的下一步,并协调其他 bots 一起完成工作。Codync 创建的主助理带有「Check in」例行任务,默认每天执行两次;你可以在「例行任务」中调整或暂停。",- "The lead bot always stays on top": "主助理固定在最上面","Move to section": "移到分组","New section…": "新建分组…","Remove from section": "移出分组",@@ -431,7 +434,6 @@"Privacy": "隐私","Full conversation": "完整对话","Settings": "设置",- "New session": "新会话","Delete bot": "删除 Bot","Delete group": "删除群聊","Memory": "记忆",@@ -904,7 +906,6 @@"↑↓ move · ↵ run · esc back": "↑↓ 移动 · ↵ 执行 · esc 返回","A bot has an update.": "有 Bot 更新了。","A group has no memory of its own": "群聊没有自己的记忆",- "A group has no session of its own": "群聊没有自己的会话","ACP command, e.g. my-agent --acp": "ACP 命令,例如 my-agent --acp","API key": "API 密钥","Access request": "访问请求",@@ -1033,18 +1034,14 @@"Skip the check": "跳过验证","Star Codync on GitHub": "在 GitHub 上给 Codync 加星","Star on GitHub": "在 GitHub 上加星",- "Start a new session?": "开始新会话?","Starting the sign-in…": "正在开始登录…","Stopping…": "正在停止…","That choice isn't offered; use 1–9": "没有这个选项,请用 1–9","That computer isn't in your account.": "那台电脑不在你的账户里。",- "The agent forgets this conversation's context.": "智能体会忘掉这段对话的上下文。",- "The conversation stays here, but the agent starts with a fresh context.": "对话还在,但智能体会从一个新的上下文开始。","The host is missing": "找不到 Host","The host is up to date.": "Host 已是最新。","The language you speak in calls.": "你在通话里说的语言。","The new one is copied in a curl command.": "新的密钥已经放进一条 curl 命令里。",- "The transcript stays here.": "记录会留在这里。","This connection request needs a newer app.": "这个连接请求需要更新的应用。","This deletes the routine and stops its future runs. This can't be undone.": "这会删除这个例行任务,并停掉以后的运行。无法撤销。","Time zone": "时区",diff --git a/apps/ios/Kit/Sources/CodyncKit/Resources/Languages/zh-Hant.json b/apps/ios/Kit/Sources/CodyncKit/Resources/Languages/zh-Hant.jsonindex 7a7b770b..9b451146 100644--- a/apps/ios/Kit/Sources/CodyncKit/Resources/Languages/zh-Hant.json+++ b/apps/ios/Kit/Sources/CodyncKit/Resources/Languages/zh-Hant.json@@ -99,9 +99,12 @@"Lead agent": "主助理(Lead agent)","About the lead agent": "關於主助理","Make lead agent": "設為主助理",+ "Shortcuts": "捷徑",+ "Lead to call": "要呼叫的主助理",+ "Automatic": "自動",+ "Siri, the Action button and Open Live Mode without a bot call this lead. Automatic calls the lead of the first computer in your list.": "Siri、動作按鈕和沒有指定 Bot 的「Open Live Mode」會呼叫這個主助理。選「自動」時,會呼叫清單中第一台電腦的主助理。","↑↓ scroll · esc close": "↑↓ 捲動 · esc 關閉","Your lead agent is your first point of contact. It follows your goals and unfinished tasks, suggests useful next steps, and coordinates work with your other bots. The lead Codync sets up has a Check in routine that runs twice a day by default; you can change or pause it in Routines.": "主助理是你優先聯絡的 agent。它會追蹤你的目標與未完成的任務、建議實用的下一步,並協調其他 bots 一起完成工作。Codync 建立的主助理帶有「Check in」例行任務,預設每天執行兩次;你可以在「例行任務」中調整或暫停。",- "The lead bot always stays on top": "主助理固定在最上面","Move to section": "移到分組","New section…": "新建分組…","Remove from section": "移出分組",@@ -431,7 +434,6 @@"Privacy": "隱私","Full conversation": "完整對話","Settings": "設定",- "New session": "新會話","Delete bot": "刪除 Bot","Delete group": "刪除群聊","Memory": "記憶",@@ -904,7 +906,6 @@"↑↓ move · ↵ run · esc back": "↑↓ 移動 · ↵ 執行 · esc 返回","A bot has an update.": "有 Bot 更新了。","A group has no memory of its own": "群聊沒有自己的記憶",- "A group has no session of its own": "群聊沒有自己的會話","ACP command, e.g. my-agent --acp": "ACP 命令,例如 my-agent --acp","API key": "API 金鑰","Access request": "訪問請求",@@ -1033,18 +1034,14 @@"Skip the check": "跳過驗證","Star Codync on GitHub": "在 GitHub 上給 Codync 加星","Star on GitHub": "在 GitHub 上加星",- "Start a new session?": "開始新會話?","Starting the sign-in…": "正在開始登入…","Stopping…": "正在停止…","That choice isn't offered; use 1–9": "沒有這個選項,請用 1–9","That computer isn't in your account.": "那臺電腦不在你的賬戶裡。",- "The agent forgets this conversation's context.": "智慧體會忘掉這段對話的上下文。",- "The conversation stays here, but the agent starts with a fresh context.": "對話還在,但智慧體會從一個新的上下文開始。","The host is missing": "找不到 Host","The host is up to date.": "Host 已是最新。","The language you speak in calls.": "你在通話裡說的語言。","The new one is copied in a curl command.": "新的金鑰已經放進一條 curl 命令裡。",- "The transcript stays here.": "記錄會留在這裡。","This connection request needs a newer app.": "這個連線請求需要更新的應用。","This deletes the routine and stops its future runs. This can't be undone.": "這會刪除這個例行任務,並停掉以後的執行。無法撤銷。","Time zone": "時區",diff --git a/apps/ios/Kit/Sources/CodyncUI/Bots/BotRow.swift b/apps/ios/Kit/Sources/CodyncUI/Bots/BotRow.swiftindex f16ac155..8cf5054e 100644--- a/apps/ios/Kit/Sources/CodyncUI/Bots/BotRow.swift+++ b/apps/ios/Kit/Sources/CodyncUI/Bots/BotRow.swift@@ -16,7 +16,7 @@ public struct BotRow: View {AvatarWithStatus(bot: bot, members: model.members(of: bot), size: avatar)VStack(alignment: .leading, spacing: lineSpacing) {HStack(alignment: .firstTextBaseline) {- if bot.pinned && !bot.lead {+ if bot.pinned {Image(systemName: "pin.fill").font(.caption2).foregroundStyle(Palette.tertiary)}Text(bot.name)diff --git a/apps/ios/Kit/Sources/CodyncUI/Store/BotStore+Actions.swift b/apps/ios/Kit/Sources/CodyncUI/Store/BotStore+Actions.swiftindex 45311c38..c51eb184 100644--- a/apps/ios/Kit/Sources/CodyncUI/Store/BotStore+Actions.swift+++ b/apps/ios/Kit/Sources/CodyncUI/Store/BotStore+Actions.swift@@ -82,7 +82,6 @@ extension BotStore {guard bots[botId]?.lead == true else { return }perform { try await $0.callStarted(botId, call: call) }}- public func newSession(_ botId: String) { perform { try await $0.newSession(botId) } }/// The bot's own agent again, off the fallback it runs on.public func switchBack(_ botId: String) { perform(replay: true) { try await $0.switchBack(botId) } }diff --git a/apps/ios/Kit/Sources/CodyncUI/Store/RosterSection.swift b/apps/ios/Kit/Sources/CodyncUI/Store/RosterSection.swiftindex 95690921..883363dc 100644--- a/apps/ios/Kit/Sources/CodyncUI/Store/RosterSection.swift+++ b/apps/ios/Kit/Sources/CodyncUI/Store/RosterSection.swift@@ -71,15 +71,15 @@ public struct RosterSection: Sendable {current == set ? before : current}- /// A computer's roster (in `BotStore.roster` order) as the rows on screen: the lead and pinned- /// bots, then each section by name with its bots (none while folded), then the bots in no- /// section, under the "Bots" label when there are sections. The lead and a pinned bot show only- /// on top, whatever their section; every part keeps the roster's order.+ /// A computer's roster (in `BotStore.roster` order) as the rows on screen: the pinned bots, then+ /// each section by name with its bots (none while folded), then the bots in no section, under the+ /// "Bots" label when there are sections. A pinned bot shows only on top, whatever its section;+ /// every part keeps the roster's order.public static func lines<Item>(_ roster: [Item], folded: Set<String>, bot: (Item) -> Bot) -> [RosterSectionLine<Item>] {var pinned: [Item] = [], loose: [Item] = [], bySection: [String: [Item]] = [:]for item in roster {let placed = bot(item)- if placed.staysOnTop {+ if placed.pinned {pinned.append(item)} else if let name = placed.section {bySection[name, default: []].append(item)@@ -117,13 +117,10 @@ public enum RosterSectionLine<Item> {}extension Bot {- /// The lead and pinned bots stay on top, outside sections.- var staysOnTop: Bool { lead || pinned }-/// Whether the user can drag this bot past `other`: the same `band`, where pinned bots share/// the top whatever their sections; the rest move within their own section, or among the bots/// in none.func isRosterPeer(of other: Bot) -> Bool {- band == other.band && (staysOnTop || section == other.section)+ band == other.band && (pinned || section == other.section)}}diff --git a/apps/ios/Kit/Tests/CodyncKitTests/AppLanguageTests.swift b/apps/ios/Kit/Tests/CodyncKitTests/AppLanguageTests.swiftindex 8ecdf924..3ea49fcc 100644--- a/apps/ios/Kit/Tests/CodyncKitTests/AppLanguageTests.swift+++ b/apps/ios/Kit/Tests/CodyncKitTests/AppLanguageTests.swift@@ -90,7 +90,6 @@ struct AppLanguageTests {#expect(L10n.tr("Settings", preference: .zh, systemIsChinese: false) == "设置")#expect(L10n.tr("Settings", preference: .zhHant, systemIsChinese: false) == "設定")#expect(L10n.tr("Files", preference: .zhHant, systemIsChinese: false) == "檔案")- #expect(L10n.tr("New session", preference: .zh, systemIsChinese: false) == "新会话")#expect(L10n.tr("Delete bot", preference: .zh, systemIsChinese: false) == "删除 Bot")#expect(L10n.tr("Connected", preference: .zh, systemIsChinese: false) == "已连接")#expect(L10n.tr("Ask {name}", preference: .zh, systemIsChinese: false) == "问 {name}")diff --git a/apps/ios/Kit/Tests/CodyncKitTests/ShortcutBotTests.swift b/apps/ios/Kit/Tests/CodyncKitTests/ShortcutBotTests.swiftindex bdc30369..43bd8fc3 100644--- a/apps/ios/Kit/Tests/CodyncKitTests/ShortcutBotTests.swift+++ b/apps/ios/Kit/Tests/CodyncKitTests/ShortcutBotTests.swift@@ -55,4 +55,8 @@ import Testing#expect(ShortcutBotQuery.lead(in: storage)?.name == "Zed", "unarranged: the first computer saved")storage.computerOrder = ComputerOrder(ids: ["removed", mini.id, laptop.id])#expect(ShortcutBotQuery.lead(in: storage)?.name == "Codync", "the user's order, past a removed computer")+ storage.shortcutLeadComputer = laptop.id+ #expect(ShortcutBotQuery.lead(in: storage)?.name == "Zed", "the computer chosen in Settings")+ storage.bots = [ada, BotSnapshot(computerId: mini.id, bot: try bot("l2", "Codync", lead: true))]+ #expect(ShortcutBotQuery.lead(in: storage)?.name == "Codync", "its lead deleted: the first computer with one")}diff --git a/apps/ios/Kit/Tests/CodyncUITests/RosterOrderTests.swift b/apps/ios/Kit/Tests/CodyncUITests/RosterOrderTests.swiftindex 3642b909..c114c419 100644--- a/apps/ios/Kit/Tests/CodyncUITests/RosterOrderTests.swift+++ b/apps/ios/Kit/Tests/CodyncUITests/RosterOrderTests.swift@@ -27,13 +27,13 @@ import Testing#expect(order() == ["p", "a", "c", "b"])store.reorder(["c", "p", "a", "b"]) // Dropped above a pinned bot: still listed below it.#expect(order() == ["p", "c", "a", "b"])- // The lead goes above everything, pinned bots too, and nothing moves above it.- store.bots["l"] = try JSONDecoder().decode(Bot.self, from: Data(#"{"id":"l","lead":true,"lastAt":0}"#.utf8))- #expect(order() == ["l", "p", "c", "a", "b"])- store.move("p", by: -1)- #expect(order() == ["l", "p", "c", "a", "b"])- store.reorder(["p", "c", "l", "a", "b"])- #expect(order().first == "l")+ // The lead is placed like any bot.+ store.bots["l"] = try JSONDecoder().decode(Bot.self, from: Data(#"{"id":"l","lead":true,"lastAt":0,"position":9}"#.utf8))+ #expect(order() == ["p", "c", "a", "b", "l"])+ store.move("l", by: -1)+ #expect(order() == ["p", "c", "a", "l", "b"])+ store.reorder(["p", "l", "c", "a", "b"])+ #expect(order() == ["p", "l", "c", "a", "b"])}/// A bot as the host sends it.@@ -85,7 +85,7 @@ private func rosterBot(_ id: String, pinned: Bool = false, lead: Bool = false, h#expect(RosterSection.lines([roster[1]], folded: []) { $0 }.count == 2)}-@MainActor @Test func theLeadStaysOnTopOutsideItsSection() throws {+@MainActor @Test func theLeadSitsInItsSectionLikeAnyBot() throws {let (store, done) = try rosterStore([rosterBot("l", lead: true, section: "Work"), rosterBot("p", pinned: true, lastAt: 3),rosterBot("w", section: "Work", lastAt: 2), rosterBot("x", lastAt: 1),@@ -98,9 +98,9 @@ private func rosterBot(_ id: String, pinned: Bool = false, lead: Bool = false, hcase let .bot(bot): bot.id}}- #expect(lines == ["l", "p", "▾ Work 1", "w", "BOTS", "x"])+ #expect(lines == ["p", "▾ Work 2", "w", "l", "BOTS", "x"])let lead = try #require(store.bots["l"]), p = try #require(store.bots["p"]), w = try #require(store.bots["w"])- #expect(!lead.isRosterPeer(of: p) && !lead.isRosterPeer(of: w))+ #expect(!lead.isRosterPeer(of: p) && lead.isRosterPeer(of: w))}@Test func sectionsSortTheSameWhateverOrderTheyComeIn() {diff --git a/apps/ios/Kit/Tests/CodyncUITests/StoreConnectionTests.swift b/apps/ios/Kit/Tests/CodyncUITests/StoreConnectionTests.swiftindex 03455b30..a3c01a37 100644--- a/apps/ios/Kit/Tests/CodyncUITests/StoreConnectionTests.swift+++ b/apps/ios/Kit/Tests/CodyncUITests/StoreConnectionTests.swift@@ -135,11 +135,12 @@ import Testingstore.stop("b1")#expect(await until { await fake.calls.filter { $0 == "stop" }.count == 2 })#expect(store.lastError == nil)- // A new session can't be told apart from a second one, so it isn't sent twice.- await fake.fail("newSession", times: 1)- store.newSession("b1")+ // A call's opening can't be told apart from a second one, so it isn't sent twice.+ store.bots["b1"]?.lead = true+ await fake.fail("callStarted", times: 1)+ store.callStarted("b1", call: "c1")#expect(await until { store.lastError != nil })- #expect(await fake.calls.filter { $0 == "newSession" }.count == 1)+ #expect(await fake.calls.filter { $0 == "callStarted" }.count == 1)}@MainActor @Test(.timeLimit(.minutes(1))) func offlineTapReconnectsBeforeGivingUp() async throws {diff --git a/apps/ios/Views/BotListView.swift b/apps/ios/Views/BotListView.swiftindex a14a17ab..e8485d5b 100644--- a/apps/ios/Views/BotListView.swift+++ b/apps/ios/Views/BotListView.swift@@ -16,8 +16,6 @@ struct BotListView: View {@State private var confirmDelete: RosterItem?/// What the section name dialog names while it's open.@State private var naming: SectionNaming?- /// A bot whose agent starts over with a fresh context, once confirmed.- @State private var confirmNewSession: RosterItem?/// The row that's lifted (a `RosterLine` id): a bot to drag or for its menu, or a computer's heading.@State private var lifted: String?@Environment(\.accessibilityReduceMotion) private var reduceMotion@@ -155,7 +153,7 @@ struct BotListView: View {.listRowBackground(Color.clear)}.reviewInvitation(blocked: creating != nil || editing != nil || editingGroup != nil- || confirmDelete != nil || confirmNewSession != nil || lifted != nil)+ || confirmDelete != nil || lifted != nil).listStyle(.plain).scrollContentBackground(.hidden).environment(\.defaultMinListRowHeight, 0)@@ -233,14 +231,6 @@ struct BotListView: View {}]}.sectionNameDialog($naming)- .codyncDialog("Start a new session?",- isPresented: Binding(get: { confirmNewSession != nil }, set: { if !$0 { confirmNewSession = nil } }),- message: "The conversation stays here, but the agent starts with a fresh context.") {- let item = confirmNewSession- return [DialogAction("New session") {- if let item { accounts.store(for: item.ref.computerId)?.newSession(item.bot.id) }- }]- }}/// A row the system's reordering dropped. A heading moves its computer and its bots (an order@@ -330,16 +320,10 @@ struct BotListView: View {Button(L10n.tr("Move up")) { withAnimation(Motion.reduced(Motion.layout, reduceMotion)) { store.move(bot.id, by: -1) } }Button(L10n.tr("Move down")) { withAnimation(Motion.reduced(Motion.layout, reduceMotion)) { store.move(bot.id, by: 1) } }}- // The lead stays on top.- .moveDisabled(bot.lead).contextActions {- // The lead is always on top and in sight: no pin, section or hide.- var items = bot.lead ? [] : [MenuItem(bot.pinned ? "Unpin" : "Pin", icon: bot.pinned ? "pin.slash" : "pin") { store.setPinned(bot, !bot.pinned) }]+ var items = [MenuItem(bot.pinned ? "Unpin" : "Pin", icon: bot.pinned ? "pin.slash" : "pin") { store.setPinned(bot, !bot.pinned) }]// Below Pin, like the desktop; an older computer has no sections.- if !bot.lead && store.supportsSections { items.append(sectionMenu(bot, store: store)) }- if !bot.isGroup {- items.append(MenuItem("New session", icon: "arrow.counterclockwise") { confirmNewSession = item })- }+ if store.supportsSections { items.append(sectionMenu(bot, store: store)) }items += [bot.isGroup? MenuItem("Edit group", icon: "person.2") { editingGroup = GroupTarget(computerId: item.ref.computerId, group: bot) }@@ -349,12 +333,13 @@ struct BotListView: View {if !bot.lead && !bot.isGroup && store.supportsLeadChoice {items.append(MenuItem("Make lead agent", icon: "star") { store.setLead(bot) })}+ // The lead stays in sight.if !bot.lead {items.append(MenuItem("Hide from list", icon: "eye.slash") { store.setHidden(bot, true) })}// An older computer keeps its lead.if !bot.lead || store.supportsLeadChoice {- items.append(MenuItem("Delete", icon: "trash", destructive: true, divider: true) { confirmDelete = item })+ items.append(MenuItem("Delete", icon: "trash", destructive: true) { confirmDelete = item })}return items}diff --git a/apps/ios/Views/SettingsView.swift b/apps/ios/Views/SettingsView.swiftindex c3becf11..ef838127 100644--- a/apps/ios/Views/SettingsView.swift+++ b/apps/ios/Views/SettingsView.swift@@ -2,8 +2,8 @@ import CodyncKitimport CodyncUIimport SwiftUI-/// The Settings tab: what belongs to this iPhone alone (appearance, language, notification permission,-/// analytics, Start over). Each computer's own settings (voice chat, push, connection, hidden bots) are in+/// The Settings tab: what belongs to this iPhone alone (appearance, language, the lead shortcuts call,+/// notification permission, analytics, Start over). Each computer's own settings (voice chat, push, connection, hidden bots) are in/// Computer management (`ComputersView`).struct SettingsView: View {@Environment(AppStore.self) private var app@@ -27,6 +27,8 @@ struct SettingsView: View {ThinkingDetailsSettings()+ ShortcutLeadSettings()+CardSection("Notifications", footer: "Get a result summary, a request for input, or a failure notice. Notification previews follow your iOS settings.") {notificationsRow}diff --git a/apps/ios/Views/ShortcutLeadSettings.swift b/apps/ios/Views/ShortcutLeadSettings.swiftnew file mode 100644index 00000000..fbfd6b6b--- /dev/null+++ b/apps/ios/Views/ShortcutLeadSettings.swift@@ -0,0 +1,27 @@+import CodyncKit+import CodyncUI+import SwiftUI++/// Which lead Siri, the Action button and Open Live Mode without a bot call (`ShortcutBotQuery.lead`), shown once+/// more than one computer has a lead. Automatic: the lead of the first computer in the list that has one.+struct ShortcutLeadSettings: View {+ @Environment(AppStore.self) private var app+ /// A computer id, or empty for Automatic.+ @State private var chosen = SharedStore.activeContext.shortcutLeadComputer ?? ""++ var body: some View {+ let leads = app.accounts.roster.filter(\.bot.lead)+ if leads.count > 1 {+ CardSection("Shortcuts", footer: "Siri, the Action button and Open Live Mode without a bot call this lead. Automatic calls the lead of the first computer in your list.") {+ ValueRow("Lead to call") {+ ChoicePicker(+ // A computer whose lead is gone shows as Automatic, which is what the shortcut does then.+ selection: Binding(get: { leads.contains { $0.ref.computerId == chosen } ? chosen : "" }, set: { chosen = $0 }),+ options: [(id: "", label: "Automatic")] + leads.map { (id: $0.ref.computerId, label: "\($0.bot.name) · \($0.computer.name)") }+ )+ }+ }+ .onChange(of: chosen) { _, id in SharedStore.activeContext.shortcutLeadComputer = id.isEmpty ? nil : id }+ }+ }+}diff --git a/apps/ios/WhatsNew.md b/apps/ios/WhatsNew.mdindex 568cc962..b9aa6e1d 100644--- a/apps/ios/WhatsNew.md+++ b/apps/ios/WhatsNew.md@@ -10,8 +10,12 @@ a version without one gets a generic "Bug fixes and improvements" line. Delete o### zh-Hant- 任何 Bot 都能當主助理:長按 Bot 選「設為主助理」,Siri、動作按鈕和沒有指定 Bot 的「Open Live Mode」捷徑就會改找它。-- 不需要的主助理也可以直接刪除。+- 主助理可以像其他 Bot 一樣拖曳排序、釘選或移到分組,不需要時也可以直接刪除。+- 有多台電腦時,可以在「設定 > 捷徑」選擇動作按鈕要呼叫哪一台電腦的主助理。+- Bot 選單更簡潔:不再需要手動開新的工作階段,Codync 會在需要時自動接續。### en-US- Any bot can be your lead: touch and hold it and choose Make lead agent. Siri, the Action button and Open Live Mode without a bot then call it.-- You can delete the lead bot if you don't need one.+- Drag, pin or move the lead into a section like any bot, or delete it if you don't need one.+- With more than one computer, choose whose lead the Action button calls in Settings > Shortcuts.+- A simpler bot menu: no more New session, since Codync starts a fresh one on its own when a conversation needs it.diff --git a/docs/design/ui-conventions.md b/docs/design/ui-conventions.mdindex b5b5c650..8c5d1112 100644--- a/docs/design/ui-conventions.md+++ b/docs/design/ui-conventions.md@@ -2,7 +2,7 @@## iPhone navigation-The bot list and conversation use the system `NavigationStack` toolbar. `ToolbarItem` owns the account button, centered computer status/filter menu, and New button (New bot, New group chat). Computer management is inside the centered menu. The conversation copies Grok Bot: the title (the bot's avatar and name) is a plain button that opens its details sheet on Details, a group's editor for a group (VoiceOver: "<name>, view details"); the other bot actions live where the desktop has them (New session, Pin and Delete in the bot list's touch-and-hold menu, Full conversation through a message's Show what it did, Reconnect through pull to refresh and the computer menu), the only trailing button is the computer (remote screen; it pulses while this bot operates the screen), and the call button sits in the composer as a filled waveform capsule while the box is empty. Menus opened from toolbar buttons (New, the computer filter) are native `Menu`s, like every iOS menu; the conversation uses the system back button. iOS supplies Liquid Glass, control sizing, grouping and interaction feedback.+The bot list and conversation use the system `NavigationStack` toolbar. `ToolbarItem` owns the account button, centered computer status/filter menu, and New button (New bot, New group chat). Computer management is inside the centered menu. The conversation copies Grok Bot: the title (the bot's avatar and name) is a plain button that opens its details sheet on Details, a group's editor for a group (VoiceOver: "<name>, view details"); the other bot actions live where the desktop has them (Pin, Make lead agent and Delete in the bot list's touch-and-hold menu, one list with no dividers, and no New session anywhere: sessions start over on their own, Full conversation through a message's Show what it did, Reconnect through pull to refresh and the computer menu), the only trailing button is the computer (remote screen; it pulses while this bot operates the screen), and the call button sits in the composer as a filled waveform capsule while the box is empty. Menus opened from toolbar buttons (New, the computer filter) are native `Menu`s, like every iOS menu; the conversation uses the system back button. iOS supplies Liquid Glass, control sizing, grouping and interaction feedback.The conversation keeps the native glass buttons over the chat with a soft top scroll-edge effect, so messages blur out under the header instead of running sharp behind it. Root error dialogs use an in-place, full-screen scrim so presenting them does not change the underlying glass controls' appearance.diff --git a/docs/features/context-and-memory.md b/docs/features/context-and-memory.mdindex 6fd44c65..39f64083 100644--- a/docs/features/context-and-memory.md+++ b/docs/features/context-and-memory.md@@ -9,7 +9,7 @@ conversation and compaction. The design, including what is still to come, is in| | Where | Owner | Lifetime ||---|---|---|---|| Transcript | SQLite `entries` | Codync | One persistent chat per bot; replies quote the message they answer |-| Model context | ACP session (`bots.session_id`) | The harness | Until *New session*, a failed resume, or an agent/command/folder change; each [fallback agent](agent-fallback.md) keeps its own, parked while another answers |+| Model context | ACP session (`bots.session_id`) | The harness | Until a rollover (Fresh conversations), a host-side `newSession`, a failed resume, or an agent/command/folder change (the apps offer no New session); each [fallback agent](agent-fallback.md) keeps its own, parked while another answers || Long-term memory | Markdown files per layer (`MEMORY.md` and notes); versions and who wrote what in SQLite `memory_*` tables | Codync: the bots, through their tools or their own file tools, and dreaming | Forever, across sessions |Codync never replays the transcript into a session. Each turn sends only the new message(s); the harness keeps@@ -18,7 +18,7 @@ its own context and compacts it itself.## Instruction snapshot (`host/src/chat/context.rs`)- The bot's instructions are rendered once, in English and kept general: profile (name, description), how to- message the user, where the user is (Codync's apps, not the engine's own CLI; New session to start over),+ message the user, where the user is (Codync's apps, not the engine's own CLI; one conversation that goes on, so no starting over),other conversations, workspace, skills, plus the memory section. How to use each toollives with the tool (MCP server instructions, tool descriptions), not here. They're stored as a snapshot in `kv` under `context.<bot>`, keyed by **session + compactionepoch**, and don't change until one of those changes. This keeps the prompt byte-identical so the promptdiff --git a/docs/features/ios-shortcuts.md b/docs/features/ios-shortcuts.mdindex 2b56b8cc..578fadf9 100644--- a/docs/features/ios-shortcuts.md+++ b/docs/features/ios-shortcuts.md@@ -2,7 +2,7 @@Codync exposes two actions in Apple's Shortcuts app:-- **Open Live Mode**: choose a **Bot**, open its conversation, and start the existing voice chat with the configured voice provider. The Bot is optional: without one it calls the [lead bot](lead-bot.md) of the first computer (in the user's order) that has one, which speaks first, and follows the lead the user picks (Make lead agent); with no lead cached (the user deleted it, or it isn't synced yet) it asks which bot. The picker lists lead bots first.+- **Open Live Mode**: choose a **Bot**, open its conversation, and start the existing voice chat with the configured voice provider. The Bot is optional (the Action button usually runs it without one): without one it calls a [lead bot](lead-bot.md), which speaks first: the lead of the computer picked in Settings > Shortcuts > *Lead to call* (shown once more than one computer has a lead), else of the first computer (in the user's order) that has one. It follows the lead the user picks (Make lead agent); with no lead cached (the user deleted it, or it isn't synced yet) it asks which bot. The picker lists lead bots first.- **Send Text to Bot**: choose a **Bot** and supply **Text**. **Open Chat** defaults to off: the message is sent in the background without opening Codync or selecting/reading a conversation. Turn it on to open the chosen chat. The action waits for the computer to accept the message. When the computer is offline and its relay mailbox is available, it confirms that the message was queued instead.Open Codync and connect a computer first so its bots are available in the picker. In Shortcuts, add an action, search for Codync, and select either action. The Bot parameter can be a saved selection, a compatible shortcut variable, or **Ask Each Time**. Text can be literal text, another action's output, **Shortcut Input**, or **Ask Each Time**. These are two separate actions; no manual URL construction or Bot ID is needed.diff --git a/docs/features/lead-bot.md b/docs/features/lead-bot.mdindex 5e30ae6e..8f0b5e38 100644--- a/docs/features/lead-bot.md+++ b/docs/features/lead-bot.md@@ -1,8 +1,8 @@# Lead bot-Every computer has at most one lead bot, as Grok Bot has its own bot: the one you come to first. It sits on top of-the bot list with a star, takes the voice calls and shortcuts that name no bot, and takes initiative instead of-waiting to be asked. Everything about it lives in the host (`host/src/chat/lead.rs`); the apps only show it.+Every computer has at most one lead bot, as Grok Bot has its own bot: the one you come to first. It wears a star in+the bot list, takes the voice calls and shortcuts that name no bot (on the iPhone, the Action button), and takes+initiative instead of waiting to be asked. Everything about it lives in the host (`host/src/chat/lead.rs`); the apps only show it.## What makes it the lead@@ -20,13 +20,12 @@ waiting to be asked. Everything about it lives in the host (`host/src/chat/lead.- **Deletable, never hidden.** `deleteBot` works on the lead like on any bot; the computer then has none until the userpicks one. A lead can't be hidden (`hub::validate`), so the bot the shortcuts call is always in the list.Everything else is set up as on any bot: name, avatar, agent and model, folder, connectors, skills, memory, routines.-- **On top.** Every client sorts the roster in bands: the lead, then pinned bots, then the rest (by the user's order,- then recent activity). The lead can't be dragged, and moving another bot never puts it above the lead. Its row- shows a gold `star.fill` badge at the avatar’s bottom-right, with unread/approval badges at the top-right.- The larger badge in details opens the lead agent role explanation. TUI shows a gold `★` below the avatar;- click it or press `I` on the lead to read the same explanation, scroll with arrow keys, and close with `Esc`. Its- menus have no Pin, Move to section or Hide, and it shows in no roster section (TUI: `p` and `w` say why). Every- other bot's menu has **Make lead agent** (`star`; TUI: `*`), groups excepted.+- **Placed like any bot.** The lead has no place of its own in the roster: the user drags, pins and moves it to a+ section like any other bot (a host-made lead starts where any new bot does). Its row shows a gold `star.fill` badge+ at the avatar’s bottom-right, with unread/approval badges at the top-right. The larger badge in details opens the+ lead agent role explanation. TUI shows a gold `★` below the avatar; click it or press `I` on the lead to read the+ same explanation, scroll with arrow keys, and close with `Esc`. Its menus have no Hide. Every other bot's menu has+ **Make lead agent** (`star`; TUI: `*`), groups excepted.## Initiative@@ -55,16 +54,18 @@ waiting to be asked. Everything about it lives in the host (`host/src/chat/lead.## Shortcuts-On the iPhone, **Open Live Mode**'s Bot is optional: without one it calls the lead of the first computer, in the-user's computer order, that has one, and Siri's "Talk to Codync" does the same: it follows the lead the user picks.-With no lead (deleted, or not synced yet) it asks which bot. The Bot picker lists leads first. See-[iOS Shortcuts](ios-shortcuts.md). The desktop's voice input shortcut goes to the lead when no chat is open, or the+On the iPhone, **Open Live Mode**'s Bot is optional (it's what the Action button usually runs): without one it calls a+lead, and Siri's "Talk to Codync" does the same. Each computer may have its own lead; with more than one, Settings >+Shortcuts > *Lead to call* picks whose (`SharedStore.Context.shortcutLeadComputer`, kept on this iPhone). Automatic,+and a pick whose lead is gone, call the lead of the first computer, in the user's computer order, that has one. With+no lead anywhere (deleted, or not synced yet) it asks which bot. The Bot picker lists leads first. See+[iOS Shortcuts](ios-shortcuts.md). Android has no Siri, Shortcuts or Action button, so it has no such setting. The desktop's voice input shortcut goes to the lead when no chat is open, or thetop bot where no computer has one.## Compatibility-Additive: `lead`, `callStarted` and `setLead` are new. An older app shows the lead as an ordinary bot and gets an error-if it tries to hide it. The apps offer Make lead agent, and Delete on the lead, only for a host from 2.33.0, which+Additive: `lead`, `callStarted` and `setLead` are new. An older app keeps the lead on top of its list and gets an error+if it tries to hide it; where the user dragged it shows from the next app. The apps offer Make lead agent, and Delete on the lead, only for a host from 2.33.0, whichhas `setLead` and lets the lead go; an older host refused both (the terminal UI's `*`, and `x` on the lead, say toupdate it). Every app sends `callStarted` only for a bot markedlead, so an older host (which has none) never gets it. No `minApp` / `minHost` change.diff --git a/docs/plans/android-app.md b/docs/plans/android-app.mdindex f903ea62..392d587c 100644--- a/docs/plans/android-app.md+++ b/docs/plans/android-app.md@@ -16,7 +16,7 @@ emulator against a real host; device acceptance is listed separately.| --- | --- | --- || Welcome/pairing | Ported: welcome crew and chat glimpse, Install (Mac/Linux) and Scan pages with the camera on the page, paste link, Tailscale note, sign-in | Physical optical scan, camera permission denial || Accounts/access | Ported: account sheet and switcher, Computer management (connection status, badge color, Revoke this phone's access, older copies removed from the account), account computer access with its code, access banner, `codync-dev://computers` and `codync-dev://plugins` | Provider browser round trip on a device; Revoke and older copies against a signed-in account (covered by cloud request tests only); one computer per phone ([multiple computers are future work](../architecture/overview.md)) |-| Roster | Ported: rows, menus, pin/hide/delete, New session (bots only), groups, sections (move to, fold per device, rename, remove), drag to reorder (host-synced order) and TalkBack Move up/down, computer header, pull to refresh (also in Computer management) | Multiple computers |+| Roster | Ported: rows, menus, pin/hide/delete, Make lead agent, groups, sections (move to, fold per device, rename, remove), drag to reorder (host-synced order) and TalkBack Move up/down, computer header, pull to refresh (also in Computer management) | Multiple computers || Conversation | Ported: bubbles, Markdown/code, permissions, reactions, quote replies, Full conversation, bot-to-bot exchange lines and their conversation, routine notices that open their routine, files a bot shares (verified download, then the share sheet), sent images full size, pull down to reconnect, jump to latest, read receipts for every conversation on screen | Physical keyboard and TalkBack || Composer | Ported: files/photos/paste (groups too, image thumbnails, Paste only when the clipboard holds files), `/` commands (Fast mode, skills listed fresh on `/`), @mentions in groups, call/send/stop/interrupt button | Dictation ([voice call](../features/voice-call.md)): the mic, its recording pill, the engine menu beside it (On device, or OpenAI / Gemini transcribed on the user's key with *Transcribing…*) and the *Couldn't dictate* dialog || Bot and group editors | Ported: avatar, profile, agent and model options, Fast mode, workspace folder picker, permissions, activity, connectors, skills (with their details); the bot details sheet (`BotDetailsView`, from the chat's title, a routine notice or Add a fallback): Details (instructions, agent, Use the computer, Routines), Library, Settings (Codync's skill and connector switches), saved as you edit, Create template; a group's title opens its editor. An agent's own skills, connectors, rules and plugins are on its sheet in Extensions, under Sign in | The details' Memory tab (see Memory) |diff --git a/host/src/chat/context.rs b/host/src/chat/context.rsindex 39d44516..c36d41a7 100644--- a/host/src/chat/context.rs+++ b/host/src/chat/context.rs@@ -223,7 +223,7 @@ pub fn render(store: &Store, cfg: &BotConfig) -> String {crate::agent::fallback::name(&cfg.backend)};lines.push(format!(- "Environment: you run inside Codync. The user talks to you through Codync (its phone, desktop or terminal app), not in {engine}'s own CLI, IDE or app. The engine Codync runs you on is {engine}: where your base instructions describe its CLI, terminal, slash commands or keyboard shortcuts, they describe that engine, not where the user is, so don't point the user to them. To start over, the user starts a New session for this chat in Codync (the chat's menu in the apps, S in the terminal UI)."+ "Environment: you run inside Codync. The user talks to you through Codync (its phone, desktop or terminal app), not in {engine}'s own CLI, IDE or app. The engine Codync runs you on is {engine}: where your base instructions describe its CLI, terminal, slash commands or keyboard shortcuts, they describe that engine, not where the user is, so don't point the user to them. A chat in Codync is one conversation that goes on, with no new session or clear for the user to start, so don't suggest starting over."));lines.push(String::new());lines.push(format!("Messages: {}", crate::chat::outbox::INSTRUCTIONS));diff --git a/host/src/tui/app/bot.rs b/host/src/tui/app/bot.rsindex 0fba026f..d908ff11 100644--- a/host/src/tui/app/bot.rs+++ b/host/src/tui/app/bot.rs@@ -39,7 +39,7 @@ pub struct Bot {/// Why the agent refused it.pub fast_issue: Option<String>,pub pinned: bool,- /// The computer's lead bot (`chat::lead`): first in the roster, outside sections; `*` makes another bot the lead.+ /// The computer's lead bot (`chat::lead`), placed like any bot; `*` makes another bot the lead.pub lead: bool,/// Where the user dragged it (see `App::roster`).pub position: i64,@@ -222,15 +222,9 @@ impl Bot {})}- /// Its band in the roster: the lead, then pinned bots, then the rest. Reordering stays inside a band.+ /// Its band in the roster: pinned bots, then the rest. Reordering stays inside a band.pub fn band(&self) -> u8 {- if self.lead {- 0- } else if self.pinned {- 1- } else {- 2- }+ u8::from(!self.pinned)}/// Agent `agent`'s rest, while it lasts at `now`.diff --git a/host/src/tui/app/input.rs b/host/src/tui/app/input.rsindex 5305d8dd..9e5fe274 100644--- a/host/src/tui/app/input.rs+++ b/host/src/tui/app/input.rs@@ -328,20 +328,6 @@ impl App {}}}- KeyCode::Char('S') => {- if self.bot().is_some_and(|b| b.group) {- self.flash("A group has no session of its own");- } else if let Some(b) = self.bot() {- let c = Confirm {- title: format!("Start a new session for {}?", b.name),- detail: "The agent forgets this conversation's context.".into(),- note: "The transcript stays here.".into(),- button: "New session",- act: ConfirmAct::NewSession(b.id.clone()),- };- self.overlays.push(Overlay::Confirm(c));- }- }KeyCode::Char('*') => self.make_lead(),KeyCode::Char('x') => {// An older host keeps its lead.@@ -367,9 +353,7 @@ impl App {}KeyCode::Char('e') => self.edit_bot(),KeyCode::Char('p') => {- if self.bot().is_some_and(|b| b.lead) {- self.flash("The lead bot always stays on top");- } else if let Some(b) = self.bot() {+ if let Some(b) = self.bot() {let (id, pinned) = (b.id.clone(), !b.pinned);self.call("updateBot", json!({"id": id, "pinned": pinned}), After::Nothing);}diff --git a/host/src/tui/app/navigate.rs b/host/src/tui/app/navigate.rsindex 87401373..d93eed94 100644--- a/host/src/tui/app/navigate.rs+++ b/host/src/tui/app/navigate.rs@@ -252,7 +252,7 @@ impl App {}/// Moves the selected bot one place up (-1) or down (+1) and saves the order, staying in its band- /// (`Bot::band`: the lead, pinned bots, the rest). Pinned bots move among all pinned bots (they+ /// (`Bot::band`: pinned bots, the rest). Pinned bots move among all pinned bots (they/// show no sections), the rest only inside their section. Shown at once; the host's bot events/// confirm it.pub(super) fn reorder_bot(&mut self, d: isize) {@@ -296,23 +296,23 @@ mod tests {#[tokio::test]async fn reordering_stays_inside_a_band() {let mut app = test_app();- let bots = [("l", false, true, 0), ("p", true, false, 0), ("a", false, false, 3), ("b", false, false, 2)];+ let bots = [("p", true, false, 0), ("a", false, false, 3), ("b", false, false, 2), ("l", false, true, 0)];for (id, pinned, lead, last_at) in bots.into_iter().chain([("c", false, false, 1)]) {let bot = Bot::parse(&json!({"id": id, "pinned": pinned, "lead": lead, "lastAt": last_at})).expect("a bot with an id parses");app.bots.insert(id.into(), bot);}let order = |app: &super::App| app.roster().iter().map(|b| b.id.clone()).collect::<Vec<_>>();- assert_eq!(order(&app), ["l", "p", "a", "b", "c"], "unarranged: the lead, pinned, then recent activity");+ assert_eq!(order(&app), ["p", "a", "b", "c", "l"], "unarranged: pinned, then recent activity");app.selected = Some("c".into());app.reorder_bot(-1);- assert_eq!(order(&app), ["l", "p", "a", "c", "b"]);+ assert_eq!(order(&app), ["p", "a", "c", "b", "l"]);app.selected = Some("a".into());app.reorder_bot(-1);- assert_eq!(order(&app), ["l", "p", "a", "c", "b"], "an unpinned bot can't move above a pinned one");- app.selected = Some("p".into());+ assert_eq!(order(&app), ["p", "a", "c", "b", "l"], "an unpinned bot can't move above a pinned one");+ app.selected = Some("l".into());app.reorder_bot(-1);- assert_eq!(order(&app), ["l", "p", "a", "c", "b"], "nor a pinned one above the lead");+ assert_eq!(order(&app), ["p", "a", "c", "l", "b"], "the lead moves like any bot");}#[tokio::test]diff --git a/host/src/tui/app/overlay_keys.rs b/host/src/tui/app/overlay_keys.rsindex a93fc9ac..5d463da0 100644--- a/host/src/tui/app/overlay_keys.rs+++ b/host/src/tui/app/overlay_keys.rs@@ -95,7 +95,6 @@ impl App {let changed = After::Sheet(Reply::Changed);match &c.act {ConfirmAct::Delete(id) => self.call("deleteBot", json!({"botId": id}), After::Nothing),- ConfirmAct::NewSession(id) => self.call("newSession", json!({"botId": id}), After::Nothing),ConfirmAct::KeepHarnessMemory(id) => {self.call("updateBot", json!({"id": id, "harnessMemory": true}), changed);}diff --git a/host/src/tui/app/roster.rs b/host/src/tui/app/roster.rsindex ebad188c..e7c9d88c 100644--- a/host/src/tui/app/roster.rs+++ b/host/src/tui/app/roster.rs@@ -1,5 +1,5 @@-//! The roster as shown: its order and its lines (the lead, pinned bots, then each section under its-//! label, sorted by name, then bots in none), and moving through it.+//! The roster as shown: its order and its lines (pinned bots, then each section under its label,+//! sorted by name, then bots in none), and moving through it.use std::cmp::Reverse;use std::collections::HashSet;@@ -33,10 +33,9 @@ pub enum RosterLine<'a> {}impl Bot {- /// The section the roster shows it in: none for the lead or while pinned (they stay on top,- /// outside sections).+ /// The section the roster shows it in: none while pinned (it stays on top, outside sections).pub fn shown_section(&self) -> Option<&str> {- if self.lead || self.pinned { None } else { self.section.as_deref() }+ if self.pinned { None } else { self.section.as_deref() }}/// The bots it shows among and reorders with: its band (`Bot::band`), and for the rest its section@@ -62,14 +61,14 @@ fn section_key(name: &str) -> (String, String, Reverse<&str>) {}/// `roster` (in `App::roster` order) as lines; a folded section is its label alone. Without pinned-/// bots or sections there is nothing to tell apart, so no labels; the lead, on top, has none.+/// bots or sections there is nothing to tell apart, so no labels.pub fn roster_lines<'a>(roster: &[&'a Bot], folded: &HashSet<String>) -> Vec<RosterLine<'a>> {let labeled = roster.iter().any(|b| b.pinned || b.shown_section().is_some());let mut lines = vec![];let mut group = None;for &b in roster {let here = b.roster_group();- if labeled && !b.lead && group != Some(here) {+ if labeled && group != Some(here) {lines.push(match here {(_, None) if b.pinned => RosterLine::Label("PINNED"),(_, None) => RosterLine::Label("BOTS"),@@ -223,12 +222,7 @@ impl App {}/// `w`: "Move to section" for the selected bot: one of the sections, a new name, or empty for none.- /// The lead stays on top, outside sections.pub(super) fn ask_section(&mut self) {- if self.bot().is_some_and(|b| b.lead) {- self.flash("The lead bot always stays on top");- return;- }if self.bot().is_none() || !self.sections_supported() {return;}@@ -329,20 +323,18 @@ mod tests {}#[tokio::test]- async fn the_lead_stays_on_top_without_a_label_or_a_section() {+ async fn the_lead_sits_in_its_section_like_any_bot() {let mut app = test_app();let lead = json!({"id": "l", "lead": true, "section": "Work", "lastAt": 0});app.bots.insert("l".into(), Bot::parse(&lead).expect("a bot with an id parses"));add(&mut app, "w", false, Some("Work"), 2, 0);add(&mut app, "x", false, None, 1, 0);- assert_eq!(shown(&app), ["l", "▾ Work (1)", "w", "BOTS", "x"]);add(&mut app, "p", true, None, 3, 0);- assert_eq!(shown(&app), ["l", "PINNED", "p", "▾ Work (1)", "w", "BOTS", "x"]);+ assert_eq!(shown(&app), ["PINNED", "p", "▾ Work (2)", "w", "l", "BOTS", "x"]);app.host_version = "2.32.0".into();app.selected = Some("l".into());app.ask_section();- assert!(app.overlays.is_empty(), "the lead goes in no section");- assert_eq!(app.hint.as_ref().map(|(s, _)| s.as_str()), Some("The lead bot always stays on top"));+ assert!(!app.overlays.is_empty(), "the lead moves to another section like any bot");}#[tokio::test]diff --git a/host/src/tui/app/slash.rs b/host/src/tui/app/slash.rsindex 973235f2..f95bb44c 100644--- a/host/src/tui/app/slash.rs+++ b/host/src/tui/app/slash.rs@@ -1,6 +1,6 @@//! The composer's `/` commands, listed while the draft is just `/partial`: Fast mode runs here-//! (`updateBot`; a new session is `S`); a skill fills in `/<id> `, which the host turns into "read-//! this skill first" (`market::expand_command`). A group offers the same, over its members.+//! (`updateBot`); a skill fills in `/<id> `, which the host turns into "read this skill first"+//! (`market::expand_command`). A group offers the same, over its members.use crossterm::event::{KeyCode, KeyEvent};use serde_json::json;@@ -191,7 +191,7 @@ mod tests {app.drafts.insert("b".into(), super::Editor::with("/"));assert_eq!(names(&app), ["fast", "pdf", "docx"], "only skills the bot has on");app.drafts.insert("b".into(), super::Editor::with("/new"));- assert!(names(&app).is_empty(), "a new session is S");+ assert!(names(&app).is_empty(), "no command for a new session");app.bots.get_mut("b").expect("the bot").fast_support = "unknown".into();app.drafts.insert("b".into(), super::Editor::with("/"));assert_eq!(names(&app), ["fast", "pdf", "docx"], "offered until the agent says otherwise");diff --git a/host/src/tui/app/ui.rs b/host/src/tui/app/ui.rsindex 6f979da9..ee35f404 100644--- a/host/src/tui/app/ui.rs+++ b/host/src/tui/app/ui.rs@@ -103,7 +103,6 @@ pub struct Goto {pub enum ConfirmAct {Delete(String),- NewSession(String),/// Keeps a bot's harness's own memory on beside Codync's.KeepHarnessMemory(String),DeleteRoutine(String, String),diff --git a/host/src/tui/view/help.rs b/host/src/tui/view/help.rsindex 406cd9c0..fc6c75bc 100644--- a/host/src/tui/view/help.rs+++ b/host/src/tui/view/help.rs@@ -10,7 +10,7 @@ use super::buffer::{centered, frame_box, put, u};use super::overlay::field_line;use super::style::theme;-const HELP: [(&str, &str, &str); 73] = [+const HELP: [(&str, &str, &str); 72] = [("MOVE", "j k ↑ ↓", "next / previous bot"),("MOVE", "[ ]", "previous / next bot"),("MOVE", "1…9", "jump to bot 1–9"),@@ -62,7 +62,6 @@ const HELP: [(&str, &str, &str); 73] = [("BOTS", "w", "move to section"),("BOTS", "W", "rename / remove section"),("BOTS", "z", "fold / unfold section"),- ("BOTS", "S", "new session"),("BOTS", "M", "memory"),("BOTS", "R", "details: routines, computer"),("BOTS", "B", "details: switch back to the bot's own agent"),diff --git a/web/content/docs/bots.mdx b/web/content/docs/bots.mdxindex 907a448d..3b48e524 100644--- a/web/content/docs/bots.mdx+++ b/web/content/docs/bots.mdx@@ -4,16 +4,18 @@ You can make as many bots as you like, and they work at the same time. A reviewe## Your lead bot-Every computer comes with one bot of its own, named **Codync** until you rename it: your lead bot. It sits at the top of the list with a gold star at the bottom-right of its avatar, and it's the one to talk to first. Open its details and tap or click the larger star to read what your **Lead agent** does. In the terminal, click its gold star or select the lead bot and press `I`; use the arrow keys to scroll and `Esc` to close.+Every computer comes with one bot of its own, named **Codync** until you rename it: your lead bot. It has a gold star at the bottom-right of its avatar, and it's the one to talk to first. Open its details and tap or click the larger star to read what your **Lead agent** does. In the terminal, click its gold star or select the lead bot and press `I`; use the arrow keys to scroll and `Esc` to close.- **It takes initiative.** It keeps track of what you're working toward, follows up on what's still open and offers the next step. When it could help more with access to one of your services, such as Gmail or your calendar, it says what for and asks you to connect it, with a card in the chat.- **It checks in.** Its routine **Check in** runs at 9:00 and 18:00 on your computer's clock. If something deserves your attention, or there's a step it can take for you, it messages you; otherwise it stays quiet. What it reads in your email, documents or web pages is information to it, never instructions, and it doesn't send, forward, reply to, delete, pay for or post anything you didn't ask for in the chat. It skips a check-in while your agent plan is above 75% of a limit. Change the times, pause it or delete it like any routine. See [Routines](/docs/routines).- **It speaks first on a call.** Call it and it opens with what's worth your attention, or a greeting. Other bots wait for you to speak. See [Voice](/docs/voice).-You set it up like any bot: name, avatar, agent, folder, connectors. It stays on top, outside [sections](#sections), so it has no Pin, Move to section or Hide.+You set it up and arrange it like any bot: name, avatar, agent, folder, connectors, and where it sits in the list (drag it, pin it or move it to a [section](#sections)). It can't be hidden, so the bot your shortcuts call is always in the list.**Pick your own lead.** Any other bot can take the role: touch and hold it on the iPhone or Android, or right-click it on the desktop, and choose **Make lead agent** (in the terminal, select it and press `*`). The star, the calls and shortcuts that name no bot, and speaking first move to it; the bot that led before becomes an ordinary bot again and keeps its routines, Check in included. You can also delete the lead like any bot. Codync doesn't make a new one; until you pick another, Open Live Mode asks which bot to call.+**More than one computer.** Each computer has its own lead. On the iPhone, Siri, the Action button and Open Live Mode without a bot call the lead of the first computer in your list. To call another one, go to **Settings → Shortcuts → Lead to call** and pick it.+## How a bot runsThe host on your computer runs every bot. A bot's agent starts when you send it a message and keeps its session loaded between messages. After a while without use the agent stops; your next message starts it again and picks up the same session. Your apps only show the bot and send it your messages, so the bot keeps working when you close the app or put your phone away.@@ -88,7 +90,7 @@ Each bot keeps a long-term memory across sessions, which you can read on its **M## Organizing your bots-- **Pin:** pinned bots stay at the top of the list, under your lead bot. iPhone: touch and hold the bot. Desktop: right-click it. Terminal UI: `p`.+- **Pin:** pinned bots stay at the top of the list. iPhone: touch and hold the bot. Desktop: right-click it. Terminal UI: `p`.- **Order:** drag bots into the order you want. The computer keeps the order, so it's the same on every device. iPhone: touch and hold a bot, then drag it. Desktop: drag it, or select it and press Alt+Up or Alt+Down. Terminal UI: `J` and `K`.- **Computers:** with more than one computer, each has a heading above its bots. Drag a heading (iPhone: touch and hold it first) to move that computer and its bots up or down; this order stays on the device. Click or tap a heading to fold its bots away.- **Hide:** iPhone: touch and hold the bot, then **Hide from list**. Desktop: right-click it, then **Hide from sidebar**. A hidden bot sends no notifications. To bring it back:@@ -104,21 +106,13 @@ Sections group a computer's bots under headings you name, such as Work and Perso- **Move a bot into a section:** open the bot's menu (iPhone: touch and hold it; Desktop: right-click it) and choose **Move to section**, then a section, **New section…** or **Remove from section**. Terminal UI: `w`, then type the section's name, or leave it empty to take the bot out.- **Fold a section:** tap or click its heading to fold its bots away. A folded heading shows their unread count. Each device keeps its own folds. Terminal UI: `z`, or click the section's label; its folds last until you quit.- **Rename or remove a section:** touch and hold its heading (Desktop: right-click it) and choose **Rename section…** or **Remove section**. Its bots stay, without a section. Renaming it to another section's name merges the two. Terminal UI: `W`; an empty name removes the section.-- Your lead bot and pinned bots stay on top, outside sections, and the lead bot has no **Move to section**. A pinned bot goes back to its section when you unpin it. Bots in no section sit under a **Bots** label, and dragging moves a bot only within its section.+- Pinned bots stay on top, outside sections. A pinned bot goes back to its section when you unpin it. Bots in no section sit under a **Bots** label, and dragging moves a bot only within its section.-## New session+## SessionsA bot's chat and its agent's session are two different things. The chat is the permanent record you scroll through. The session is the agent's working context: what the model currently remembers of the conversation.-**New session** starts the agent with a fresh context. The chat history stays where it is, and so do the bot's memory, settings and files. Use it when the agent's context has drifted, or before starting unrelated work.--- **iPhone:** touch and hold the bot in the list, then **New session**.-- **Desktop:** right-click the bot in the sidebar, then **New session**.-- **Terminal UI:** press `S`.--Codync asks you to confirm first. A group chat has no session of its own, so it has no New session.--A new session also starts when you change the bot's agent, model or folder. Codync can also start a fresh conversation on its own when a long conversation needs one; the chat then shows a card with a summary you can edit or skip. See [Fresh conversations](/docs/conversations#fresh-conversations).+You never start a session yourself. Codync starts a fresh one on its own when a long conversation needs one; the chat then shows a card with a summary you can edit or skip. See [Fresh conversations](/docs/conversations#fresh-conversations). A new session also starts when you change the bot's agent, model or folder. Either way the chat history stays where it is, and so do the bot's memory, settings and files.## Delete a botdiff --git a/web/content/docs/conversations.mdx b/web/content/docs/conversations.mdxindex a89dd999..64876a5e 100644--- a/web/content/docs/conversations.mdx+++ b/web/content/docs/conversations.mdx@@ -106,7 +106,7 @@ Type `/` at the start of a message to see the bot's commands:- `/fast`: turns [Fast mode](/docs/agents#models-and-options) on or off, when the bot's agent offers it.- `/` followed by a skill's ID: tells the bot to read that skill first and follow it for this message. The bot's skills are listed after the built-in commands.-Any other `/command` goes to the agent unchanged, so the agent's own commands keep working. New session isn't a command; it's in the bot's menu in the list. See [Bots](/docs/bots#new-session).+Any other `/command` goes to the agent unchanged, so the agent's own commands keep working. There's no command to start a new session: Codync starts one on its own when a conversation needs it. See [Bots](/docs/bots#sessions).## Fresh conversationsdiff --git a/web/content/docs/getting-started.mdx b/web/content/docs/getting-started.mdxindex 0f19ff26..51bcd20e 100644--- a/web/content/docs/getting-started.mdx+++ b/web/content/docs/getting-started.mdx@@ -87,7 +87,7 @@ If you signed in to the same account on the computer and the phone, the phone ca## 4. Meet your lead bot-Your computer already has a bot: your lead bot, **Codync**, at the top of the list with a star. Message it, or call it and it speaks first. See [Your lead bot](/docs/bots#your-lead-bot).+Your computer already has a bot: your lead bot, **Codync**, with a star on its avatar. Message it, or call it and it speaks first. See [Your lead bot](/docs/bots#your-lead-bot).You can make more bots, for other folders or agents, whenever you like:diff --git a/web/content/docs/groups.mdx b/web/content/docs/groups.mdxindex 19da4bac..8e832aed 100644--- a/web/content/docs/groups.mdx+++ b/web/content/docs/groups.mdx@@ -70,7 +70,7 @@ Sending a new message also ends the running exchange before the next member is a## What each member remembers-- **One session per bot.** A member answers in the group in the same session as its own chat. It remembers the group conversation when you talk to it one-on-one later, and the other way round. Starting a [new session](/docs/bots#new-session) in a bot's chat also gives it a fresh start in its groups.+- **One session per bot.** A member answers in the group in the same session as its own chat. It remembers the group conversation when you talk to it one-on-one later, and the other way round. When a bot's chat gets a [fresh session](/docs/bots#sessions), its groups do too.- **What it's shown.** On each turn, a member reads the room's messages since it last spoke there, the most recent ones if there are many, plus who's in the room and what the group is for.- **Private chats.** Members are told not to reveal what you discussed with them one-on-one. That's only an instruction to the agent: the same session holds both conversations.- **Long-term memory.** In a group, a bot can add to its [memory](/docs/memory) but can't change or remove what's there. Group chats don't feed dreaming, and a bot's history search covers only its own chat.diff --git a/web/content/docs/voice.mdx b/web/content/docs/voice.mdxindex 938b3835..c598f693 100644--- a/web/content/docs/voice.mdx+++ b/web/content/docs/voice.mdx@@ -30,7 +30,7 @@ On Android, the call's notification shows the same: the call's state and what th### From Shortcuts (iPhone)-In the Shortcuts app, add Codync's **Open Live Mode** action and pick a **Bot**, or leave it empty to call your lead bot, whichever bot you made the lead; if you have none, it asks which bot. Running it opens that bot's chat and starts a call. Siri runs it too: say "Talk to Codync" or "Open Live Mode in Codync" to call your lead bot. The computer has to be online; otherwise the action stops with an error instead of starting a call.+In the Shortcuts app, add Codync's **Open Live Mode** action and pick a **Bot**, or leave it empty to call your lead bot, whichever bot you made the lead; if you have none, it asks which bot. With a lead on more than one computer, it calls the first computer's, or the one you pick in **Settings → Shortcuts → Lead to call**. Running it opens that bot's chat and starts a call. Siri runs it too: say "Talk to Codync" or "Open Live Mode in Codync" to call your lead bot. The computer has to be online; otherwise the action stops with an error instead of starting a call.## Choose a voice engine