Skip to content

Live Activity updates carry the step in progress, sealed for the phone - #297

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

A Live Activity update holds a phase, a fixed label and counts. The app cannot show what the agent does, because the notification service and Apple can read an update, so the host sends no chat text in it. See promptclickrun/bighelp#960.

Change

  • A phone can give the host a key for one chat's card: PUT …/live-activities/<activityId>/card-key. The key comes over the phone's own connection to the host. capabilities lists sealedCardDetail.
  • Each update for a card that has a key also carries sealed (card_detail.py, sealed-card-v1): the step in progress and what it works on, the last three steps, the model's latest words, a question or command that waits, the reply's first lines, helper goals, context use and the model's name. It is AES-256-GCM under the row key and bound to the update's timestamp. The service and Apple forward bytes that they cannot read.
  • A card with detail gets an update for each new step, at most one every 8 seconds. A new step alone is marked quiet (low priority). One update in every 30 seconds, a question, an approval and the end of the turn are not quiet.
  • The card's phase is waiting while clarify asks a question or a command waits for approval.
  • The host listens to post_api_request (where Hermes has it) for the model's words and context use.
  • A chat without a key gets the same updates as before.

Trust boundary

New text leaves the host only inside the sealed bytes. A note that can hold a credential is left out. If the service refuses an update that has sealed, the host drops that card's key and sends plain updates.

The notification service must accept sealed and quiet before this is released (promptclickrun/bighelp, services/link).

Tests

On the Mac: tests/test_card_detail.py, 8 tests, all pass. They cover the shared vector, the size limit, a credential in a command, the quiet rule, a question, the reply at the end, and a service that refuses sealed updates. The five notification suites have the same results as main (2 failures and 27 errors, all from Hermes modules that are not installed here).

Not tested on a real host or a device yet.

Model and harness: Claude Fable 5.2 in Claude Code.

🤖 Generated with Claude Code

A phone gives the host a key for a chat's row over its own connection. Each
update for that card then carries sealed detail: the step in progress, the last
steps, a question that waits, the reply's first lines. The notification service
and Apple forward bytes they cannot read. A new step alone goes at low priority.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
A turn's state is sent again once a minute while no hook fires, so a question
that waits or a long tool call does not go stale. An update that takes the place
of a high-priority one keeps its priority. The same key again changes nothing.
A malformed URL or a long tool name never stops a card's updates.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
@promptclickrun
promptclickrun merged commit 9148cc9 into main Nov 12, 2026
1 check passed
@promptclickrun
promptclickrun deleted the live-activity-feed branch November 12, 2026 00:38
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.

1 participant