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
fix(ios): tighten connected computer cards
leepokaibf32d2576beb
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 c5a83eec..2e3c33b4 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@@ -114,6 +114,7 @@ class AccountScreenTest {compose.onNodeWithText("Computers & settings").assertIsDisplayed()compose.onNode(hasText(computer.name) and hasClickAction()).assertIsDisplayed()compose.onNodeWithText("1 bot · Wi-Fi/Tailscale").assertIsDisplayed()+ snapshot("computer-card")compose.onNodeWithContentDescription("Extensions").performClick()assertEquals(1, extensions)compose.onNodeWithText("Pair a computer").performClick()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 40482ff0..f5a969a3 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@@ -184,7 +184,6 @@ private class ComputerActions(val extensions: () -> Unit, val screen: () -> Unitval link = state.connectionval online = link is LinkState.Readyval viewable = online && state.screen != null- val stale = state.isStaleval detail = if (link is LinkState.Ready) {val count = state.bots.count { !it.deleted && it.kind != "group" }"$count bot${if (count == 1) "" else "s"} · ${if (link.route == HostRoute.Direct) "Wi-Fi/Tailscale" else "Cloudflare"}"@@ -198,34 +197,47 @@ private class ComputerActions(val extensions: () -> Unit, val screen: () -> Unitactions.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(10.dp)) {- Row(verticalAlignment = Alignment.CenterVertically, horizontalArrangement = Arrangement.spacedBy(12.dp)) {- ComputerBadge(state.hello?.text("device"), 40.dp, computer.color)+ }), 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")}- Row(verticalAlignment = Alignment.Top, horizontalArrangement = Arrangement.spacedBy(4.dp)) {- val ink = if (link is LinkState.ComputerOffline || link is LinkState.Failed) Palette.warning else Palette.secondary- Text(detail, Modifier.weight(1f, fill = false), style = Type.subheadline, color = ink)- if (link is LinkState.Ready) Symbol(if (link.route == HostRoute.Direct) "wifi" else "cloud", size = 14.dp, tint = ink,- contentDescription = if (link.route == HostRoute.Direct) "Wi-Fi or Tailscale" else "Through Cloudflare")- }- 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)+ 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)}- if (online) IconButton("Extensions", "square.grid.2x2", action = actions.extensions)- if (viewable) IconButton("Screen", "display", action = actions.screen)- Spacer(Modifier.weight(1f))- DropdownMenu({ ConnectionRoute.entries.map { route -> MenuItem(route.title, 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)+ } 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)}- if (stale && !inAccount) IconButton("Remove", "trash", action = actions.remove)}}}+/** 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)+ }+ DropdownMenu({ ConnectionRoute.entries.map { route -> MenuItem(route.title, 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)+ }+ if (state.isStale && !inAccount) IconButton("Remove", "trash", action = actions.remove)+ }+}+/** 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/ios/Views/SettingsView.swift b/apps/ios/Views/SettingsView.swiftindex 1bc207af..123d4e85 100644--- a/apps/ios/Views/SettingsView.swift+++ b/apps/ios/Views/SettingsView.swift@@ -252,9 +252,9 @@ private struct ComputerRow: View {@State private var voiceSettings = falsevar body: some View {- VStack(alignment: .leading, spacing: 10) {- HStack(spacing: 12) {- ComputerBadge(store.computer, size: 40)+ 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 {@@ -263,37 +263,28 @@ private struct ComputerRow: View {.accessibilityLabel("In your account")}}- HStack(alignment: .top, spacing: 4) {- Text(detail).fixedSize(horizontal: false, vertical: true)- if store.connection == .online { RouteIcon(route: store.hostRoute) }- }- .font(.subheadline)- .foregroundStyle(store.isOffline ? Palette.warning : Palette.secondary)- HStack(spacing: 8) {- if store.isOffline, let ask {- Button(accounts.pendingAccess[store.computer.id] == nil ? "Ask for access" : "Show code", action: ask)- .buttonStyle(.secondary)- }- if store.connection == .online {- IconButton("Extensions", systemImage: "square.grid.2x2", action: openMarketplace)- if store.screen != nil { IconButton("Screen", systemImage: "display", action: openScreen) }+ 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)+ }}- Spacer(minLength: 0)- DropdownMenu {- ConnectionRoute.allCases.map { route in- MenuItem(route.title, icon: route.icon, selected: route == preference) {- accounts.setRoute(store.computer.id, route)- }+ } 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)}- } label: {- Image(systemName: preference.icon)- .font(.system(size: 18, weight: .medium))- .foregroundStyle(Palette.secondary)- .frame(width: 36, height: 36)- .contentShape(Rectangle())+ Spacer(minLength: 0)+ controls}- .accessibilityLabel("Connection")- if stale, inAccount == nil { IconButton("Remove", systemImage: "trash", action: remove) }}}.padding(.vertical, 2)@@ -332,6 +323,36 @@ private struct ComputerRow: View {}}+ private var connectionDetail: some View {+ Text(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(route.title, 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) }diff --git a/apps/ios/WhatsNew.md b/apps/ios/WhatsNew.mdindex d070760c..ff7b1115 100644--- a/apps/ios/WhatsNew.md+++ b/apps/ios/WhatsNew.md@@ -9,10 +9,12 @@ a version without one gets a generic "Bug fixes and improvements" line. Delete o## 2.22.1### zh-Hant+- 已連線電腦的資訊與操作排列更緊湊,電腦名稱完整顯示- 手機連不上帳號內的電腦時,可直接要求存取權限;連線說明也更容易閱讀- 手機的裝置清單不再提供刪除同帳號電腦的操作,避免誤刪### en-US+- Connected computer cards keep their full names visible with a more compact layout for connection details and actions- Ask for access directly when your phone cannot reach an account computer, with clearer connection details- Account computers can no longer be removed from the phone's device list, preventing accidental removaldiff --git a/docs/plans/2026-10-22-ui-and-device-access.md b/docs/plans/2026-10-22-ui-and-device-access.mdindex 18bd4161..b9a9b215 100644--- a/docs/plans/2026-10-22-ui-and-device-access.md+++ b/docs/plans/2026-10-22-ui-and-device-access.md@@ -142,3 +142,26 @@ The mascot worktree and its Electron test process remain available because thecoordinated release hold prevents merge/push. Production Codync remains untouched.Phone source committed as `effa2091`; pre-commit Android checks passed. Desktop and phone source commits remain local, not merged/pushed, under the existing #194 release hold. No version bump was made while 2.22.0 is still pending; bump to the next patch before these source changes reach main.++## Computer-card polish (23:40)++- iOS and Android online cards now use a compact two-row layout: full computer name,+ then connection summary and adjacent action buttons. Removed the redundant route+ glyph. iOS falls back to stacked content when the summary and actions do not fit;+ Android allows the summary to wrap. Offline explanations and access recovery stay.+- Desktop and TUI are unaffected: neither uses this phone paired-computer card.+- Three read-only reviews found no defects. iOS device/simulator builds pass;+ Android compilation, unit tests and lint pass.+- iOS Device Hub: paired a dedicated test host, checked the rendered card and opened+ the Connection menu successfully. Android emulator: card controls and unreachable+ account recovery pass (2 instrumentation tests); captured the rendered card.+ API 36.1 test runner failed in Espresso's InputManager initialization; the same+ checks pass on API 36. Enlarged-text/narrow-screen visual checks remain not run.+- Installed the new card on iPhone 18 Pro Max. Automatic launch was blocked by the+ phone being locked; installation itself succeeded.+- PR #194 regression coverage is pushed separately as 62672102. Latest dev removed+ inline thought previews in 2b0cf291, so coverage follows the remaining behavior:+ 420 ms exit retention/removal and cancelling removal during a restart. All 215+ desktop tests and typecheck pass. Live desktop E2E could observe onboarding but+ CUA failed to operate that Electron window (noWindowsAvailable), so it is not+ recorded as passed. Other agents' uncommitted files were preserved during rebase.