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.

Prepare Coucou 0.1.8 and the iPhone app 1.0 (#222)

Louise4092eb4571b
diff --git a/CHANGELOG.md b/CHANGELOG.md
index c5306dea..23431cdc 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,5 +1,12 @@
# Changelog
+## 0.1.8 — October 5, 2026
+
+- Coucou on iPhone: turn on Settings → General → iPhone (off by default) and your agent sessions show up live in the Coucou iPhone app and its widgets, through your own private iCloud. Project names, commands and questions are encrypted with your iCloud keys; turning it off deletes them (#209, #211, #212, #213)
+- Allow or deny a permission from the iPhone: a notification with the command, Deny right from it, Allow behind Face ID. Your Mac only applies a decision meant for the exact request it is waiting on, and the request expires after 2 minutes. The iPhone keeps a history of your decisions (#220)
+- Lock your Mac while an agent works and Mochi moves to your iPhone's Lock Screen and Dynamic Island, then comes back to the notch when you unlock. Turn it on under Settings → General → iPhone. It goes through a small relay that only sees the agent's name and state (#221)
+- Mochi, the pills and the diff engine now live in a shared package used by both apps; nothing changes in the notch (#210)
+
## 0.1.7 — October 4, 2026
- Keyboard shortcuts from anywhere: ⌃⌥Space opens the chat, ⌃⌥A jumps to a waiting permission or question, ⌃⌥T brings your terminal forward, ⌃⌥] and ⌃⌥[ switch pills, ⌃⌥M mutes Mochi, ⌃⌥D sends him to the desktop and back, ⌃⌥G opens the wardrobe, and ⌃⌥W attaches the front window to the chat (GitHub build) (#205)
diff --git a/NotchBuddy/Resources/Info.plist b/NotchBuddy/Resources/Info.plist
index 9f804dea..1b70689b 100644
--- a/NotchBuddy/Resources/Info.plist
+++ b/NotchBuddy/Resources/Info.plist
@@ -17,9 +17,9 @@
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleShortVersionString</key>
- <string>0.1.7</string>
+ <string>0.1.8</string>
<key>CFBundleVersion</key>
- <string>8</string>
+ <string>9</string>
<key>LSUIElement</key>
<true/>
<key>NSAccessibilityUsageDescription</key>
diff --git a/NotchBuddy/Resources/InfoAppStore.plist b/NotchBuddy/Resources/InfoAppStore.plist
index f4808c73..c529d485 100644
--- a/NotchBuddy/Resources/InfoAppStore.plist
+++ b/NotchBuddy/Resources/InfoAppStore.plist
@@ -17,9 +17,9 @@
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleShortVersionString</key>
- <string>1.0</string>
+ <string>1.1</string>
<key>CFBundleVersion</key>
- <string>4</string>
+ <string>5</string>
<key>ITSAppUsesNonExemptEncryption</key>
<false/>
<key>LSApplicationCategoryType</key>
diff --git a/NotchBuddy/Resources/InfoPhone.plist b/NotchBuddy/Resources/InfoPhone.plist
index 791ce2d5..bd3eef79 100644
--- a/NotchBuddy/Resources/InfoPhone.plist
+++ b/NotchBuddy/Resources/InfoPhone.plist
@@ -17,9 +17,9 @@
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleShortVersionString</key>
- <string>0.1</string>
+ <string>1.0</string>
<key>CFBundleVersion</key>
- <string>1</string>
+ <string>2</string>
<key>CoucouAPNsEnvironment</key>
<string>$(COUCOU_APNS_ENV)</string>
<key>ITSAppUsesNonExemptEncryption</key>
diff --git a/NotchBuddy/Resources/InfoWidgets.plist b/NotchBuddy/Resources/InfoWidgets.plist
index a3ae7e9e..f9cd951a 100644
--- a/NotchBuddy/Resources/InfoWidgets.plist
+++ b/NotchBuddy/Resources/InfoWidgets.plist
@@ -17,9 +17,9 @@
<key>CFBundlePackageType</key>
<string>XPC!</string>
<key>CFBundleShortVersionString</key>
- <string>0.1</string>
+ <string>1.0</string>
<key>CFBundleVersion</key>
- <string>1</string>
+ <string>2</string>
<key>NSExtension</key>
<dict>
<key>NSExtensionPointIdentifier</key>
diff --git a/NotchBuddy/Sources/App/PhoneLink/LiveActivityRelay.swift b/NotchBuddy/Sources/App/PhoneLink/LiveActivityRelay.swift
index 5969f3bd..65c15558 100644
--- a/NotchBuddy/Sources/App/PhoneLink/LiveActivityRelay.swift
+++ b/NotchBuddy/Sources/App/PhoneLink/LiveActivityRelay.swift
@@ -158,10 +158,17 @@ final class LiveActivityRelay {
log("no iPhone token yet: open Coucou on the iPhone once, with Live Activities allowed")
return
}
+ var reached = 0
for (id, phone) in targets {
- await post(event: "start", token: phone.startToken, env: phone.env, state: state, phoneID: id)
+ if await post(event: "start", token: phone.startToken, env: phone.env, state: state, phoneID: id) {
+ reached += 1
+ }
+ }
+ if reached > 0 {
+ log("Mochi left for the iPhone (\(state.agent), \(state.statusText))")
+ } else {
+ log("Mochi couldn't reach the iPhone (see the relay line above)")
}
- log("Mochi left for the iPhone (\(state.agent), \(state.statusText))")
}
}
@@ -236,13 +243,15 @@ final class LiveActivityRelay {
return fresh()
}
+ /// Sends one push through the relay. Returns true when Apple accepted it.
+ @discardableResult
private func post(event: String, token: String, env: String, state: MochiActivityState,
- urgent: Bool = false, dismissAfter: Int? = nil, phoneID: String) async {
- guard let url = relayURL else { return }
+ urgent: Bool = false, dismissAfter: Int? = nil, phoneID: String) async -> Bool {
+ guard let url = relayURL else { return false }
var body: [String: Any] = ["token": token, "env": env, "event": event, "urgent": urgent]
if let dismissAfter { body["dismissAfter"] = dismissAfter }
guard let stateData = try? JSONEncoder().encode(state),
- let stateObject = try? JSONSerialization.jsonObject(with: stateData) else { return }
+ let stateObject = try? JSONSerialization.jsonObject(with: stateData) else { return false }
body["state"] = stateObject
var request = URLRequest(url: url, timeoutInterval: 10)
request.httpMethod = "POST"
@@ -251,15 +260,29 @@ final class LiveActivityRelay {
do {
let (data, response) = try await URLSession.shared.data(for: request)
let status = (response as? HTTPURLResponse)?.statusCode ?? 0
- if status == 200 { return }
+ if status == 200 { return true }
+ let reason = String(data: data, encoding: .utf8) ?? ""
+ if reason.contains("BadDeviceToken") {
+ // A token only works on one of Apple's two push servers (sandbox for
+ // builds run from Xcode, production for TestFlight and the App Store).
+ // Try the other one once and keep it if it works.
+ let other = env == "production" ? "development" : "production"
+ if phones[phoneID]?.env == env {
+ phones[phoneID]?.env = other
+ log("relay \(event): token not valid on \(env), trying \(other)")
+ return await post(event: event, token: token, env: other, state: state,
+ urgent: urgent, dismissAfter: dismissAfter, phoneID: phoneID)
+ }
+ }
if status == 410 {
// That token is gone (activity ended on the iPhone, app deleted…).
if event == "start" { phones[phoneID]?.startToken = "" } else { phones[phoneID]?.updateToken = "" }
}
- log("relay \(event) → \(status) \(String(data: data, encoding: .utf8)?.prefix(120) ?? "")")
+ log("relay \(event) on \(env) → \(status) \(reason.prefix(120))")
} catch {
log("relay \(event) failed: \(error.localizedDescription)")
}
+ return false
}
// MARK: Tokens
diff --git a/NotchBuddy/Sources/Phone/HomeView.swift b/NotchBuddy/Sources/Phone/HomeView.swift
index bfd8aec9..3bc2ce15 100644
--- a/NotchBuddy/Sources/Phone/HomeView.swift
+++ b/NotchBuddy/Sources/Phone/HomeView.swift
@@ -51,7 +51,8 @@ struct HomeView: View {
Image(systemName: "clock.arrow.circlepath")
}
}
- // Step 1-3 test screens (the link test has its own "Kit" button).
+ #if DEBUG
+ // Test screens, in builds run from Xcode only (the link test has its own "Kit" button).
ToolbarItem(placement: .topBarTrailing) {
NavigationLink {
LinkTestView(link: link)
@@ -59,6 +60,7 @@ struct HomeView: View {
Image(systemName: "stethoscope")
}
}
+ #endif
}
}
}
diff --git a/NotchBuddy/project.yml b/NotchBuddy/project.yml
index 4c6fcee0..722782d6 100644
--- a/NotchBuddy/project.yml
+++ b/NotchBuddy/project.yml
@@ -124,8 +124,8 @@ targets:
CFBundleName: Coucou
CFBundleDisplayName: Coucou
CFBundleIdentifier: fr.louisraille.NotchBuddy
- CFBundleVersion: "8"
- CFBundleShortVersionString: "0.1.7"
+ CFBundleVersion: "9"
+ CFBundleShortVersionString: "0.1.8"
CFBundlePackageType: APPL
LSUIElement: YES
NSHighResolutionCapable: YES
@@ -177,8 +177,8 @@ targets:
CFBundleName: Coucou
CFBundleDisplayName: Coucou
CFBundleIdentifier: fr.louisraille.Coucou
- CFBundleVersion: "4"
- CFBundleShortVersionString: "1.0"
+ CFBundleVersion: "5"
+ CFBundleShortVersionString: "1.1"
CFBundlePackageType: APPL
LSUIElement: YES
NSHighResolutionCapable: YES
@@ -231,8 +231,8 @@ targets:
CFBundleName: Coucou
CFBundleDisplayName: Coucou
CFBundleIdentifier: fr.louisraille.Coucou
- CFBundleVersion: "1"
- CFBundleShortVersionString: "0.1"
+ CFBundleVersion: "2"
+ CFBundleShortVersionString: "1.0"
CFBundlePackageType: APPL
LSRequiresIPhoneOS: YES
UILaunchScreen: {}
@@ -291,8 +291,8 @@ targets:
CFBundleName: CoucouWidgets
CFBundleDisplayName: Coucou
CFBundleIdentifier: fr.louisraille.Coucou.Widgets
- CFBundleVersion: "1"
- CFBundleShortVersionString: "0.1"
+ CFBundleVersion: "2"
+ CFBundleShortVersionString: "1.0"
CFBundlePackageType: XPC!
NSExtension:
NSExtensionPointIdentifier: com.apple.widgetkit-extension
diff --git a/README.md b/README.md
index c2cfc02c..abf6f8cd 100644
--- a/README.md
+++ b/README.md
@@ -69,6 +69,7 @@ macOS releases are published as `v*` tags. See [CHANGELOG.md](CHANGELOG.md) for
| Version | Date | Highlights |
|---------|------|------------|
+| [0.1.8](https://github.com/Louis-CFM/coucou/releases/tag/v0.1.8) | Oct 5, 2026 | Coucou on iPhone: sessions, widgets, approvals with Face ID, Mochi in the Dynamic Island |
| [0.1.7](https://github.com/Louis-CFM/coucou/releases/tag/v0.1.7) | Oct 4, 2026 | Keyboard shortcuts |
| [0.1.6](https://github.com/Louis-CFM/coucou/releases/tag/v0.1.6) | Oct 4, 2026 | Mochi on the desktop |
| [0.1.5](https://github.com/Louis-CFM/coucou/releases/tag/v0.1.5) | Oct 4, 2026 | Wardrobe and seasonal outfits, new launch greeting |