Commit Graph
6 Commits
Author SHA1 Message Date
Claude b053ad5aa0 Botan: the iPhone app becomes its own app, fr.louisraille.Botan
The App Store shares one name and subtitle across a universal purchase, and
the name under the icon must match it: the iPhone app gets its own bundle id
(and its extensions), so it can be listed as Botan while the Mac stays Coucou.
Same iCloud container and app group. Its Live Activity tokens say which app
they belong to and the relay pushes to that app (allowlist APNS_APPS).
Permission texts now say Botan.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B9uCpBfczfSCvLARne8hCd
2026-11-23 00:29:38 +00:00
hasnain-amir 78e28d0fd7 relay: measure body size after reading, add APNs timeout, refresh expired JWT 2026-10-31 22:26:39 +00:00
LouisandClaude Opus 5.5 66df17b01e iPhone: Liquid Glass, tabs, zoom, gestures, icons, Spotlight, Focus, services with actions, intro (#251)
* iPhone: Liquid Glass, tabs, zoom transitions, gestures, icons, Spotlight, Focus

- Tabs (Agents, Services, History, Search) with the agent that needs you
  above them, like Music's mini player (iOS 26).
- Liquid Glass cards and buttons on iOS 26, the dark material before; the
  island at the top grows Allow / Deny when a command waits (glass morphing).
- The Mochi tile zooms into the session; the agent's color moves softly
  behind it (MeshGradient); the header shrinks as the list scrolls.
- Symbols that move with the state; Apple Pay's drawn checkmark on Allow.
- Swipe right to allow (Face ID), left to deny; long press for a peek at
  the last turn.
- Search through every turn; finished turns in Spotlight (local index,
  can be turned off).
- Dark and tinted app icons, and Mochi in five other colors to pick.
- A Coucou Focus filter: only approvals and questions during a Focus.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_016qkcwzfTWvbmbc2y9dur6p

* Approval panel the iOS way, a softer session glow, Live Activity alerts

- The island grows a glass panel under it when a command waits: who asks,
  the command, a quiet Deny and a bright Allow (Face ID). Same buttons in
  the session's approval card; no more red and green blocks.
- The session's glow is softer, and white or grey agents (VS Code,
  Cursor) glow in deep blue instead of a grey haze.
- "Waiting for your OK" and questions now update the Live Activity with an
  alert, so the Dynamic Island opens and the Lock Screen lights up; the
  iPhone allows frequent Live Activity updates so they aren't held back.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_016qkcwzfTWvbmbc2y9dur6p

* Live Activity: log every change of phase and its push, retry again after a success

The update retries were capped for the whole activity: after ten waits for
a token, a later "waiting for your OK" could stay on the Mac. The count
now starts again after each update that goes out.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_016qkcwzfTWvbmbc2y9dur6p

* Floating glass composer, no tabs in a session, Live Activity started again when it didn't come up

- The instruction field is one glass capsule with the language and the
  mic inside and a round send button next to it, like Messages on iOS 26;
  shortcuts are glass pills; no bar behind, the list fades out under it.
- A session takes the whole screen: the tab bar and the mini player hide.
- When iOS didn't bring the Live Activity up (no update token) and an
  agent then waits for your OK or asks a question, the Mac starts it again
  with that state, once per request.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_016qkcwzfTWvbmbc2y9dur6p

* Live Activity: spend fewer starts

iOS allows only so many push-to-start activities an hour; every lock
started one and every unlock ended it, so after many locks the iPhone
stopped bringing it up. Now a working agent leaves for the iPhone once the
Mac has stayed locked for 20 s (right away when it waits for you), and an
unlock ends the activity only after 30 s, so locking again reuses it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_016qkcwzfTWvbmbc2y9dur6p

* Session screen: field fixed at the bottom, no tabs, keyboard away on scroll or tap

The tab bar shrank and grew while scrolling (minimize on scroll) and the
mini player sat between it and the field, so the field moved up and down.
The mini player and the minimizing are gone, the tabs hide inside a
session, and scrolling or tapping the conversation puts the keyboard away.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_016qkcwzfTWvbmbc2y9dur6p

* Keyboard: only a tap on the conversation puts it away, not a tap on the field

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_016qkcwzfTWvbmbc2y9dur6p

* Services up close on the iPhone, with actions run by the Mac

When a service's screen opens, the iPhone asks the Mac (ServiceAction
record); the Mac reads the service's API with the key in its Keychain and
writes a ServiceDetail record, encrypted: figures, lists and the actions
it offers on each item.

- Vercel: deployments and projects; redeploy, promote to production, cancel a build.
- GitHub: your pull requests (squash and merge), reviews asked of you
  (approve), CI on your latest repos (re-run failed jobs).
- Stripe: balance, payments, payouts, subscriptions and MRR (read only).
- Resend: latest emails and how they went, domains (read only).
- Cal.com: upcoming bookings; cancel one.
- n8n: workflows (turn on / off) and runs (retry a failed one).
- Notion: pages and databases edited lately (read only).

Actions need Face ID on the iPhone; the Mac runs one only if it offered
it on that item in the last detail it sent, asked in the last 5 minutes.
Nothing that moves money or sends an email can be asked.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_016qkcwzfTWvbmbc2y9dur6p

* Services: fixes from an API and logic review

- Vercel: "Promote to production" rebuilds the preview for production
  (POST /v13/deployments with target production), as the Vercel CLI does;
  /v10/promote only promotes production builds.
- Stripe: pending paired with available by currency; MRR per currency,
  metered and tiered prices left out, decimal prices read, labelled as an
  estimate; every page of subscriptions (up to 1 000); full zero-decimal
  currency list; partly refunded and uncaptured charges shown as such;
  a list that can't be read says why instead of showing zeros.
- Resend: suppressed emails count as not delivered; domain badges without
  underscores; a sending-only key gets a clear message.
- Cal.com is read only: cancelling emails the guest and can refund or
  charge them.
- n8n: every page of workflows; archived ones not offered "Turn on"; a
  clear message when the instance is too old to retry a run.
- The Mac takes a request only if it could delete it from iCloud, tells
  the iPhone when an action isn't offered any more, is woken by the
  CloudKit push (one check a minute in case one is missed) instead of
  every 10 s, downloads only the request fields, and deletes its details
  when the iPhone sync is turned off.
- The iPhone waits for the result of this action (not an older one) and
  plays the success haptic only when it worked; leaving a service screen
  stops its checks; "Asking your Mac…" says so when the Mac doesn't answer.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_016qkcwzfTWvbmbc2y9dur6p

* Services: Cal.com bookings found again, a cleaner service screen

- The Mac's Cal.com poller asked the v2 API with start / end, which aren't
  its parameters, so it found no booking: it now uses afterStart /
  beforeEnd (the notch and the iPhone's summary show the call again).
- Service screen: the figures in one strip; one line per item (title,
  badge, subtitle and date), a tap opens it on the web, its actions in a
  "…" menu or a long press (with Open and Copy link); the reason card
  only when something needs a look.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_016qkcwzfTWvbmbc2y9dur6p

* iPhone: Mochi moves at the screen's rate (up to 120 Hz)

Mochi was drawn at 30 frames a second (20 in lists) on screens that run
at 60 or 120 Hz, which made him stutter. He now follows the screen's rate,
the app may use ProMotion's 120 Hz like the Mac's notch, list rows are
capped at 60, and the agent's glow moves at 30 instead of 10.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_016qkcwzfTWvbmbc2y9dur6p

* iPhone: an opening with Mochi alone, who then flies to his tile

While the app loads, Mochi sits alone in the middle of a black screen,
looks left and right, then up with big round eyes, small eyes, a bar, a
blink, and back at you (at least 2.4 s, up to 4 s while iCloud answers).
Then he flies to the VS Code session's tile (or the island at the top)
as the black fades, and the real one takes over there. The first launch
opens on the setup guide instead.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_016qkcwzfTWvbmbc2y9dur6p

* iPhone intro: fluid eyes driven by the engine, no blink

Mochi's opening now moves through smooth curves (gaze, tilt, eye size and
height) instead of swapping eye shapes, and never closes his eyes.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_016qkcwzfTWvbmbc2y9dur6p

* iPhone intro: a lively Mochi that hides the first sync

Mochi now pops in and plays a little show driven by springs: quick
glances and slow drifts, eyes that pop round, shrink or squint, a body
that leans, hops and squashes along. The intro ends once the first
iCloud fetch is over (between 2.4 s and 6 s), which now starts without
waiting for the notification prompt, so the home screen behind is
already in sync when he flies to his tile.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_016qkcwzfTWvbmbc2y9dur6p

* README and site: Coucou on iPhone, App Store install

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_016qkcwzfTWvbmbc2y9dur6p

---------

Co-authored-by: Claude <noreply@anthropic.com>
2026-10-06 02:02:20 +02:00
LouisandClaude Opus 5.5 30edad4c5c iPhone: act from notifications, answer questions, Siri, Control Center + new coucou sound (#241)
* New coucou sound for Mochi's greeting

Taken from the reel's audio, aligned so the pop lands when Mochi drops
in (1.3 s) and the chime when he waves.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_016qkcwzfTWvbmbc2y9dur6p

* iPhone: act from notifications, answer questions, Siri, Control Center, quiet hours

- Approval notifications get Allow (opens Coucou, Face ID right away), Review and Deny.
- A notification when an agent finishes or fails, with Reply to send the next
  instruction; a question notification with one button per choice.
- Claude's questions (AskUserQuestion) can be answered from the iPhone: the
  Mac publishes the choices and applies an Answer only if it matches the
  question still waiting and every pick is one of its choices (QuestionRelay).
- Shortcuts above the instruction field, kept on the iPhone.
- Earlier turns of a session, a finished turn shared as a picture, diffs full
  screen (the iPhone can turn sideways there).
- Today's tally on the home screen, counted on the iPhone.
- Lock Screen widgets draw Mochi so his face shows, with a progress ring.
- A Control Center button and Siri / Shortcuts intents (agent status, ask Claude).
- Mochi's own sounds in the notifications, and quiet hours.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_016qkcwzfTWvbmbc2y9dur6p

* Lock Screen widgets: Mochi drawn white with his eyes cut out

The Lock Screen keeps brightness: the black luminance mask made him
vanish in the circular widget.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_016qkcwzfTWvbmbc2y9dur6p

* Approval notification: lay the card out with constraints and a clearer design

The expanded view came up empty: the SwiftUI view was added in
didReceive with a frame of zero size. It is now pinned with constraints
in viewDidLoad, with explicit colors, Mochi in his agent's color and the
command in its own box.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_016qkcwzfTWvbmbc2y9dur6p

* Allow and Deny on the Live Activity

While a command waits for your OK, the Lock Screen activity and the
expanded Dynamic Island show Deny (answers right away) and Allow (opens
Coucou on the command, Face ID before anything is sent). The Mac adds the
command's fingerprint, an opaque hash, to the activity state; the relay
accepts it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_016qkcwzfTWvbmbc2y9dur6p

* Allow right from the Live Activity and the notification

No detour through the app: iOS has the owner unlock the iPhone (Face ID)
when it is locked, then the OK goes to the Mac, which applies it only to
that exact command. Allow inside the app still asks for Face ID.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_016qkcwzfTWvbmbc2y9dur6p

* Smooth transitions for every change of Mochi's phase

Live Activity, Dynamic Island, widgets and the iPhone app: Mochi's face
pops from one state to the next, status texts morph, the Allow / Deny
buttons and the steps slide in, sessions move to their new place, and the
approval and question cards drop in.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_016qkcwzfTWvbmbc2y9dur6p

---------

Co-authored-by: Claude <noreply@anthropic.com>
2026-10-05 16:59:49 +02:00
LouisandClaude Opus 5.5 5767d0372a iPhone design pass: Mochi alive, chat composer, settings, onboarding, live timer (#232)
* iPhone design pass: Mochi alive, chat-style composer, settings, first launch

- Mochi is animated in the app, with the Mac's BotEngine: he blinks, looks
  around and reacts to his state. Only while on screen, at 20-30 fps.
- No more "VS Code · VS Code" when a session has no project name.
- "Send to Claude" is a bar at the bottom of the session screen, like a chat.
- Haptics on Allow, Deny and Send.
- The folder is a short grey line under the session header, not a card.
- First launch: a guide to connect the Mac (also in Settings).
- Settings / About: version, iCloud, notifications and Live Activities state,
  links to the website, support, privacy policy and terms.
- History grouped by day, with each agent's Mochi in its color.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_016qkcwzfTWvbmbc2y9dur6p

* Live Activity: the time since Mochi left counts up live

The Mac sends when the activity started (since, Unix seconds) with every push;
the relay lets it through, validated. The Lock Screen and the expanded Dynamic
Island count the time from it on their own, without any push.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_016qkcwzfTWvbmbc2y9dur6p

* iPhone: Mochi alive in the expanded approval notification

A Notification Content extension (COUCOU_APPROVAL category): long-press an
approval notification and Mochi, in the agent's color, waits for your OK next
to the command, animated. Review and Deny stay the system buttons.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_016qkcwzfTWvbmbc2y9dur6p

* Notification content extension: import UserNotificationsUI

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_016qkcwzfTWvbmbc2y9dur6p

* Notification content extension: don't shadow the controller's view

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_016qkcwzfTWvbmbc2y9dur6p

* Fix a color type in the iPhone About screen

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_016qkcwzfTWvbmbc2y9dur6p

---------

Co-authored-by: Claude <noreply@anthropic.com>
2026-10-05 14:18:19 +02:00
LouisandClaude Opus 5.5 616847bd64 iPhone step 8: Mochi in the iPhone's Dynamic Island when the Mac locks (#221)
* iPhone step 8: Mochi moves to the iPhone's Dynamic Island when the Mac locks

- relay/: stateless Cloudflare Worker holding the APNs key; builds the Live
  Activity push itself from a strict state (agent, state, counts), stores and
  logs nothing.
- iPhone: MochiActivityAttributes, Live Activity views (Lock Screen and
  Dynamic Island), push-to-start and update tokens saved to iCloud (encrypted).
- Mac: LiveActivityRelay starts the activity when the screen locks with an
  agent going, updates it, ends it on unlock (or 10 min after the agents are
  done). New Settings toggle, off by default.
- Privacy policy: iPhone app and relay sections.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_016qkcwzfTWvbmbc2y9dur6p

* Live Activity: point the Mac at the deployed relay

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_016qkcwzfTWvbmbc2y9dur6p

* Live Activity: one activity per lock, always ended on unlock

- When the agents are done, the activity shows "done" and stays the same
  activity for 10 minutes, so an agent starting again updates it instead of
  stacking a second one.
- A start whose Mac unlocked meanwhile is not sent.
- Ending waits a few seconds for the update token of a just-started activity.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_016qkcwzfTWvbmbc2y9dur6p

---------

Co-authored-by: Claude <noreply@anthropic.com>
2026-10-05 01:54:20 +02:00