Skip to content

The Live Activity shows the work in progress, sealed for the phone - #961

Merged
promptclickrun merged 2 commits into
mainfrom
live-activity-feed
Nov 12, 2026
Merged

promptclickrun merged 2 commits into
mainfrom
live-activity-feed

Conversation

@promptclickrun

Copy link
Copy Markdown
Owner

Problem

The Live Activity shows one fixed status for each chat. The person cannot see what the agent does, how long the turn has run, what question waits, or what the answer is. The card's state is also the one notification path that the notification service and Apple can read, so it is kept to fixed words. Closes #960.

Change

The card. When the first chat's row carries detail that opens, the card shows that chat in full (BighelpActivityHeroView): the step in progress and what it works on, the last steps, a timer that counts on the phone, the question or command that waits, and the first lines of the reply when the turn ends. The next chats stay as rows under it. The compact Dynamic Island shows the agent's picture and the kind of step. A row without detail draws the card as before.

Sealed detail. The detail is the row's new sealed field (sealed-card-v1, BighelpActivityDetail). The computer encrypts it with AES-256-GCM under a key for that chat row, bound to the update's timestamp. The app makes one secret in a keychain group that only the app and the Live Activity extension have (app.loopdy.mobile.card), derives a key for each row, and gives the row key to the computer after the card's registration is confirmed, over its own connection (PUT …/live-activities/<id>/card-key). An older plugin has no such route, and the card then shows its status as before.

Notification service (services/link). An update can carry sealed (at most 1,200 base64url characters) and quiet. The service keeps the bytes with the row and forwards them unread, to the rows in the order the card shows them, while the push stays under Apple's limit. A quiet update (only a new step) goes at APNs priority 5. A question and the end of a card stay at priority 10. Older plugins and apps are not affected.

Setting. Settings › Notifications › On the card: Status only, Steps, or Steps and text (the default). Nerd Mode adds context use and the model's name.

Needs bighelp-plugin 3.52.0 (promptclickrun/bighelp-plugin#297).

Trust boundary

  • New card text leaves the computer only as encrypted bytes. The notification service and Apple still read each row's phase, time and helper count, as before.
  • The row key goes from the phone to the computer on the connection that already carries the chat. It never goes through the notification service.
  • The secret is readable after first unlock, because the card is drawn on a locked phone. The Live Activity extension gets a keychain group of its own, not the alert keys' group.
  • The Lock Screen shows more text. The new setting limits it.

Tests

All on the Mac, iPhone 18 Pro simulator, made-up data:

  • BighelpActivityDetailTests (new): opens the vector that the plugin sealed; opens nothing for another time, key or row; a row keeps its sealed bytes through a push and the card's own rewrite, inside 4 KB.
  • HostActivityRenderTests: the new card in five states, light and dark, at standard and XXXL text. The tallest is 156 points of the 160 that a Lock Screen card can have.
  • The Live Activity suites (BighelpActivityGroupTests, BighelpLiveActivityPresentationTests, BighelpLiveActivityCoordinatorTests, DirectPushSharedCardTests, ManagedNotificationServiceTests): 92 tests pass.
  • services/link: 373 tests pass, with new tests for the forwarded bytes, the size limit, the priority and the request check. The typecheck passes.

Not tested: a real device, a real push, and a real Hermes host. A Live Activity push needs a TestFlight build, so the first full check is on that build.

Model and harness: Claude Fable 5.2 in Claude Code.

🤖 Generated with Claude Code

promptclickrun and others added 2 commits November 11, 2026 18:20
The first chat on the card shows the step in progress, the last steps, a timer,
the question that waits and the reply's first lines. The computer encrypts that
detail for a key the phone gives it over its own connection; the notification
service forwards the bytes unread and sends a new step alone at low priority.
Settings > Notifications > On the card picks how much the card shows.

Closes #960

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
… key log lines

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
@promptclickrun
promptclickrun merged commit 05cd681 into main Nov 12, 2026
@promptclickrun
promptclickrun deleted the live-activity-feed branch November 12, 2026 00:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Live Activity shows the work in progress, sealed for the phone

1 participant