Repository navigation
revert: hold mobile push feature for user testing - #19203
Conversation
Reverts 3160b54. Restore through a separate draft PR after user validation.
|
Too many files changed for review (210 files, 100 file limit). Bypass the limit by tagging |
|
Caution Review failedThe pull request is closed. ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Team Run ID: ⛔ Files ignored due to path filters (1)
📒 Files selected for processing (209)
📝 WalkthroughWalkthroughThe change removes the mobile push gateway and its Cloud Run, database, Terraform, deployment, and contract components. Desktop push registration, gateway communication, and related runtime RPC methods are removed. Mobile push registration, background notification settings, payload handling, and tray reconciliation are removed. Local notifications use a configured Android channel. Notification dispatch and terminal completion behavior are updated. Relay host proof handling now contains its own protocol helpers. ✨ Finishing Touches📝 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.
✅ Clean, faithful revert — one non-blocking rollout note below.
Reviewed changes
- Revert of the mobile push feature (#18554) — removes the push gateway app (
cloud/apps/push), its wire-contract package (cloud/packages/push-contract), and the host-side push dispatch/registration (src/main/runtime/push/*), restoring the pre-feature state. - Postgres-schema refactor undone — deletes the shared
@orca-cloud/postgres-schemapackage and inlinesapplyPostgresSchemaback intocloud/apps/relay/src/postgres-schema-startup.ts, with the relayDockerfile/package.jsondropping the workspace dependency. - Mobile client push removed — deletes push registration/receive/preference modules, the background-notifications UI, and the FCM/APNs config (
app.config.js,google-services.json, theexpo-notificationsplugin entry), while leaving the pre-existing local-notification path intact. - Infra and docs reverted — removes
cloud/infra/terraform/push-gateway.tf(plus itsvariables.tf/outputs.tfentries), thecloud-push-deployworkflow, and the push contract/runbook docs.
I verified the revert is faithful: no lingering references to the removed capability constants (notifications.remote-push.v1, notifications.delivery-preferences.v1) or push symbols anywhere in the tree, no commits landed on main between #18554 and this revert that touched the reverted files, and git diff <#18554-parent> <head> over the push files shows the pre-feature state is restored byte-for-byte (only drift is from unrelated main work, correctly preserved).
ℹ️ Removing the gateway's Terraform may tear down the "still-deployed" gateway on the next relay apply
The PR body says the deployed gateway "remains available for that testing," but push-gateway.tf, its variables.tf/outputs.tf entries, and cloud-push-deploy.yml are all deleted from main. The push-gateway.tf comments describe importing those resources into the same onorca-cloud plan the relay root uses, so the next relay terraform apply would destroy the Cloud Run service, its secrets accessor bindings, and its SQL database as drift — contradicting "remains available." Worth confirming the hold strategy either keeps the gateway's IaC somewhere out of the relay root, or that no relay apply is scheduled during the hold window.
Technical details
# Terraform drift vs. "gateway remains available"
## Affected sites
- cloud/infra/terraform/push-gateway.tf — deleted; its resources (Cloud Run service, service account, secrets bindings, SQL database) are no longer declared in the root module
- cloud/infra/terraform/variables.tf / outputs.tf — push_* variables and outputs removed
- .github/workflows/cloud-push-deploy.yml — deleted deploy workflow
## Required outcome
- Confirm the deployed production gateway is not destroyed by the next relay terraform apply, or that the destruction is accepted and the hold window is scoped before that apply.
## Open questions for the human
- Does the push gateway share Terraform state with the relay root, or is it managed separately (so the relay apply never touches it)?DeepSeek Pro (free via Pullfrog for OSS) | 𝕏

Reverts #18554 (3160b54) so background mobile push and notification preference changes remain out of main until the owner has tested and approved them.
The deployed gateway and installed test builds remain available for that testing. The feature will be restored in a separate draft PR, with no auto-merge.
Validation: clean revert on latest main; staged lint/format checks passed; 15 notification tests passed across 2 files. The pnpm test wrapper hit a local node-pty rebuild symlink error; running the same tests directly through Vitest passed.