Repository navigation
Text-only Live Activities and answerable run alerts on iPhone - #881
sambitcreate wants to merge 17 commits into
Conversation
…n Deny can't land
…ifications-activities-62cf67
There was a problem hiding this comment.
Important
The iOS release gate is currently red because its reviewed source and widget contracts were not updated with this change.
Reviewed changes across the full 11-commit branch, including the iOS notification-action path, Live Activity lifecycle, summary-card merge and reconciliation, background grace, settings, docs, and behavioral tests.
- Text-only activity surfaces — Replaces status decoration with bounded title, status, timing, optional reply text, small-family layouts, and reduced-luminance behavior.
- Answerable alerts and cards — Adds authenticated Approve, Deny, Reply, Review, Remote response routing, resolved-race handling, and fallback alerts when card actions cannot reach the Mac.
- Notification preferences — Adds device-local per-kind, message-text, reply-text, and quiet-open-chat controls under iPhone Settings.
- Per-Mac summaries — Merges concurrent runs into urgency-ordered summary Live Activities with stale-state and final-state handling.
- Background grace — Tracks active runs independently of ActivityKit and briefly extends execution after backgrounding.
- Documentation and coverage — Adds the app-only and future push-relay plans, product/user docs, changelog entries, and focused XCTest coverage.
@v0 or keep the SHA fresh with Dependabot | Fix all ➔ | Fix 👍s ➔ | View workflow run | Using GPT Sol | 𝕏
The app and widget source allowlists now include the notification, approval-intent, summary and background-grace files. The widget check no longer requires the removed logo status mark; the text-only card is covered by the Swift text-presentation tests.
There was a problem hiding this comment.
✅ No new issues found.
Reviewed changes since the prior Pullfrog review at 300a97fee, focused on the release-contract repair in fa4e4e20f.
- Shipping inventories — Added the six new app sources and three new widget sources to the exact Xcode target allowlists, including the Notifications settings source in the combined workspace-shell inventory.
- Text-only contract cleanup — Removed the obsolete logo-mark source assertion without replacing it with another source grep; native presentation tests cover the intended text-only behavior while the release suite still enforces exact source membership.
- Release verification — Confirmed
npm run test:ios-releasepasses all 33 Node subtests and 20 Ruby policy tests with 42 assertions.
@v0 or keep the SHA fresh with Dependabot | View workflow run | Using GPT Sol | 𝕏
The card starts without an approval, so on a slow runner the wait for 'no approval' matched the opening state before the approval update landed. Wait for the approval to show first.
There was a problem hiding this comment.
✅ No new issues found.
Reviewed changes since the prior Pullfrog review at fa4e4e20f, focused on the broker regression test stabilization in 45faccfa5.
- Waited for the approval state — Made the ActivityKit-backed broker test observe the approval-bearing content before simulating the Mac’s winning answer, so its later
approval == nilpredicate can no longer accept the card’s opening state. - Preserved an independent failure signal — Kept the existing delivered-content helper’s stream and ceiling failures in the path, so a missing approval still fails rather than being hidden by the new sequencing.
@v0 or keep the SHA fresh with Dependabot | View workflow run | Using GPT Sol | 𝕏
…ifications-activities-62cf67 # Conflicts: # ios/AidenOnTheGo.xcodeproj/project.pbxproj # ios/CHANGELOG.md # scripts/check-ios-shipping-target.test.mjs
There was a problem hiding this comment.
✅ No new issues found.
Reviewed changes since the prior Pullfrog review at 45faccfa5, focused on the main merge and its three conflict resolutions.
- Merged current
main— Added the Home quick-action widget and startup dispatch while preserving the PR’s notification broker, background grace, and existing Bot draft-store initialization. - Reconciled Xcode target membership — Kept both the Home/quick-action sources from
mainand the Live Activity, intent, responder, preferences, settings, and summary sources from this branch in their correct app and widget phases. - Updated release contracts and history — Kept the shipping-source inventories aligned with the merged Xcode project and retained both sets of unreleased changelog entries;
npm run test:ios-releasepasses all 33 Node subtests and 20 Ruby policy tests.
@v0 or keep the SHA fresh with Dependabot | View workflow run | Using GPT Sol | 𝕏
…ifications-activities-62cf67 # Conflicts: # docs/plans/README.md # ios/AidenOnTheGo/Config/AidenAppearance.swift
…ifications-activities-62cf67 # Conflicts: # ios/CHANGELOG.md
…ifications-activities-62cf67 # Conflicts: # docs/plans/README.md

What was wrong
On iPhone, run alerts and Live Activities were behind. The Live Activity drew a dot, a progress "hill", chips and tints, but you couldn't act on it. Notifications only opened the app. Several runs on one Mac each got their own card. Once the app went to the background, a run that was about to finish left its card frozen.
This PR is Plan A (
docs/plans/ios-alerts-app-only-plan.md). It is app-only: no push relay, no Remote protocol revision and no server or Android contract change. Plan B, the push relay, is not part of this PR.What changed
Text-only Live Activity and Dynamic Island. The card is plain text on a clean background: the chat title, one status line and "… ago". The dot, hill, chips and tints are gone. A stale card says "Latest status shown".
Act from the Lock Screen. An approval card has Review, which opens the chat, and Deny, which runs in the app through
LiveActivityIntent. Once the approval is answered, the card shows the answer.Act from the notification. Run alerts offer Approve, Deny and Reply. Reply needs an unlocked phone. If an answer can't reach the Mac, the alert comes back, so it never looks answered.
Settings → Notifications on iPhone. Switches for:
The old Appearance → Privacy excerpt toggle is replaced, with no migration (pre-1.0).
One summary card per Mac. When a Mac has more than one run going, the runs merge into one card with a row per run. A tap opens the most urgent chat. The card ends 300 s after every run is final.
Background grace. When the app goes to the background with a live run, it asks iOS for a short background task. That keeps the stream open long enough for a finishing run to update its card. The task ends 3 s after the last run ends, or when the app returns to the foreground.
Fixes from the final whole-branch review
Docs
ios/CHANGELOG.md(unreleased)docs/aiden-on-the-go-remote-access.mddocs/plans/README.mdand both plan files.memory/live-activity-freshness-bot-deeplinks.mdTests
xcodebuild test … -skip-testing:AidenOnTheGoUITests, 2532 tests, 8 skipped, 0 failures, on iPhone 18 Pro (iOS 27.0).AidenInboxTests.testLoadMoreThatKeepsBeingOvertakenSaysSotimed out once at load average ~97 and passed on rerun. This branch doesn't touch it.packages/cli/tests/server-visuals.test.mjs› "an installed browser draws a chart offline into a picture and leaves no profile behind" failed in Desktop tests (renderer-other) on fa4e4e2. Headless Chrome didn't finish drawing in time ("drawing it failed or took too long", 15.2 s). This branch doesn't touchpackages/cli. Run: https://github.com/sambitcreate/aiden-agent/actions/runs/45061751062/job/137329294236SERVER_VISUAL_TIMEOUT_MS = 15_000, and passing runs elsewhere take 8.3 s (main) and 14.3 s (another branch), so this test sits at its ceiling on CI runners. Not raised here, per the flaky-test rule.packages/cli.xcodebuilditself crashed mid-run (NSInternalInconsistencyException: Unexpected operation <IDERunOperation …>in XCTHarness, exit 134), with no test failing. Run: https://github.com/sambitcreate/aiden-agent/actions/runs/45067530941/job/137347069722. Rerun once: https://github.com/sambitcreate/aiden-agent/actions/runs/45067530941/job/137369566097. It failed on two WebKit page-load waits instead,AidenSandboxedHTMLTests.testAPreviewPageMakesNoNetworkConnections("meta refresh: sandboxed page finishes loading" timed out at 30 s) andAidenMessageVisualSnapshotLayoutTests.testVisualSnapshotKeepsItsHeightAlongsideAnImageDeck. Both classes pass locally on this branch (13 tests), and both tests also fail in main's Xcode 27 lane. This branch touches neither.AidenBotSessionTests.testTheListeningBarStaysWhenAQuestionReplacesTheBotComposerfailed with "The Bot never loaded". The test file is identical to main, and the test passes locally on this merge (0.66 s, full suite 2620/2620). Run: https://github.com/sambitcreate/aiden-agent/actions/runs/45111880613/job/137485966183AidenComposerSurfaceTests(bot recording, bot controls, default-text chip, model chip) andAidenMessageVisualSnapshotLayoutTests.testVisualSnapshotKeepsItsHeightAlongsideAnImageDeck, plus a simulator boot timeout. The same composer and snapshot tests fail in this lane on main at 599374d (run 45004973683) and 1afb737 (run 45019275411). This branch touches neither surface.--fail-on-flaky-tests; this branch changes no desktop code):tests/e2e/design-mode.spec.ts:752: "Protocol error (Page.handleJavaScriptDialog): No dialog is showing". Run: https://github.com/sambitcreate/aiden-agent/actions/runs/45061751062/job/137333405265tests/e2e/browser.spec.ts:570(Linux E2E 3/3 on 3388a3c, which also fails the Linux x64 and arm64 gates): "jsHandle.evaluate: Target page, context or browser has been closed". Run: https://github.com/sambitcreate/aiden-agent/actions/runs/45111880613/job/137485966239tests/e2e/browser-trust.spec.ts:16:annotation?.image?.widthnot > 1. Run: https://github.com/sambitcreate/aiden-agent/actions/runs/45061751062/job/137333405273testBrokerShowsTheMacsDecisionWhenThePhonesAnswerLostfailed on CI ("Starting response" instead of "Approved"). Its wait accepted the card's opening state before the approval landed; it now waits for the approval first.Device checks before TestFlight
These weren't verified on hardware. The simulator's demo Mac never connected under load, so they rest on unit tests:
Known follow-ups (minor, deferred)
409 operation_stale(run already finished) opens the chat instead of being treated as answered.card.offers(.allow, .once).