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: primary-session-only completion alerts, prompt UI, MIT license
libokai511e90fc17b5
diff --git a/Codync-iOS/Views/IOSOnboardingView.swift b/Codync-iOS/Views/IOSOnboardingView.swiftindex 9c2e0877..8a562c76 100644--- a/Codync-iOS/Views/IOSOnboardingView.swift+++ b/Codync-iOS/Views/IOSOnboardingView.swift@@ -470,7 +470,7 @@ struct IOSOnboardingView: View {Spacer().frame(height: 12)- Text("Tap the circle on the right to try it.\nShown first on Dynamic Island and Lock Screen.")+ Text("Tap the circle to pin a session.\nShown first on Dynamic Island and Lock Screen.\nOnly the primary session triggers completion alerts.").multilineTextAlignment(.center).font(.system(size: 16)).foregroundStyle(theme.secondaryText)@@ -555,21 +555,21 @@ struct IOSOnboardingView: View {// Faux Live Activity permission dialog — mimics real iOS alertVStack(spacing: 0) {- // Session list (dark card)+ // Session list (dark card) — top portionVStack(spacing: 2) {fauxLARow(name: "my-project", model: "Opus", task: "Reading file...")fauxLARow(name: "backend", model: "Sonnet", task: nil)fauxLARow(name: "web-app", model: "Haiku", task: "Editing code")}.padding(12)- .background(- RoundedRectangle(cornerRadius: 16, style: .continuous)- .fill(Color(white: 0.13))- )+ .frame(maxWidth: .infinity)+ .background(Color(white: 0.13))- Spacer().frame(height: 8)+ // Thin separator between session list and dialog+ Color.white.opacity(0.08)+ .frame(height: 1)- // Permission dialog — frosted glass style+ // Permission dialog — bottom portion, slightly lighterVStack(spacing: 0) {Text("Allow Live Activities\nfrom \u{201C}Codync\u{201D}?").font(.system(size: 16, weight: .medium))@@ -602,13 +602,13 @@ struct IOSOnboardingView: View {}}}- .background(- RoundedRectangle(cornerRadius: 14, style: .continuous)- .fill(.ultraThinMaterial)- .environment(\.colorScheme, .dark)- )- .clipShape(RoundedRectangle(cornerRadius: 14, style: .continuous))+ .background(Color(white: 0.18))}+ .clipShape(RoundedRectangle(cornerRadius: 16, style: .continuous))+ .overlay(+ RoundedRectangle(cornerRadius: 16, style: .continuous)+ .stroke(.white.opacity(0.1), lineWidth: 1)+ ).padding(.horizontal, 36)Spacer().frame(height: 32)diff --git a/Codync-iOS/Views/IOSSessionListView.swift b/Codync-iOS/Views/IOSSessionListView.swiftindex 932113da..6e00044c 100644--- a/Codync-iOS/Views/IOSSessionListView.swift+++ b/Codync-iOS/Views/IOSSessionListView.swift@@ -8,6 +8,8 @@ struct IOSSessionListView: View {@Environment(\.theme) private var theme@State private var showSettings = false@State private var showSettingsSheet = false+ @State private var showPrimaryPrompt = false+ @AppStorage("codync_didPromptPrimary") private var didPromptPrimary = falsevar body: some View {ScrollView {@@ -73,6 +75,20 @@ struct IOSSessionListView: View {.sheet(isPresented: $showSettingsSheet) {SettingsView()}+ .onChange(of: sessions) { _, newSessions in+ if !didPromptPrimary,+ !newSessions.isEmpty,+ primarySessionManager.primarySessionId == nil {+ showPrimaryPrompt = true+ }+ }+ .alert("Select a Primary Session", isPresented: $showPrimaryPrompt) {+ Button("OK") {+ didPromptPrimary = true+ }+ } message: {+ Text("Tap the circle on the right of a session to pin it as primary. Only the primary session will send completion notifications.")+ }}@ViewBuilder@@ -144,18 +160,21 @@ private struct SessionRowContent: View {SessionTagView(tag: session.model)}Spacer(minLength: 4)+ if session.statusDescription == nil {+ Text(relativeTime(session.updatedAt))+ .font(.system(size: 12, design: .monospaced))+ .foregroundStyle(theme.tertiaryText)+ }}- if session.statusDescription != nil || !session.tasks.isEmpty {+ if let desc = session.statusDescription {HStack(spacing: 4) {- if let desc = session.statusDescription {- Text(desc)- .font(.system(size: 13))- .foregroundStyle(subtitleColor)- .lineLimit(1)- .id(desc)- .transition(.push(from: .bottom))- .animation(.easeInOut(duration: 0.3), value: desc)- }+ Text(desc)+ .font(.system(size: 13))+ .foregroundStyle(subtitleColor)+ .lineLimit(1)+ .id(desc)+ .transition(.push(from: .bottom))+ .animation(.easeInOut(duration: 0.3), value: desc)Spacer()Text(relativeTime(session.updatedAt)).font(.system(size: 12, design: .monospaced))diff --git a/Codync-iOS/Views/SettingsView.swift b/Codync-iOS/Views/SettingsView.swiftindex 80aedc89..a95142d2 100644--- a/Codync-iOS/Views/SettingsView.swift+++ b/Codync-iOS/Views/SettingsView.swift@@ -46,6 +46,8 @@ struct SettingsView: View {.tint(.primary)} header: {Text("Notifications")+ } footer: {+ Text("Only the pinned primary session sends completion alerts.")}// MARK: - Supportdiff --git a/Codync-macOS/Services/CloudKitSync.swift b/Codync-macOS/Services/CloudKitSync.swiftindex 3a16889f..73e4bb7b 100644--- a/Codync-macOS/Services/CloudKitSync.swift+++ b/Codync-macOS/Services/CloudKitSync.swift@@ -102,10 +102,15 @@ final class CloudKitSync {}if !toSave.isEmpty {- // Send completion alert for newly completed sessions (Pro only)- for session in toSave where session.status == .completed {- if previousStates[session.sessionId]?.status != .completed {- await APNsPushService.shared.sendCompletionAlert(session: session)+ // Fetch primary session once — reused for alert + overall push+ let primary = await CloudKitManager.shared.fetchPrimarySession()++ // Send completion alert only for primary session (Pro only)+ if let lockedPrimaryId = primary.sessionId, primary.locked {+ for session in toSave where session.status == .completed && session.sessionId == lockedPrimaryId {+ if previousStates[session.sessionId]?.status != .completed {+ await APNsPushService.shared.sendCompletionAlert(session: session)+ }}}@@ -128,7 +133,6 @@ final class CloudKitSync {}// Overall mode: send all active sessions with user's primary selectionlet allActive = sessions.filter { $0.status != .completed }- let primary = await CloudKitManager.shared.fetchPrimarySession()let primaryId = primary.sessionId?? allActive.first(where: { $0.status == .working })?.sessionId// Sync primary to macOS panel sortingdiff --git a/Codync.xcodeproj/project.pbxproj b/Codync.xcodeproj/project.pbxprojindex 387e7776..605e64bf 100644--- a/Codync.xcodeproj/project.pbxproj+++ b/Codync.xcodeproj/project.pbxproj@@ -565,6 +565,7 @@ENABLE_APP_SANDBOX = NO;ENABLE_HARDENED_RUNTIME = YES;GENERATE_INFOPLIST_FILE = YES;+ INFOPLIST_KEY_ITSAppUsesNonExemptEncryption = NO;INFOPLIST_KEY_LSUIElement = YES;INFOPLIST_KEY_NSHumanReadableCopyright = "";LD_RUNPATH_SEARCH_PATHS = (@@ -592,6 +593,7 @@ENABLE_APP_SANDBOX = NO;ENABLE_HARDENED_RUNTIME = YES;GENERATE_INFOPLIST_FILE = YES;+ INFOPLIST_KEY_ITSAppUsesNonExemptEncryption = NO;INFOPLIST_KEY_LSUIElement = YES;INFOPLIST_KEY_NSHumanReadableCopyright = "";LD_RUNPATH_SEARCH_PATHS = (diff --git a/LICENSE b/LICENSEnew file mode 100644index 00000000..4cec7fc1--- /dev/null+++ b/LICENSE@@ -0,0 +1,21 @@+MIT License++Copyright (c) 2026 Po Kai Lee++Permission is hereby granted, free of charge, to any person obtaining a copy+of this software and associated documentation files (the "Software"), to deal+in the Software without restriction, including without limitation the rights+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell+copies of the Software, and to permit persons to whom the Software is+furnished to do so, subject to the following conditions:++The above copyright notice and this permission notice shall be included in all+copies or substantial portions of the Software.++THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE+SOFTWARE.