Skip to content

A tiny friend in your Mac's notch and on your iPhone that keeps an eye on your AI coding agents: Claude Code, Codex, Cursor, Gemini CLI, Antigravity and more. Approve from the notch or your Lock Screen.

Claude Desktop: Mochi jumps when a regular chat reply is ready

Claude81154c8d2b58
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index b451e949..3c454d63 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -45,6 +45,9 @@ jobs:
- name: Test WhatsApp (gateway payloads, signatures, inbox, filters)
run: bash scripts/test-whatsapp.sh
+ - name: Test Claude Desktop chat (stop button labels)
+ run: bash scripts/test-claude-desktop-chat.sh
+
- name: Desktop Mochi and gaze tests
run: bash scripts/test-desktop-mochi.sh
diff --git a/NotchBuddy/Resources/Localizable.xcstrings b/NotchBuddy/Resources/Localizable.xcstrings
index 7fb593a5..ab7aebca 100644
--- a/NotchBuddy/Resources/Localizable.xcstrings
+++ b/NotchBuddy/Resources/Localizable.xcstrings
@@ -1,6 +1,331 @@
{
"sourceLanguage" : "en",
"strings" : {
+ "claude-desktop.chat.footer" : {
+ "extractionState" : "manual",
+ "localizations" : {
+ "ar" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "للدردشات العادية في تطبيق Claude التي لا تملك hook. عندما تغادر Claude أثناء الكتابة، يتحقق Coucou كل ثانية عبر تسهيلات الاستخدام من بقاء زر الإيقاف. لا يُقرأ أي شيء من الدردشة."
+ }
+ },
+ "bn" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Claude অ্যাপের সাধারণ চ্যাটের জন্য, যেগুলোতে কোনো হুক নেই। Claude লেখার সময় আপনি সরে গেলে, Coucou প্রতি সেকেন্ডে Accessibility দিয়ে দেখে তার Stop বোতাম এখনও আছে কি না। চ্যাটের কিছুই পড়া হয় না।"
+ }
+ },
+ "en" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "For regular chats in the Claude app, which run no hook. When you leave Claude while it is writing, Coucou checks once a second, through Accessibility, whether its Stop button is still there. Nothing of the chat is read."
+ }
+ },
+ "es" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Para los chats normales de la app Claude, que no tienen hook. Cuando sales de Claude mientras escribe, Coucou comprueba cada segundo, mediante Accesibilidad, si su botón Detener sigue ahí. No se lee nada del chat."
+ }
+ },
+ "fr" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Pour les chats classiques de l’app Claude, qui n’ont pas de hook. Quand tu quittes Claude pendant qu’il écrit, Coucou vérifie chaque seconde, via l’Accessibilité, si son bouton Stop est encore là. Rien du chat n’est lu."
+ }
+ },
+ "hi" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Claude ऐप की सामान्य चैट के लिए, जिनमें कोई हुक नहीं होता। Claude के लिखते समय आप उसे छोड़ें, तो Coucou हर सेकंड Accessibility से देखता है कि उसका Stop बटन अब भी है या नहीं। चैट का कुछ भी नहीं पढ़ा जाता।"
+ }
+ },
+ "id" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Untuk chat biasa di aplikasi Claude, yang tidak punya hook. Saat kamu meninggalkan Claude ketika ia sedang menulis, Coucou memeriksa setiap detik lewat Aksesibilitas apakah tombol Stop-nya masih ada. Isi chat tidak dibaca."
+ }
+ },
+ "pt-BR" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Para os chats comuns do app Claude, que não têm hook. Quando você sai do Claude enquanto ele escreve, o Coucou verifica a cada segundo, pela Acessibilidade, se o botão Parar ainda está lá. Nada do chat é lido."
+ }
+ },
+ "ru" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Для обычных чатов в приложении Claude, где нет хуков. Когда вы уходите из Claude, пока он пишет, Coucou раз в секунду через Универсальный доступ проверяет, есть ли ещё кнопка «Стоп». Содержимое чата не читается."
+ }
+ },
+ "zh-Hans" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "适用于 Claude 应用中的普通聊天(没有 hook)。当 Claude 正在输出时你离开它,Coucou 会每秒通过辅助功能检查“停止”按钮是否还在。不会读取任何聊天内容。"
+ }
+ }
+ }
+ },
+ "claude-desktop.chat.needs-accessibility" : {
+ "extractionState" : "manual",
+ "localizations" : {
+ "ar" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "اسمح لـ Coucou في إعدادات النظام › الخصوصية والأمن › تسهيلات الاستخدام."
+ }
+ },
+ "bn" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "System Settings › Privacy & Security › Accessibility-এ Coucou-কে অনুমতি দিন।"
+ }
+ },
+ "en" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Allow Coucou in System Settings › Privacy & Security › Accessibility."
+ }
+ },
+ "es" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Permite Coucou en Ajustes del Sistema › Privacidad y seguridad › Accesibilidad."
+ }
+ },
+ "fr" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Autorise Coucou dans Réglages Système › Confidentialité et sécurité › Accessibilité."
+ }
+ },
+ "hi" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "System Settings › Privacy & Security › Accessibility में Coucou को अनुमति दें।"
+ }
+ },
+ "id" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Izinkan Coucou di Pengaturan Sistem › Privasi & Keamanan › Aksesibilitas."
+ }
+ },
+ "pt-BR" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Permita o Coucou em Ajustes do Sistema › Privacidade e Segurança › Acessibilidade."
+ }
+ },
+ "ru" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Разрешите Coucou в Системных настройках › Конфиденциальность и безопасность › Универсальный доступ."
+ }
+ },
+ "zh-Hans" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "请在“系统设置 › 隐私与安全性 › 辅助功能”中允许 Coucou。"
+ }
+ }
+ }
+ },
+ "claude-desktop.chat.title" : {
+ "extractionState" : "manual",
+ "localizations" : {
+ "ar" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "دردشات Claude Desktop (تجريبي)"
+ }
+ },
+ "bn" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Claude Desktop চ্যাট (পরীক্ষামূলক)"
+ }
+ },
+ "en" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Claude Desktop chats (experimental)"
+ }
+ },
+ "es" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Chats de Claude Desktop (experimental)"
+ }
+ },
+ "fr" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Chats Claude Desktop (expérimental)"
+ }
+ },
+ "hi" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Claude Desktop चैट (प्रायोगिक)"
+ }
+ },
+ "id" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Chat Claude Desktop (eksperimental)"
+ }
+ },
+ "pt-BR" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Chats do Claude Desktop (experimental)"
+ }
+ },
+ "ru" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Чаты Claude Desktop (экспериментально)"
+ }
+ },
+ "zh-Hans" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Claude Desktop 聊天(实验性)"
+ }
+ }
+ }
+ },
+ "claude-desktop.chat.toggle" : {
+ "extractionState" : "manual",
+ "localizations" : {
+ "ar" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "يقفز Mochi عندما يجهز رد الدردشة"
+ }
+ },
+ "bn" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "চ্যাটের উত্তর প্রস্তুত হলে Mochi লাফায়"
+ }
+ },
+ "en" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Mochi jumps when a chat reply is ready"
+ }
+ },
+ "es" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Mochi salta cuando una respuesta del chat está lista"
+ }
+ },
+ "fr" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Mochi saute quand une réponse de chat est prête"
+ }
+ },
+ "hi" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "चैट का जवाब तैयार होने पर Mochi उछलता है"
+ }
+ },
+ "id" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Mochi melompat saat balasan chat siap"
+ }
+ },
+ "pt-BR" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "O Mochi pula quando uma resposta do chat fica pronta"
+ }
+ },
+ "ru" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Mochi подпрыгивает, когда ответ в чате готов"
+ }
+ },
+ "zh-Hans" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "聊天回复完成时 Mochi 会跳起来"
+ }
+ }
+ }
+ },
+ "claude-desktop.reply-ready" : {
+ "extractionState" : "manual",
+ "localizations" : {
+ "ar" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "الرد جاهز"
+ }
+ },
+ "bn" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "উত্তর প্রস্তুত"
+ }
+ },
+ "en" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Reply ready"
+ }
+ },
+ "es" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Respuesta lista"
+ }
+ },
+ "fr" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Réponse prête"
+ }
+ },
+ "hi" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "जवाब तैयार"
+ }
+ },
+ "id" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Balasan siap"
+ }
+ },
+ "pt-BR" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Resposta pronta"
+ }
+ },
+ "ru" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "Ответ готов"
+ }
+ },
+ "zh-Hans" : {
+ "stringUnit" : {
+ "state" : "translated",
+ "value" : "回复已完成"
+ }
+ }
+ }
+ },
"whatsapp.advanced" : {
"extractionState" : "manual",
"localizations" : {
diff --git a/NotchBuddy/Sources/App/AppDelegate.swift b/NotchBuddy/Sources/App/AppDelegate.swift
index cb34d554..684c6708 100644
--- a/NotchBuddy/Sources/App/AppDelegate.swift
+++ b/NotchBuddy/Sources/App/AppDelegate.swift
@@ -295,6 +295,7 @@ final class AppDelegate: NSObject, NSApplicationDelegate {
_ = SpotifyController.shared
MailController.shared.start()
WhatsAppController.shared.start()
+ ClaudeDesktopChatWatcher.shared.start()
#endif
CryptoController.shared.start()
PortfolioController.shared.start()
diff --git a/NotchBuddy/Sources/App/ClaudeDesktopChat.swift b/NotchBuddy/Sources/App/ClaudeDesktopChat.swift
new file mode 100644
index 00000000..600a99ce
--- /dev/null
+++ b/NotchBuddy/Sources/App/ClaudeDesktopChat.swift
@@ -0,0 +1,28 @@
+import Foundation
+
+// Which button tells that Claude Desktop is still writing a reply (tests/ClaudeDesktopChatTests.swift).
+// Its accessibility label is "Stop response" in English; the other languages Claude's app
+// speaks are matched by their usual wording. Best effort: the app may rename it.
+enum ClaudeDesktopChat {
+ static let stopLabels: Set<String> = [
+ "stop response", "stop generating",
+ "arrêter la réponse", "arrêter la génération",
+ "detener respuesta", "detener la respuesta",
+ "parar resposta", "parar a resposta", "interromper resposta",
+ "antwort stoppen", "antwort anhalten",
+ "interrompi risposta", "interrompi la risposta",
+ "hentikan respons", "hentikan tanggapan",
+ "応答を停止", "回答を停止", "응답 중지", "停止响应", "停止回答", "停止回應",
+ ]
+
+ static func isStopLabel(_ labels: [String?]) -> Bool {
+ labels.contains { label in
+ guard let raw = label else { return false }
+ let l = raw.trimmingCharacters(in: .whitespacesAndNewlines).lowercased()
+ if l.isEmpty { return false }
+ if stopLabels.contains(l) { return true }
+ // "Stop the response", "Stop responding": a stop that is about the reply.
+ return l.contains("stop") && l.contains("respon")
+ }
+ }
+}
diff --git a/NotchBuddy/Sources/App/ClaudeDesktopChatWatcher.swift b/NotchBuddy/Sources/App/ClaudeDesktopChatWatcher.swift
new file mode 100644
index 00000000..79b9a5c6
--- /dev/null
+++ b/NotchBuddy/Sources/App/ClaudeDesktopChatWatcher.swift
@@ -0,0 +1,164 @@
+#if !APPSTORE
+import AppKit
+import ApplicationServices
+import SwiftUI
+
+// A regular Claude Desktop chat (not a Code session) runs no hook, so Coucou never hears that a
+// reply is done (#686). This watcher fills the gap, experimental and off by default: when you
+// leave the Claude app while it is still writing (its "Stop response" button is on screen),
+// Coucou looks once a second, through the Accessibility API, for that button to go away. Then
+// Mochi jumps and the Claude Desktop pill says the reply is ready. Nothing runs while Claude is
+// in front, while it isn't writing, or when the setting is off; no text of the chat is read,
+// only whether the stop button is there.
+
+@MainActor
+final class ClaudeDesktopChatWatcher {
+ static let shared = ClaudeDesktopChatWatcher()
+ static let bundleId = "com.anthropic.claudefordesktop"
+ static let pillId = "agent_claude-desktop"
+
+ static var enabled: Bool {
+ get { UserDefaults.standard.bool(forKey: "claudeDesktopChatWatch") }
+ set {
+ UserDefaults.standard.set(newValue, forKey: "claudeDesktopChatWatch")
+ if !newValue { shared.stopPolling() }
+ }
+ }
+
+ private var observers: [NSObjectProtocol] = []
+ private var timer: Timer?
+ private var polls = 0
+ /// A reply longer than this (in polls of one second) is given up on: no endless polling.
+ private let maxPolls = 1_800
+
+ func start() {
+ guard observers.isEmpty else { return }
+ let center = NSWorkspace.shared.notificationCenter
+ observers.append(center.addObserver(forName: NSWorkspace.didDeactivateApplicationNotification,
+ object: nil, queue: .main) { note in
+ let app = note.userInfo?[NSWorkspace.applicationUserInfoKey] as? NSRunningApplication
+ let pid = app?.processIdentifier
+ guard app?.bundleIdentifier == Self.bundleId, let pid else { return }
+ MainActor.assumeIsolated { ClaudeDesktopChatWatcher.shared.claudeLeft(pid: pid) }
+ })
+ observers.append(center.addObserver(forName: NSWorkspace.didActivateApplicationNotification,
+ object: nil, queue: .main) { note in
+ let app = note.userInfo?[NSWorkspace.applicationUserInfoKey] as? NSRunningApplication
+ guard app?.bundleIdentifier == Self.bundleId else { return }
+ // You're back in Claude: you see the reply yourself.
+ MainActor.assumeIsolated { ClaudeDesktopChatWatcher.shared.stopPolling() }
+ })
+ }
+
+ private func claudeLeft(pid: pid_t) {
+ guard Self.enabled, AXIsProcessTrusted(), timer == nil else { return }
+ let app = AXUIElementCreateApplication(pid)
+ // Electron builds its accessibility tree only when asked.
+ _ = AXUIElementSetAttributeValue(app, "AXManualAccessibility" as CFString, kCFBooleanTrue)
+ guard Self.isWriting(app) else { return }
+ polls = 0
+ appendAppLog("nb.log", "[ClaudeDesktop] reply in progress, watching")
+ let t = Timer(timeInterval: 1, repeats: true) { _ in
+ MainActor.assumeIsolated { ClaudeDesktopChatWatcher.shared.poll(pid: pid) }
+ }
+ t.tolerance = 0.3
+ RunLoop.main.add(t, forMode: .common)
+ timer = t
+ }
+
+ private func poll(pid: pid_t) {
+ polls += 1
+ guard Self.enabled, polls < maxPolls,
+ NSRunningApplication(processIdentifier: pid)?.isTerminated == false else { stopPolling(); return }
+ let app = AXUIElementCreateApplication(pid)
+ guard !Self.isWriting(app) else { return }
+ stopPolling()
+ replyFinished()
+ }
+
+ func stopPolling() {
+ timer?.invalidate()
+ timer = nil
+ }
+
+ private func replyFinished() {
+ appendAppLog("nb.log", "[ClaudeDesktop] reply finished")
+ let state = AppState.shared
+ NotificationCenter.default.post(name: .triggerEmote, object: BotEmote.happy)
+ if state.soundEnabled { SoundEngine.shared.play("finish") }
+ if let idx = state.tasks.firstIndex(where: { $0.id == Self.pillId }) {
+ state.tasks[idx].pillBadge = .finished
+ state.tasks[idx].steps = [String(localized: "claude-desktop.reply-ready")]
+ }
+ }
+
+ // MARK: - The stop button
+
+ /// Claude is writing while its stop button is on screen. Breadth-first through the windows,
+ /// capped, reading only roles and button labels.
+ nonisolated static func isWriting(_ app: AXUIElement) -> Bool {
+ var queue: [AXUIElement] = children(of: app, attribute: kAXWindowsAttribute)
+ var visited = 0
+ while !queue.isEmpty, visited < 6_000 {
+ let element = queue.removeFirst()
+ visited += 1
+ if string(element, kAXRoleAttribute) == (kAXButtonRole as String),
+ ClaudeDesktopChat.isStopLabel([string(element, kAXDescriptionAttribute),
+ string(element, kAXTitleAttribute),
+ string(element, kAXHelpAttribute)]) {
+ return true
+ }
+ queue.append(contentsOf: children(of: element, attribute: kAXChildrenAttribute))
+ }
+ return false
+ }
+
+ nonisolated private static func children(of element: AXUIElement, attribute: String) -> [AXUIElement] {
+ var value: CFTypeRef?
+ guard AXUIElementCopyAttributeValue(element, attribute as CFString, &value) == .success,
+ let list = value as? [AXUIElement] else { return [] }
+ return list
+ }
+
+ nonisolated private static func string(_ element: AXUIElement, _ attribute: String) -> String? {
+ var value: CFTypeRef?
+ guard AXUIElementCopyAttributeValue(element, attribute as CFString, &value) == .success else { return nil }
+ return value as? String
+ }
+}
+#endif
+
+#if !APPSTORE
+/// Settings → Agents → Claude Desktop chats.
+struct ClaudeDesktopChatSettingsSection: View {
+ @State private var on = ClaudeDesktopChatWatcher.enabled
+ @State private var trusted = AXIsProcessTrusted()
+
+ var body: some View {
+ GroupBox(String(localized: "claude-desktop.chat.title")) {
+ VStack(alignment: .leading, spacing: 10) {
+ Toggle(String(localized: "claude-desktop.chat.toggle"), isOn: $on)
+ .onChange(of: on) { _, v in
+ ClaudeDesktopChatWatcher.enabled = v
+ if v && !AXIsProcessTrusted() {
+ let options = ["AXTrustedCheckOptionPrompt": true] as CFDictionary
+ trusted = AXIsProcessTrustedWithOptions(options)
+ }
+ }
+ Text(String(localized: "claude-desktop.chat.footer"))
+ .font(.system(size: 11))
+ .foregroundColor(.secondary)
+ .fixedSize(horizontal: false, vertical: true)
+ if on && !trusted {
+ Text(String(localized: "claude-desktop.chat.needs-accessibility"))
+ .font(.system(size: 11))
+ .foregroundColor(.orange)
+ .fixedSize(horizontal: false, vertical: true)
+ }
+ }
+ .padding(6)
+ }
+ .onAppear { trusted = AXIsProcessTrusted() }
+ }
+}
+#endif
diff --git a/NotchBuddy/Sources/App/SettingsView.swift b/NotchBuddy/Sources/App/SettingsView.swift
index a08fc6f2..eac53b79 100644
--- a/NotchBuddy/Sources/App/SettingsView.swift
+++ b/NotchBuddy/Sources/App/SettingsView.swift
@@ -641,6 +641,8 @@ struct SettingsView: View {
}
#if !APPSTORE
+ ClaudeDesktopChatSettingsSection()
+
GroupBox(String(localized: "hooks.gemini.title")) {
VStack(alignment: .leading, spacing: 10) {
Text(geminiHooksInstalled
diff --git a/scripts/test-claude-desktop-chat.sh b/scripts/test-claude-desktop-chat.sh
new file mode 100755
index 00000000..870efeb9
--- /dev/null
+++ b/scripts/test-claude-desktop-chat.sh
@@ -0,0 +1,7 @@
+#!/usr/bin/env bash
+set -euo pipefail
+cd "$(dirname "$0")/.."
+TEST_DIR="$(mktemp -d "${TMPDIR:-/tmp}/coucou-claude-desktop.XXXXXX")"
+trap 'rm -rf "$TEST_DIR"' EXIT
+swiftc NotchBuddy/Sources/App/ClaudeDesktopChat.swift tests/ClaudeDesktopChatTests.swift -o "$TEST_DIR/claude-desktop-tests"
+"$TEST_DIR/claude-desktop-tests"
diff --git a/tests/ClaudeDesktopChatTests.swift b/tests/ClaudeDesktopChatTests.swift
new file mode 100644
index 00000000..200849bf
--- /dev/null
+++ b/tests/ClaudeDesktopChatTests.swift
@@ -0,0 +1,25 @@
+import Foundation
+
+@main
+enum ClaudeDesktopChatTests {
+ static var failures = 0
+ static func check(_ label: String, _ got: Bool) {
+ if got { print(" ✓ \(label)") } else { print(" ✗ \(label)"); failures += 1 }
+ }
+
+ static func main() {
+ print("\nClaude Desktop: the stop button")
+ check("Stop response", ClaudeDesktopChat.isStopLabel(["Stop response"]))
+ check("in the title, not the description", ClaudeDesktopChat.isStopLabel([nil, "Stop response", nil]))
+ check("spaces and case", ClaudeDesktopChat.isStopLabel([" STOP RESPONSE "]))
+ check("French", ClaudeDesktopChat.isStopLabel(["Arrêter la réponse"]))
+ check("Japanese", ClaudeDesktopChat.isStopLabel(["応答を停止"]))
+ check("Stop responding", ClaudeDesktopChat.isStopLabel(["Stop responding"]))
+ check("not the send button", !ClaudeDesktopChat.isStopLabel(["Send message"]))
+ check("not stop recording", !ClaudeDesktopChat.isStopLabel(["Stop recording"]))
+ check("not a lone Stop", !ClaudeDesktopChat.isStopLabel(["Stop"]))
+ check("nothing", !ClaudeDesktopChat.isStopLabel([nil, "", nil]))
+ if failures > 0 { print("\n\(failures) failure(s)"); exit(1) }
+ print("\nAll Claude Desktop chat tests passed")
+ }
+}
diff --git a/windows/src/i18n/strings.json b/windows/src/i18n/strings.json
index a20602c8..3097db6e 100644
--- a/windows/src/i18n/strings.json
+++ b/windows/src/i18n/strings.json
@@ -343,6 +343,17 @@
"ru": "Разрешить",
"id": "Izinkan"
},
+ "Allow Coucou in System Settings › Privacy & Security › Accessibility.": {
+ "zh-Hans": "请在“系统设置 › 隐私与安全性 › 辅助功能”中允许 Coucou。",
+ "hi": "System Settings › Privacy & Security › Accessibility में Coucou को अनुमति दें।",
+ "es": "Permite Coucou en Ajustes del Sistema › Privacidad y seguridad › Accesibilidad.",
+ "ar": "اسمح لـ Coucou في إعدادات النظام › الخصوصية والأمن › تسهيلات الاستخدام.",
+ "fr": "Autorise Coucou dans Réglages Système › Confidentialité et sécurité › Accessibilité.",
+ "bn": "System Settings › Privacy & Security › Accessibility-এ Coucou-কে অনুমতি দিন।",
+ "pt-BR": "Permita o Coucou em Ajustes do Sistema › Privacidade e Segurança › Acessibilidade.",
+ "ru": "Разрешите Coucou в Системных настройках › Конфиденциальность и безопасность › Универсальный доступ.",
+ "id": "Izinkan Coucou di Pengaturan Sistem › Privasi & Keamanan › Aksesibilitas."
+ },
"Allow Coucou in System Settings → Privacy & Security → Screen Recording, then capture again.": {
"zh-Hans": "请在“系统设置 → 隐私与安全性 → 录屏”中允许 Coucou,然后再截一次。",
"hi": "System Settings → Privacy & Security → Screen Recording में Coucou को अनुमति दें, फिर दोबारा कैप्चर करें।",
@@ -959,6 +970,17 @@
"ru": "Claude Code, Codex и другие агенты, за которыми следит Мочи.",
"id": "Claude Code, Codex, dan agen lain yang diikuti Mochi."
},
+ "Claude Desktop chats (experimental)": {
+ "zh-Hans": "Claude Desktop 聊天(实验性)",
+ "hi": "Claude Desktop चैट (प्रायोगिक)",
+ "es": "Chats de Claude Desktop (experimental)",
+ "ar": "دردشات Claude Desktop (تجريبي)",
+ "fr": "Chats Claude Desktop (expérimental)",
+ "bn": "Claude Desktop চ্যাট (পরীক্ষামূলক)",
+ "pt-BR": "Chats do Claude Desktop (experimental)",
+ "ru": "Чаты Claude Desktop (экспериментально)",
+ "id": "Chat Claude Desktop (eksperimental)"
+ },
"Claude as Coucou's brain": {
"zh-Hans": "由 Claude 担任 Coucou 的大脑",
"hi": "Coucou का दिमाग: Claude",
@@ -2125,6 +2147,17 @@
"ru": "Для более естественного голоса скачай голос Premium: Системные настройки → Универсальный доступ → Устная речь → Системный голос → Управлять голосами. По-английски: Ava — женский, Jamie — мужской (британский).",
"id": "Untuk suara yang lebih alami, unduh suara Premium: Pengaturan Sistem → Aksesibilitas → Konten Lisan → Suara Sistem → Kelola Suara. Bahasa Inggris: Ava untuk wanita, Jamie untuk pria (Inggris)."
},
+ "For regular chats in the Claude app, which run no hook. When you leave Claude while it is writing, Coucou checks once a second, through Accessibility, whether its Stop button is still there. Nothing of the chat is read.": {
+ "zh-Hans": "适用于 Claude 应用中的普通聊天(没有 hook)。当 Claude 正在输出时你离开它,Coucou 会每秒通过辅助功能检查“停止”按钮是否还在。不会读取任何聊天内容。",
+ "hi": "Claude ऐप की सामान्य चैट के लिए, जिनमें कोई हुक नहीं होता। Claude के लिखते समय आप उसे छोड़ें, तो Coucou हर सेकंड Accessibility से देखता है कि उसका Stop बटन अब भी है या नहीं। चैट का कुछ भी नहीं पढ़ा जाता।",
+ "es": "Para los chats normales de la app Claude, que no tienen hook. Cuando sales de Claude mientras escribe, Coucou comprueba cada segundo, mediante Accesibilidad, si su botón Detener sigue ahí. No se lee nada del chat.",
+ "ar": "للدردشات العادية في تطبيق Claude التي لا تملك hook. عندما تغادر Claude أثناء الكتابة، يتحقق Coucou كل ثانية عبر تسهيلات الاستخدام من بقاء زر الإيقاف. لا يُقرأ أي شيء من الدردشة.",
+ "fr": "Pour les chats classiques de l’app Claude, qui n’ont pas de hook. Quand tu quittes Claude pendant qu’il écrit, Coucou vérifie chaque seconde, via l’Accessibilité, si son bouton Stop est encore là. Rien du chat n’est lu.",
+ "bn": "Claude অ্যাপের সাধারণ চ্যাটের জন্য, যেগুলোতে কোনো হুক নেই। Claude লেখার সময় আপনি সরে গেলে, Coucou প্রতি সেকেন্ডে Accessibility দিয়ে দেখে তার Stop বোতাম এখনও আছে কি না। চ্যাটের কিছুই পড়া হয় না।",
+ "pt-BR": "Para os chats comuns do app Claude, que não têm hook. Quando você sai do Claude enquanto ele escreve, o Coucou verifica a cada segundo, pela Acessibilidade, se o botão Parar ainda está lá. Nada do chat é lido.",
+ "ru": "Для обычных чатов в приложении Claude, где нет хуков. Когда вы уходите из Claude, пока он пишет, Coucou раз в секунду через Универсальный доступ проверяет, есть ли ещё кнопка «Стоп». Содержимое чата не читается.",
+ "id": "Untuk chat biasa di aplikasi Claude, yang tidak punya hook. Saat kamu meninggalkan Claude ketika ia sedang menulis, Coucou memeriksa setiap detik lewat Aksesibilitas apakah tombol Stop-nya masih ada. Isi chat tidak dibaca."
+ },
"Forever": {
"zh-Hans": "永久",
"hi": "हमेशा",
@@ -3247,6 +3280,17 @@
"ru": "Мочи и ваш Mac",
"id": "Mochi dan Mac-mu"
},
+ "Mochi jumps when a chat reply is ready": {
+ "zh-Hans": "聊天回复完成时 Mochi 会跳起来",
+ "hi": "चैट का जवाब तैयार होने पर Mochi उछलता है",
+ "es": "Mochi salta cuando una respuesta del chat está lista",
+ "ar": "يقفز Mochi عندما يجهز رد الدردشة",
+ "fr": "Mochi saute quand une réponse de chat est prête",
+ "bn": "চ্যাটের উত্তর প্রস্তুত হলে Mochi লাফায়",
+ "pt-BR": "O Mochi pula quando uma resposta do chat fica pronta",
+ "ru": "Mochi подпрыгивает, когда ответ в чате готов",
+ "id": "Mochi melompat saat balasan chat siap"
+ },
"Mochi reacts to your Mac": {
"zh-Hans": "Mochi 会对你的 Mac 做出反应",
"hi": "मोची आपके Mac पर प्रतिक्रिया देता है",
@@ -5007,6 +5051,17 @@
"ru": "Ответить в терминале",
"id": "Balas di terminal"
},
+ "Reply ready": {
+ "zh-Hans": "回复已完成",
+ "hi": "जवाब तैयार",
+ "es": "Respuesta lista",
+ "ar": "الرد جاهز",
+ "fr": "Réponse prête",
+ "bn": "উত্তর প্রস্তুত",
+ "pt-BR": "Resposta pronta",
+ "ru": "Ответ готов",
+ "id": "Balasan siap"
+ },
"Reply… (⇧↩ new line)": {
"zh-Hans": "回复…(⇧↩ 换行)",
"hi": "जवाब दें… (⇧↩ नई लाइन)",