Repository navigation
Restore mobile push and fix cold-start dismissals - #20068
Conversation
There was a problem hiding this comment.
Important
iOS release builds will still get an aps-environment: development entitlement: app.config.js derives the mode from ORCA_IOS_APS_ENVIRONMENT, but nothing in the repo sets it. See the inline comment.
Reviewed changes
- Push delivery becomes gateway-only.
local-notification-scheduling.tsand the watermark/seq/epoch catch-up machinery innotification-reconnect-catchup.tsare deleted; the socket stream now carries onlydismissevents plus thereadyframe that triggers reconciliation. - Per-host push registration.
push-registration.tsregisters a device token per authenticated, push-capable host, persists a registered/pending-unregister outbox, renews a lease while foregrounded, and re-registers on token roll. - Cold-start dismissal.
mobile/index.jsbecomes the entry point and imports the background dismissal task;_layout.tsxregisters the task, theorca-desktopchannel, and token sync at module load so a cold-start dismissal needs no mounted screen. - Native iOS dismissal ledger. A local Expo module (
orca-notification-dismissal) keeps sequence-fenced dismissals inUserDefaults, mirrored by JS watermarks on Android/web. - Host fingerprinting. The gateway names a host by
base64url(sha256(publicKey))[:16], mapped back to the pairedhostIdthrough the host catalog. - Consent/registration preference split.
orca:pushNotificationsEnabledis renamed toorca:pushServiceNotificationsEnabled; legacy consent is intentionally ignored and re-prompted.
ℹ️ Firebase API key committed in google-services.json
mobile/google-services.json commits a Firebase api_key and an OAuth client_id. That is standard for Firebase client config, but an unrestricted key is usable outside the app. Before this ships, restrict AIzaSyBmT_w0OUQSiVfxblx-F0qlRvGkBBkTNQU in Google Cloud Console to the Android package (com.stably.orca.mobile + SHA-1) and to the APIs the gateway uses. No code change required, but worth confirming the key isn't unrestricted.
ℹ️ iOS native module and APNs path are not covered by the stated validation
The PR validation lists a full mobile unit suite, typecheck, and a standalone Android emulator build. The new iOS native module (mobile/modules/orca-notification-dismissal) and the app.config.js entitlements path (which is currently broken — see inline) have no iOS build/pod-install coverage. A one-off expo prebuild --platform ios + pod-install + archive before merge would catch both the missing env var and any autolinking gap in requireNativeModule('OrcaNotificationDismissal'), which throws at startup if the module is not linked.
DeepSeek Pro (free via Pullfrog for OSS) | 𝕏
|
Too many files changed for review (112 files, 100 file limit). Bypass the limit by tagging |
75433fb to
98df0e2
Compare
There was a problem hiding this comment.
✅ No new issues found.
Reviewed changes
The prior blocking finding — iOS release builds getting a sandbox aps-environment entitlement — is fixed, and the new test-push diagnostic is correctly plumbed end to end.
- Fixed the iOS release entitlement gap.
mobile-ios-release.ymlnow setsORCA_IOS_APS_ENVIRONMENT: productionin theExpo prebuildstep, andapp.config.jsderives both theexpo-notificationspluginmodeandios.entitlements['aps-environment']from that same env var, so the entitlement and the reported token environment agree by construction. - Added an authenticated mobile test-push endpoint.
notifications.testPushis a no-arg, mobile-only RPC that forwards the caller'spairedDeviceIdtoDesktopPushService.test(), which sends a singleterminal-bellalert to only that registration and awaits gateway acceptance, mapping failure reasons throughMobilePushTestResult. - Added the mobile test-push UI.
notification-display-test.tsxrenders a "Send test notification" button inside the notifications settings screen with descriptive failure messages, plus a "Push Notifications" troubleshooting section.
DeepSeek Pro (free via Pullfrog for OSS) | 𝕏
There was a problem hiding this comment.
✅ No new issues found.
Reviewed changes
- Mocked the new push-test transport in the consent-ownership test.
notification-consent-ownership.test.tsnow stubsuse-all-host-clientsandhost-store(loadHostCatalog), the two../transportimports thatNotificationDisplayTestpulls into the notifications route. This keeps the consent test hermetic without touching production behavior.
DeepSeek Pro (free via Pullfrog for OSS) | 𝕏
There was a problem hiding this comment.
✅ No new issues found.
Reviewed changes
- Fixed a vacuous slept-workspace remount assertion. The rebase onto
main(which landed #20075's structuredremountTerminalTabForRecoveryresult) leftslept-workspace-remount-wake.spec.tscomparing the always-truthy result object totrue. The test now reads.remounted, so the "did not find the slept tab" oracle actually fails when the remount declines.
DeepSeek Pro (free via Pullfrog for OSS) | 𝕏
|
Note Reviews pausedIt looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the Use the following commands to manage reviews:
Use the checkboxes below for quick actions:
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Advanced Run ID: 📒 Files selected for processing (1)
Included review availability: Your plan provides up to 10 included reviews per hour; 8 remain after this review. 📝 WalkthroughWalkthroughThe mobile app now supports production-configured push delivery, native dismissal persistence, foreground and background push handling, host-scoped registration, delivery preferences, dismissal reconciliation, notification routing, and notification troubleshooting. The runtime adds a mobile push test RPC that sends test notifications to registered devices. Related onboarding, settings, storage, native module, and test coverage changes are included. Priority: ⬆️ High Merge Risk: 🔵 Low · up to The push changes are otherwise ready, but one notification display test may assert before its asynchronous operation finishes and miss failures. 🚥 Pre-merge checks | ✅ 3 | ❌ 2❌ Failed checks (2 warnings)
✅ Passed checks (3 passed)
Full details: Description checkExplanation The description explains the main behavior changes and validation results, but it omits most required template sections, including ELI5, What Changed, Why, Visual Proof or an explicit N/A, Testing checkboxes, Review, Notes, and Checklist. It also lists a dependency instead of clearly identifying the issue this PR fixes. Resolution Complete the required template sections. Add an ELI5 summary, detailed What Changed and Why sections, the issue link in the required format, Visual Proof or an explicit N/A with a reason, Testing details and checklist status, Review, Agent skill boundary, Notes, and the remaining Checklist items. ✨ Finishing Touches 💡 1📝 Generate docstrings 💡
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Actionable comments posted: 5
ℹ️ Review info
⚙️ Run configuration
Configuration used: Repository UI
Review profile: CHILL
Plan: Advanced
Run ID: fe0b2f8b-0f0e-4735-af0b-8064697f8e5b
⛔ Files ignored due to path filters (3)
mobile/assets/notification-icon.pngis excluded by!**/*.pngmobile/pnpm-lock.yamlis excluded by!**/pnpm-lock.yamlsrc/shared/rpc-contract/rpc-params-catalog.generated.tsis excluded by!**/*.generated.*
📒 Files selected for processing (102)
.github/workflows/mobile-ios-release.ymlmobile/app.config.jsmobile/app.jsonmobile/app/_layout.tsxmobile/app/mobile-onboarding.tsxmobile/app/notifications.tsxmobile/google-services.jsonmobile/index.jsmobile/modules/orca-notification-dismissal/expo-module.config.jsonmobile/modules/orca-notification-dismissal/ios/OrcaNotificationDismissal.podspecmobile/modules/orca-notification-dismissal/ios/OrcaNotificationDismissalModule.swiftmobile/modules/orca-notification-dismissal/ios/OrcaNotificationDismissalSubscriber.swiftmobile/modules/orca-notification-dismissal/ios/PushDismissalLedger.swiftmobile/modules/orca-notification-dismissal/package.jsonmobile/modules/orca-notification-dismissal/tests/PushDismissalLedgerChecks.swiftmobile/package.jsonmobile/patches/expo-notifications@55.0.27.patchmobile/pnpm-workspace.yamlmobile/src/diagnostics/troubleshoot-common-issues.tsxmobile/src/home/use-mobile-home-host-connections.tsmobile/src/notifications/NotificationDeliverySection.test.tsxmobile/src/notifications/NotificationDeliverySection.tsxmobile/src/notifications/desktop-notification-channel.test.tsmobile/src/notifications/desktop-notification-channel.tsmobile/src/notifications/desktop-notification-events.tsmobile/src/notifications/expo-native-token-retry.test.tsmobile/src/notifications/local-notification-scheduling.tsmobile/src/notifications/mobile-notifications.test.tsmobile/src/notifications/mobile-notifications.tsmobile/src/notifications/mobile-push-lease-renewal.test.tsmobile/src/notifications/mobile-push-lease-renewal.tsmobile/src/notifications/native-notification-data.test.tsmobile/src/notifications/native-notification-data.tsmobile/src/notifications/native-push-dismissal.ios.tsmobile/src/notifications/native-push-dismissal.test.tsmobile/src/notifications/native-push-dismissal.tsmobile/src/notifications/notification-catchup-failure-quarantine.test.tsmobile/src/notifications/notification-consent-ownership.test.tsmobile/src/notifications/notification-delivery-ordering.test.tsmobile/src/notifications/notification-delivery-preferences.test.tsmobile/src/notifications/notification-delivery-preferences.tsmobile/src/notifications/notification-opt-in-gate.test.tsmobile/src/notifications/notification-opt-in-gate.tsmobile/src/notifications/notification-reconnect-catchup.tsmobile/src/notifications/notification-reconnect-teardown.test.tsmobile/src/notifications/notification-routing.test.tsmobile/src/notifications/notification-routing.tsmobile/src/notifications/notification-viewing-policy.tsmobile/src/notifications/notification-watermark-seed-race.test.tsmobile/src/notifications/push-background-dismissal.test.tsmobile/src/notifications/push-background-dismissal.tsmobile/src/notifications/push-dismissal-native-races.test.tsmobile/src/notifications/push-dismissal-reconciliation.test.tsmobile/src/notifications/push-dismissal-reconciliation.tsmobile/src/notifications/push-dismissal-watermarks.test.tsmobile/src/notifications/push-dismissal-watermarks.tsmobile/src/notifications/push-host-fingerprint.test.tsmobile/src/notifications/push-host-fingerprint.tsmobile/src/notifications/push-notification-identity.test.tsmobile/src/notifications/push-notification-identity.tsmobile/src/notifications/push-payload.tsmobile/src/notifications/push-preference-update.test.tsmobile/src/notifications/push-receive.test.tsmobile/src/notifications/push-receive.tsmobile/src/notifications/push-registration-cancellation.test.tsmobile/src/notifications/push-registration.test.tsmobile/src/notifications/push-registration.tsmobile/src/notifications/push-socket-dismissal.test.tsmobile/src/notifications/push-socket-dismissal.tsmobile/src/notifications/push-token.test.tsmobile/src/notifications/push-token.tsmobile/src/notifications/push-tray-dismissal.test.tsmobile/src/notifications/push-tray-dismissal.tsmobile/src/notifications/use-remote-push-capable-hosts.test.tsxmobile/src/notifications/use-remote-push-capable-hosts.tsmobile/src/onboarding/MobileOnboardingPage.tsxmobile/src/onboarding/mobile-onboarding-screen.test.tsmobile/src/onboarding/mobile-onboarding-styles.tsmobile/src/session/mobile-session-route-parity.test.tsmobile/src/session/mobile-session-route.tsmobile/src/session/use-mobile-session-controller.tsmobile/src/session/use-notification-pane-navigation.test.tsxmobile/src/session/use-notification-pane-navigation.tsmobile/src/settings/native-notification-delivery-settings.test.tsxmobile/src/settings/native-notification-delivery-settings.tsxmobile/src/settings/native-notification-settings-operations.tsmobile/src/settings/notification-display-test.tsxmobile/src/settings/notification-settings-screen.tsxmobile/src/storage/preferences.test.tsmobile/src/storage/preferences.tsmobile/src/transport/host-removal-lifecycle.test.tsmobile/src/transport/host-removal-lifecycle.tsmobile/src/transport/runtime-capability-probe.tssrc/main/runtime/push/desktop-push-service.test.tssrc/main/runtime/push/desktop-push-service.tssrc/main/runtime/push/push-registration-rpc.test.tssrc/main/runtime/rpc/methods/notifications.tssrc/main/runtime/runtime-mobile-notification-controller.tssrc/main/runtime/runtime-rpc/runtime-rpc-mobile-method-allowlist.tssrc/main/runtime/runtime-service-command-surface.tssrc/shared/mobile-push-contract.tstests/e2e/slept-workspace-remount-wake.spec.ts
💤 Files with no reviewable changes (6)
- mobile/src/notifications/notification-watermark-seed-race.test.ts
- mobile/src/notifications/notification-catchup-failure-quarantine.test.ts
- mobile/src/notifications/local-notification-scheduling.ts
- mobile/src/notifications/notification-delivery-ordering.test.ts
- mobile/src/notifications/notification-reconnect-teardown.test.ts
- mobile/src/notifications/notification-reconnect-catchup.ts
Included review availability: Your plan provides up to 10 included reviews per hour; 6 remain after this review.
There was a problem hiding this comment.
✅ No new issues found.
Reviewed changes
This run reviewed commit 7dcb481 ("Fix mobile notification review findings"), which resolves the five findings from the previous (coderabbit) review and adds regression coverage for each. No new issues were found.
- Restricted ID-only tray dismissals to unversioned entries.
push-tray-dismissal.tsnow treats an absent or incomplete dismissal fence as "only unversioned alerts", so a legacy/ID-only dismissal can no longer clear a newer versioned alert with the same host and ID. A complete fence still bounds the match by epoch andseq <= fence.seq. - Cleared stale capability answers on reconnect.
use-remote-push-capable-hosts.tsdrops a host's cachedsupportedanswer when a replacement probe starts, so a reconnected client re-resolves instead of latching the old client's verdict; a plain disconnect still retains its earlier answer. - Serialized delivery-settings refresh against saves.
native-notification-delivery-settings.tsxadds arefreshRevision/saveInProgressguard so a pre-save refresh that resolves later cannot overwrite a completed save. - Tried the push test across connected desktops.
notification-display-test.tsxnow iterates connected clients, retrying on definitive non-delivery responses (forbidden,method_not_found,not_registered) and failing fast on transport errors orrate_limited. - Strengthened regression assertions. Added tests cover the multi-desktop retry, the reconnect re-probe, the stale-refresh race, the incomplete fence, and the onboarding retry persistence call.
openrouter/deepseek/deepseek-v4.1-flash (free via Pullfrog for OSS) | 𝕏
There was a problem hiding this comment.
Actionable comments posted: 1
ℹ️ Review info
⚙️ Run configuration
Configuration used: Repository UI
Review profile: CHILL
Plan: Advanced
Run ID: 94cb3461-6258-4f13-8ea1-f396e83ece9e
📒 Files selected for processing (11)
mobile/src/notifications/push-background-dismissal.test.tsmobile/src/notifications/push-socket-dismissal.test.tsmobile/src/notifications/push-tray-dismissal.test.tsmobile/src/notifications/push-tray-dismissal.tsmobile/src/notifications/use-remote-push-capable-hosts.test.tsxmobile/src/notifications/use-remote-push-capable-hosts.tsmobile/src/onboarding/mobile-onboarding-screen.test.tsmobile/src/settings/native-notification-delivery-settings.test.tsxmobile/src/settings/native-notification-delivery-settings.tsxmobile/src/settings/notification-display-test.test.tsxmobile/src/settings/notification-display-test.tsx
🚧 Files skipped from review as they are similar to previous changes (9)
- mobile/src/notifications/push-background-dismissal.test.ts
- mobile/src/notifications/push-tray-dismissal.test.ts
- mobile/src/onboarding/mobile-onboarding-screen.test.ts
- mobile/src/notifications/push-socket-dismissal.test.ts
- mobile/src/settings/native-notification-delivery-settings.test.tsx
- mobile/src/notifications/use-remote-push-capable-hosts.test.tsx
- mobile/src/notifications/push-tray-dismissal.ts
- mobile/src/settings/native-notification-delivery-settings.tsx
- mobile/src/notifications/use-remote-push-capable-hosts.ts
Included review availability: Your plan provides up to 10 included reviews per hour; 7 remain after this review.
| await act(async () => { | ||
| renderer = create(createElement(NotificationDisplayTest, { onTroubleshoot: vi.fn() })) | ||
| }) | ||
| await act(async () => renderer.root.findAllByType('Pressable')[0].props.onPress()) |
There was a problem hiding this comment.
🎯 Functional Correctness | 🟡 Minor | ⚡ Quick win
Return the run() promise from the Pressable handler.
The handler returns undefined, so the async act callback can finish before sendRequest and the final state updates complete.
Proposed fix
- onPress={() => void run()}
+ onPress={() => run()}There was a problem hiding this comment.
Caution
Some comments are outside the diff and can’t be posted inline due to platform limitations.
⚠️ Outside diff range comments (2)
mobile/app.config.js (1)
1-32: 🗄️ Data Integrity & Integration | 🟠 Major | ⚡ Quick winSet
ORCA_IOS_APS_ENVIRONMENT=productionin every production Fastlane lane beforebuild_app. The GitHub workflow sets it duringexpo prebuild, but the exportedreleaseandbuild_and_uploadlanes do not. A direct lane invocation can therefore build a workspace with the defaultaps-environment: development. Release builds reportapnsEnvironment: production, so the gateway sends the token toapi.push.apple.com; APNs can reject the sandbox token and production pushes will not be delivered.mobile/src/notifications/push-background-dismissal.ts (1)
1-140: 🎯 Functional Correctness | 🟠 Major | ⚡ Quick winRegister
orca-push-dismissalfrom the early entrypoint. Expo requires notification tasks to be defined and registered in an early module.mobile/index.jsimports the task definition beforeexpo-router/entry, but registration currently runs only from_layout.tsx, which headless launches do not mount. A headless dismissal can therefore arrive beforeregisterTaskAsyncruns, so the callback is not invoked and the presented notification remains visible. Move the registration call besidedefineTaskinpush-background-dismissal.ts.
ℹ️ Review info
⚙️ Run configuration
Configuration used: Repository UI
Review profile: CHILL
Plan: Advanced
Run ID: 987ebd97-9910-446c-ba8f-733b9775efba
⛔ Files ignored due to path filters (1)
mobile/pnpm-lock.yamlis excluded by!**/pnpm-lock.yaml
📒 Files selected for processing (2)
mobile/package.jsonmobile/patches/expo-notifications@55.0.27.patch
Included review availability: Your plan provides up to 10 included reviews per hour; 9 remain after this review.
There was a problem hiding this comment.
✅ No new issues found.
Reviewed changes
This run reviewed commit 5773b03 ("present visible Android data pushes in foreground"), the only commit since the prior pullfrog review. It aligns Android foreground push presentation with expo's own native background visibility policy, and verifies cleanly against the expo-notifications SDK 55 source.
- Routed visible Android data pushes through the JS foreground handler. The
expo-notifications@55.0.27patch now only early-returns data-only FCM messages whosetitleandtextare both empty, so a message carrying display text reachesSingleNotificationHandlerTaskand the JSsetNotificationHandlercan present it. The predicate is identical to expo's ownshouldPresent()check, andExpoHandlingDelegateonly invokesonNotificationReceivedwhile the app is foregrounded (background goes through the nativepresentpath), so this is foreground-only and cannot duplicate or drop background tray notifications. - Forced the patched Kotlin to compile.
mobile/package.jsonoptsexpo-notificationsout of Expo's prebuilt Android modules viaexpo.autolinking.android.buildFromSource; without it the patched.ktwould be ignored in favor of the prebuilt AAR. The pnpm lock patch hash was bumped to match.
No inline comments. Prior pullfrog threads remain resolved.
openrouter/deepseek/deepseek-v4.1-flash (free via Pullfrog for OSS) | 𝕏
There was a problem hiding this comment.
✅ No new issues found.
Reviewed changes
This run reviewed commit 8fe17a3 ("test: use deterministic clock for teardown deadline"), the only commit since the prior pullfrog review. Test-only and unrelated to mobile push.
- Made the teardown deadline test deterministic.
structured-session-worktree-teardown.test.tsnow driveskillAllProcessesForWorktreeundervi.useFakeTimers()withadvanceTimersByTimeAsync, replacing the realsetTimeout(25)wait, so the 5ms budget expiry and the post-release close-ordering assertion no longer hinge on wall-clock timing. The assertions are unchanged, and the suite passes (30/30 locally).
openrouter/deepseek/deepseek-v4.1-flash (free via Pullfrog for OSS) | 𝕏
There was a problem hiding this comment.
✅ No new issues found.
Reviewed changes
This run reviewed commit 8f4a811 ("fix(mobile): present foreground pushes through Expo public APIs"), the only commit since the prior pullfrog review. It replaces the native expo-notifications patch with a JS listener and reverts the Android buildFromSource override.
- Replaced the native Kotlin patch with Expo public APIs.
mobile/src/notifications/android-foreground-push.tssubscribes toaddNotificationReceivedListener; for Android data-onlypushtriggers (remoteMessage.notification === null) carrying a recognized Orca payload with visible text, it re-schedules the alert viascheduleNotificationAsync, preserving the original identifier, content, andchannelIdtarget. - Reverted the Android build-from-source override. The
NotificationsHandler.kthunk is removed frommobile/patches/expo-notifications@55.0.27.patch(leaving only the token-retry fix) and theexpo.autolinking.android.buildFromSourceblock is dropped frommobile/package.json; the lockfile patch hash is bumped to match. - Wired the listener into the app root.
_layout.tsxstarts it in a mount effect, mirroring the adjacent token-sync subscription.
Verified against the expo-notifications sdk-55 source: ExpoHandlingDelegate.handleNotification notifies every registered listener in the foreground, so a data-only push still reaches NotificationsEmitter even though NotificationsHandler early-returns for data-only content. Re-scheduling with a null/ChannelAware trigger routes back through NotificationsHandler, so the local notification still flows through foregroundNotificationBehavior (consent / host / viewing / dismissal suppression) and is presented exactly once — no double banner and no regression to the dispatch path.
openrouter/deepseek/deepseek-v4.1-flash (free via Pullfrog for OSS) | 𝕏
There was a problem hiding this comment.
✅ No new issues found.
Reviewed changes
This run reviewed commit de91281 ("fix(mobile): check push eligibility before foreground scheduling"), the only commit since the prior pullfrog review.
- Split the one-shot duplicate claim from eligibility.
shouldSuppressForegroundPushno longer consumesclaimForegroundPush;foregroundNotificationBehaviornow composesineligible || (payload !== null && !claimForegroundPush(payload)), preserving the prior "claim only when eligible" short-circuit (the claim stays unconsumed when any consent/host/viewing/dismissal check suppresses). - Added a non-consuming preflight.
canPresentForegroundPush(payload)exposes the eligibility check without claiming, andandroid-foreground-push.tsawaits it beforescheduleNotificationAsync, so a dismissed, unpaired, viewing-suppressed, or consent-off data push is never re-scheduled. This is load-bearing because when native presentation bypasses the JS handler, the preflight is the only eligibility guard — the claim never runs. - Preflight failures fail closed. A rejected eligibility read is caught by the existing
present().catch(warn, no schedule), andforegroundNotificationBehaviorretains its.catch(() => payload !== null)closure for recognized pushes. - Added regression coverage. Tests assert the preflight does not consume the final claim, a dismissal observed after the preflight suppresses scheduling, and a rejected eligibility read logs and schedules nothing.
Verified the mobile suite for the touched/related files (android-foreground-push, push-receive, push-dismissal-native-races): 26 tests pass.
openrouter/deepseek/deepseek-v4.1-flash (free via Pullfrog for OSS) | 𝕏
There was a problem hiding this comment.
✅ No new issues found.
Reviewed changes
This run reviewed commit c7b0e0b ("fix(mobile): register push from shared host connection lifecycle"), the only commit since the prior pullfrog review. It moves gateway push registration out of the home screen hook and into the shared host-entry lifecycle, so a paired host registers whenever its client is opened instead of only when the home screen mounts.
- Moved
attachPushRegistrationinto the shared opener.host-entry-opener.tsnow attaches once onconnected(??=), detaches on any non-connected transition and onunsubState;use-mobile-home-host-connections.tsdrops its duplicate copy, so registration tracks the client's auth state rather than the home screen's mount. - Added lifecycle regression coverage. Two
client-context.test.tstests assert attach-on-connect (including an already-authenticated host), no double-attach on a repeatedconnected, detach on disconnect, re-attach on reconnect, and detach on unmount/explicit disconnect. - Stubbed the new transport-layer import in existing tests.
host-open-recovery.test.tsxandsettings-host-client-lifecycle.test.tsmock../notifications/push-registration, keeping those transport tests off the expo-notifications module path now reachable fromclient-context. ProductionattachPushRegistrationis idempotent per client and no-ops on non-push-capable hosts, so the widened call site does not double-register.
openrouter/deepseek/deepseek-v4.1-flash (free via Pullfrog for OSS) | 𝕏
Each of the four conflict resolutions checked directly rather than by assertion: the app config evaluated under all four env combinations, every script named in `lint` resolved and diffed against upstream's, and both statements in the hook server proved covered by deleting each and watching a gate go red. The e2e spec parses and keeps both sides' changes. The delivery's move to typed RPC operations re-verified end to end on a Xiaomi 15 against a real Orca host: 1506/1506 bytes identical to the shared kernel, zero engine errors, zero dropped stream events. The seven outcome mappings stay covered because the unit tests fake at the transport port, so runRpcOperation's decode and acceptance policy execute for real. One problem only a device could show: upstream stablyai#20068 adds the expo-task-manager native module, so the pre-merge dev client white-screened on `Cannot find native module 'ExpoTaskManager'`. Rebuilt and reinstalled; recorded that a native dependency change now requires rebuilding the client before any device run. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Ddyy32VYir3LAeFDHv71UT

Restores mobile push for delivery validation after the rollout revert. Android cold background launches now register the dismissal task before the router starts, so dismissals can run without mounting a screen.
Depends on #20066, which prevents Google from collapsing distinct pending alerts. This PR remains unmerged while recovery is tested.
Validation: full mobile suite (4,426 passed, 3 skipped), typecheck, and a standalone Android emulator build. With a controlled Google connection, six offline alerts all appeared; a cold-start dismissal removed only its target; tapping an alert opened Terminal 2 in its workspace. The separate network connection failure is not fixed by these changes.
Production gateway verification after deployment of #20066: confirmed app process absent, queued six alerts offline, received all six after Google's automatic fallback to port 443 (~73 seconds), then dismissed only alert 1 while 2–6 remained. No network workaround used. Temporary registration removed. Mobile CI verify passed.