Skip to content

revert: hold mobile push feature for user testing - #19203

Merged
Jinwoo-H merged 1 commit into
mainfrom
revert/mobile-push-pending-user-test
Sep 7, 2026
Merged

Jinwoo-H merged 1 commit into
mainfrom
revert/mobile-push-pending-user-test

Conversation

@Jinwoo-H

@Jinwoo-H Jinwoo-H commented Sep 7, 2026 •

Copy link
Copy Markdown
Contributor
Files Added Deleted Net
Test 76 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​342 $\color{#cf222e}{\Huge{\mathbf{−}}}$​8080 $\color{#cf222e}{\Huge{\mathbf{−}}}$​7738
Prod 134 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​350 $\color{#cf222e}{\Huge{\mathbf{−}}}$​8903 $\color{#cf222e}{\Huge{\mathbf{−}}}$​8553

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.

Reverts 3160b54. Restore through a separate draft PR after user validation.
@greptile-apps

greptile-apps Bot commented Sep 7, 2026

Copy link
Copy Markdown

Too many files changed for review (210 files, 100 file limit).

Bypass the limit by tagging @greptile-apps to review.

@Jinwoo-H
Jinwoo-H merged commit d53cbed into main Sep 7, 2026
13 checks passed
@coderabbitai

coderabbitai Bot commented Sep 7, 2026

Copy link
Copy Markdown
Contributor

Review Change Stack

Caution

Review failed

The pull request is closed.

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Team

Run ID: e9d4d556-f87b-46ae-9753-1fbf476be068

📥 Commits

Reviewing files that changed from the base of the PR and between f1d8545 and 13109ee.

⛔ Files ignored due to path filters (1)
  • cloud/pnpm-lock.yaml is excluded by !**/pnpm-lock.yaml
📒 Files selected for processing (209)
  • .github/workflows/cloud-push-deploy.yml
  • .github/workflows/cloud-verify.yml
  • .github/workflows/mobile-ios-release.yml
  • .gitignore
  • cloud/README.md
  • cloud/apps/push/Dockerfile
  • cloud/apps/push/package.json
  • cloud/apps/push/src/apns-authentication-token.ts
  • cloud/apps/push/src/apns-client.test.ts
  • cloud/apps/push/src/apns-client.ts
  • cloud/apps/push/src/apns-http2-transport.ts
  • cloud/apps/push/src/apns-session-replacement.test.ts
  • cloud/apps/push/src/apns-stream-response.test.ts
  • cloud/apps/push/src/apns-stream-response.ts
  • cloud/apps/push/src/canonical-base64.ts
  • cloud/apps/push/src/client-ip-rate-limit.test.ts
  • cloud/apps/push/src/client-ip-rate-limit.ts
  • cloud/apps/push/src/coalescer.test.ts
  • cloud/apps/push/src/coalescer.ts
  • cloud/apps/push/src/config.test.ts
  • cloud/apps/push/src/config.ts
  • cloud/apps/push/src/desktop-host-proof-interop.test.ts
  • cloud/apps/push/src/device-registry-store.test.ts
  • cloud/apps/push/src/device-registry-store.ts
  • cloud/apps/push/src/fcm-access-token.ts
  • cloud/apps/push/src/fcm-client.test.ts
  • cloud/apps/push/src/fcm-client.ts
  • cloud/apps/push/src/host-challenge-answering.test-fixture.ts
  • cloud/apps/push/src/host-challenge-store.test.ts
  • cloud/apps/push/src/host-challenge-store.ts
  • cloud/apps/push/src/host-fingerprint.ts
  • cloud/apps/push/src/host-session-store.test.ts
  • cloud/apps/push/src/host-session-store.ts
  • cloud/apps/push/src/index.ts
  • cloud/apps/push/src/provider-retry-delay.ts
  • cloud/apps/push/src/push-database-postgres-startup.test.ts
  • cloud/apps/push/src/push-database.ts
  • cloud/apps/push/src/push-delivery-lifecycle.test.ts
  • cloud/apps/push/src/push-delivery-message.ts
  • cloud/apps/push/src/push-dispatcher.ts
  • cloud/apps/push/src/push-notification-sound.test.ts
  • cloud/apps/push/src/push-observability.ts
  • cloud/apps/push/src/push-provider-outcome.ts
  • cloud/apps/push/src/push-readiness.ts
  • cloud/apps/push/src/push-request-drain.ts
  • cloud/apps/push/src/push-schema.ts
  • cloud/apps/push/src/push-send-idempotency.test.ts
  • cloud/apps/push/src/push-server-auth.test.ts
  • cloud/apps/push/src/push-server-harness.test-fixture.ts
  • cloud/apps/push/src/push-server-limits.test.ts
  • cloud/apps/push/src/push-server-send.test.ts
  • cloud/apps/push/src/push-server.ts
  • cloud/apps/push/src/push-session-concurrency.test.ts
  • cloud/apps/push/src/push-session-schema.ts
  • cloud/apps/push/src/send-quota-postgres.test.ts
  • cloud/apps/push/src/send-quota.test.ts
  • cloud/apps/push/src/send-quota.ts
  • cloud/apps/push/tsconfig.build.json
  • cloud/apps/push/tsconfig.json
  • cloud/apps/push/vitest.config.ts
  • cloud/apps/relay/Dockerfile
  • cloud/apps/relay/package.json
  • cloud/apps/relay/src/postgres-schema-startup.ts
  • cloud/dev/fixtures/terraform-root-partition/families.json
  • cloud/dev/scripts/cloud-sql-rollout-lock-census.mjs
  • cloud/dev/scripts/push-gateway-recovery.test.mjs
  • cloud/dev/scripts/push-gateway-workflow.test.mjs
  • cloud/dev/scripts/relay-cloud-sql-connection-budget.mjs
  • cloud/dev/scripts/relay-cloud-sql-connection-budget.test.mjs
  • cloud/dev/scripts/relay-production-identity-boundaries.test.mjs
  • cloud/dev/scripts/relay-public-workflow-contract.test.mjs
  • cloud/dev/scripts/workload-identity-attribute-conditions.test.mjs
  • cloud/docs/push-gateway.md
  • cloud/docs/relay-workflows.md
  • cloud/infra/terraform/environments/production.tfvars
  • cloud/infra/terraform/environments/staging.tfvars
  • cloud/infra/terraform/outputs.tf
  • cloud/infra/terraform/push-gateway.tf
  • cloud/infra/terraform/relay-github-actions.tf
  • cloud/infra/terraform/variables.tf
  • cloud/package.json
  • cloud/packages/postgres-schema/package.json
  • cloud/packages/postgres-schema/src/index.ts
  • cloud/packages/postgres-schema/tsconfig.build.json
  • cloud/packages/postgres-schema/tsconfig.json
  • cloud/packages/push-contract/package.json
  • cloud/packages/push-contract/src/apns-token-length.test.ts
  • cloud/packages/push-contract/src/contract.test.ts
  • cloud/packages/push-contract/src/device-registration-messages.ts
  • cloud/packages/push-contract/src/host-auth-messages.ts
  • cloud/packages/push-contract/src/index.ts
  • cloud/packages/push-contract/src/notification-identity-limits.test.ts
  • cloud/packages/push-contract/src/push-host-proof-transcript.test.ts
  • cloud/packages/push-contract/src/push-host-proof-transcript.ts
  • cloud/packages/push-contract/src/push-host-proof-vector.json
  • cloud/packages/push-contract/src/push-limits.ts
  • cloud/packages/push-contract/src/send-messages.test.ts
  • cloud/packages/push-contract/src/send-messages.ts
  • cloud/packages/push-contract/src/wire-scalars.ts
  • cloud/packages/push-contract/tsconfig.build.json
  • cloud/packages/push-contract/tsconfig.json
  • docs/reference/headless-linux-server.md
  • docs/reference/mobile-push-contract.md
  • docs/site/content/docs/mobile.mdx
  • docs/site/content/docs/notifications.mdx
  • mobile/app.config.js
  • mobile/app.json
  • mobile/app/_layout.tsx
  • mobile/app/notifications.tsx
  • mobile/google-services.json
  • mobile/src/home/use-mobile-home-host-connections.ts
  • mobile/src/notifications/BackgroundNotificationsSection.test.tsx
  • mobile/src/notifications/BackgroundNotificationsSection.tsx
  • mobile/src/notifications/NotificationDeliverySection.test.tsx
  • mobile/src/notifications/NotificationDeliverySection.tsx
  • mobile/src/notifications/desktop-notification-channel.test.ts
  • mobile/src/notifications/desktop-notification-channel.ts
  • mobile/src/notifications/local-notification-scheduling.ts
  • mobile/src/notifications/mobile-notifications.test.ts
  • mobile/src/notifications/mobile-notifications.ts
  • mobile/src/notifications/native-notification-data.test.ts
  • mobile/src/notifications/native-notification-data.ts
  • mobile/src/notifications/notification-catchup-failure-quarantine.test.ts
  • mobile/src/notifications/notification-delivery-ordering.test.ts
  • mobile/src/notifications/notification-delivery-preferences.test.ts
  • mobile/src/notifications/notification-delivery-preferences.ts
  • mobile/src/notifications/notification-local-delivery.test.ts
  • mobile/src/notifications/notification-local-dismissal.test.ts
  • mobile/src/notifications/notification-reconnect-teardown.test.ts
  • mobile/src/notifications/notification-reopen-push-duplicate.test.ts
  • mobile/src/notifications/notification-viewing-policy.ts
  • mobile/src/notifications/notification-watermark-seed-race.test.ts
  • mobile/src/notifications/push-host-fingerprint.test.ts
  • mobile/src/notifications/push-host-fingerprint.ts
  • mobile/src/notifications/push-payload.ts
  • mobile/src/notifications/push-preference-update.test.ts
  • mobile/src/notifications/push-receive.test.ts
  • mobile/src/notifications/push-receive.ts
  • mobile/src/notifications/push-registration.test.ts
  • mobile/src/notifications/push-registration.ts
  • mobile/src/notifications/push-token.test.ts
  • mobile/src/notifications/push-token.ts
  • mobile/src/notifications/push-tray-dismissal.test.ts
  • mobile/src/notifications/push-tray-dismissal.ts
  • mobile/src/notifications/push-tray-seen-seed.test.ts
  • mobile/src/notifications/push-tray-seen-seed.ts
  • mobile/src/notifications/socket-push-delivery-handoff.test.ts
  • mobile/src/notifications/socket-push-delivery-handoff.ts
  • mobile/src/notifications/use-remote-push-capable-hosts.test.tsx
  • mobile/src/notifications/use-remote-push-capable-hosts.ts
  • mobile/src/storage/preferences.ts
  • mobile/src/transport/host-removal-lifecycle.test.ts
  • mobile/src/transport/host-removal-lifecycle.ts
  • src/main/global-fetch-call-site-audit.test.ts
  • src/main/ipc/notification-burst-cooldown.ts
  • src/main/ipc/notification-options.ts
  • src/main/ipc/notifications-message-formatting.test.ts
  • src/main/ipc/notifications-mobile-fanout.test.ts
  • src/main/ipc/notifications.ts
  • src/main/orca-profiles/profile-cloud-auth-config.ts
  • src/main/runtime/device-registry.ts
  • src/main/runtime/host-challenge-envelope.ts
  • src/main/runtime/push/desktop-push-service.test.ts
  • src/main/runtime/push/desktop-push-service.ts
  • src/main/runtime/push/push-agent-state.test.ts
  • src/main/runtime/push/push-cleanup-auth-expiry.test.ts
  • src/main/runtime/push/push-device-registration-persistence.test.ts
  • src/main/runtime/push/push-dispatcher.test-fixture.ts
  • src/main/runtime/push/push-dispatcher.test.ts
  • src/main/runtime/push/push-dispatcher.ts
  • src/main/runtime/push/push-gateway-client.test.ts
  • src/main/runtime/push/push-gateway-client.ts
  • src/main/runtime/push/push-gateway-response.ts
  • src/main/runtime/push/push-gateway-session.test.ts
  • src/main/runtime/push/push-gateway-session.ts
  • src/main/runtime/push/push-host-challenge-fixtures.ts
  • src/main/runtime/push/push-host-proof-vector.test.ts
  • src/main/runtime/push/push-host-proof.test.ts
  • src/main/runtime/push/push-host-proof.ts
  • src/main/runtime/push/push-outcome-counters.test.ts
  • src/main/runtime/push/push-outcome-counters.ts
  • src/main/runtime/push/push-preferences.test.ts
  • src/main/runtime/push/push-register-throttle.ts
  • src/main/runtime/push/push-registration-races.test.ts
  • src/main/runtime/push/push-registration-rpc.test.ts
  • src/main/runtime/push/push-unregister-outbox.test.ts
  • src/main/runtime/push/push-unregister-outbox.ts
  • src/main/runtime/relay/relay-host-proof.ts
  • src/main/runtime/rpc/methods/notification-preferences.test.ts
  • src/main/runtime/rpc/methods/notification-stream-policy.ts
  • src/main/runtime/rpc/methods/notifications.ts
  • src/main/runtime/runtime-mobile-notification-controller.ts
  • src/main/runtime/runtime-rpc/runtime-rpc-mobile-method-allowlist.ts
  • src/main/runtime/runtime-rpc/runtime-rpc-pairing.ts
  • src/main/runtime/runtime-rpc/runtime-rpc-state.ts
  • src/main/runtime/runtime-service-command-surface.ts
  • src/main/startup/main-process-push-startup.ts
  • src/main/startup/main-process-quit.ts
  • src/main/startup/main-process-runtime-launch.ts
  • src/main/startup/main-process-state.ts
  • src/renderer/src/components/terminal-pane/agent-task-complete-policy.ts
  • src/renderer/src/components/terminal-pane/parked-terminal-byte-watcher.test.ts
  • src/renderer/src/components/terminal-pane/use-notification-dispatch.test.ts
  • src/renderer/src/components/terminal-pane/use-notification-dispatch.ts
  • src/shared/mobile-notification-policy.test.ts
  • src/shared/mobile-notification-policy.ts
  • src/shared/mobile-push-contract.ts
  • src/shared/notification-burst-cooldown.ts
  • src/shared/protocol-version.ts

📝 Walkthrough

Walkthrough

The 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
  • Create stacked PR
  • Commit on current branch

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@pullfrog pullfrog Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ 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-schema package and inlines applyPostgresSchema back into cloud/apps/relay/src/postgres-schema-startup.ts, with the relay Dockerfile/package.json dropping 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, the expo-notifications plugin entry), while leaving the pre-existing local-notification path intact.
  • Infra and docs reverted — removes cloud/infra/terraform/push-gateway.tf (plus its variables.tf/outputs.tf entries), the cloud-push-deploy workflow, 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)?

Pullfrog  | View workflow run | Using DeepSeek Pro (free via Pullfrog for OSS) | 𝕏

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