Repository navigation
The Live Activity shows the work in progress, sealed for the phone - #961
Merged
Merged
Conversation
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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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
sealedfield (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 carrysealed(at most 1,200 base64url characters) andquiet. 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. Aquietupdate (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
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.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