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(apps): put device settings on a Settings tab
forwardxu172d29dde593
diff --git a/apps/Codync.xcodeproj/project.pbxproj b/apps/Codync.xcodeproj/project.pbxprojindex 81893e7e..624dc7bb 100644--- a/apps/Codync.xcodeproj/project.pbxproj+++ b/apps/Codync.xcodeproj/project.pbxproj@@ -12,6 +12,7 @@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 */; };0D6E2869DC5A1BC7D6385444 /* CodyncOrb-Dot.ttf in Resources */ = {isa = PBXBuildFile; fileRef = 0C44BCF971511A5E94D073D5 /* CodyncOrb-Dot.ttf */; };+ 104599A542936AD4BCF226F4 /* ComputerRows.swift in Sources */ = {isa = PBXBuildFile; fileRef = D4174DE21C3617D694A560A9 /* ComputerRows.swift */; };107232310A15C4D9A3BCF466 /* AppStore+Shortcuts.swift in Sources */ = {isa = PBXBuildFile; fileRef = C518FF3FFD22C3A114B6D1B8 /* AppStore+Shortcuts.swift */; };16C24A622E33414C24B0C148 /* AppearanceSettings.swift in Sources */ = {isa = PBXBuildFile; fileRef = 0814BD0C30F01A163FBDF896 /* AppearanceSettings.swift */; };17DD96A91B1EC2AE699F4A2F /* ViewingBadge.swift in Sources */ = {isa = PBXBuildFile; fileRef = 2C0E04490F5C56FD070539E6 /* ViewingBadge.swift */; };@@ -119,7 +120,7 @@0C44BCF971511A5E94D073D5 /* CodyncOrb-Dot.ttf */ = {isa = PBXFileReference; lastKnownFileType = file; path = "CodyncOrb-Dot.ttf"; sourceTree = "<group>"; };120FD9DBA315A6DD543463D8 /* CodyncBot-tablet-Ink.ttf */ = {isa = PBXFileReference; lastKnownFileType = file; path = "CodyncBot-tablet-Ink.ttf"; sourceTree = "<group>"; };1318104275E5BEC47B7088AD /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist; path = Info.plist; sourceTree = "<group>"; };- 1BDF6A8F94A945065D4348F8 /* AppIcon.icon */ = {isa = PBXFileReference; path = AppIcon.icon; sourceTree = "<group>"; };+ 1BDF6A8F94A945065D4348F8 /* AppIcon.icon */ = {isa = PBXFileReference; lastKnownFileType = wrapper.icon; path = AppIcon.icon; sourceTree = "<group>"; };1E47C60032C326157E0386B8 /* SwiftUI.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = SwiftUI.framework; path = System/Library/Frameworks/SwiftUI.framework; sourceTree = SDKROOT; };1FECC371F3CD98687C0B69FA /* CodyncBot-pebble-Tint.ttf */ = {isa = PBXFileReference; lastKnownFileType = file; path = "CodyncBot-pebble-Tint.ttf"; sourceTree = "<group>"; };203A43D8DF8D3832F95FA837 /* CodyncBot-teardrop-Ink.ttf */ = {isa = PBXFileReference; lastKnownFileType = file; path = "CodyncBot-teardrop-Ink.ttf"; sourceTree = "<group>"; };@@ -168,6 +169,7 @@CFEBE2E6A9D0AF0A0D89FFE7 /* UsageView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = UsageView.swift; sourceTree = "<group>"; };D0DE72EEAEC947C1D3CA237F /* PrivacyInfo.xcprivacy */ = {isa = PBXFileReference; path = PrivacyInfo.xcprivacy; sourceTree = "<group>"; };D0E552136D473567E0C25ED4 /* CodyncBot-blob-Tint.ttf */ = {isa = PBXFileReference; lastKnownFileType = file; path = "CodyncBot-blob-Tint.ttf"; sourceTree = "<group>"; };+ D4174DE21C3617D694A560A9 /* ComputerRows.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ComputerRows.swift; sourceTree = "<group>"; };D4D13418ABB5FD7CFC087677 /* AXTree.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AXTree.swift; sourceTree = "<group>"; };D57A7C09154869DD84BACE19 /* WelcomeView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = WelcomeView.swift; sourceTree = "<group>"; };D5F23C3F9FCE63B4AFB4771A /* CodyncBot-squircle-Tint.ttf */ = {isa = PBXFileReference; lastKnownFileType = file; path = "CodyncBot-squircle-Tint.ttf"; sourceTree = "<group>"; };@@ -303,6 +305,7 @@DD3DE9A4EEB369C4F75C9448 /* ActivityGalleryView.swift */,0814BD0C30F01A163FBDF896 /* AppearanceSettings.swift */,0582B6169BFC36E4BCD51C0D /* BotListView.swift */,+ D4174DE21C3617D694A560A9 /* ComputerRows.swift */,6BC00039A6C2C0D3F39A5F67 /* ComputerStatus.swift */,73D324231A9BCE79C84C0403 /* LanguageSettings.swift */,6FC76D28AB02DF1427D530ED /* LaunchSplash.swift */,@@ -533,7 +536,6 @@};};buildConfigurationList = F977CF173B7D60769B393751 /* Build configuration list for PBXProject "Codync" */;- compatibilityVersion = "Xcode 14.0";developmentRegion = en;hasScannedForEncodings = 0;knownRegions = (@@ -548,13 +550,14 @@1971A679A8497DA8D0C8B77A /* XCLocalSwiftPackageReference "ios/Kit" */,);preferredProjectObjectVersion = 77;+ productRefGroup = 3EC1FDCCFFFB4BA1A23FDDB0 /* Products */;projectDirPath = "";projectRoot = "";targets = (- C42E5E078332C6C2B35AF5FA /* NotificationService */,907F1F4A709111FC7178EAE9 /* Screen */,- A27E4E88D6A5B9850734B594 /* Widgets */,913BDA9F79CE8C35A9E35830 /* iOS */,+ A27E4E88D6A5B9850734B594 /* Widgets */,+ C42E5E078332C6C2B35AF5FA /* NotificationService */,);};/* End PBXProject section */@@ -690,6 +693,7 @@E0D116BF893B81AEC0D2135A /* BotShortcuts.swift in Sources */,AF04355DFF3452C3ED0CA641 /* CallControlIntents.swift in Sources */,7C20764DC05D499075BC5E8C /* CodyncApp.swift in Sources */,+ 104599A542936AD4BCF226F4 /* ComputerRows.swift in Sources */,2002C16E427B4E4E7279E1C4 /* ComputerStatus.swift in Sources */,5A56EF5D36D12ACCEA100642 /* LanguageSettings.swift in Sources */,35CFB641A4F10C0EBD21CB14 /* LaunchSplash.swift in Sources */,diff --git a/apps/android/app/src/androidTest/kotlin/com/codync/android/AccountScreenTest.kt b/apps/android/app/src/androidTest/kotlin/com/codync/android/AccountScreenTest.ktindex 2a507822..a72eeab2 100644--- a/apps/android/app/src/androidTest/kotlin/com/codync/android/AccountScreenTest.kt+++ b/apps/android/app/src/androidTest/kotlin/com/codync/android/AccountScreenTest.kt@@ -36,32 +36,31 @@ class AccountScreenTest {@Before fun isolatedEmulatorOnly() { assumeTrue(Build.PRODUCT.startsWith("sdk")) }@Test fun signedInOverviewKeepsTheProfileAboveItsNavigation() {- var scanned = false; var settings = false; var closed = false+ var scanned = false; var closed = falsecompose.setContent { Hosted { CompositionLocalProvider(LocalDismissModal provides { closed = true }) {- AccountSwitcherView(fixture(), viewModel(), { settings = true }) { scanned = true }+ AccountSwitcherView(fixture(), viewModel()) { scanned = true }} } }compose.onNodeWithText("Account").assertIsDisplayed()val scan = compose.onNodeWithText("Scan a computer's code").assertIsDisplayed().fetchSemanticsNode().boundsInRootval identity = compose.onNodeWithText(first.email).assertIsDisplayed().fetchSemanticsNode().boundsInRoot- val computers = compose.onNodeWithText("Computers & settings").assertIsDisplayed().fetchSemanticsNode().boundsInRoot+ val signOut = compose.onNodeWithText("Sign out").assertIsDisplayed().fetchSemanticsNode().boundsInRootassertTrue(scan.bottom < identity.top)- assertTrue(identity.bottom < computers.top)+ assertTrue(identity.bottom < signOut.top)+ compose.onNodeWithText("Computers & settings").assertDoesNotExist()compose.onNodeWithContentDescription(first.email).assertIsSelected().assertIsNotEnabled()compose.onNodeWithContentDescription(second.email).assertIsNotSelected().assertIsEnabled()compose.onNodeWithContentDescription("Add account").assertIsDisplayed()- compose.onNodeWithText("Sign out").assertIsDisplayed()compose.onNodeWithText("Continue with Google").assertDoesNotExist()compose.onNodeWithText("Start over").assertDoesNotExist()snapshot("signed-in")compose.onNodeWithText("Scan a computer's code").performClick()- compose.onNodeWithText("Computers & settings").performClick()compose.onNodeWithContentDescription("Close").performClick()- assertTrue(scanned && settings && closed)+ assertTrue(scanned && closed)}@Test fun theAddButtonRevealsProvidersOnlyOnDemandAndASessionChangeLocksTheSheet() {val state = mutableStateOf(fixture())- compose.setContent { Hosted { AccountSwitcherView(state.value, viewModel(), {}, {}) } }+ compose.setContent { Hosted { AccountSwitcherView(state.value, viewModel()) {} } }compose.onNodeWithContentDescription("Add account").performClick()compose.onNodeWithText("Continue with Apple").performScrollTo().assertIsDisplayed()compose.onNodeWithText("Continue with Google").performScrollTo().assertIsDisplayed()@@ -79,7 +78,7 @@ class AccountScreenTest {@Test fun signedOutProvidersAndUnconfiguredPairingRemainAvailable() {val state = mutableStateOf(fixture(AccountState(ready = true, configured = true)))- compose.setContent { Hosted { AccountSwitcherView(state.value, viewModel(), {}, {}) } }+ compose.setContent { Hosted { AccountSwitcherView(state.value, viewModel()) {} } }val apple = compose.onNodeWithText("Continue with Apple").assertIsDisplayed().assertIsEnabled().fetchSemanticsNode().boundsInRootval google = compose.onNodeWithText("Continue with Google").assertIsDisplayed().fetchSemanticsNode().boundsInRootassertTrue(apple.bottom <= google.top)@@ -95,12 +94,12 @@ class AccountScreenTest {compose.onNodeWithText("QR pairing only in this build").assertIsDisplayed()compose.onNodeWithText("Continue with Apple").assertDoesNotExist()compose.onNodeWithText("Scan a computer's code").assertIsDisplayed()- compose.onNodeWithText("Computers & settings").assertIsDisplayed()+ compose.onNodeWithText("Computers & settings").assertDoesNotExist()snapshot("pairing-only")}@Test fun signOutAsksFirstAndCancelKeepsTheAccount() {- compose.setContent { Hosted { AccountSwitcherView(fixture(), viewModel(), {}, {}) } }+ compose.setContent { Hosted { AccountSwitcherView(fixture(), viewModel()) {} } }compose.onNodeWithText("Sign out").performClick()compose.onNodeWithText("Sign out of ${first.email}?").assertIsDisplayed()compose.onNodeWithText("This phone forgets the account's computers. Your bots stay on them.").assertIsDisplayed()@@ -113,32 +112,39 @@ class AccountScreenTest {val state = fixture().copy(computers = listOf(computer), connection = LinkState.Ready(HostRoute.Direct),bots = listOf(Bot("hidden", "Hidden scout", hidden = true)))var paired = 0; var popped = 0; var extensions = 0- compose.setContent { Hosted { SettingsView(state, viewModel(), { popped++ }, { paired++ }, {}) { extensions++ } } }- compose.onNodeWithText("Computers & settings").assertIsDisplayed()+ compose.setContent { Hosted { SettingsView(state, viewModel(), { popped++ }, { paired++ }, {}, { extensions++ }) } }+ compose.onNodeWithText("Computer management").assertIsDisplayed()compose.onNode(hasText(computer.name) and hasClickAction()).assertIsDisplayed()compose.onNodeWithText("1 bot · Wi-Fi/Tailscale").assertIsDisplayed()snapshot("computer-card")- compose.onNodeWithContentDescription("Extensions").performClick()+ compose.onNodeWithText("Extensions").performClick()assertEquals(1, extensions)compose.onNodeWithText("Pair a computer").performClick()assertEquals(1, paired)+ compose.onNodeWithText("Hidden scout").assertDoesNotExist()+ compose.onNodeWithText("Start over").assertDoesNotExist()+ compose.onNodeWithText("App version").assertDoesNotExist()+ snapshot("computers")+ compose.onNode(hasText(computer.name) and hasClickAction()).performTouchInput { longClick() }+ compose.onNodeWithText("Remove").performClick()+ compose.onNodeWithText("Remove ${computer.name}?").assertIsDisplayed()+ compose.onNodeWithText("Cancel").performClick()+ compose.onNodeWithContentDescription("Connection").performClick()+ compose.onNodeWithText("Wi-Fi or Tailscale only, never Cloudflare").assertIsDisplayed()+ compose.onNodeWithText("Auto: Wi-Fi or Tailscale, then Cloudflare").assertIsSelected()+ compose.setContent { Hosted { SettingsView(state, viewModel(), null, {}, {}, {}, embedded = true) } }+ compose.onNodeWithText("Settings").assertIsDisplayed()+ compose.onNodeWithText("Pair a computer").assertDoesNotExist()+ compose.onNodeWithText(computer.name).assertDoesNotExist()compose.onNodeWithText("Hidden scout").performScrollTo().assertIsDisplayed()compose.onNodeWithContentDescription("Unhide").assertIsDisplayed()if (BuildConfig.PUSH_CONFIGURED) compose.onNode(hasText("Push notifications") and isToggleable()).performScrollTo().assertIsDisplayed()else compose.onNodeWithText("Push isn't set up in this build. Bots and chats still update while Codync is open.").performScrollTo().assertIsDisplayed()compose.onNodeWithText("App version").performScrollTo().assertIsDisplayed()- snapshot("computers")compose.onNodeWithText("Start over").performScrollTo().performClick()compose.onNodeWithText("Start over?").assertIsDisplayed()compose.onNodeWithText("Cancel").performClick()compose.onNodeWithText("Start over?").assertDoesNotExist()- compose.onNode(hasText(computer.name) and hasClickAction()).performScrollTo().performTouchInput { longClick() }- compose.onNodeWithText("Remove").performClick()- compose.onNodeWithText("Remove ${computer.name}?").assertIsDisplayed()- compose.onNodeWithText("Cancel").performClick()- compose.onNodeWithContentDescription("Connection").performClick()- compose.onNodeWithText("Wi-Fi or Tailscale only, never Cloudflare").assertIsDisplayed()- compose.onNodeWithText("Auto: Wi-Fi or Tailscale, then Cloudflare").assertIsSelected()}@Test fun accountComputersAskForAccessAndAPendingRequestShowsItsCode() {diff --git a/apps/android/app/src/androidTest/kotlin/com/codync/android/LiveManagementTest.kt b/apps/android/app/src/androidTest/kotlin/com/codync/android/LiveManagementTest.ktindex e75960b5..a4c69cff 100644--- a/apps/android/app/src/androidTest/kotlin/com/codync/android/LiveManagementTest.kt+++ b/apps/android/app/src/androidTest/kotlin/com/codync/android/LiveManagementTest.kt@@ -1,6 +1,5 @@package com.codync.android-import android.view.KeyEventimport androidx.compose.ui.test.*import androidx.compose.ui.test.junit4.createAndroidComposeRuleimport androidx.lifecycle.ViewModelProvider@@ -67,12 +66,11 @@ class LiveManagementTest {compose.rosterActions("Edited group")compose.onNodeWithText("Hide from list").performScrollTo().performClick()compose.waitUntil(30_000) { store.state.value.bots.single { it.id == group.id }.hidden }- // Hidden bots come back from Computers & settings.- compose.computerAction("Manage computers")+ // Hidden bots come back from More.+ compose.onNodeWithText("Settings").performClick()compose.onRowButton("Unhide", "Edited group").performClick()compose.waitUntil(30_000) { !store.state.value.bots.single { it.id == group.id }.hidden }- InstrumentationRegistry.getInstrumentation().sendKeyDownUpSync(KeyEvent.KEYCODE_BACK)- compose.waitUntil(10_000) { compose.onAllNodesWithText("Computers & settings").fetchSemanticsNodes().isEmpty() }+ compose.onNodeWithText("Bots").performClick()compose.rosterActions("Edited group")compose.onNodeWithText("Edit group").performClick()compose.onNodeWithText("Delete group chat").performScrollTo().performClick()diff --git a/apps/android/app/src/androidTest/kotlin/com/codync/android/NavigationControls.kt b/apps/android/app/src/androidTest/kotlin/com/codync/android/NavigationControls.ktindex f38e47c2..a43ebd85 100644--- a/apps/android/app/src/androidTest/kotlin/com/codync/android/NavigationControls.kt+++ b/apps/android/app/src/androidTest/kotlin/com/codync/android/NavigationControls.kt@@ -26,11 +26,11 @@ internal fun ComposeTestRule.onRowButton(label: String, text: String): Semanticsreturn buttons[index]}-/** Extensions opens from the paired computer's row in Computers & settings. */+/** Extensions opens from the paired computer's row in Manage computers. */internal fun ComposeTestRule.openExtensions() {computerAction("Manage computers")- waitUntil(10_000) { onAllNodesWithContentDescription("Extensions").fetchSemanticsNodes().size == 1 }- onNodeWithContentDescription("Extensions").performClick()+ waitUntil(10_000) { onAllNodesWithText("Extensions").fetchSemanticsNodes().size == 1 }+ onNodeWithText("Extensions").performClick()}/** The open chat's title ("<bot>, view details"): it opens the bot's details, a group's editor. */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 9c8b6ff5..457868bf 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@@ -32,27 +32,27 @@ class ScreenPresentationTest {@Before fun isolatedEmulatorOnly() { assumeTrue(Build.PRODUCT.startsWith("sdk")) }- @Test fun backPopsAccountSettingsAndNestedPairingOneLayerAtATime() {+ @Test fun moreOpensComputersAndBackReturnsOneLayerAtATime() {compose.setContent { Hosted { CodyncApp(fixture(), viewModel()) } }compose.onNodeWithContentDescription("Switch account").performClick()compose.onNodeWithText("Account").assertIsDisplayed()+ compose.onNodeWithText("Computers & settings").assertDoesNotExist()snapshot("account-sheet")- compose.onNodeWithText("Computers & settings").performClick()- compose.onNodeWithText("Pair a computer").performScrollTo().assertIsDisplayed()back()+ compose.onNodeWithText("Account").assertDoesNotExist()+ compose.onNodeWithText("Settings").performClick()compose.onNodeWithText("Pair a computer").assertDoesNotExist()- compose.onNodeWithText("Account").assertIsDisplayed()- compose.onNodeWithText("Computers & settings").performClick()+ compose.onNodeWithText("App language").assertIsDisplayed()+ compose.onNodeWithText("Bots").performClick()+ compose.computerAction("Manage computers")+ compose.onNodeWithText("Computer management").assertIsDisplayed()+ compose.onNodeWithText("App language").assertDoesNotExist()compose.onNodeWithText("Pair a computer").performScrollTo().performClick()compose.onNodeWithText("Install Codync", substring = true).assertIsDisplayed()back()compose.onNodeWithText("Install Codync", substring = true).assertDoesNotExist()- compose.onNodeWithText("Computers & settings").assertIsDisplayed()- back()- compose.onNodeWithText("Account").assertIsDisplayed()- back()- compose.onNodeWithText("Account").assertDoesNotExist()- compose.onNodeWithText(bot.name).assertIsDisplayed()+ compose.onNodeWithText("Pair a computer").assertIsDisplayed()+ compose.onNodeWithText(bot.name).assertDoesNotExist()}@Test fun closingTheEditorDropsItsDraftAndANewGenerationRetiresIt() {diff --git a/apps/android/app/src/main/kotlin/com/codync/android/AccountSwitcherView.kt b/apps/android/app/src/main/kotlin/com/codync/android/AccountSwitcherView.ktindex 3a523fec..a0383533 100644--- a/apps/android/app/src/main/kotlin/com/codync/android/AccountSwitcherView.kt+++ b/apps/android/app/src/main/kotlin/com/codync/android/AccountSwitcherView.kt@@ -43,8 +43,8 @@ import com.codync.android.design.*import com.kyant.shapes.Capsuleimport com.kyant.shapes.RoundedRectangle-/** Who you're signed in as, the other accounts on this phone, and the way to the computers (iOS `AccountSwitcherView`). */-@Composable internal fun AccountSwitcherView(state: AppState, store: AppStore, showSettings: () -> Unit, pair: () -> Unit) {+/** Who you're signed in as, and the other accounts on this phone (iOS `AccountSwitcherView`). */+@Composable internal fun AccountSwitcherView(state: AppState, store: AppStore, pair: () -> Unit) {val account = state.accountval current = account.accounts.firstOrNull { it.userId == account.userId }val busy = "session" in state.busy@@ -79,9 +79,8 @@ import com.kyant.shapes.RoundedRectangleAnimatedVisibility(addingAccount, enter = fadeIn(Motion.fade()) + expandVertically(Motion.layoutSize),exit = fadeOut(Motion.fade()) + shrinkVertically(Motion.layoutSize)) { SignInButtons(state, store) }}- CardSection {- row { RowLabel("Computers & settings", "gearshape", chevron = true, modifier = Modifier.plainButton(action = showSettings)) }- if (current != null) row {+ if (current != null) CardSection {+ row {RowLabel("Sign out", "rectangle.portrait.and.arrow.right", Palette.danger,modifier = Modifier.plainButton(enabled = !busy) { confirmSignOut = true })}@@ -119,7 +118,7 @@ import com.kyant.shapes.RoundedRectanglemodifier: Modifier = Modifier) {Row(modifier.fillMaxWidth(), verticalAlignment = Alignment.CenterVertically, horizontalArrangement = Arrangement.spacedBy(12.dp)) {Box(Modifier.width(26.dp), contentAlignment = Alignment.Center) { Symbol(systemImage, size = 20.dp, tint = tint) }- Text(title, Modifier.weight(1f), style = Type.body, color = tint)+ Text(tr(title), Modifier.weight(1f), style = Type.body, color = tint)if (chevron) Symbol("chevron.right", size = 13.dp, tint = Palette.tertiary)}}diff --git a/apps/android/app/src/main/kotlin/com/codync/android/AnalyticsEvent.kt b/apps/android/app/src/main/kotlin/com/codync/android/AnalyticsEvent.ktindex dae29f86..b31b843c 100644--- a/apps/android/app/src/main/kotlin/com/codync/android/AnalyticsEvent.kt+++ b/apps/android/app/src/main/kotlin/com/codync/android/AnalyticsEvent.kt@@ -163,7 +163,7 @@ internal enum class VoiceEngineKind(override val wire: String) : CatalogValue {/** `screen_viewed` values (the catalog's *Screens* table, iOS/Android column). */internal enum class AnalyticsScreen(override val wire: String) : CatalogValue {- Bots("bots"), State("state"), Chat("chat"), Trace("trace"), BotDetails("bot_details"), Memory("memory"),+ Bots("bots"), State("state"), More("more"), Chat("chat"), Trace("trace"), BotDetails("bot_details"), Memory("memory"),Routines("routines"), Marketplace("marketplace"), Settings("settings"), Computers("computers"), Usage("usage"),Account("account"), Pairing("pairing"), VoiceSettings("voice_settings"), RemoteScreen("remote_screen"),Library("library"), Artifact("artifact"),diff --git a/apps/android/app/src/main/kotlin/com/codync/android/AppStoreConnection.kt b/apps/android/app/src/main/kotlin/com/codync/android/AppStoreConnection.ktindex e403153a..9309faf7 100644--- a/apps/android/app/src/main/kotlin/com/codync/android/AppStoreConnection.kt+++ b/apps/android/app/src/main/kotlin/com/codync/android/AppStoreConnection.kt@@ -57,7 +57,7 @@ internal fun AppStore.pair(text: String, via: PairedVia) {try {val pairing = Pairing.parse(text, BuildConfig.URL_SCHEME)val old = state.value.computers.firstOrNull()- require(old == null || old.id == pairing.computer.id) { "Remove this phone's computer in Computers & settings to pair a different one." }+ require(old == null || old.id == pairing.computer.id) { "Remove this phone's computer in Computer management to pair a different one." }require(old == null || old.signKey == pairing.computer.signKey) { "This computer's identity changed. Start over before pairing again." }val identity = withContext(Dispatchers.IO) { local.identity() }// Picked on this phone: re-pairing keeps them (iOS `AccountStore.pair`).diff --git a/apps/android/app/src/main/kotlin/com/codync/android/CodyncApp.kt b/apps/android/app/src/main/kotlin/com/codync/android/CodyncApp.ktindex ab649aef..0d30bffa 100644--- a/apps/android/app/src/main/kotlin/com/codync/android/CodyncApp.kt+++ b/apps/android/app/src/main/kotlin/com/codync/android/CodyncApp.kt@@ -35,7 +35,6 @@ private enum class Root { Loading, Welcome, Pairing, Tabs }@Composable fun CodyncApp(state: AppState, store: AppStore) {var welcomed by rememberSaveable { mutableStateOf(false) }var showAccount by rememberSaveable { mutableStateOf(false) }- var accountSettings by rememberSaveable { mutableStateOf(false) }var showComputers by rememberSaveable { mutableStateOf(false) }var showPairing by rememberSaveable { mutableStateOf(false) }var showUsage by rememberSaveable { mutableStateOf(false) }@@ -48,7 +47,7 @@ private enum class Root { Loading, Welcome, Pairing, Tabs }var handledNavigation by rememberSaveable { mutableIntStateOf(state.navigationRequest) }var handledGeneration by rememberSaveable { mutableIntStateOf(state.generation) }fun closeAll() {- showAccount = false; accountSettings = false; showComputers = false; showPairing = false; showMarketplace = false+ showAccount = false; showComputers = false; showPairing = false; showMarketplace = falsecreatingBot = false; creatingGroup = false; access = null; editor = null; groupEditor = null}// A new account or a fresh start drops whatever was open for the old one.@@ -74,7 +73,7 @@ private enum class Root { Loading, Welcome, Pairing, Tabs }}BackHandler(root == Root.Pairing && !signedIn) { welcomed = false }val edit = { bot: Bot -> if (bot.kind == "group") groupEditor = GroupDraft.from(bot) else editor = BotDraft.from(bot) }- val openMarketplace = { showAccount = false; accountSettings = false; showComputers = false; showMarketplace = true }+ val openMarketplace = { showAccount = false; showComputers = false; showMarketplace = true }Box(Modifier.fillMaxSize().background(Palette.background)) {AnimatedContent(root, transitionSpec = {if (initialState == Root.Welcome && targetState == Root.Pairing)@@ -92,6 +91,7 @@ private enum class Root { Loading, Welcome, Pairing, Tabs }}}Root.Tabs -> MainTabs(state, store, account = { showAccount = true }, manage = { showComputers = true }, usage = { showUsage = true },+ pair = { showPairing = true }, ask = { access = it }, extensions = openMarketplace,newBot = { creatingBot = true }, newGroup = { creatingGroup = true },edit = edit) {ChatScreen(state, store, edit)@@ -99,14 +99,9 @@ private enum class Root { Loading, Welcome, Pairing, Tabs }}}}- // The account sheet holds its own push (Computers & settings), as the iOS sheet's NavigationStack.- CodyncSheet(showAccount && (state.setupComplete || signedIn) && !state.loading, { showAccount = false; accountSettings = false }) {- // Counted by the top page, outside NavStack: it composes the page below again while sliding.- AnalyticsOnAppear(AnalyticsEvent.ScreenViewed(if (accountSettings) AnalyticsScreen.Settings else AnalyticsScreen.Account))- NavStack(listOfNotNull("account", "settings".takeIf { accountSettings }), key = { it }, pop = { accountSettings = false }) { page ->- if (page == "account") AccountSwitcherView(state, store, { accountSettings = true }) { showPairing = true }- else SettingsView(state, store, { accountSettings = false }, { showPairing = true }, { access = it }, openMarketplace)- }+ CodyncSheet(showAccount && (state.setupComplete || signedIn) && !state.loading, { showAccount = false }) {+ AnalyticsOnAppear(AnalyticsEvent.ScreenViewed(AnalyticsScreen.Account))+ AccountSwitcherView(state, store) { showPairing = true }}CodyncSheet(showComputers && !state.loading, { showComputers = false }) {AnalyticsOnAppear(AnalyticsEvent.ScreenViewed(AnalyticsScreen.Computers))diff --git a/apps/android/app/src/main/kotlin/com/codync/android/MainTabs.kt b/apps/android/app/src/main/kotlin/com/codync/android/MainTabs.ktindex a164cb1e..0b527bf9 100644--- a/apps/android/app/src/main/kotlin/com/codync/android/MainTabs.kt+++ b/apps/android/app/src/main/kotlin/com/codync/android/MainTabs.kt@@ -25,20 +25,26 @@ import androidx.compose.ui.zIndeximport androidx.compose.ui.semantics.clearAndSetSemanticsimport androidx.compose.ui.unit.dpimport com.codync.android.core.Bot+import com.codync.android.core.CloudComputerimport com.codync.android.design.*-private enum class AppTab { Bots, State }+private enum class AppTab { Bots, State, More }/**- * The system tab bar over Bots and State, as iOS `RootView.tabs`: both tabs stay alive, the bar- * floats as glass over their content and hides while a conversation is open.+ * The system tab bar over Bots, State and More, as iOS `RootView.tabs`: the three tabs stay in one bar,+ * the bar floats as glass over their content and hides while a conversation is open.*/@Composable internal fun MainTabs(state: AppState, store: AppStore, account: () -> Unit, manage: () -> Unit, usage: () -> Unit,+ pair: () -> Unit, ask: (CloudComputer) -> Unit, extensions: () -> Unit,newBot: () -> Unit, newGroup: () -> Unit, edit: (Bot) -> Unit, chat: @Composable () -> Unit) {var tab by rememberSaveable { mutableStateOf(AppTab.Bots) }// Opening a bot (notification, widget, link) always lands on the Bots tab.if (state.selectedBot != null && tab != AppTab.Bots) tab = AppTab.Bots- AnalyticsOnAppear(AnalyticsEvent.ScreenViewed(if (tab == AppTab.Bots) AnalyticsScreen.Bots else AnalyticsScreen.State))+ AnalyticsOnAppear(AnalyticsEvent.ScreenViewed(when (tab) {+ AppTab.Bots -> AnalyticsScreen.Bots+ AppTab.State -> AnalyticsScreen.State+ AppTab.More -> AnalyticsScreen.More+ }))val bottom = WindowInsets.navigationBars.asPaddingValues().calculateBottomPadding()val barSpace = bottom + 62.dp + 24.dpGlassStage(Modifier.fillMaxSize(), chrome = {@@ -55,8 +61,8 @@ private enum class AppTab { Bots, State }Box(contentAlignment = Alignment.BottomCenter) {ScrollEdge(Edge.Bottom, barSpace)GlassTabBar(tab, listOf(TabItem(AppTab.Bots, "Bots", "bubble.left.and.bubble.right.fill", 33.dp),- TabItem(AppTab.State, "State", "rectangle.stack.fill")), { tab = it },- Modifier.padding(bottom = maxOf(bottom - 4.dp, 12.dp)))+ TabItem(AppTab.State, "State", "rectangle.stack.fill"), TabItem(AppTab.More, "Settings", "gearshape")),+ { tab = it }, Modifier.padding(bottom = maxOf(bottom - 4.dp, 12.dp)))}}}) {@@ -67,6 +73,9 @@ private enum class AppTab { Bots, State }}}Box(Modifier.fillMaxSize().tabLayer(tab == AppTab.State)) { StateScreen(state, store, usage, barSpace, active = tab == AppTab.State) }+ Box(Modifier.fillMaxSize().tabLayer(tab == AppTab.More)) {+ SettingsView(state, store, null, pair, ask, extensions, embedded = true, bottomInset = barSpace)+ }}}diff --git a/apps/android/app/src/main/kotlin/com/codync/android/SettingsView.kt b/apps/android/app/src/main/kotlin/com/codync/android/SettingsView.ktindex 69bd9aef..cc3cc7a8 100644--- a/apps/android/app/src/main/kotlin/com/codync/android/SettingsView.kt+++ b/apps/android/app/src/main/kotlin/com/codync/android/SettingsView.kt@@ -15,12 +15,13 @@ import androidx.compose.foundation.interaction.MutableInteractionSourceimport androidx.compose.foundation.layout.Arrangementimport androidx.compose.foundation.layout.Boximport androidx.compose.foundation.layout.Column-import androidx.compose.foundation.layout.Spacerimport androidx.compose.foundation.layout.Row+import androidx.compose.foundation.layout.PaddingValuesimport androidx.compose.foundation.layout.fillMaxSizeimport androidx.compose.foundation.layout.fillMaxWidthimport androidx.compose.foundation.layout.paddingimport androidx.compose.foundation.layout.size+import androidx.compose.foundation.layout.statusBarsPaddingimport androidx.compose.foundation.layout.widthimport androidx.compose.material3.Textimport androidx.compose.runtime.Composable@@ -38,6 +39,7 @@ import androidx.compose.ui.platform.LocalContextimport androidx.compose.ui.platform.LocalUriHandlerimport androidx.compose.ui.semantics.Roleimport androidx.compose.ui.semantics.contentDescription+import androidx.compose.ui.semantics.headingimport androidx.compose.ui.semantics.paneTitleimport androidx.compose.ui.semantics.selectedimport androidx.compose.ui.semantics.semantics@@ -56,10 +58,10 @@ import kotlinx.serialization.json.put/*** Every computer this phone can use or ask for, plus settings for the selected account- * (iOS `SettingsView`). `pop` is set when it's pushed inside Accounts.+ * (iOS `SettingsView`). `pop` is set when it's pushed on top of another screen.*/@Composable internal fun SettingsView(state: AppState, store: AppStore, pop: (() -> Unit)?, pair: () -> Unit, ask: (CloudComputer) -> Unit,- extensions: () -> Unit) {+ extensions: () -> Unit, embedded: Boolean = false, bottomInset: Dp = 0.dp) {val uri = LocalUriHandler.currentval signedIn = state.account.userId != nullval paired = state.computers.firstOrNull()@@ -70,10 +72,14 @@ import kotlinx.serialization.json.putvar voice by remember { mutableStateOf(false) }var aboutAnalytics by remember { mutableStateOf(false) }LaunchedEffect(state.contextId) { store.refreshCloud() }- Column(Modifier.fillMaxSize().background(Palette.background)) {- PageHeader("Computers & settings", pop, icon = "gearshape")- PullToRefresh(store::refreshComputers, Modifier.weight(1f)) { CardForm {- CardSection("Computers", if (signedIn) "Computers in your account need your OK on the computer before this phone can use them."+ Column(Modifier.fillMaxSize().background(Palette.background).then(if (embedded) Modifier.statusBarsPadding() else Modifier)) {+ if (!embedded) PageHeader("Computer management", pop, icon = "gearshape")+ PullToRefresh(store::refreshComputers, Modifier.weight(1f)) {+ CardForm(padding = PaddingValues(start = 20.dp, top = if (embedded) 12.dp else 20.dp, end = 20.dp, bottom = if (embedded) bottomInset else 20.dp)) {+ if (embedded) {+ Text(tr("Settings"), Modifier.semantics { heading() }, style = Type.largeTitle.bold, color = Palette.text)+ }+ if (!embedded) CardSection(footer = if (signedIn) "Computers in your account need your OK on the computer before this phone can use them."else "Each bot runs on its own computer. Sign in to see the computers in your account.") {if (paired != null) row {val inAccount = state.cloudComputers.firstOrNull { it.computerId == paired.id }@@ -95,6 +101,7 @@ import kotlinx.serialization.json.put}}}+ if (embedded) {AppearanceSettings()if (state.actualConnection is LinkState.Ready) CardSection("Voice chat", "Android speech on this phone, or OpenAI and Gemini on your own API key, kept on the computer.") {row {@@ -150,6 +157,7 @@ import kotlinx.serialization.json.put}}}+ }} }}CodyncSheet(voice, { voice = false }) { VoiceChatSettings(state, store) }@@ -203,56 +211,54 @@ private class ComputerActions(val extensions: () -> Unit, val screen: () -> Unitval count = state.bots.count { !it.deleted && it.kind != "group" }"$count bot${if (count == 1) "" else "s"} · ${routeLabel(link.route, computer.cloud)}"} else computerStatusText(state)- Column(Modifier.fillMaxWidth().contextActions(items = {- listOfNotNull(- MenuItem("Color", icon = "paintpalette", action = actions.color),- if (online) MenuItem("Extensions", icon = "square.grid.2x2", action = actions.extensions) else null,- if (online) MenuItem("Voice chat", icon = "waveform", action = actions.voice) else null,- if (viewable) MenuItem("Screen", icon = "display", action = actions.screen) else null,- actions.revoke?.let { MenuItem("Revoke this phone's access", icon = "lock.slash", destructive = true, divider = true, action = it) },- if (!inAccount) MenuItem("Remove", icon = "trash", destructive = true, divider = actions.revoke == null, action = actions.remove) else null,- )- }), verticalArrangement = Arrangement.spacedBy(6.dp)) {- Row(verticalAlignment = Alignment.CenterVertically, horizontalArrangement = Arrangement.spacedBy(10.dp)) {- ComputerBadge(state.hello?.text("device"), 32.dp, computer.color)- Text(state.hello?.text("name") ?: computer.name, Modifier.weight(1f), style = Type.body.semibold, color = Palette.text)- if (inAccount) Symbol("person.crop.circle.badge.checkmark", size = 20.dp, tint = Palette.tertiary, contentDescription = "In your account")- }- if (online) {- Row(verticalAlignment = Alignment.CenterVertically, horizontalArrangement = Arrangement.spacedBy(8.dp)) {- Text(detail, Modifier.weight(1f), style = Type.footnote, color = Palette.secondary)- ComputerControls(state, store, inAccount, actions)+ Column(Modifier.fillMaxWidth()) {+ Column(Modifier.fillMaxWidth().contextActions(items = {+ listOfNotNull(+ MenuItem("Color", icon = "paintpalette", action = actions.color),+ if (online) MenuItem("Extensions", icon = "square.grid.2x2", action = actions.extensions) else null,+ if (online) MenuItem("Voice chat", icon = "waveform", action = actions.voice) else null,+ if (viewable) MenuItem("Screen", icon = "display", action = actions.screen) else null,+ actions.revoke?.let { MenuItem("Revoke this phone's access", icon = "lock.slash", destructive = true, divider = true, action = it) },+ if (!inAccount) MenuItem("Remove", icon = "trash", destructive = true, divider = actions.revoke == null, action = actions.remove) else null,+ )+ }), verticalArrangement = Arrangement.spacedBy(6.dp)) {+ Row(verticalAlignment = Alignment.CenterVertically, horizontalArrangement = Arrangement.spacedBy(10.dp)) {+ ComputerBadge(state.hello?.text("device"), 32.dp, computer.color)+ Text(state.hello?.text("name") ?: computer.name, Modifier.weight(1f), style = Type.body.semibold, color = Palette.text)+ if (inAccount) Symbol("person.crop.circle.badge.checkmark", size = 20.dp, tint = Palette.tertiary, contentDescription = "In your account")}- } else {val ink = if (link is LinkState.ComputerOffline || link is LinkState.Failed) Palette.warning else Palette.secondary- Text(detail, style = Type.footnote, color = ink)- Row(verticalAlignment = Alignment.CenterVertically, horizontalArrangement = Arrangement.spacedBy(8.dp)) {- if ((link is LinkState.Failed || link is LinkState.ComputerOffline) && actions.ask != null) {- SecondaryButton(if (state.access?.computerId == computer.id) "Show code" else "Ask for access", action = actions.ask)- }- Spacer(Modifier.weight(1f))- ComputerControls(state, store, inAccount, actions)+ Text(detail, style = Type.footnote, color = if (online) Palette.secondary else ink)+ if (!online && (link is LinkState.Failed || link is LinkState.ComputerOffline) && actions.ask != null) {+ SecondaryButton(if (state.access?.computerId == computer.id) "Show code" else "Ask for access", action = actions.ask)}}- }-}--/** Keep the computer's actions together beside its connection summary. */-@Composable private fun ComputerControls(state: AppState, store: AppStore, inAccount: Boolean, actions: ComputerActions) {- val computer = state.computers.first()- Row(verticalAlignment = Alignment.CenterVertically, horizontalArrangement = Arrangement.spacedBy(4.dp)) {- if (state.connection is LinkState.Ready) {- IconButton("Extensions", "square.grid.2x2", action = actions.extensions)- if (state.screen != null) IconButton("Screen", "display", action = actions.screen)+ if (online) {+ ComputerActionRow("Extensions", "square.grid.2x2", actions.extensions)+ if (state.screen != null) ComputerActionRow("Screen", "display", actions.screen)}+ Hairline(Modifier.padding(top = 14.dp))DropdownMenu({ ConnectionRoute.entries.map { route -> MenuItem(routeTitle(route, computer.cloud), icon = route.icon, selected = route == computer.route) { store.setRoute(route) } } },- Modifier.size(36.dp), label = "Connection") {- Symbol(computer.route.icon, size = 21.dp, tint = Palette.secondary)+ Modifier.fillMaxWidth().padding(top = 14.dp), label = "Connection") {+ Row(Modifier.fillMaxWidth(), verticalAlignment = Alignment.CenterVertically, horizontalArrangement = Arrangement.spacedBy(12.dp)) {+ Box(Modifier.width(26.dp), contentAlignment = Alignment.Center) { Symbol(computer.route.icon, size = 20.dp, tint = Palette.text) }+ Text(tr("Connection"), Modifier.weight(1f), style = Type.body, color = Palette.text)+ Symbol("chevron.down", size = 13.dp, tint = Palette.tertiary)+ }+ }+ if (state.isStale && !inAccount) {+ Hairline(Modifier.padding(top = 14.dp))+ RowLabel("Remove", "trash", Palette.danger, modifier = Modifier.padding(top = 14.dp).plainButton(action = actions.remove))}- if (state.isStale && !inAccount) IconButton("Remove", "trash", action = actions.remove)}}+/** One computer action on its own row, under a hairline. */+@Composable private fun ComputerActionRow(title: String, systemImage: String, action: () -> Unit) {+ Hairline(Modifier.padding(top = 14.dp))+ RowLabel(title, systemImage, chevron = true, modifier = Modifier.padding(top = 14.dp).plainButton(action = action))+}+/** A computer in the account that this phone can't use yet; `askingAnother` while this phone asks a different one. */@Composable private fun AccountComputerRow(computer: CloudComputer, code: String?, askingAnother: Boolean, ask: () -> Unit,revoke: () -> Unit) {diff --git a/apps/android/design/src/main/kotlin/com/codync/android/design/Chrome.kt b/apps/android/design/src/main/kotlin/com/codync/android/design/Chrome.ktindex d3f09051..61dd5def 100644--- a/apps/android/design/src/main/kotlin/com/codync/android/design/Chrome.kt+++ b/apps/android/design/src/main/kotlin/com/codync/android/design/Chrome.kt@@ -3,6 +3,7 @@ package com.codync.android.designimport androidx.activity.compose.PredictiveBackHandlerimport androidx.compose.animation.core.Animatableimport androidx.compose.animation.core.animateDpAsState+import androidx.compose.animation.core.animateFloatAsStateimport androidx.compose.foundation.backgroundimport androidx.compose.foundation.clickableimport androidx.compose.foundation.layout.Arrangement@@ -18,12 +19,12 @@ import androidx.compose.foundation.layout.heightimport androidx.compose.foundation.layout.offsetimport androidx.compose.foundation.layout.paddingimport androidx.compose.foundation.layout.size-import androidx.compose.foundation.layout.widthimport androidx.compose.foundation.selection.selectableimport androidx.compose.material3.Textimport androidx.compose.runtime.Composableimport androidx.compose.runtime.LaunchedEffectimport androidx.compose.runtime.getValue+import androidx.compose.runtime.mutableIntStateOfimport androidx.compose.runtime.mutableStateOfimport androidx.compose.runtime.rememberimport androidx.compose.runtime.saveable.rememberSaveableStateHolder@@ -96,10 +97,13 @@ class TabItem<T>(val value: T, val title: String, val systemImage: String, val i/** The iOS 26 tab bar: a floating glass capsule whose selection pill slides between tabs. */@Composable fun <T> GlassTabBar(selection: T, tabs: List<TabItem<T>>, select: (T) -> Unit, modifier: Modifier = Modifier) {- val index = tabs.indexOfFirst { it.value == selection }.coerceAtLeast(0)- val pill by animateDpAsState(TAB_WIDTH * index, Motion.layout(), label = "Tab selection")+ val match = tabs.indexOfFirst { it.value == selection }+ var resting by remember { mutableIntStateOf(0) }+ if (match >= 0) resting = match+ val pill by animateDpAsState(TAB_WIDTH * resting, Motion.layout(), label = "Tab selection")+ val shown by animateFloatAsState(if (match >= 0) 1f else 0f, Motion.fade(), label = "Tab selection visibility")Box(modifier.glass(Capsule()).padding(4.dp)) {- Box(Modifier.offset(x = pill).size(TAB_WIDTH, 54.dp).clip(Capsule()).background(Palette.text.copy(alpha = 0.07f)))+ Box(Modifier.offset(x = pill).graphicsLayer { alpha = shown }.size(TAB_WIDTH, 54.dp).clip(Capsule()).background(Palette.text.copy(alpha = 0.07f)))Row {for (tab in tabs) {val on = tab.value == selectiondiff --git a/apps/ios/App/CodyncApp.swift b/apps/ios/App/CodyncApp.swiftindex 43b1337e..41a30303 100644--- a/apps/ios/App/CodyncApp.swift+++ b/apps/ios/App/CodyncApp.swift@@ -49,8 +49,7 @@ struct CodyncApp: App {get: { (onboardingCompleted || app.account.isSignedIn) && app.account.showSwitcher },set: { app.account.showSwitcher = $0 })) {- // Holds the pushes inside the sheet (Computers & settings, Widgets); no bar shows.- NavigationStack { AccountSwitcherView() }+ AccountSwitcherView().environment(app).environment(app.accounts).environment(app.account)@@ -106,7 +105,7 @@ struct CodyncApp: App {}}-enum AppTab: Hashable { case bots, state }+enum AppTab: Hashable { case bots, state, more }/// One `AccountStore` per account context: switching accounts retires the old one so/// in-flight work can't land on another user's screen or storage.diff --git a/apps/ios/Kit/Sources/CodyncKit/Analytics/AnalyticsEvent.swift b/apps/ios/Kit/Sources/CodyncKit/Analytics/AnalyticsEvent.swiftindex bfbaeb56..f0b71449 100644--- a/apps/ios/Kit/Sources/CodyncKit/Analytics/AnalyticsEvent.swift+++ b/apps/ios/Kit/Sources/CodyncKit/Analytics/AnalyticsEvent.swift@@ -42,7 +42,7 @@ public enum AnalyticsEvent: Equatable, Sendable {public enum VoiceStuck: String, Sendable { case none, connecting, reconnecting, speaking }public enum VoiceFailure: String, Sendable { case none, microphone, connection, provider }public enum Screen: String, Sendable {- case bots, state, chat, trace, botDetails = "bot_details", memory, routines, marketplace+ case bots, state, more, chat, trace, botDetails = "bot_details", memory, routines, marketplacecase settings, computers, usage, account, pairing, voiceSettings = "voice_settings", remoteScreen = "remote_screen"case library, artifact}diff --git a/apps/ios/Kit/Sources/CodyncKit/Resources/Languages/de.json b/apps/ios/Kit/Sources/CodyncKit/Resources/Languages/de.jsonindex 834bb22a..a77ab8ac 100644--- a/apps/ios/Kit/Sources/CodyncKit/Resources/Languages/de.json+++ b/apps/ios/Kit/Sources/CodyncKit/Resources/Languages/de.json@@ -42,7 +42,7 @@"Complete": "Vollständig","Computers": "Computer","Computers & devices": "Computer und Geräte",- "Computers & settings": "Computer und Einstellungen",+ "Computer management": "Computerverwaltung","Computer access": "Computerzugriff","Computers in your account need your OK on the computer before this iPhone can use them.": "Computer in Ihrem Konto benötigen Ihr OK für den Computer, bevor dieser iPhone sie verwenden kann.","Computers in your account need your OK on the computer before this phone can use them.": "Computer in Ihrem Konto benötigen Ihr Einverständnis, bevor sie von diesem Telefon verwendet werden können.",@@ -202,7 +202,7 @@"Original icon": "Originalsymbol","Pair": "Koppeln","Pair a computer": "Computer koppeln",- "Pair a computer later from Computers & settings.": "Koppeln Sie einen Computer später über Computer und Einstellungen.",+ "Pair a computer later from Manage computers.": "Koppeln Sie einen Computer später über Computer verwalten.","Pair a phone…": "Telefon koppeln…","Pause": "Pausieren","Personal": "Persönlich",@@ -1217,6 +1217,7 @@"This week": "Diese Woche","Earlier": "Früher","Open": "Öffnen",+ "More": "Mehr","More actions": "Weitere Aktionen","Library": "Mediathek","Library is empty": "Die Mediathek ist leer",diff --git a/apps/ios/Kit/Sources/CodyncKit/Resources/Languages/es.json b/apps/ios/Kit/Sources/CodyncKit/Resources/Languages/es.jsonindex da4b23a1..1e947f98 100644--- a/apps/ios/Kit/Sources/CodyncKit/Resources/Languages/es.json+++ b/apps/ios/Kit/Sources/CodyncKit/Resources/Languages/es.json@@ -42,7 +42,7 @@"Complete": "Completo","Computers": "Computadoras","Computers & devices": "Computadoras y dispositivos",- "Computers & settings": "Computadoras y configuraciones",+ "Computer management": "Administración de computadoras","Computer access": "Acceso a la computadora","Computers in your account need your OK on the computer before this iPhone can use them.": "Las computadoras en su cuenta necesitan su aprobación antes de que este iPhone pueda usarlas.","Computers in your account need your OK on the computer before this phone can use them.": "Las computadoras en su cuenta necesitan su aprobación antes de que este teléfono pueda usarlas.",@@ -202,7 +202,7 @@"Original icon": "Icono original","Pair": "Vincular","Pair a computer": "Vincular una computadora",- "Pair a computer later from Computers & settings.": "Empareje una computadora más tarde desde Computadoras y configuración.",+ "Pair a computer later from Manage computers.": "Empareje una computadora más tarde desde Administrar computadoras.","Pair a phone…": "Vincular un teléfono…","Pause": "Pausa","Personal": "Personal",@@ -1217,6 +1217,7 @@"This week": "Esta semana","Earlier": "Anteriores","Open": "Abrir",+ "More": "Más","More actions": "Más acciones","Library": "Biblioteca","Library is empty": "La biblioteca está vacía",diff --git a/apps/ios/Kit/Sources/CodyncKit/Resources/Languages/fr.json b/apps/ios/Kit/Sources/CodyncKit/Resources/Languages/fr.jsonindex 5a180043..4693b26d 100644--- a/apps/ios/Kit/Sources/CodyncKit/Resources/Languages/fr.json+++ b/apps/ios/Kit/Sources/CodyncKit/Resources/Languages/fr.json@@ -42,7 +42,7 @@"Complete": "Complet","Computers": "Ordinateurs","Computers & devices": "Ordinateurs et appareils",- "Computers & settings": "Ordinateurs et paramètres",+ "Computer management": "Gestion des ordinateurs","Computer access": "Accès à l'ordinateur","Computers in your account need your OK on the computer before this iPhone can use them.": "Les ordinateurs de votre compte ont besoin de votre OK sur l'ordinateur avant que ce iPhone puisse les utiliser.","Computers in your account need your OK on the computer before this phone can use them.": "Les ordinateurs de votre compte nécessitent votre accord sur l'ordinateur avant que ce téléphone puisse les utiliser.",@@ -202,7 +202,7 @@"Original icon": "Icône originale","Pair": "Associer","Pair a computer": "Associer un ordinateur",- "Pair a computer later from Computers & settings.": "Associez un ordinateur plus tard à partir d'Ordinateurs et paramètres.",+ "Pair a computer later from Manage computers.": "Associez un ordinateur plus tard depuis Gérer les ordinateurs.","Pair a phone…": "Associer un téléphone…","Pause": "Pause","Personal": "Personnel",@@ -1217,6 +1217,7 @@"This week": "Cette semaine","Earlier": "Plus tôt","Open": "Ouvrir",+ "More": "Plus","More actions": "Autres actions","Library": "Bibliothèque","Library is empty": "La bibliothèque est vide",diff --git a/apps/ios/Kit/Sources/CodyncKit/Resources/Languages/ja.json b/apps/ios/Kit/Sources/CodyncKit/Resources/Languages/ja.jsonindex 5ded5d1b..eb0401be 100644--- a/apps/ios/Kit/Sources/CodyncKit/Resources/Languages/ja.json+++ b/apps/ios/Kit/Sources/CodyncKit/Resources/Languages/ja.json@@ -42,7 +42,7 @@"Complete": "完了","Computers": "コンピュータ","Computers & devices": "コンピュータとデバイス",- "Computers & settings": "コンピューターと設定",+ "Computer management": "コンピュータ管理","Computer access": "コンピュータへのアクセス","Computers in your account need your OK on the computer before this iPhone can use them.": "あなたのアカウント内のコンピュータは、この iPhone が使用する前に、コンピュータに対するあなたの OK を必要とします。","Computers in your account need your OK on the computer before this phone can use them.": "アカウント内のコンピュータをこの電話機で使用するには、コンピュータに対するあなたの OK が必要です。",@@ -202,7 +202,7 @@"Original icon": "オリジナルアイコン","Pair": "ペアリング","Pair a computer": "コンピューターをペアリングする",- "Pair a computer later from Computers & settings.": "後で [コンピューターと設定] からコンピューターをペアリングします。",+ "Pair a computer later from Manage computers.": "後で「コンピュータの管理」からコンピューターをペアリングします。","Pair a phone…": "電話をペアリングしてください…","Pause": "一時停止","Personal": "個人用",@@ -1217,6 +1217,7 @@"This week": "今週","Earlier": "それ以前","Open": "開く",+ "More": "その他","More actions": "その他の操作","Library": "ライブラリ","Library is empty": "ライブラリは空です",diff --git a/apps/ios/Kit/Sources/CodyncKit/Resources/Languages/ko.json b/apps/ios/Kit/Sources/CodyncKit/Resources/Languages/ko.jsonindex 97f1cf0a..8f94de07 100644--- a/apps/ios/Kit/Sources/CodyncKit/Resources/Languages/ko.json+++ b/apps/ios/Kit/Sources/CodyncKit/Resources/Languages/ko.json@@ -42,7 +42,7 @@"Complete": "완료","Computers": "컴퓨터","Computers & devices": "컴퓨터 및 기기",- "Computers & settings": "컴퓨터 및 설정",+ "Computer management": "컴퓨터 관리","Computer access": "컴퓨터 접근","Computers in your account need your OK on the computer before this iPhone can use them.": "이 iPhone가 컴퓨터를 사용하려면 먼저 계정에 있는 컴퓨터에 대한 확인이 필요합니다.","Computers in your account need your OK on the computer before this phone can use them.": "이 휴대전화에서 컴퓨터를 사용하려면 먼저 계정에 있는 컴퓨터에 대한 승인이 필요합니다.",@@ -202,7 +202,7 @@"Original icon": "원본 아이콘","Pair": "페어링","Pair a computer": "컴퓨터 페어링",- "Pair a computer later from Computers & settings.": "나중에 컴퓨터 및 설정에서 컴퓨터를 페어링하세요.",+ "Pair a computer later from Manage computers.": "나중에 컴퓨터 관리에서 컴퓨터를 페어링하세요.","Pair a phone…": "휴대폰 페어링…","Pause": "일시 정지","Personal": "개인",@@ -1217,6 +1217,7 @@"This week": "이번 주","Earlier": "이전","Open": "열기",+ "More": "더보기","More actions": "작업 더 보기","Library": "라이브러리","Library is empty": "라이브러리가 비어 있습니다",diff --git a/apps/ios/Kit/Sources/CodyncKit/Resources/Languages/zh-Hans.json b/apps/ios/Kit/Sources/CodyncKit/Resources/Languages/zh-Hans.jsonindex 0a1f46ad..9696f007 100644--- a/apps/ios/Kit/Sources/CodyncKit/Resources/Languages/zh-Hans.json+++ b/apps/ios/Kit/Sources/CodyncKit/Resources/Languages/zh-Hans.json@@ -42,7 +42,7 @@"Complete": "完成","Computers": "电脑","Computers & devices": "电脑和设备",- "Computers & settings": "电脑与设置",+ "Computer management": "电脑管理","Computer access": "电脑访问","Computers in your account need your OK on the computer before this iPhone can use them.": "账户里的电脑要先在电脑上同意,这台 iPhone 才能使用。","Computers in your account need your OK on the computer before this phone can use them.": "账户里的电脑要先在电脑上同意,这台手机才能使用。",@@ -202,7 +202,7 @@"Original icon": "原图标","Pair": "配对","Pair a computer": "配对一台电脑",- "Pair a computer later from Computers & settings.": "稍后可以在「电脑与设置」里配对。",+ "Pair a computer later from Manage computers.": "稍后可以在「管理电脑」里配对。","Pair a phone…": "配对 iPhone…","Pause": "暂停","Personal": "个人",@@ -1217,6 +1217,7 @@"This week": "本周","Earlier": "更早","Open": "打开",+ "More": "更多","More actions": "更多操作","Library": "资料库","Library is empty": "资料库还是空的",diff --git a/apps/ios/Kit/Sources/CodyncKit/Resources/Languages/zh-Hant.json b/apps/ios/Kit/Sources/CodyncKit/Resources/Languages/zh-Hant.jsonindex 6c3df1ea..33599fc9 100644--- a/apps/ios/Kit/Sources/CodyncKit/Resources/Languages/zh-Hant.json+++ b/apps/ios/Kit/Sources/CodyncKit/Resources/Languages/zh-Hant.json@@ -42,7 +42,7 @@"Complete": "完成","Computers": "電腦","Computers & devices": "電腦和裝置",- "Computers & settings": "電腦與設定",+ "Computer management": "電腦管理","Computer access": "電腦訪問","Computers in your account need your OK on the computer before this iPhone can use them.": "賬戶裡的電腦要先在電腦上同意,這臺 iPhone 才能使用。","Computers in your account need your OK on the computer before this phone can use them.": "賬戶裡的電腦要先在電腦上同意,這臺手機才能使用。",@@ -202,7 +202,7 @@"Original icon": "原圖示","Pair": "配對","Pair a computer": "配對一臺電腦",- "Pair a computer later from Computers & settings.": "稍後可以在「電腦與設定」裡配對。",+ "Pair a computer later from Manage computers.": "稍後可以在「管理電腦」裡配對。","Pair a phone…": "配對 iPhone…","Pause": "暫停","Personal": "個人",@@ -1217,6 +1217,7 @@"This week": "本週","Earlier": "更早","Open": "開啟",+ "More": "更多","More actions": "更多操作","Library": "資料庫","Library is empty": "資料庫還是空的",diff --git a/apps/ios/Views/AccountSwitcherView.swift b/apps/ios/Views/AccountSwitcherView.swiftindex 0bd4cd3c..de4f173f 100644--- a/apps/ios/Views/AccountSwitcherView.swift+++ b/apps/ios/Views/AccountSwitcherView.swift@@ -19,11 +19,10 @@ struct AccountSwitcherButton: View {}}-/// Who you're signed in as, the other accounts on this iPhone, and the way to the computers.+/// Who you're signed in as, and the other accounts on this iPhone.struct AccountSwitcherView: View {@Environment(AppStore.self) private var app@Environment(AccountSession.self) private var account- @State private var showSettings = false@State private var confirmSignOut = false@State private var pairing = false@State private var addingAccount = false@@ -53,12 +52,8 @@ struct AccountSwitcherView: View {if addingAccount { SignInButtons().transition(.opacity.combined(with: .move(edge: .top))) }}- CardSection {- Button { showSettings = true } label: {- RowLabel("Computers & settings", systemImage: "gearshape", chevron: true)- }- .buttonStyle(.plain)- if account.isSignedIn {+ if account.isSignedIn {+ CardSection {Button { confirmSignOut = true } label: {RowLabel("Sign out", systemImage: "rectangle.portrait.and.arrow.right", tint: Palette.danger)}@@ -90,7 +85,6 @@ struct AccountSwitcherView: View {.tracked(.screenViewed(.account)).onChange(of: account.userID) { _, _ in withAnimation(Motion.layout) { addingAccount = false } }.hidesSystemNavigationBar()- .navigationDestination(isPresented: $showSettings) { SettingsView(pushed: true) }.codyncSheet(isPresented: $pairing) { PairingView(inModal: true) }.codyncDialog("Sign out of \(account.email ?? "this account")?", isPresented: $confirmSignOut,message: "This iPhone forgets the account's computers. Your bots stay on them.") {@@ -191,7 +185,7 @@ struct GoogleSignInButton: View {}/// An icon and a short name, with a chevron when it leads somewhere.-private struct RowLabel: View {+struct RowLabel: View {let title: Stringlet systemImage: Stringvar tint: Color = Palette.textdiff --git a/apps/ios/Views/ComputerRows.swift b/apps/ios/Views/ComputerRows.swiftnew file mode 100644index 00000000..847fd426--- /dev/null+++ b/apps/ios/Views/ComputerRows.swift@@ -0,0 +1,268 @@+import CodyncKit+import CodyncUI+import SwiftUI++/// A computer this iPhone can use: its connection, how it's reached, and whether it's in the account.+struct ComputerRow: View {+ let store: BotStore+ let inAccount: CloudComputer?+ let openScreen: () -> Void+ /// Agents, connectors and skills installed on this computer.+ let openMarketplace: () -> Void+ let ask: (() -> Void)?+ /// Set when this iPhone's access to the computer can be revoked.+ let revoke: (() -> Void)?+ let remove: () -> Void+ @Environment(AccountStore.self) private var accounts+ @State private var coloring = false+ @State private var voiceSettings = false++ var body: some View {+ VStack(alignment: .leading, spacing: 0) {+ summary+ ForEach(actions) { action in+ Hairline().padding(.top, 14)+ actionControl(action)+ .frame(maxWidth: .infinity, alignment: .leading)+ .padding(.top, 14)+ }+ }+ .padding(.vertical, 2)+ }++ /// Name, connection, and an access request when this iPhone can't reach the computer.+ private var summary: some View {+ VStack(alignment: .leading, spacing: 6) {+ HStack(spacing: 10) {+ ComputerBadge(store.computer, size: 32)+ Text(store.hostName).font(.body.weight(.semibold)).foregroundStyle(Palette.text)+ .frame(maxWidth: .infinity, alignment: .leading)+ if inAccount != nil {+ Image(systemName: "person.crop.circle.badge.checkmark")+ .foregroundStyle(Palette.tertiary)+ .accessibilityLabel(L10n.tr("In your account"))+ }+ }+ connectionDetail+ if store.isOffline, let ask {+ Button(accounts.pendingAccess[store.computer.id] == nil ? "Ask for access" : "Show code", action: ask)+ .buttonStyle(.secondary)+ }+ }+ .contentShape(Rectangle())+ .contextActions {+ var items = [+ MenuItem("Color", icon: "paintpalette") { coloring = true },+ ]+ if store.connection == .online {+ items.append(MenuItem("Extensions", icon: "square.grid.2x2", action: openMarketplace))+ items.append(MenuItem("Voice chat", icon: "waveform") { voiceSettings = true })+ }+ if store.screen != nil, store.connection == .online {+ items.append(MenuItem("Screen", icon: "display", action: openScreen))+ }+ if let revoke {+ items.append(MenuItem("Revoke this iPhone's access", icon: "lock.slash", destructive: true, divider: true, action: revoke))+ }+ if inAccount == nil {+ items.append(MenuItem("Remove", icon: "trash", destructive: true, divider: revoke == nil, action: remove))+ }+ return items+ }+ .codyncSheet(isPresented: $voiceSettings) { VoiceChatSettingsView().environment(store) }+ .codyncOverlay(isPresented: $coloring) { close in+ ZStack {+ Color.black.opacity(0.35).ignoresSafeArea().onTapGesture(perform: close)+ SwatchPanel(selected: store.computer.color) { id in+ close()+ accounts.setColor(store.computer.id, id)+ }+ .background(Palette.bubbleAgent, in: RoundedRectangle(cornerRadius: 22, style: .continuous))+ .shadow(color: .black.opacity(0.25), radius: 24, y: 10)+ }+ .accessibilityAddTraits(.isModal)+ }+ }++ private enum Action: String, Identifiable {+ case extensions, screen, connection, remove+ var id: String { rawValue }+ }++ /// Extensions, Screen and Connection each take their own row under the computer.+ private var actions: [Action] {+ var rows: [Action] = []+ if store.connection == .online {+ rows.append(.extensions)+ if store.screen != nil { rows.append(.screen) }+ }+ rows.append(.connection)+ if stale, inAccount == nil { rows.append(.remove) }+ return rows+ }++ @ViewBuilder private func actionControl(_ action: Action) -> some View {+ switch action {+ case .extensions:+ Button(action: openMarketplace) {+ RowLabel("Extensions", systemImage: "square.grid.2x2", chevron: true)+ }+ .buttonStyle(.plain)+ case .screen:+ Button(action: openScreen) {+ RowLabel("Screen", systemImage: "display", chevron: true)+ }+ .buttonStyle(.plain)+ case .connection:+ DropdownMenu {+ ConnectionRoute.allCases.map { route in+ MenuItem(RelayCopy.routeTitle(route, cloud: store.computer.cloud), icon: route.icon, selected: route == preference) {+ accounts.setRoute(store.computer.id, route)+ }+ }+ } label: {+ HStack(spacing: 12) {+ Image(systemName: preference.icon).font(.system(size: 17)).frame(width: 26)+ Text(L10n.tr("Connection"))+ Spacer(minLength: 8)+ Image(systemName: "chevron.up.chevron.down").font(.caption.weight(.semibold)).foregroundStyle(Palette.tertiary)+ }+ .foregroundStyle(Palette.text)+ .contentShape(Rectangle())+ }+ case .remove:+ Button(action: remove) {+ RowLabel("Remove", systemImage: "trash", tint: Palette.danger)+ }+ .buttonStyle(.plain)+ }+ }++ private var connectionDetail: some View {+ Text(L10n.tr(detail)).font(.footnote)+ .foregroundStyle(store.isOffline ? Palette.warning : Palette.secondary)+ .fixedSize(horizontal: false, vertical: true)+ }++ private var preference: ConnectionRoute { store.computer.route ?? .automatic }++ private var stale: Bool { accounts.isStale(store.computer.id) }++ private var detail: String {+ guard store.connection == .online else { return accounts.statusText(store) }+ let count = store.roster.count+ let route = RelayCopy.detailSuffix(route: store.hostRoute, cloud: store.computer.cloud)+ return "\(count) bot\(count == 1 ? "" : "s")\(route)"+ }+}++/// A computer in the account that this iPhone can't use yet.+struct AccountComputerRow: View {+ let computer: CloudComputer+ let ticket: AccessTicket?+ let ask: () -> Void+ let revoke: () -> Void++ var body: some View {+ HStack(spacing: 12) {+ ComputerBadge(Computer(id: computer.computerId, name: computer.name, signKey: computer.signKey, device: computer.device), size: 40)+ .opacity(0.5)+ VStack(alignment: .leading, spacing: 2) {+ Text(computer.name).font(.body.weight(.semibold)).foregroundStyle(Palette.text)+ Text(L10n.tr(detail)).font(.subheadline).foregroundStyle(Palette.secondary).lineLimit(2)+ }+ Spacer()+ if ticket != nil {+ Button(L10n.tr("Code"), action: ask).buttonStyle(.secondary)+ } else if computer.isGranted {+ Button(L10n.tr("Revoke"), role: .destructive, action: revoke).buttonStyle(.secondary)+ } else {+ Button(L10n.tr("Ask for access"), action: ask).buttonStyle(.secondary)+ }+ }+ .padding(.vertical, 2)+ }++ private var detail: String {+ let online = computer.isOnline ? "Online" : "Offline"+ if let ticket { return "Waiting for your OK on the computer · \(ticket.code)" }+ return switch computer.access {+ case "granted": "Approved for an earlier install of Codync. Revoke it, then ask again."+ case "pending": "\(online) · A request is waiting"+ default: "\(online) · In your account"+ }+ }+}++/// An older account identity stays visible; only account management can remove it.+struct OlderCopyRow: View {+ let computer: CloudComputer++ var body: some View {+ HStack(spacing: 12) {+ ComputerBadge(Computer(id: computer.computerId, name: computer.name, signKey: computer.signKey, device: computer.device), size: 40)+ .opacity(0.35)+ VStack(alignment: .leading, spacing: 2) {+ Text(computer.name).font(.body.weight(.semibold)).foregroundStyle(Palette.secondary)+ Text(L10n.tr(detail)).font(.subheadline).foregroundStyle(Palette.tertiary).lineLimit(2)+ }+ Spacer()+ }+ .padding(.vertical, 2)+ }++ private var detail: String {+ let seen = computer.lastSeenAt.map { " · last seen \(RelativeTime.day(Date(milliseconds: $0)))" } ?? ""+ return "Older copy of this computer\(seen)"+ }+}++/// A navigation row label with a trailing chevron.+struct LinkRow<Content: View>: View {+ @ViewBuilder let content: Content++ var body: some View {+ HStack {+ content.foregroundStyle(Palette.text)+ Spacer(minLength: 8)+ Image(systemName: "chevron.right").font(.caption.weight(.semibold)).foregroundStyle(Palette.tertiary)+ }+ .contentShape(Rectangle())+ }+}++/// The computer color choices: a grid of colored dots, the current one checked.+private struct SwatchPanel: View {+ let selected: String?+ let pick: (String) -> Void++ var body: some View {+ LazyVGrid(columns: Array(repeating: GridItem(.fixed(36), spacing: 10), count: 6), spacing: 10) {+ ForEach(AvatarPalette.colors) { swatch in+ Button { pick(swatch.id) } label: {+ Circle().fill(swatch.color)+ .frame(width: 32, height: 32)+ .overlay {+ if selected == swatch.id {+ Image(systemName: "checkmark").font(.caption.weight(.bold)).foregroundStyle(.white)+ }+ }+ }+ .buttonStyle(.plain)+ .accessibilityLabel(swatch.label)+ .accessibilityAddTraits(selected == swatch.id ? .isSelected : [])+ }+ }+ .padding(14)+ }+}++private extension ConnectionRoute {+ var icon: String {+ switch self {+ case .automatic: "arrow.triangle.branch"+ case .cloudflareFirst: "cloud"+ case .directOnly: "wifi"+ }+ }+}diff --git a/apps/ios/Views/PairingView.swift b/apps/ios/Views/PairingView.swiftindex 183f4f9d..a793d32e 100644--- a/apps/ios/Views/PairingView.swift+++ b/apps/ios/Views/PairingView.swift@@ -55,7 +55,7 @@ struct PairingView<Leading: View>: View {Text(L10n.tr("Skip")).font(.headline).frame(maxWidth: .infinity, minHeight: 50)}.buttonStyle(.secondary)- .accessibilityHint("Pair a computer later from Computers & settings.")+ .accessibilityHint("Pair a computer later from Manage computers.").padding(.horizontal, 24).padding(.bottom, 12).transition(.opacity)diff --git a/apps/ios/Views/RootView.swift b/apps/ios/Views/RootView.swiftindex 306edc82..5dfe25ce 100644--- a/apps/ios/Views/RootView.swift+++ b/apps/ios/Views/RootView.swift@@ -64,8 +64,8 @@ struct RootView: View {}}- /// The system tab bar; both tabs stay alive (scroll position, open thread) and the bar hides while a- /// thread is open.+ /// The system tab bar. Bots, State and Settings stay in one bar (scroll position and the open thread+ /// stay alive). The bar hides while a thread is open.private var tabs: some View {TabView(selection: Bindable(app).tab) {Tab(L10n.tr("Bots"), systemImage: "bubble.left.and.bubble.right.fill", value: AppTab.bots) {@@ -81,13 +81,25 @@ struct RootView: View {StateTab().safeAreaInset(edge: .bottom, spacing: 0) { AccessBanners() }}+ Tab(L10n.tr("Settings"), systemImage: "gearshape", value: AppTab.more) {+ SettingsView(embedded: true)+ .safeAreaInset(edge: .bottom, spacing: 0) { AccessBanners() }+ }}.tint(Palette.text)- .tracked(.screenViewed(app.tab == .bots ? .bots : .state))+ .tracked(.screenViewed(screen))// Opening a bot (notification, widget, link) always lands on the Bots tab..onChange(of: accounts.selection) { _, ref in if ref != nil { app.tab = .bots } }}+ private var screen: AnalyticsEvent.Screen {+ switch app.tab {+ case .bots: .bots+ case .state: .state+ case .more: .more+ }+ }+/// Once per setup (Start over begins a new one): the first computer reached, or Skip.private func completeOnboarding(via: AnalyticsEvent.OnboardingVia) {guard !onboardingCompleted else { return }diff --git a/apps/ios/Views/SettingsView.swift b/apps/ios/Views/SettingsView.swiftindex 0e088501..065f7400 100644--- a/apps/ios/Views/SettingsView.swift+++ b/apps/ios/Views/SettingsView.swift@@ -5,8 +5,10 @@ import SwiftUI/// Every computer this iPhone can use or ask for — paired here and in the account, merged by/// computer ID — plus settings for the selected account.struct SettingsView: View {- /// Pushed inside Accounts rather than opened as its own sheet.+ /// Pushed on top of another screen rather than opened as its own sheet.var pushed = false+ /// The More tab: voice, appearance and the other device settings. The sheet is computers only.+ var embedded = false@Environment(AppStore.self) private var app@Environment(AccountStore.self) private var accounts@Environment(\.dismissModal) private var dismissModal@@ -23,8 +25,49 @@ struct SettingsView: View {@State private var aboutAnalytics = falsevar body: some View {- CardForm {- CardSection("Computers", footer: app.account.isSignedIn+ cards+ .refreshable { await accounts.refreshCloud() }+ .task { await accounts.refreshCloud() }+ .task { notificationsAllowed = await PushRegistrar.shared.isAllowed() }+ .codyncSheet(isPresented: $addingComputer) {+ PairingView(inModal: true)+ }+ .codyncSheet(item: $voice) { target in VoiceChatSettingsView().environment(target.store) }+ .codyncSheet(isPresented: $aboutAnalytics) { AnalyticsSheet() }+ .codyncSheet(item: $access) { target in+ AccessRequestView(computer: target.computer, pending: accounts.pendingAccess[target.id])+ }+ .codyncDialog(L10n.tr("Remove {name}?").replacingOccurrences(of: "{name}", with: confirmForget?.name ?? "computer"),+ isPresented: Binding(get: { confirmForget != nil }, set: { if !$0 { confirmForget = nil } }),+ message: "Its bots and conversations stay on that computer. You can pair again any time.") {+ [DialogAction("Remove", destructive: true) {+ if let c = confirmForget { Task { await app.removeComputer(c.id) } }+ }]+ }+ .codyncDialog("Revoke this iPhone's access to \(confirmRevoke?.name ?? "the computer")?",+ isPresented: Binding(get: { confirmRevoke != nil }, set: { if !$0 { confirmRevoke = nil } }),+ message: "You can ask for access again; the computer will show a new code to confirm.") {+ [DialogAction("Revoke", destructive: true) {+ if let c = confirmRevoke { Task { await app.revokeAccess(c.computerId) } }+ }]+ }+ // What failed here (removing, revoking, refreshing) shows over this sheet, not under it at the root,+ // where the same error clears with this one. In place: a failure right after a confirmation comes+ // while that dialog's cover is still fading out, and a second cover can't present over it.+ .codyncDialog("Something went wrong", isPresented: Binding(+ get: { accounts.lastError != nil }, set: { if !$0 { accounts.lastError = nil } }+ ), message: accounts.lastError, cancel: "OK", inPlace: true) { [] }+ }++ private var cards: some View {+ let form = CardForm {+ if embedded {+ Text(L10n.tr("Settings"))+ .font(.largeTitle.bold())+ .foregroundStyle(Palette.text)+ .accessibilityAddTraits(.isHeader)+ } else {+ CardSection(footer: app.account.isSignedIn? "Computers in your account need your OK on the computer before this iPhone can use them.": "Each bot runs on its own computer. Sign in to see the computers in your account.") {ForEach(accounts.computers) { computer in@@ -56,7 +99,9 @@ struct SettingsView: View {}.buttonStyle(.plain)}+ }+ if embedded {let online = accounts.computers.compactMap { accounts.store(for: $0.id) }.filter { $0.connection == .online }if !online.isEmpty {CardSection("Voice chat", footer: "Apple speech on this iPhone, or OpenAI and Gemini on your own API key, kept on the computer.") {@@ -137,46 +182,32 @@ struct SettingsView: View {}.buttonStyle(.plain)}+ }}.codyncDialog("Start over?", isPresented: $confirmStartOver,message: "Signs out of every account and forgets every computer on this iPhone, then shows the welcome again. Your computers keep their bots and chats; pair again to use them.") {[DialogAction("Start over", destructive: true) { Task { await app.startOver() } }]}- .refreshable { await accounts.refreshCloud() }- .page("Computers & settings", pushed: pushed, icon: "gearshape")- // One screen, named for the way in (as on Android): Accounts → settings, the Computers sheet → computers.- .tracked(.screenViewed(pushed ? .settings : .computers))- .task { await accounts.refreshCloud() }- .codyncSheet(isPresented: $addingComputer) {- PairingView(inModal: true)- }- .codyncSheet(item: $voice) { target in VoiceChatSettingsView().environment(target.store) }- .codyncSheet(isPresented: $aboutAnalytics) { AnalyticsSheet() }- .codyncSheet(item: $access) { target in- AccessRequestView(computer: target.computer, pending: accounts.pendingAccess[target.id])- }- .codyncDialog(L10n.tr("Remove {name}?").replacingOccurrences(of: "{name}", with: confirmForget?.name ?? "computer"),- isPresented: Binding(get: { confirmForget != nil }, set: { if !$0 { confirmForget = nil } }),- message: "Its bots and conversations stay on that computer. You can pair again any time.") {- [DialogAction("Remove", destructive: true) {- if let c = confirmForget { Task { await app.removeComputer(c.id) } }- }]- }- .codyncDialog("Revoke this iPhone's access to \(confirmRevoke?.name ?? "the computer")?",- isPresented: Binding(get: { confirmRevoke != nil }, set: { if !$0 { confirmRevoke = nil } }),- message: "You can ask for access again; the computer will show a new code to confirm.") {- [DialogAction("Revoke", destructive: true) {- if let c = confirmRevoke { Task { await app.revokeAccess(c.computerId) } }- }]+ return PresentedSettings(embedded: embedded, pushed: pushed) { form }+ }++ /// More shows device settings. The sheet and a push add the Computers & settings header.+private struct PresentedSettings<Content: View>: View {+ let embedded: Bool+ let pushed: Bool+ @ViewBuilder let content: Content++ var body: some View {+ if embedded {+ content+ } else {+ content+ .page("Computer management", pushed: pushed, icon: "gearshape")+ // A push → settings, the Computers sheet → computers. The More tab tracks itself.+ .tracked(.screenViewed(pushed ? .settings : .computers))}- .task { notificationsAllowed = await PushRegistrar.shared.isAllowed() }- // What failed here (removing, revoking, refreshing) shows over this sheet, not under it at the root,- // where the same error clears with this one. In place: a failure right after a confirmation comes- // while that dialog's cover is still fading out, and a second cover can't present over it.- .codyncDialog("Something went wrong", isPresented: Binding(- get: { accounts.lastError != nil }, set: { if !$0 { accounts.lastError = nil } }- ), message: accounts.lastError, cancel: "OK", inPlace: true) { [] }}+}private struct VoiceTarget: Identifiable {@@ -215,9 +246,10 @@ struct SettingsView: View {}}- /// This screen is a sheet of its own or inside Accounts; the marketplace and screen open over the app,- /// once that sheet has slid away.+ /// The Computers sheet slides away before the marketplace or screen opens over the app. On the More+ /// tab those open immediately.private func closeSheets(then open: @escaping @MainActor () -> Void) {+ guard !embedded else { open(); return }dismissModal()Task {try? await Task.sleep(for: .milliseconds(450))@@ -243,243 +275,3 @@ struct SettingsView: View {.buttonStyle(.plain)}}--/// A computer this iPhone can use: its connection, how it's reached, and whether it's in the account.-private struct ComputerRow: View {- let store: BotStore- let inAccount: CloudComputer?- let openScreen: () -> Void- /// Agents, connectors and skills installed on this computer.- let openMarketplace: () -> Void- let ask: (() -> Void)?- /// Set when this iPhone's access to the computer can be revoked.- let revoke: (() -> Void)?- let remove: () -> Void- @Environment(AccountStore.self) private var accounts- @State private var coloring = false- @State private var voiceSettings = false-- var body: some View {- VStack(alignment: .leading, spacing: 6) {- HStack(spacing: 10) {- ComputerBadge(store.computer, size: 32)- Text(store.hostName).font(.body.weight(.semibold)).foregroundStyle(Palette.text)- .frame(maxWidth: .infinity, alignment: .leading)- if inAccount != nil {- Image(systemName: "person.crop.circle.badge.checkmark")- .foregroundStyle(Palette.tertiary)- .accessibilityLabel(L10n.tr("In your account"))- }- }- if store.connection == .online {- ViewThatFits(in: .horizontal) {- HStack(spacing: 8) {- connectionDetail.fixedSize()- Spacer(minLength: 0)- controls- }- VStack(alignment: .leading, spacing: 4) {- connectionDetail- controls.frame(maxWidth: .infinity, alignment: .trailing)- }- }- } else {- connectionDetail- HStack(spacing: 8) {- if store.isOffline, let ask {- Button(accounts.pendingAccess[store.computer.id] == nil ? "Ask for access" : "Show code", action: ask)- .buttonStyle(.secondary)- }- Spacer(minLength: 0)- controls- }- }- }- .padding(.vertical, 2)- .contentShape(Rectangle())- .contextActions {- var items = [- MenuItem("Color", icon: "paintpalette") { coloring = true },- ]- if store.connection == .online {- items.append(MenuItem("Extensions", icon: "square.grid.2x2", action: openMarketplace))- items.append(MenuItem("Voice chat", icon: "waveform") { voiceSettings = true })- }- if store.screen != nil, store.connection == .online {- items.append(MenuItem("Screen", icon: "display", action: openScreen))- }- if let revoke {- items.append(MenuItem("Revoke this iPhone's access", icon: "lock.slash", destructive: true, divider: true, action: revoke))- }- if inAccount == nil {- items.append(MenuItem("Remove", icon: "trash", destructive: true, divider: revoke == nil, action: remove))- }- return items- }- .codyncSheet(isPresented: $voiceSettings) { VoiceChatSettingsView().environment(store) }- .codyncOverlay(isPresented: $coloring) { close in- ZStack {- Color.black.opacity(0.35).ignoresSafeArea().onTapGesture(perform: close)- SwatchPanel(selected: store.computer.color) { id in- close()- accounts.setColor(store.computer.id, id)- }- .background(Palette.bubbleAgent, in: RoundedRectangle(cornerRadius: 22, style: .continuous))- .shadow(color: .black.opacity(0.25), radius: 24, y: 10)- }- .accessibilityAddTraits(.isModal)- }- }-- private var connectionDetail: some View {- Text(L10n.tr(detail)).font(.footnote)- .foregroundStyle(store.isOffline ? Palette.warning : Palette.secondary)- .fixedSize(horizontal: false, vertical: true)- }-- private var controls: some View {- HStack(spacing: 4) {- if store.connection == .online {- IconButton("Extensions", systemImage: "square.grid.2x2", action: openMarketplace)- if store.screen != nil { IconButton("Screen", systemImage: "display", action: openScreen) }- }- DropdownMenu {- ConnectionRoute.allCases.map { route in- MenuItem(RelayCopy.routeTitle(route, cloud: store.computer.cloud), icon: route.icon, selected: route == preference) {- accounts.setRoute(store.computer.id, route)- }- }- } label: {- Image(systemName: preference.icon)- .font(.system(size: 18, weight: .medium))- .foregroundStyle(Palette.secondary)- .frame(width: 36, height: 36)- .contentShape(Rectangle())- }- .accessibilityLabel("Connection")- if stale, inAccount == nil { IconButton("Remove", systemImage: "trash", action: remove) }- }- }-- private var preference: ConnectionRoute { store.computer.route ?? .automatic }-- private var stale: Bool { accounts.isStale(store.computer.id) }-- private var detail: String {- guard store.connection == .online else { return accounts.statusText(store) }- let count = store.roster.count- let route = RelayCopy.detailSuffix(route: store.hostRoute, cloud: store.computer.cloud)- return "\(count) bot\(count == 1 ? "" : "s")\(route)"- }-}--/// A computer in the account that this iPhone can't use yet.-private struct AccountComputerRow: View {- let computer: CloudComputer- let ticket: AccessTicket?- let ask: () -> Void- let revoke: () -> Void-- var body: some View {- HStack(spacing: 12) {- ComputerBadge(Computer(id: computer.computerId, name: computer.name, signKey: computer.signKey, device: computer.device), size: 40)- .opacity(0.5)- VStack(alignment: .leading, spacing: 2) {- Text(computer.name).font(.body.weight(.semibold)).foregroundStyle(Palette.text)- Text(L10n.tr(detail)).font(.subheadline).foregroundStyle(Palette.secondary).lineLimit(2)- }- Spacer()- if ticket != nil {- Button(L10n.tr("Code"), action: ask).buttonStyle(.secondary)- } else if computer.isGranted {- Button(L10n.tr("Revoke"), role: .destructive, action: revoke).buttonStyle(.secondary)- } else {- Button(L10n.tr("Ask for access"), action: ask).buttonStyle(.secondary)- }- }- .padding(.vertical, 2)- }-- private var detail: String {- let online = computer.isOnline ? "Online" : "Offline"- if let ticket { return "Waiting for your OK on the computer · \(ticket.code)" }- return switch computer.access {- case "granted": "Approved for an earlier install of Codync. Revoke it, then ask again."- case "pending": "\(online) · A request is waiting"- default: "\(online) · In your account"- }- }-}--/// An older account identity stays visible; only account management can remove it.-private struct OlderCopyRow: View {- let computer: CloudComputer-- var body: some View {- HStack(spacing: 12) {- ComputerBadge(Computer(id: computer.computerId, name: computer.name, signKey: computer.signKey, device: computer.device), size: 40)- .opacity(0.35)- VStack(alignment: .leading, spacing: 2) {- Text(computer.name).font(.body.weight(.semibold)).foregroundStyle(Palette.secondary)- Text(L10n.tr(detail)).font(.subheadline).foregroundStyle(Palette.tertiary).lineLimit(2)- }- Spacer()- }- .padding(.vertical, 2)- }-- private var detail: String {- let seen = computer.lastSeenAt.map { " · last seen \(RelativeTime.day(Date(milliseconds: $0)))" } ?? ""- return "Older copy of this computer\(seen)"- }-}--/// A navigation row label with a trailing chevron.-private struct LinkRow<Content: View>: View {- @ViewBuilder let content: Content-- var body: some View {- HStack {- content.foregroundStyle(Palette.text)- Spacer(minLength: 8)- Image(systemName: "chevron.right").font(.caption.weight(.semibold)).foregroundStyle(Palette.tertiary)- }- .contentShape(Rectangle())- }-}--/// The computer color choices: a grid of colored dots, the current one checked.-private struct SwatchPanel: View {- let selected: String?- let pick: (String) -> Void-- var body: some View {- LazyVGrid(columns: Array(repeating: GridItem(.fixed(36), spacing: 10), count: 6), spacing: 10) {- ForEach(AvatarPalette.colors) { swatch in- Button { pick(swatch.id) } label: {- Circle().fill(swatch.color)- .frame(width: 32, height: 32)- .overlay {- if selected == swatch.id {- Image(systemName: "checkmark").font(.caption.weight(.bold)).foregroundStyle(.white)- }- }- }- .buttonStyle(.plain)- .accessibilityLabel(swatch.label)- .accessibilityAddTraits(selected == swatch.id ? .isSelected : [])- }- }- .padding(14)- }-}--private extension ConnectionRoute {- var icon: String {- switch self {- case .automatic: "arrow.triangle.branch"- case .cloudflareFirst: "cloud"- case .directOnly: "wifi"- }- }-}diff --git a/docs/design/ui-conventions.md b/docs/design/ui-conventions.mdindex 02772750..2b54b9db 100644--- a/docs/design/ui-conventions.md+++ b/docs/design/ui-conventions.md@@ -48,7 +48,7 @@ Usage row shows no number; it opens Settings' Usage page with the same per-provi## Account menu and Settings (desktop)-The chat window's account menu copies Grok Bot's: Usage, Get Codync for mobile, Support, Settings, then the signed-in account and Sign out. Everything else is a page of **Settings**, laid out like ChatGPT's desktop settings (references in `reference/chatgpt-settings-*.png`): a sidebar of pages under small group labels (Personal: General, Voice chat, Usage; This Mac, or This computer on Linux: Computers, Updates) and a large page title over the page's sections. Manage computers and approval badges lead to the Computers page. The iPhone keeps its Computers & settings sheet. Source: `apps/desktop/src/renderer/views/settings/SettingsView.tsx`, account menu in `apps/desktop/src/renderer/views/PanelMenus.tsx`.+The chat window's account menu copies Grok Bot's: Usage, Get Codync for mobile, Support, Settings, then the signed-in account and Sign out. Everything else is a page of **Settings**, laid out like ChatGPT's desktop settings (references in `reference/chatgpt-settings-*.png`): a sidebar of pages under small group labels (Personal: General, Voice chat, Usage; This Mac, or This computer on Linux: Computers, Updates) and a large page title over the page's sections. Manage computers and approval badges lead to the Computers page. The iPhone's Settings tab, to the right of State in the same bar, shows voice, appearance and the other device settings. Manage computers, and links, open a sheet titled Computer management that lists only the computers. Source: `apps/desktop/src/renderer/views/settings/SettingsView.tsx`, account menu in `apps/desktop/src/renderer/views/PanelMenus.tsx`.## iPhone and desktop code@@ -68,7 +68,7 @@ Other custom iPhone screens use `Chrome.swift` and `Controls.swift`. The desktop| Modal or full-window overlay | `.codyncSheet` (system sheet), `.codyncOverlay` || Header outside the native bot navigation flow | `ModalHeader`, `ScreenHeader` || Icon action | `IconButton` |-| iPhone app tabs | System `TabView` (Liquid Glass tab bar, hidden inside a chat) |+| iPhone app tabs | System `TabView` (Liquid Glass tab bar, hidden inside a chat). Settings is the tab to the right of State. || Menu / confirmation | `DropdownMenu` / `.contextActions` (system menus), `.codyncDialog` || Toggle | `ToggleStyle.codync` || Form-like content | `CardForm`, `CardSection` (a small bold heading over a filled, rounded group; rows split by inset hairlines; a row is `ValueRow` with an optional one-line `detail`, and its picker is an outlined `ChoicePicker`) |diff --git a/docs/features/marketplace.md b/docs/features/marketplace.mdindex 264995cb..f1eba8c7 100644--- a/docs/features/marketplace.md+++ b/docs/features/marketplace.md@@ -1,6 +1,6 @@# Extensions and agent setup-The Extensions screen configures capabilities installed on one computer. Account membership does not install the same capability on every computer, so each computer has its own Extensions, opened from that computer and never switched inside: with several computers, from the Extensions button on its heading in the bot list (desktop and iPhone); on the desktop with one computer, from the sidebar footer; on the iPhone, also from its row in Computers & settings.+The Extensions screen configures capabilities installed on one computer. Account membership does not install the same capability on every computer, so each computer has its own Extensions, opened from that computer and never switched inside: with several computers, from the Extensions button on its heading in the bot list (desktop and iPhone); on the desktop with one computer, from the sidebar footer; on the iPhone, also from its row in Manage computers.Under the open section, one line says where that section comes from: agents from the ACP registry, connectors from the MCP Registry, skills from Anthropic, and that they install on this computer. Credentials sits on the title row, beside the computer name, on the iPhone, Android and desktop, so the list can use the rest of the screen. The terminal has no Credentials control on this sheet. The desktop and iPhone installed count is labeled **Connectors & skills**, and opens a library with that same title. It includes connected apps (stored as connectors), but excludes agents; agents show their own installation status in the Agents section. The terminal already separates these categories and does not show a combined installed count.diff --git a/docs/features/voice-call.md b/docs/features/voice-call.mdindex 4d3952a4..45b98aad 100644--- a/docs/features/voice-call.md+++ b/docs/features/voice-call.md@@ -205,7 +205,7 @@ built into the host and the app (today `gpt-realtime-2.1`, `gpt-transcribe`, `gplist arrives.Voice settings (`VoiceChatSettingsView`) open from the call bar's gear and from settings: on the-iPhone, **Computers & settings → Voice chat**; on Android, **Settings → Voice and API keys**; on the desktop, **Settings → Voice chat** (this+iPhone and Android, **Settings → Voice chat** (Android’s row reads **Voice and API keys**); on the desktop, **Settings → Voice chat** (thiscomputer) or the waveform button on a computer's card in **Computers & devices**. Keys are enteredon the computer only: the host takes `setVoiceKey` from loopback, and the iPhone shows whether a keyis there and can test it. Picking a cloud engine shows its key form instead of the on-device settings: a secure field, a linkdiff --git a/docs/guides/accounts-and-ssh.md b/docs/guides/accounts-and-ssh.mdindex c22947fd..1e661bbb 100644--- a/docs/guides/accounts-and-ssh.md+++ b/docs/guides/accounts-and-ssh.md@@ -175,8 +175,9 @@ References:## iOS account switchingThe iOS app now uses the same ClerkKit dependency and shared AccountSession.-Its top-left button opens Accounts; Computers & settings is a separate destination-inside that sheet. The iOS native application must be registered in the same Clerk+Its top-left button opens Accounts. Settings, the tab to the right of State,+shows voice, appearance and the other device settings. Manage computers+opens Computer management, which lists only the computers. The iOS native application must be registered in the same Clerkinstance with bundle ID `com.pokai.Codync.ios` and its own callback`com.pokai.Codync.ios://callback`. The iOS public configuration is in`apps/shared/Config/<env>.plist`. The repository configuration does not provediff --git a/docs/reference/analytics-events.md b/docs/reference/analytics-events.mdindex 6a63aeb5..260119cd 100644--- a/docs/reference/analytics-events.md+++ b/docs/reference/analytics-events.md@@ -107,14 +107,15 @@ host answers and sends it once the host is up.|---|---|---|---|| `bots` | Bots tab | — (always shown) | — || `state` | State tab | — | — |+| `more` | Settings tab | — | — || `chat` | a conversation opened | a conversation opened | a conversation opened || `trace` | full conversation | full conversation | full trace || `bot_details` | bot details | details panel | settings page || `memory` | bot memory (Android: the card in bot details, once it scrolls into sight) | memory tab | memory overlay || `routines` | routines (iPhone: a routine's editor, the list being part of bot details) | a routine's editor | routines overlay || `marketplace` | extensions | extensions | marketplace overlay |-| `settings` | computers & settings, opened from the account | settings | — |-| `computers` | computers & settings, opened from the computers sheet | computers & devices | — |+| `settings` | — | settings | — |+| `computers` | Computers sheet, from Manage computers or a link | computers & devices | — || `usage` | usage | usage | usage overlay || `account` | account sheet | account panel | — || `pairing` | pair a computer after setup (first run: `onboarding_step_viewed`) | pair a phone | pair overlay |diff --git a/web/content/docs/agents.mdx b/web/content/docs/agents.mdxindex 8894a507..f00b0969 100644--- a/web/content/docs/agents.mdx+++ b/web/content/docs/agents.mdx@@ -65,7 +65,7 @@ Opening **Extensions** checks again, so an agent you installed or signed in to oAgents are set up from **Extensions**, which belongs to one computer:- **Desktop:** **Extensions** at the bottom of the sidebar. With several computers, each computer's heading in the sidebar has its own Extensions button instead.-- **iPhone:** tap the account button at the top left of the Bots tab, open **Computers & settings**, and tap the **Extensions** button on the computer.+- **iPhone:** open the computer menu, choose **Manage computers**, and tap **Extensions**.- **Terminal UI:** press `A`.The **Agents** section shows each agent's status: **Installed**, **Not installed**, **Not signed in**, **Needs Node.js**, or **Sets up on first use** (registry agents). The list is paged: **Previous page** and **Next page** move through it (on a phone, you can also swipe the list left or right), and the bar shows the current page over the page count, such as **1 / 5**. Select an agent to open its setup sheet. It walks through up to three steps.diff --git a/web/content/docs/bots.mdx b/web/content/docs/bots.mdxindex 64b921b9..42a4c800 100644--- a/web/content/docs/bots.mdx+++ b/web/content/docs/bots.mdx@@ -85,7 +85,7 @@ Each bot keeps a long-term memory across sessions, which you can read on its **M- **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:- - **iPhone:** tap the account button at the top left of the Bots tab, open **Computers & settings**, and tap the eye button (**Unhide**) beside the bot under **Hidden bots**.+ - **iPhone:** open **Settings** and tap the eye button (**Unhide**) beside the bot under **Hidden bots**.- **Desktop:** open **Settings → General** and click the eye button (**Unhide**) beside the bot under **Hidden bots**.- **Terminal UI:** press Ctrl+K, type `unhide`, and pick **Unhide** followed by the bot's name.- **Mark as read:** clears a bot's unread badge, from the same menus.diff --git a/web/content/docs/computer-use.mdx b/web/content/docs/computer-use.mdxindex dedf559a..286f48f4 100644--- a/web/content/docs/computer-use.mdx+++ b/web/content/docs/computer-use.mdx@@ -26,7 +26,7 @@ To change it, use the menu bar or tray menu on the computer: **Remote screen →Open the screen in either of two ways:- In a chat, tap the **Computer** button at the top right.-- In **Computers & settings**, tap the **Screen** button on the computer's row.+- Open the computer menu, choose **Manage computers**, and tap **Screen**.You have control right away, unless that chat's bot is using the computer at that moment (then you watch first, as described under "Watch a bot work" below). While you have control, bots can still look at the screen, but they can't act until you hand it back.diff --git a/web/content/docs/connectors-and-skills.mdx b/web/content/docs/connectors-and-skills.mdxindex 14731f1c..c396b942 100644--- a/web/content/docs/connectors-and-skills.mdx+++ b/web/content/docs/connectors-and-skills.mdx@@ -5,7 +5,7 @@ You add both in **Extensions**. They install on the computer, so every bot on th## Open Extensions- **Desktop app:** click **Extensions** at the bottom of the sidebar. With several computers, click the Extensions button on that computer's heading in the sidebar; each computer has its own.-- **iPhone:** tap the account button at the top left of the Bots tab, open **Computers & settings**, and tap the Extensions button on the computer's row. With several computers, the Extensions button on a computer's heading in the Bots tab opens it too.+- **iPhone:** open the computer menu, choose **Manage computers**, and tap **Extensions**. With several computers, the Extensions button on a computer's heading in the Bots tab opens it too.- **Terminal UI:** press `A`, or pick "Extensions: agents, connectors, skills…" from the action list. Tab switches between Agents, Connectors and Skills.The header names the computer everything installs on. **Credentials** sits on that same row, beside the name. Under the open section, one line says where those items come from and that they install on this computer. Once you've added something, a count under it ("3 installed", **Connectors & skills**) opens your library, where you can sign in to a connector or remove one.diff --git a/web/content/docs/conversations.mdx b/web/content/docs/conversations.mdxindex 9053a2c3..53c97e1e 100644--- a/web/content/docs/conversations.mdx+++ b/web/content/docs/conversations.mdx@@ -140,7 +140,7 @@ You don't get one when:Routine runs notify you too. A group chat sends one "done" once its bots have finished answering your message.-To turn notifications off on the iPhone, open **Computers & settings** from the account button at the top left of the Bots tab and switch off **Push notifications**. Previews, sounds and Focus follow your iOS settings. The push relay and Apple see only a generic line ("Your task is complete. Open Codync to read the result.") plus routing IDs. The bot's name and the message text are encrypted to your iPhone's key and decrypted on the phone. See [Privacy](/docs/privacy).+To turn notifications off on the iPhone, open **Settings** and switch off **Push notifications**. Previews, sounds and Focus follow your iOS settings. The push relay and Apple see only a generic line ("Your task is complete. Open Codync to read the result.") plus routing IDs. The bot's name and the message text are encrypted to your iPhone's key and decrypted on the phone. See [Privacy](/docs/privacy).### Live Activitiesdiff --git a/web/content/docs/linux-servers.mdx b/web/content/docs/linux-servers.mdxindex da94c9bc..bf5fad0c 100644--- a/web/content/docs/linux-servers.mdx+++ b/web/content/docs/linux-servers.mdx@@ -41,7 +41,7 @@ codync-host status## Pair your phone-With the host running, run `codync-host pair` over SSH. It prints a QR code in your terminal. On the iPhone, scan it from the welcome screen or from **Computers & settings → Pair a computer**. If scanning a terminal QR code is awkward, run `codync-host pair --json` and paste the `codync://pair` link into the field under the scanner.+With the host running, run `codync-host pair` over SSH. It prints a QR code in your terminal. On the iPhone, scan it from the welcome screen or from the computer menu, **Manage computers → Pair a computer**. If scanning a terminal QR code is awkward, run `codync-host pair --json` and paste the `codync://pair` link into the field under the scanner.The code works once and expires after 10 minutes. More about pairing and accounts: [Remote access](/docs/remote-access).diff --git a/web/content/docs/privacy.mdx b/web/content/docs/privacy.mdxindex cadac7ca..44afbfd1 100644--- a/web/content/docs/privacy.mdx+++ b/web/content/docs/privacy.mdx@@ -37,7 +37,7 @@ On the iPhone, a bot can notify you when it needs you, when it's done, or when i- Live Activities on the Lock Screen and in the Dynamic Island get only the bot's status from the computer, never message text.- No notification is sent while the iPhone app is connected to the computer. Muted and hidden bots don't notify.-To turn notifications off on an iPhone, open **Computers & settings** and turn off **Push notifications**. Each bot's settings have their own notification options.+To turn notifications off on an iPhone, open **Settings** and turn off **Push notifications**. Each bot's settings have their own notification options.## Voice@@ -71,7 +71,7 @@ Analytics are never sold, never used for ads and never used to track you acrossEach phone and each computer has its own switch, **Share usage analytics**. Turning it off stops sending right away and drops anything not sent yet.-- **iPhone:** **Computers & settings → Share usage analytics.**+- **iPhone:** **Settings → Share usage analytics.**- **Desktop app:** **Settings → General**, under **Privacy**. This switch belongs to the computer's host, so it also covers the terminal UI on that computer.- **Terminal UI:** press `^k` and choose **Share usage analytics**.@@ -79,4 +79,4 @@ The info button next to the switch (**About usage analytics…** in the terminal## Removing your data-Delete a bot to remove its conversation. To remove everything from a computer, see "Uninstalling" in [Updates](/docs/updates). On the iPhone, **Start over** in **Computers & settings** signs out and forgets every computer; your computers keep their bots and chats. Deleting the iPhone app removes its cache.+Delete a bot to remove its conversation. To remove everything from a computer, see "Uninstalling" in [Updates](/docs/updates). On the iPhone, **Start over** in **Settings** signs out and forgets every computer; your computers keep their bots and chats. Deleting the iPhone app removes its cache.diff --git a/web/content/docs/remote-access.mdx b/web/content/docs/remote-access.mdxindex c8cfdfa8..6b5b05dc 100644--- a/web/content/docs/remote-access.mdx+++ b/web/content/docs/remote-access.mdx@@ -26,7 +26,7 @@ Show the code on the computer:- **Terminal:** run `codync-host pair`. It prints the QR code in the terminal. `codync-host pair --json` prints the link instead.- **Terminal UI:** press `^k` and choose **Pair a phone…**.-Then, on the iPhone, scan it from the welcome screen, or later from **Computers & settings → Pair a computer** (tap the account button, then **Computers & settings**). You can also paste the `codync://pair` link instead of scanning.+Then, on the iPhone, scan it from the welcome screen, or later from the computer menu, **Manage computers → Pair a computer**. You can also paste the `codync://pair` link instead of scanning.A code works once and expires after 10 minutes. If it has expired, show a new one on the computer. Pairing needs no account and works over any route, including the relay.@@ -35,7 +35,7 @@ A code works once and expires after 10 minutes. If it has expired, show a new onYou can sign in with Apple or Google on the iPhone and in the desktop app. Signing in doesn't give any device access by itself. It lets your phone find the computers in your account without scanning a code:1. On the computer, sign in to the desktop app. The computer joins your account. For an SSH computer, choose **Add to account** on its card in **Settings → Computers**.-2. On the iPhone, sign in with the same account and open **Computers & settings**. Your account's computers are listed there. Tap **Ask for access**. The phone shows a 6-digit code.+2. On the iPhone, sign in with the same account and open the computer menu, then **Manage computers**. Your account's computers are listed there. Tap **Ask for access**. The phone shows a 6-digit code.3. On the computer, an **Access request** opens with a code. Choose **Approve** only if it matches the code on your phone exactly. If it doesn't, choose **Deny**: someone may be trying to get in.On a computer without the desktop app, use `codync-host access` to list requests and `codync-host access approve <code>` to approve one.@@ -134,5 +134,5 @@ Webhook deliveries are **not** end-to-end encrypted. The relay receives them ove## Removing a device's access- **On the computer:** in **Settings → Computers**, the list **Devices that can use** the computer has **Revoke access** for each device. Without the desktop app, use `codync-host devices` to list devices and `codync-host devices revoke <key>` to remove one. The device disconnects right away and has to pair or ask again.-- **On the iPhone:** in **Computers & settings**, remove a paired computer, or revoke this phone's account access to one. The computer keeps its bots and chats.+- **On the iPhone:** in **Manage computers**, remove a paired computer, or revoke this phone's account access to one. The computer keeps its bots and chats.- **Remove from account** on a computer's card disconnects devices approved through the account. Devices paired with a QR code keep their access.diff --git a/web/content/docs/updates.mdx b/web/content/docs/updates.mdxindex ee1ab1a2..6bc8c117 100644--- a/web/content/docs/updates.mdx+++ b/web/content/docs/updates.mdx@@ -94,4 +94,4 @@ To erase everything from the desktop app in one step, choose **Settings → Rese### On the iPhone-In **Computers & settings**, remove a computer, or choose **Start over** to sign out and forget every computer. Deleting the app removes its cache. Your computers keep their bots and chats either way.+In **Manage computers**, remove a computer. In **Settings**, choose **Start over** to sign out and forget every computer. Deleting the app removes its cache. Your computers keep their bots and chats either way.diff --git a/web/content/docs/voice.mdx b/web/content/docs/voice.mdxindex 02469f2b..aaefdbac 100644--- a/web/content/docs/voice.mdx+++ b/web/content/docs/voice.mdx@@ -36,7 +36,7 @@ In the Shortcuts app, add Codync's **Open Live Mode** action and pick a **Bot**,Open **Voice chat** settings from the call bar's gear, or:-- **iPhone:** **Computers & settings → Voice chat → Voice and API keys**.+- **iPhone:** **Settings → Voice and API keys**.- **Desktop app:** **Settings → Voice chat**.Under **Engine**, pick one. The choice is kept on this device. Changed during a call, it takes over that call once you close the settings; the call goes on, still muted if it was.