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(apps): reflect notification permission in computer settings
leepokaidbbd58508ab4
diff --git a/apps/android/WhatsNew.md b/apps/android/WhatsNew.mdindex a72e9015..f5b0208e 100644--- a/apps/android/WhatsNew.md+++ b/apps/android/WhatsNew.md@@ -7,6 +7,14 @@ released version's section; a version without one gets the PRs' "What's New: Andelse a generic "Bug fixes and improvements" line. Delete old sections.-->+## 2.33.2++### zh-Hant+- 電腦的推送通知設定會顯示系統權限狀態;未允許通知時,可直接前往開啟權限。++### en-US+- Computer push settings show when notification permission is missing and help you enable it.+## 2.33.1### zh-Hantdiff --git a/apps/android/app/src/androidTest/kotlin/com/codync/android/ComputerNotificationsTest.kt b/apps/android/app/src/androidTest/kotlin/com/codync/android/ComputerNotificationsTest.ktnew file mode 100644index 00000000..af74e32d--- /dev/null+++ b/apps/android/app/src/androidTest/kotlin/com/codync/android/ComputerNotificationsTest.kt@@ -0,0 +1,60 @@+package com.codync.android++import android.content.Context+import androidx.test.platform.app.InstrumentationRegistry+import org.junit.Assume.assumeFalse+import androidx.compose.runtime.getValue+import androidx.compose.runtime.mutableStateOf+import androidx.compose.runtime.setValue+import androidx.compose.ui.test.*+import androidx.compose.ui.test.junit4.createComposeRule+import org.junit.Assert.*+import org.junit.Rule+import org.junit.Test++class ComputerNotificationsTest {+ @get:Rule val compose = createComposeRule()++ @Test fun missingPermissionOpensPermissionWithoutChangingComputerPreference() {+ var opened = false+ var saved = true+ compose.setContent { Hosted {+ ComputerNotificationsControl(saved, false, { saved = it }, { opened = true })+ } }+ compose.onAllNodes(isToggleable()).assertCountEquals(0)+ compose.onNodeWithText("Turn on notifications in Settings").performClick()+ assertTrue(opened)+ assertTrue(saved)+ }++ @Test fun settingsRemembersPermissionDeniedFromAnotherEntryPoint() {+ val context = InstrumentationRegistry.getInstrumentation().targetContext+ assumeFalse(notificationsAllowed(context))+ val prefs = context.getSharedPreferences("codync-push", Context.MODE_PRIVATE)+ val previous = PushPreferences.asked(context)+ try {+ // The computer row and onboarding persist the same denial marker.+ PushPreferences.markAsked(context)+ compose.setContent { Hosted { NotificationsSection() } }+ compose.onNodeWithText("Off in Settings").assertIsDisplayed()+ compose.onNodeWithText("Turn on").assertDoesNotExist()+ } finally {+ prefs.edit().putBoolean("asked", previous).commit()+ }+ }++ @Test fun permissionChangesRestoreTheSavedPreferenceAndKeepTheSwitchEditable() {+ var allowed by mutableStateOf(false)+ var saved by mutableStateOf(false)+ compose.setContent { Hosted {+ ComputerNotificationsControl(saved, allowed, { saved = it }, {})+ } }+ compose.runOnIdle { allowed = true }+ compose.onNode(isToggleable()).assertIsOff().performClick().assertIsOn()+ compose.runOnIdle { allowed = false }+ compose.onAllNodes(isToggleable()).assertCountEquals(0)+ assertTrue(saved)+ compose.runOnIdle { allowed = true }+ compose.onNode(isToggleable()).assertIsOn()+ }+}diff --git a/apps/android/app/src/main/kotlin/com/codync/android/ComputerNotificationsRow.kt b/apps/android/app/src/main/kotlin/com/codync/android/ComputerNotificationsRow.ktnew file mode 100644index 00000000..c511cb71--- /dev/null+++ b/apps/android/app/src/main/kotlin/com/codync/android/ComputerNotificationsRow.kt@@ -0,0 +1,57 @@+package com.codync.android++import android.Manifest+import android.os.Build+import androidx.activity.compose.rememberLauncherForActivityResult+import androidx.activity.result.contract.ActivityResultContracts+import androidx.compose.foundation.layout.Column+import androidx.compose.foundation.layout.fillMaxWidth+import androidx.compose.material3.Text+import androidx.compose.runtime.Composable+import androidx.compose.runtime.getValue+import androidx.compose.runtime.mutableStateOf+import androidx.compose.runtime.remember+import androidx.compose.runtime.setValue+import androidx.compose.ui.Modifier+import androidx.compose.ui.platform.LocalContext+import com.codync.android.design.*++/** System permission gates the computer preference without changing its saved value. */+@Composable internal fun ComputerNotificationsRow(enabled: Boolean, onChange: (Boolean) -> Unit) {+ val context = LocalContext.current+ var permissionResult by remember { mutableStateOf<Boolean?>(null) }+ val allowedOnResume = rememberOnResume {+ permissionResult = null+ notificationsAllowed(context)+ }+ val request = rememberLauncherForActivityResult(ActivityResultContracts.RequestPermission()) { granted ->+ notificationsAnswered(context, granted, PromptSource.Settings)+ permissionResult = notificationsAllowed(context)+ if (granted) PushDelivery.schedule(context)+ }+ ComputerNotificationsControl(enabled, permissionResult ?: allowedOnResume, onChange) {+ if (!PushPreferences.asked(context) && Build.VERSION.SDK_INT >= Build.VERSION_CODES.TIRAMISU) {+ request.launch(Manifest.permission.POST_NOTIFICATIONS)+ } else {+ openNotificationSettings(context)+ }+ }+}++@Composable internal fun ComputerNotificationsControl(+ enabled: Boolean,+ allowed: Boolean,+ onChange: (Boolean) -> Unit,+ openPermission: () -> Unit,+) {+ if (allowed) {+ CodyncSwitch(enabled, onChange, Modifier.fillMaxWidth()) {+ RowLabel("Push notifications", "bell", modifier = Modifier.weight(1f))+ }+ } else {+ Column(Modifier.fillMaxWidth().plainButton(action = openPermission)) {+ RowLabel("Push notifications", "bell", chevron = true)+ Text(tr("Turn on notifications in Settings"), style = Type.footnote, color = Palette.secondary)+ }+ }+}diff --git a/apps/android/app/src/main/kotlin/com/codync/android/ComputersView.kt b/apps/android/app/src/main/kotlin/com/codync/android/ComputersView.ktindex 4fee39c9..facb272e 100644--- a/apps/android/app/src/main/kotlin/com/codync/android/ComputersView.kt+++ b/apps/android/app/src/main/kotlin/com/codync/android/ComputersView.kt@@ -126,9 +126,7 @@ private fun CardRows.computerRows(state: AppState, store: AppStore, inAccount: Bif (state.network?.shown == true) row { RowLabel("Network", NETWORK_ICON, chevron = true, modifier = Modifier.plainButton(action = actions.network)) }}if (BuildConfig.PUSH_CONFIGURED) row {- CodyncSwitch(state.computers.first().notifications, store::notifications, Modifier.fillMaxWidth()) {- RowLabel("Push notifications", "bell", modifier = Modifier.weight(1f))- }+ ComputerNotificationsRow(state.computers.first().notifications, store::notifications)}row { ConnectionRow(state.computers.first(), store) }// Kept while an update asked from here restarts the computer: its spinner says it's updating.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 05062003..6c766b2f 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@@ -91,11 +91,12 @@ import com.codync.android.design.*}/** Whether Android lets Codync show notifications at all; each computer's push switch is on its card. */-@Composable private fun NotificationsSection() {+@Composable internal fun NotificationsSection() {val context = LocalContext.current- var asked by remember { mutableStateOf(false) }+ var answered by remember { mutableStateOf(false) }+ val asked = rememberOnResume { PushPreferences.asked(context) } || answeredval request = rememberLauncherForActivityResult(ActivityResultContracts.RequestPermission()) { granted ->- notificationsAnswered(context, granted, PromptSource.Settings); asked = true+ notificationsAnswered(context, granted, PromptSource.Settings); answered = true}val allowed = rememberOnResume { notificationsAllowed(context) } || asked && notificationsAllowed(context)CardSection("Notifications", "Get a result summary, a request for input, or a failure notice. Notification previews follow your Android settings.") {diff --git a/apps/ios/Kit/Sources/CodyncKit/Resources/Languages/de.json b/apps/ios/Kit/Sources/CodyncKit/Resources/Languages/de.jsonindex f959368c..f820ac07 100644--- a/apps/ios/Kit/Sources/CodyncKit/Resources/Languages/de.json+++ b/apps/ios/Kit/Sources/CodyncKit/Resources/Languages/de.json@@ -744,7 +744,6 @@"Lock Screen": "Sperrbildschirm","Compact": "Kompakt","Minimal": "Minimal",- "The Dynamic Island shows the same Live Activity as the Lock Screen, so this switch turns off both.": "Die Dynamic Island zeigt dieselbe Live-Aktivität wie der Sperrbildschirm. Dieser Schalter deaktiviert daher beide.","Starts when you send a task or call a bot from this iPhone. Follow its progress, then open the conversation when your bot needs you.": "Beginnt, wenn du von diesem iPhone eine Aufgabe sendest oder einen Bot anrufst. Verfolge den Fortschritt und öffne das Gespräch, wenn dein Bot dich braucht.","The bot in its mood, its current step in the state's color, the running time, a thinking orb and its progress. When the bot needs you, Review opens the request.": "Der Bot mit seiner Stimmung, sein aktueller Schritt in der Statusfarbe, die Laufzeit, eine Denkkugel und sein Fortschritt. Wenn der Bot dich braucht, öffnet „Prüfen“ die Anfrage.","The bot and a thinking orb beside the camera, outlined in the state's color. The orb becomes a check or warning when the task ends.": "Der Bot und eine Denkkugel neben der Kamera, mit einer Umrandung in der Statusfarbe. Die Kugel wird am Aufgabenende zu einem Häkchen oder Warnzeichen.",@@ -1409,5 +1408,6 @@"this computer isn't in a network": "dieser Computer ist in keinem Netzwerk","cloud assistants are off here": "Cloud-Assistenten sind hier aus","Offered to the network: bots on your other computers can see and message this bot.": "Im Netzwerk angeboten: Bots auf deinen anderen Computern sehen diesen Bot und können ihm schreiben.",- "Reachable by cloud assistants: ChatGPT or Claude in your Codync account can see and message this bot.": "Für Cloud-Assistenten erreichbar: ChatGPT oder Claude in deinem Codync-Konto sehen diesen Bot und können ihm schreiben."+ "Reachable by cloud assistants: ChatGPT or Claude in your Codync account can see and message this bot.": "Für Cloud-Assistenten erreichbar: ChatGPT oder Claude in deinem Codync-Konto sehen diesen Bot und können ihm schreiben.",+ "Live Activities on the Lock Screen and in the Dynamic Island turn on and off together.": "Live-Aktivitäten auf dem Sperrbildschirm und in der Dynamic Island werden gemeinsam ein- und ausgeschaltet."}diff --git a/apps/ios/Kit/Sources/CodyncKit/Resources/Languages/es.json b/apps/ios/Kit/Sources/CodyncKit/Resources/Languages/es.jsonindex 58eaa6e9..51ff0782 100644--- a/apps/ios/Kit/Sources/CodyncKit/Resources/Languages/es.json+++ b/apps/ios/Kit/Sources/CodyncKit/Resources/Languages/es.json@@ -744,7 +744,6 @@"Lock Screen": "Pantalla de bloqueo","Compact": "Compacto","Minimal": "Mínimo",- "The Dynamic Island shows the same Live Activity as the Lock Screen, so this switch turns off both.": "Dynamic Island muestra la misma actividad en directo que la pantalla de bloqueo, así que este interruptor desactiva ambas.","Starts when you send a task or call a bot from this iPhone. Follow its progress, then open the conversation when your bot needs you.": "Se inicia cuando envías una tarea o llamas a un bot desde este iPhone. Sigue su progreso y abre la conversación cuando el bot te necesite.","The bot in its mood, its current step in the state's color, the running time, a thinking orb and its progress. When the bot needs you, Review opens the request.": "El bot con su estado de ánimo, el paso actual en el color del estado, el tiempo transcurrido, una esfera de reflexión y su progreso. Cuando te necesita, Revisar abre la solicitud.","The bot and a thinking orb beside the camera, outlined in the state's color. The orb becomes a check or warning when the task ends.": "El bot y una esfera de reflexión junto a la cámara, con un borde del color del estado. La esfera se convierte en una marca o aviso cuando termina la tarea.",@@ -1409,5 +1408,6 @@"this computer isn't in a network": "esta computadora no está en ninguna red","cloud assistants are off here": "los asistentes en la nube están desactivados aquí","Offered to the network: bots on your other computers can see and message this bot.": "Ofrecido a la red: los bots de tus otras computadoras pueden ver este bot y escribirle.",- "Reachable by cloud assistants: ChatGPT or Claude in your Codync account can see and message this bot.": "Accesible para asistentes en la nube: ChatGPT o Claude en tu cuenta de Codync pueden ver este bot y escribirle."+ "Reachable by cloud assistants: ChatGPT or Claude in your Codync account can see and message this bot.": "Accesible para asistentes en la nube: ChatGPT o Claude en tu cuenta de Codync pueden ver este bot y escribirle.",+ "Live Activities on the Lock Screen and in the Dynamic Island turn on and off together.": "Las actividades en directo de la pantalla bloqueada y la Dynamic Island se activan y desactivan juntas."}diff --git a/apps/ios/Kit/Sources/CodyncKit/Resources/Languages/fr.json b/apps/ios/Kit/Sources/CodyncKit/Resources/Languages/fr.jsonindex 2438a3ba..3b86fd99 100644--- a/apps/ios/Kit/Sources/CodyncKit/Resources/Languages/fr.json+++ b/apps/ios/Kit/Sources/CodyncKit/Resources/Languages/fr.json@@ -744,7 +744,6 @@"Lock Screen": "Écran verrouillé","Compact": "Compact","Minimal": "Minimal",- "The Dynamic Island shows the same Live Activity as the Lock Screen, so this switch turns off both.": "La Dynamic Island affiche la même activité en direct que l’écran verrouillé ; ce commutateur désactive donc les deux.","Starts when you send a task or call a bot from this iPhone. Follow its progress, then open the conversation when your bot needs you.": "Démarre lorsque vous envoyez une tâche ou appelez un bot depuis cet iPhone. Suivez sa progression, puis ouvrez la conversation lorsque le bot a besoin de vous.","The bot in its mood, its current step in the state's color, the running time, a thinking orb and its progress. When the bot needs you, Review opens the request.": "Le bot et son humeur, l’étape en cours dans la couleur de l’état, la durée, une sphère de réflexion et sa progression. Lorsque le bot a besoin de vous, Examiner ouvre la demande.","The bot and a thinking orb beside the camera, outlined in the state's color. The orb becomes a check or warning when the task ends.": "Le bot et une sphère de réflexion près de la caméra, entourés de la couleur de l’état. La sphère devient une coche ou un avertissement à la fin de la tâche.",@@ -1409,5 +1408,6 @@"this computer isn't in a network": "cet ordinateur n'est dans aucun réseau","cloud assistants are off here": "les assistants cloud sont désactivés ici","Offered to the network: bots on your other computers can see and message this bot.": "Proposé au réseau : les bots de vos autres ordinateurs voient ce bot et peuvent lui écrire.",- "Reachable by cloud assistants: ChatGPT or Claude in your Codync account can see and message this bot.": "Joignable par les assistants cloud : ChatGPT ou Claude dans votre compte Codync voit ce bot et peut lui écrire."+ "Reachable by cloud assistants: ChatGPT or Claude in your Codync account can see and message this bot.": "Joignable par les assistants cloud : ChatGPT ou Claude dans votre compte Codync voit ce bot et peut lui écrire.",+ "Live Activities on the Lock Screen and in the Dynamic Island turn on and off together.": "Les activités en direct sur l’écran verrouillé et dans la Dynamic Island s’activent et se désactivent ensemble."}diff --git a/apps/ios/Kit/Sources/CodyncKit/Resources/Languages/ja.json b/apps/ios/Kit/Sources/CodyncKit/Resources/Languages/ja.jsonindex c75667bc..fabe35df 100644--- a/apps/ios/Kit/Sources/CodyncKit/Resources/Languages/ja.json+++ b/apps/ios/Kit/Sources/CodyncKit/Resources/Languages/ja.json@@ -744,7 +744,6 @@"Lock Screen": "ロック画面","Compact": "コンパクト","Minimal": "最小限",- "The Dynamic Island shows the same Live Activity as the Lock Screen, so this switch turns off both.": "Dynamic Islandにはロック画面と同じライブアクティビティが表示されるため、このスイッチで両方がオフになります。","Starts when you send a task or call a bot from this iPhone. Follow its progress, then open the conversation when your bot needs you.": "このiPhoneからタスクを送信するか、ボットに電話をかけると開始します。進行状況を追跡し、ボットがあなたを必要とするときに会話を開きます。","The bot in its mood, its current step in the state's color, the running time, a thinking orb and its progress. When the bot needs you, Review opens the request.": "ボットの気分、状態の色での現在のステップ、実行時間、思考オーブと進捗。ボットがあなたを必要とするとき、Review はリクエストを開きます。","The bot and a thinking orb beside the camera, outlined in the state's color. The orb becomes a check or warning when the task ends.": "ボットとカメラの横にある考える球体が州の色で縁取られています。タスクが終了すると、オーブはチェックまたは警告になります。",@@ -1409,5 +1408,6 @@"this computer isn't in a network": "このコンピューターはネットワークに入っていません","cloud assistants are off here": "ここではクラウドアシスタントがオフです","Offered to the network: bots on your other computers can see and message this bot.": "ネットワークに公開:ほかのコンピューターのボットがこのボットを見つけてメッセージを送れます。",- "Reachable by cloud assistants: ChatGPT or Claude in your Codync account can see and message this bot.": "クラウドアシスタントから利用可能:Codync アカウントの ChatGPT や Claude がこのボットを見つけてメッセージを送れます。"+ "Reachable by cloud assistants: ChatGPT or Claude in your Codync account can see and message this bot.": "クラウドアシスタントから利用可能:Codync アカウントの ChatGPT や Claude がこのボットを見つけてメッセージを送れます。",+ "Live Activities on the Lock Screen and in the Dynamic Island turn on and off together.": "ロック画面とDynamic Islandのライブアクティビティは、一緒にオン・オフになります。"}diff --git a/apps/ios/Kit/Sources/CodyncKit/Resources/Languages/ko.json b/apps/ios/Kit/Sources/CodyncKit/Resources/Languages/ko.jsonindex 46cae55b..85086e6d 100644--- a/apps/ios/Kit/Sources/CodyncKit/Resources/Languages/ko.json+++ b/apps/ios/Kit/Sources/CodyncKit/Resources/Languages/ko.json@@ -744,7 +744,6 @@"Lock Screen": "잠금 화면","Compact": "축소형","Minimal": "최소형",- "The Dynamic Island shows the same Live Activity as the Lock Screen, so this switch turns off both.": "Dynamic Island는 잠금 화면과 같은 실시간 현황을 표시하므로 이 스위치를 끄면 둘 다 꺼집니다.","Starts when you send a task or call a bot from this iPhone. Follow its progress, then open the conversation when your bot needs you.": "이 iPhone에서 작업을 보내거나 봇에게 전화를 걸면 시작됩니다. 진행 상황을 확인하고 봇이 나를 필요로 할 때 대화를 여세요.","The bot in its mood, its current step in the state's color, the running time, a thinking orb and its progress. When the bot needs you, Review opens the request.": "봇의 표정, 상태 색상의 현재 단계, 실행 시간, 생각 중인 구체와 진행 상황을 표시합니다. 도움이 필요하면 검토를 눌러 요청을 엽니다.","The bot and a thinking orb beside the camera, outlined in the state's color. The orb becomes a check or warning when the task ends.": "카메라 옆에 봇과 생각 중인 구체가 상태 색상의 테두리로 표시됩니다. 작업이 끝나면 구체가 체크 표시나 경고로 바뀝니다.",@@ -1409,5 +1408,6 @@"this computer isn't in a network": "이 컴퓨터는 네트워크에 속해 있지 않습니다","cloud assistants are off here": "여기서는 클라우드 어시스턴트가 꺼져 있습니다","Offered to the network: bots on your other computers can see and message this bot.": "네트워크에 공개: 다른 컴퓨터의 봇이 이 봇을 보고 메시지를 보낼 수 있습니다.",- "Reachable by cloud assistants: ChatGPT or Claude in your Codync account can see and message this bot.": "클라우드 어시스턴트가 연락 가능: Codync 계정의 ChatGPT나 Claude가 이 봇을 보고 메시지를 보낼 수 있습니다."+ "Reachable by cloud assistants: ChatGPT or Claude in your Codync account can see and message this bot.": "클라우드 어시스턴트가 연락 가능: Codync 계정의 ChatGPT나 Claude가 이 봇을 보고 메시지를 보낼 수 있습니다.",+ "Live Activities on the Lock Screen and in the Dynamic Island turn on and off together.": "잠금 화면과 Dynamic Island의 실시간 현황은 함께 켜지거나 꺼집니다."}diff --git a/apps/ios/Kit/Sources/CodyncKit/Resources/Languages/zh-Hans.json b/apps/ios/Kit/Sources/CodyncKit/Resources/Languages/zh-Hans.jsonindex de054781..e79d20f4 100644--- a/apps/ios/Kit/Sources/CodyncKit/Resources/Languages/zh-Hans.json+++ b/apps/ios/Kit/Sources/CodyncKit/Resources/Languages/zh-Hans.json@@ -744,7 +744,6 @@"Lock Screen": "锁定屏幕","Compact": "紧凑","Minimal": "最小",- "The Dynamic Island shows the same Live Activity as the Lock Screen, so this switch turns off both.": "灵动岛和锁定屏幕用的是同一个实时活动,所以这个开关会同时关掉两边。","Starts when you send a task or call a bot from this iPhone. Follow its progress, then open the conversation when your bot needs you.": "从这台 iPhone 发出任务或和 Bot 通话时开始。可以看进度,Bot 需要你时再打开对话。","The bot in its mood, its current step in the state's color, the running time, a thinking orb and its progress. When the bot needs you, Review opens the request.": "显示 Bot 的状态、当前步骤(颜色跟着状态走)、已运行时间、一个思考球和进度。需要你时,点「查看」打开请求。","The bot and a thinking orb beside the camera, outlined in the state's color. The orb becomes a check or warning when the task ends.": "摄像头旁边是 Bot 和一个思考球,描边颜色跟着状态走。任务结束时,球会变成对勾或警告。",@@ -1409,5 +1408,6 @@"this computer isn't in a network": "这台电脑不在任何网络里","cloud assistants are off here": "这里的云端助手已关闭","Offered to the network: bots on your other computers can see and message this bot.": "提供给网络:你其他电脑上的 Bot 能看到这个 Bot 并给它发消息。",- "Reachable by cloud assistants: ChatGPT or Claude in your Codync account can see and message this bot.": "云端助手可联系:你 Codync 账户里的 ChatGPT 或 Claude 能看到这个 Bot 并给它发消息。"+ "Reachable by cloud assistants: ChatGPT or Claude in your Codync account can see and message this bot.": "云端助手可联系:你 Codync 账户里的 ChatGPT 或 Claude 能看到这个 Bot 并给它发消息。",+ "Live Activities on the Lock Screen and in the Dynamic Island turn on and off together.": "锁定屏幕的实时活动与灵动岛会同步开启或关闭。"}diff --git a/apps/ios/Kit/Sources/CodyncKit/Resources/Languages/zh-Hant.json b/apps/ios/Kit/Sources/CodyncKit/Resources/Languages/zh-Hant.jsonindex 9b451146..8d91beaf 100644--- a/apps/ios/Kit/Sources/CodyncKit/Resources/Languages/zh-Hant.json+++ b/apps/ios/Kit/Sources/CodyncKit/Resources/Languages/zh-Hant.json@@ -744,7 +744,6 @@"Lock Screen": "鎖定螢幕","Compact": "緊湊","Minimal": "最小",- "The Dynamic Island shows the same Live Activity as the Lock Screen, so this switch turns off both.": "靈動島和鎖定螢幕用的是同一個實時活動,所以這個開關會同時關掉兩邊。","Starts when you send a task or call a bot from this iPhone. Follow its progress, then open the conversation when your bot needs you.": "從這臺 iPhone 發出任務或和 Bot 通話時開始。可以看進度,Bot 需要你時再開啟對話。","The bot in its mood, its current step in the state's color, the running time, a thinking orb and its progress. When the bot needs you, Review opens the request.": "顯示 Bot 的狀態、當前步驟(顏色跟著狀態走)、已執行時間、一個思考球和進度。需要你時,點「檢視」開啟請求。","The bot and a thinking orb beside the camera, outlined in the state's color. The orb becomes a check or warning when the task ends.": "攝像頭旁邊是 Bot 和一個思考球,描邊顏色跟著狀態走。任務結束時,球會變成對勾或警告。",@@ -1409,5 +1408,6 @@"this computer isn't in a network": "這臺電腦不在任何網路裡","cloud assistants are off here": "這裡的雲端助理已關閉","Offered to the network: bots on your other computers can see and message this bot.": "提供給網路:你其他電腦上的 Bot 能看到這個 Bot 並傳訊息給它。",- "Reachable by cloud assistants: ChatGPT or Claude in your Codync account can see and message this bot.": "雲端助理可聯繫:你 Codync 賬戶裡的 ChatGPT 或 Claude 能看到這個 Bot 並傳訊息給它。"+ "Reachable by cloud assistants: ChatGPT or Claude in your Codync account can see and message this bot.": "雲端助理可聯繫:你 Codync 賬戶裡的 ChatGPT 或 Claude 能看到這個 Bot 並傳訊息給它。",+ "Live Activities on the Lock Screen and in the Dynamic Island turn on and off together.": "鎖定畫面的即時動態與動態島會同步開啟或關閉。"}diff --git a/apps/ios/Views/ActivityGalleryView.swift b/apps/ios/Views/ActivityGalleryView.swiftindex d9fe5fc4..2d6e116f 100644--- a/apps/ios/Views/ActivityGalleryView.swift+++ b/apps/ios/Views/ActivityGalleryView.swift@@ -43,9 +43,9 @@ struct ActivityGalleryView: View {}.toggleStyle(.codync).font(.subheadline.weight(.medium))- Text(L10n.tr(island- ? "The Dynamic Island shows the same Live Activity as the Lock Screen, so this switch turns off both."- : "Starts when you send a task or call a bot from this iPhone. Follow its progress, then open the conversation when your bot needs you."))+ Text(L10n.tr("Live Activities on the Lock Screen and in the Dynamic Island turn on and off together."))+ .font(.footnote).foregroundStyle(Palette.secondary)+ Text(L10n.tr("Starts when you send a task or call a bot from this iPhone. Follow its progress, then open the conversation when your bot needs you.")).font(.footnote).foregroundStyle(Palette.secondary)if !allowed {Text(L10n.tr("Live Activities are turned off in iOS Settings."))diff --git a/apps/ios/Views/ComputersView.swift b/apps/ios/Views/ComputersView.swiftindex 042a0cdf..fb91e83d 100644--- a/apps/ios/Views/ComputersView.swift+++ b/apps/ios/Views/ComputersView.swift@@ -152,7 +152,6 @@ private struct ComputerRows: View {/// Set when this iPhone's access to the computer can be revoked.let revoke: (() -> Void)?let remove: () -> Void- @Environment(AppStore.self) private var app@Environment(AccountStore.self) private var accounts@State private var coloring = false@State private var voiceSettings = false@@ -174,10 +173,7 @@ private struct ComputerRows: View {.buttonStyle(.plain)}}- Toggle(isOn: Binding(get: { store.computer.notifications ?? true }, set: { app.setNotifications(store.computer.id, $0) })) {- RowLabel("Push notifications", systemImage: "bell")- }- .toggleStyle(.codync)+ ComputerNotificationsRow(store: store)connection// Kept while an update asked from here restarts the computer: its spinner says it's updating.if store.connection == .online || store.isUpdating, store.hello != nil {@@ -427,3 +423,51 @@ private extension ConnectionRoute {}}}++/// System permission gates the computer preference without changing its saved value.+private struct ComputerNotificationsRow: View {+ let store: BotStore+ @Environment(AppStore.self) private var app+ @Environment(\.scenePhase) private var scenePhase+ @State private var allowed: Bool?+ @State private var checked = false++ var body: some View {+ Group {+ if allowed == true {+ Toggle(isOn: Binding(get: { store.computer.notifications ?? true }, set: { app.setNotifications(store.computer.id, $0) })) {+ RowLabel("Push notifications", systemImage: "bell")+ }+ .toggleStyle(.codync)+ } else {+ Button {+ if allowed == false {+ UIApplication.shared.open(URL(string: UIApplication.openNotificationSettingsURLString)!)+ } else {+ Task {+ allowed = await PushRegistrar.shared.requestAuthorization(from: .settings)+ }+ }+ } label: {+ VStack(alignment: .leading, spacing: 4) {+ RowLabel("Push notifications", systemImage: "bell", chevron: true)+ Text(L10n.tr("Turn on notifications in Settings"))+ .font(.footnote).foregroundStyle(Palette.secondary)+ }+ }+ .buttonStyle(.plain)+ .disabled(!checked)+ }+ }+ .animation(Motion.layout, value: allowed)+ .task { await refresh() }+ .onChange(of: scenePhase) { _, phase in+ if phase == .active { Task { await refresh() } }+ }+ }++ private func refresh() async {+ allowed = await PushRegistrar.shared.isAllowed()+ checked = true+ }+}diff --git a/apps/ios/WhatsNew.md b/apps/ios/WhatsNew.mdindex 58386679..619e32e3 100644--- a/apps/ios/WhatsNew.md+++ b/apps/ios/WhatsNew.md@@ -9,9 +9,13 @@ a version without one gets a generic "Bug fixes and improvements" line. Delete o## 2.33.2### zh-Hant+- 即時動態與動態島的設定頁會說明兩者同步開啟或關閉。+- 電腦的推送通知設定會顯示系統權限狀態;未允許通知時,可直接前往開啟權限。- 語音輸入尚未設定 API key 時,會直接開啟語音設定。### en-US+- Live Activity and Dynamic Island settings explain that both turn on and off together.+- Computer push settings show when notification permission is missing and help you enable it.- Dictation opens voice settings when your provider API key is missing.## 2.33.1diff --git a/web/content/docs/conversations.mdx b/web/content/docs/conversations.mdxindex 64876a5e..3c716a45 100644--- a/web/content/docs/conversations.mdx+++ b/web/content/docs/conversations.mdx@@ -140,11 +140,13 @@ 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.+If system notification permission is off, **Push notifications** in **Manage computers** shows **Turn on notifications in Settings** instead of a switch. Tap it to allow notifications, or open iOS Settings if you previously denied permission. Returning to Codync refreshes the status in both Settings and Computer management. Your saved preference for that computer stays unchanged.+To turn notifications off on the iPhone, tap the connection status at the top of the Bots tab (such as **1 connected**), choose **Manage computers**, and switch off **Push notifications** on the computer whose alerts you don't want; each computer has its own switch. 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 Activities-When you send a message from the iPhone, a Live Activity for that bot appears on the Lock Screen and in the Dynamic Island. It shows whether the bot is working, needs you, is done or failed, without the message text. On the Lock Screen, a progress line of four segments in the state's color fills as the task moves: one while your message is sent or queued, two while the bot works, three when it needs you, four once it ends. A [voice call](/docs/voice#start-a-call) with the bot shows on its Live Activity too, with what the bot is doing while you talk. Turn it off in the **State** tab under **Live Activity**; that also keeps calls off it.+When you send a message from the iPhone, a Live Activity for that bot appears on the Lock Screen and in the Dynamic Island. It shows whether the bot is working, needs you, is done or failed, without the message text. On the Lock Screen, a progress line of four segments in the state's color fills as the task moves: one while your message is sent or queued, two while the bot works, three when it needs you, four once it ends. A [voice call](/docs/voice#start-a-call) with the bot shows on its Live Activity too, with what the bot is doing while you talk. Turn it off in the **State** tab under **Live Activity**; that also keeps calls off it. The **Live Activity** and **Dynamic Island** settings control the same switch: the Lock Screen and Dynamic Island turn on and off together.## Usage limits