Skip to content

OX Mobile: changes to the PWA retirement plan after review #95

Backlog

Description

@n0rpan

Review of the handoff plan "OX Mobile to PWA retirement" (2026-11-28, branch spike/ios-gpui-89 at 1c3e0c2, follow-up to #89). These decisions refine the plan for a native phone app that shares Rust session, pairing, and approval logic with desktop.

Product position this plan now serves

A user can run only a headless OX host and the phone app. The phone is then a complete client, not a companion to the desktop. That decides most of the parity table: features have to work on the phone unless there is a specific reason they cannot.

Agreed changes

1. Land on main in small pull requests; TestFlight builds come from main

  • Land the shared-crate changes first, as small pull requests: ox-desk-core/src/store/replica.rs, store/replica/transport.rs, ox-desktop/src/platform/host_client.rs, and in ox-host-web: access.rs, admin.rs, client.rs, lib.rs, paired_hosts.rs, pairing.rs, serve.rs, Cargo.toml. Rebase or cherry-pick each change against current main.
  • Move the app out of experiments/ios-gpui into the desktop workspace so it shares the pinned gpui-pre version and one lock file, and so desktop/ci/pr_scope.py can select it.
  • Every pull request that touches the app or the shared crates builds the unsigned iPhone app and runs the simulator launch check. Neither needs a secret.
  • Add a TestFlight job alongside sign-macos for releases from main. Use the CI run number and attempt for TestFlight build numbers from main. Build unsigned, then pass the artifact from the same run to a separate signing job with a sparse checkout. Report TestFlight delivery separately so an Apple upload failure can be retried independently of desktop release delivery.
  • Replace the spike workflow and its [testflight-upload] commit-message trigger with a TestFlight workflow that signs only on main.
  • Verify the first upload from main. TestFlight upload succeeded for OX Mobile 0.1.0 (661.1). App Store Connect processing and device installation remain unverified.

2. Android stays in the plan, one step behind iOS

The shared app already builds for Android and runs in an emulator, so it is kept.

  • Android builds and its emulator checks run in CI from the start.
  • Test the Android keyboard, camera, notifications, and distribution on a physical device. Before PWA retirement, run the end-to-end headless workflow on a real iPhone and a real Android device, including opening an approval from a push while the app is closed.
  • An iPhone beta does not wait for Android. Retirement of the browser client does.

3. Approval push for self-hosted OX

Treat approval alerts as a phase 2 feature and a requirement for PWA retirement. Keep the next keyboard and QR beta on its own schedule. A self-hosted OX host can opt in to send approval events over outbound HTTPS to a small relay. Session traffic and approval decisions stay between the paired app and host. The paired workflow also works with push disabled or the relay unavailable.

  • In phase 0, validate a small OX-operated relay as the pilot for official iOS and Android builds. The relay holds dedicated APNs and FCM credentials. Keep these separate from the Apple signing certificate and App Store Connect upload key. Confirm the signed iOS build has the push capability and a TestFlight provisioning profile with the production APNs entitlement. APNs connection requirements · FCM server authentication
  • Try Vercel Hobby if the pilot qualifies under its personal and non-commercial usage terms. Verify outbound APNs HTTP/2 from the chosen function runtime, FCM HTTPS, and the limits for both invocations and the durable registration store. Keep the relay portable to a paid service or a small container and include deployment instructions for a self-operated relay. Independent delivery needs provider credentials authorized for the installed app. Official OX builds use an OX-authorized relay by default. Operators with their own APNs and FCM credentials can use the same relay with their own app builds. Vercel Hobby plan
  • Bind notification enrollment to a paired device and host, and revoke it when the device is unpaired. Send a generic lock-screen alert such as “OX needs your approval” with an opaque reference. Keep the data the relay handles to device routing, event references, and delivery metadata. Keep prompts, commands, pairing keys, and approval authority on the host and paired device. Bound retries by the event expiry and test deduplication, rate limits, and token rotation. Update docs/threat-model.md and SECURITY.md with the relay trust model.
  • Ship tap-through first. From a locked phone or a cold launch, open the right host and approval, then fetch its current state from the host. Handle offline hosts and already resolved approvals. Test push on the real signed iPhone build and repeat on Android before retiring the PWA.

4. Add what the browser cannot do

The plan rebuilds the browser client natively. These are the reasons to be native at all, and they are missing from it:

  • Add notification actions after tap-through works. Authenticate the action and have the host validate that the exact request is still pending. Test actions from a locked phone, duplicate taps, and loss of connectivity.
  • A live view of running sessions on the lock screen (Live Activity on iPhone).
  • Face ID or the device passcode before sensitive actions (terminal access, copying keys to a host), as a setting.

5. Parity: native, in the order a headless-only user needs it

With the product position above, "desktop has it" is no longer the default. Suggested order:

  1. Getting started without a desktop. Pair a headless host from its command line (a QR code and a code printed in the terminal). Sign in to subscriptions and add provider keys from the phone.
  2. Daily sessions. Already phase 2 of the plan.
  3. Terminal. On a headless host it is the only way to a shell.
  4. Host care. Updates, paired devices and revocation, remote access.
  5. Multiple hosts, workers, session moves, memory.
  6. Advanced configuration.
  • For each row of the plan's parity table, record "native" and its place in this order, or the specific reason it stays elsewhere.

6. Security review of native pairing

Native pairing is a new way into the host, and the phone stores a device key in a new place.

  • Review the pairing changes in pairing.rs, access.rs, and client.rs. The post-merge source scan of #96 at 0286126 covered 11 changed files and reported no findings. Live device and Tailscale checks remain open.
  • Describe in the threat model where the phone keeps its device key and what protects it. #98 documents iOS Keychain and Android app-private storage.

7. Write down the test for GPUI as the phone UI

The spike answered #89 as "core yes, views no": the phone UI is new GPUI code, and the pinned iOS backend disables autocorrection, so the composer needs a native editor. The plan reassesses GPUI after the next beta.

  • Use native adapters for the editor, camera, and file pickers as needed. After the next beta, verify keyboard behavior, scrolling, and access to the transcript and composer with VoiceOver and TalkBack. If GPUI cannot integrate those controls reliably or core screens fail the accessibility checks, prototype one screen as a native view using the same Rust store and transport before expanding that approach.

Release and settings decisions

A. Sign iOS builds from main

Use one apple-release environment. Signed iOS uploads come from main after merge. Agent branches and pull requests run unsigned builds and simulator checks.

B. Build settings and administration natively

  • Build the settings needed by a phone-only user as native screens on the shared Rust client and signed host APIs. Start with pairing, provider setup, and device management. Finish the headless parity checklist before retiring the browser client.

Effort

The plan's 4 to 8 working days to the next iPhone beta looks right. With a headless host and the phone as the only clients, treat 6 to 10 weeks as a lower-end estimate. Re-estimate retirement after the native approval push pilot and the first headless setup flow are verified on devices.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions