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(ios): offer notifications from the setup page instead of pairing
leepokai8a79edc16e69
diff --git a/apps/ios/App/CodyncApp.swift b/apps/ios/App/CodyncApp.swiftindex bbb75100..76e8aa8c 100644--- a/apps/ios/App/CodyncApp.swift+++ b/apps/ios/App/CodyncApp.swift@@ -64,9 +64,8 @@ struct CodyncApp: App {#if DEBUG.task {// Simulator/UI-test pairing: SIMCTL_CHILD_CODYNC_PAIR_URL=codync://pair?...- // Skips the notification prompt, which nothing can dismiss in a headless simulator.if let s = ProcessInfo.processInfo.environment["CODYNC_PAIR_URL"], let p = Pairing(string: s) {- _ = try? await app.accounts.pair(p, deviceName: UIDevice.current.name, platform: "ios")+ _ = try? await app.pair(p)}if ProcessInfo.processInfo.environment["CODYNC_OPEN_USAGE"] != nil { app.tab = .state; app.showUsage = true }if ProcessInfo.processInfo.environment["CODYNC_STATE_SURFACE"] != nil { app.tab = .state }@@ -177,9 +176,7 @@ final class AppStore {}func pair(_ pairing: Pairing) async throws -> Computer {- let computer = try await accounts.pair(pairing, deviceName: UIDevice.current.name, platform: "ios")- Task { _ = await PushRegistrar.shared.requestAuthorization() }- return computer+ try await accounts.pair(pairing, deviceName: UIDevice.current.name, platform: "ios")}func open(_ url: URL) {diff --git a/apps/ios/App/Push.swift b/apps/ios/App/Push.swiftindex 23e58793..d7240721 100644--- a/apps/ios/App/Push.swift+++ b/apps/ios/App/Push.swift@@ -87,6 +87,15 @@ final class PushRegistrar {stores = [:]}+ /// nil until asked; false once turned off in the Settings app.+ func isAllowed() async -> Bool? {+ switch await UNUserNotificationCenter.current().notificationSettings().authorizationStatus {+ case .authorized, .provisional, .ephemeral: true+ case .denied: false+ default: nil+ }+ }+func requestAuthorization() async -> Bool {let granted = (try? await UNUserNotificationCenter.current().requestAuthorization(options: [.alert, .sound, .badge])) ?? falseif granted { UIApplication.shared.registerForRemoteNotifications() }diff --git a/apps/ios/Views/RootView.swift b/apps/ios/Views/RootView.swiftindex cb392994..c0d20de0 100644--- a/apps/ios/Views/RootView.swift+++ b/apps/ios/Views/RootView.swift@@ -38,9 +38,9 @@ struct RootView: View {}}.background(Palette.background)- .onChange(of: accounts.computers.isEmpty, initial: true) { _, empty in- // Pairing or explicitly skipping completes setup. Keep this- // device-level milestone across account changes and unpairing.+ .onChange(of: accounts.computers.isEmpty && accounts.cloudComputers.isEmpty, initial: true) { _, empty in+ // Pairing, signing in to an account that has computers, or explicitly skipping completes+ // setup. Keep this device-level milestone across account changes and unpairing.if !empty { onboardingCompleted = true }}.codyncDialog("Something went wrong", isPresented: errorShown, message: errorMessage, cancel: "OK", inPlace: true) { [] }diff --git a/apps/ios/Views/SettingsView.swift b/apps/ios/Views/SettingsView.swiftindex 41891e02..ab3fe5f3 100644--- a/apps/ios/Views/SettingsView.swift+++ b/apps/ios/Views/SettingsView.swift@@ -1,7 +1,6 @@import CodyncKitimport CodyncUIimport SwiftUI-import UserNotifications/// 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.@@ -147,14 +146,7 @@ struct SettingsView: View {if let c = confirmRevoke { Task { await app.revokeAccess(c.computerId) } }}]}- .task {- let status = await UNUserNotificationCenter.current().notificationSettings().authorizationStatus- notificationsAllowed = switch status {- case .authorized, .provisional, .ephemeral: true- case .denied: false- default: nil- }- }+ .task { notificationsAllowed = await PushRegistrar.shared.isAllowed() }}diff --git a/apps/ios/Views/WidgetGalleryView.swift b/apps/ios/Views/WidgetGalleryView.swiftindex f7a20287..9578d075 100644--- a/apps/ios/Views/WidgetGalleryView.swift+++ b/apps/ios/Views/WidgetGalleryView.swift@@ -15,6 +15,8 @@ struct WidgetGalleryView: View {@State private var size = "medium"@State private var hasWidget: Bool?@State private var widgetCheckFailed = false+ /// nil until asked, false once turned off in the Settings app. Not asked during onboarding: offered here.+ @State private var notificationsAllowed: Bool?@AppStorage(SharedStore.usageIconStyleKey, store: UserDefaults(suiteName: SharedStore.appGroup))private var usageIconStyle = UsageIconStyle.character.rawValue@@ -57,6 +59,15 @@ struct WidgetGalleryView: View {Rectangle().fill(Palette.border).frame(height: 0.5).padding(.leading, 42)setupRow("Add a Codync widget", complete: hasWidget == true,status: hasWidget == nil ? (widgetCheckFailed ? "Unable to check" : "Checking") : nil)+ Rectangle().fill(Palette.border).frame(height: 0.5).padding(.leading, 42)+ Button(action: turnOnNotifications) {+ setupRow(notificationsAllowed == false ? "Turn on notifications in Settings" : "Turn on notifications",+ complete: notificationsAllowed == true)+ .contentShape(Rectangle())+ }+ .buttonStyle(.plain)+ .disabled(notificationsAllowed == true)+ .accessibilityHint("Know when a bot is done or needs you.")}.background(Palette.surface, in: RoundedRectangle(cornerRadius: 18))if widgetCheckFailed {@@ -139,8 +150,15 @@ struct WidgetGalleryView: View {case .lockScreen: LockWidgetGalleryView()}}- .task { checkWidgets() }- .onChange(of: scenePhase) { _, phase in if phase == .active { checkWidgets() } }+ .task {+ checkWidgets()+ await checkNotifications()+ }+ .onChange(of: scenePhase) { _, phase in+ guard phase == .active else { return }+ checkWidgets()+ Task { await checkNotifications() }+ }}private enum Page: Hashable { case lockScreen }@@ -189,6 +207,23 @@ struct WidgetGalleryView: View {.accessibilityValue(status ?? (complete ? "Complete" : "Not complete"))}+ private func checkNotifications() async {+ let allowed = await PushRegistrar.shared.isAllowed()+ withAnimation(Motion.reduced(Motion.layout, reduceMotion)) { notificationsAllowed = allowed }+ }++ /// Asks once; after a no, only the Settings app can turn them on.+ private func turnOnNotifications() {+ if notificationsAllowed == false {+ UIApplication.shared.open(URL(string: UIApplication.openNotificationSettingsURLString)!)+ } else {+ Task {+ _ = await PushRegistrar.shared.requestAuthorization()+ await checkNotifications()+ }+ }+ }+private func checkWidgets() {let animation = Motion.reduced(Motion.layout, reduceMotion)withAnimation(animation) { widgetCheckFailed = false }diff --git a/apps/ios/WhatsNew.md b/apps/ios/WhatsNew.mdindex 763379ed..d3960003 100644--- a/apps/ios/WhatsNew.md+++ b/apps/ios/WhatsNew.md@@ -5,24 +5,16 @@ listing what iPhone users notice. tools/asc-submit.py reads the released versiona version without one gets a generic "Bug fixes and improvements" line. Delete old sections.-->-## 2.7.0+## 2.7.4### zh-Hant-- Mac 和 Linux 的 Codync 換成全新的桌面版 app,配對、聊天和通話都跟以前一樣;iPhone 這邊不用做任何事。-- 語音通話預設改用各家最新的模型(例如 OpenAI 的 gpt-transcribe,辨識更準、更認得 bot 的名字),之後有新模型推出也會自動換上,不用等 app 更新。-- 回覆串流更順:文字平穩地一路浮現,畫面穩穩跟著最新內容;往上捲就停在你在看的地方,按下箭頭回到最新。-- 進聊天室先顯示最新的訊息,往上捲再接上更早的;更新 app 之後也不用等對話重新載入。-- 回覆裡的表格、分隔線、巢狀清單和行內程式碼都會正確排版。-- 開啟 app 時會有 bot 動畫陪你等連線,畫面出現時新訊息已經同步好了。-- 裝置上的語音通話可以選擇你說的語言(語音聊天設定 → 語言),不再只跟著系統的第一語言。+- 未送出的文字會依 bot 和討論串自動保存,切換對話或重新開啟 app 都能接著寫。+- 配對後不再馬上跳出通知權限;改在設定頁的「開啟通知」一鍵打開,關掉了也會帶你到「設定」重新開啟。+- 登入已經有電腦的帳號時,會直接完成設定,不用再走一次配對引導。### en-US-- Codync for Mac and Linux is now one new desktop app. Pairing, chats and calls work as before; nothing changes on your iPhone.-- Voice calls now default to each provider's newest models (such as OpenAI's gpt-transcribe: more accurate, and better at your bots' names), and move to newer ones as they come out, without an app update.-- Smoother streaming: replies flow in steadily and the chat glides along with them; scroll up and it stays where you're reading, with an arrow back to the latest.-- A chat opens on its newest messages and brings in earlier ones as you scroll up, and no longer reloads after an app update.-- Tables, dividers, nested lists and inline code in replies are now formatted properly.-- Opening the app now shows an animated bot while it connects, so new messages are already in when the list appears.-- On-device voice calls let you choose the language you speak (Voice chat settings → Language) instead of always following the system's first language.+- Unsent text is saved separately for each bot and thread, so you can continue after switching chats or reopening the app.+- Pairing no longer asks for notifications right away. Turn them on from the setup page, which takes you to Settings if you turned them off.+- Signing in to an account that already has computers finishes setup without the pairing walkthrough.