Skip to content

feat(island): the island opens for news with buttons, and alerts take a typed reply - #1053

Merged
promptclickrun merged 5 commits into
mainfrom
feat/island-moments
Nov 16, 2026
Merged

promptclickrun merged 5 commits into
mainfrom
feat/island-moments

Conversation

@promptclickrun

Copy link
Copy Markdown
Owner

Problem

What changes

The island opens for news. When a row's phase changes into waiting, completed or failed, the notification service adds an alert to that one update and names the row in the state's lead. iOS opens the island for a few seconds. A step never does this. iOS removes an ended card from the island at once, so the finish of the last chat goes as an update, and the end follows 30 seconds later from the Durable Object's alarm.

The open island shows that chat (BighelpIslandMoment): the bot, what happened, the words from the sealed detail, and buttons.

Moment Buttons
A short command waits Deny, Approve
A long command or another approval waits Review
A question waits Answer
Finished Open chat, Reply (the chat opens with the keyboard up)
Could not finish Open chat

Words typed on an alert go to its chat (BighelpAlertReply). A reply's alert takes the next message. A question's alert takes the answer. The app stays closed.

One path for everything done from outside the app (ChatOutsideActions): the alert's words and the island's Approve and Deny. It uses the same connection path as Shortcuts.

The plugin's part is promptclickrun/bighelp-plugin#310: the sealed detail says what kind of answer waits.

Trust boundary

  • A yes is for the characters on screen. Approve shows only for a command that the computer sent whole (one printable line of at most 90 characters) and only while the card may show text. The button carries that command. The app answers the computer only when the same command is the one request that waits in that chat. If the bot asked for something else in the meantime, the tap answers nothing and an alert says so. The buttons need the unlocked phone.
  • The push service still reads nothing. The alert text in the push is fixed: "Bighelp" and "A chat needs you.", "A chat finished." or "A chat could not finish." The question, the command and the reply stay in the sealed detail.
  • Words go to their chat or nowhere. No path starts a new chat. A person who uses the app on another computer is not moved. When words cannot be sent, an alert on the phone says so and shows them. The text field needs the unlocked phone.
  • The delayed end keeps only IDs and revisions, and it goes through the same queue and the same authorization checks as every send.
  • Older builds. lead and the detail's new field are optional. The phone adds the text field itself from the alert's kind, so an older build never shows a field whose words it would drop.

Pictures

These are the island's own views, drawn by a test into a black shape of the open island's size. They are not captures of the system island: the simulator's screenshots leave the island out. The island is black in light and dark, so both looks are the same on a light and a dark page.

Light page Dark page
A short command
Another approval
A question
Finished
Could not finish

Tests

All on a Mac. No CI run.

Failing first

  • App: with the new rules switched off (the types present, the rules absent), 16 new tests gave 26 failures. With the rules on, they pass.
  • App, review fixes: with the command check and the time limit switched off, 2 tests gave 6 failures. With them on, they pass.
  • Service: 17 tests fail on the old source and pass on the new one. The test for the delayed end after the route closes the finished row fails without its fix.

After

  • iPhone simulator: 261 tests in 16 suites pass, and the 3 card render tests pass. The suites: the three new ones, the card detail, group, presentation, coordinator, render and shared-card suites, the push display, processor, push coordinator and chat routing suites, the geofence suite, the link route suite, the notification service suite and the app state suite.
  • Service (services/link): 390 tests in 17 files pass, and the type check passes.
  • Builds: iPhone simulator, Mac Catalyst and visionOS simulator.
  • Simulator, demo data: -test-island-moment command started a card, and the system log shows the island alert and the change from the compact to the open layout.
  • A second reviewer read the diff for trust and data-loss paths. Its five must-fix points are fixed in the last commit.

Not tested

  • A real iPhone. The push alert, the delayed end, Approve and Deny, and a typed reply were not run on a device or with a real computer. A simulator gets no Live Activity pushes.
  • The system island's own look. The pictures are the views, not the island. The UI test that read the island through the system could not find its buttons, so it is not in this PR.
  • sendFromOutside has no direct test. It is the Arriving and leaving send, moved and given two guards.

Notes for the maintainer

  • The island opens only after the notification service is deployed. This PR does not deploy it. The app and plugin parts work without it: the open island and the alert's text field need only the app build.
  • Approve and Deny show only with a plugin that has bighelp-plugin#310. With an older plugin, a waiting chat shows Open chat.
  • A banner and the island can show at the same moment. A reply or a question still sends its alert, and the island now opens too. Which one to keep for each moment is a product decision that needs a look on a device.
  • An end that fails is not sent again. The card then leaves with its lease or when the app opens.
  • A typed answer goes to the question that waits now. If the bot asked a new question after the alert, the words answer the new one.
  • A group chat's reply alert can show the text field, but the app finds only one-bot chats. The words then come back in an alert.

Closes #1050, closes #1051

Model and harness: Claude Fable 5.2 in Claude Code.

🤖 Generated with Claude Code

promptclickrun and others added 5 commits November 15, 2026 22:20
…rd ends after a moment

A row's phase change into waiting, completed or failed is a moment. Its push carries an
alert with fixed words and no sound, and names the row in the state's lead. The last
chat's finish goes as an update, and the end follows 30 seconds later from the alarm.

Refs #1050

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Deny and Approve sit beside a command the island shows whole. Every other approval gets
Review, a question Answer, a finished reply Open chat and Reply, a failure Open chat.
Reply opens the chat with the keyboard up.

Refs #1050

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
…Deny answer the computer

A reply's alert takes the person's next message and a question's alert its answer, with
the app closed. Both use the Shortcuts host path. Nothing starts a new chat, a person who
is using the app is not moved to another computer, and a failure is said on the phone
with the words in it.

Refs #1050, refs #1051

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
…ervice reads

Refs #1050, refs #1051

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
…sent, and a failure is always said

- Approve and Deny carry the command the island showed. The app answers only when that same
  command is the one request that waits.
- The delayed end no longer names the finished row's own activity, which is closed by then.
- A moment stays with its row until its push is reserved, so a host's retry still opens the island.
- Outside actions run one at a time, stop inside the time iOS gives, and never create a chat.
- The alert's text field shows only where the app can find the chat.

Refs #1050, refs #1051

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
@promptclickrun
promptclickrun merged commit 219eb72 into main Nov 16, 2026
@promptclickrun
promptclickrun deleted the feat/island-moments branch November 16, 2026 04:39
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.

Reply to a bot from its notification The Dynamic Island opens by itself when a chat needs you, finishes or cannot finish

1 participant