Skip to content

Land the native OX Mobile app and TestFlight delivery from main - #97

Merged
n0rpan merged 13 commits into
mainfrom
mobile/native-app
Nov 28, 2026
Merged

n0rpan merged 13 commits into
mainfrom
mobile/native-app

Conversation

@n0rpan

@n0rpan n0rpan commented Nov 28, 2026 •

Copy link
Copy Markdown
Collaborator

Uses the shared Rust transport landed in #96. Checked against main at 7da94a2 and ported from spike/ios-gpui-89 at 1c3e0c2. Tracks #95 and follows up on #89.

  • Move the current native iOS and Android client into desktop/ox-mobile. It uses the desktop workspace lockfile, GPUI pins, shared session store, and paired host client.
  • Run unsigned iOS builds, an iOS simulator launch check, and an Android emulator launch check for changes to the app and shared Rust code.
  • Sign dev.ox.mobile from main using the existing apple-release environment. TestFlight uses the CI run number, builds without credentials, and signs the unsigned artifact in a separate job. Desktop publication has its own dependencies.

Linux validation passed for the unsigned arm64 iOS link, the debug Android APK build, Cargo dependency boundaries, workflow lint, and the CI selector tests. The prior spike exercised the signing scripts. The new main-only signing and upload path first runs after merge. Native editing, QR scanning, and approval push remain follow-ups in #95.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 28, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-28T22:39:02.423088Z 199f124 Manual request
🔒 Security Review ✅ Completed 2026-11-28T19:35:39.558271Z e1326ae PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: e1326aee52

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread desktop/ox-mobile/src/mobile.rs Resolved

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: d93c3f233e

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread desktop/ox-mobile/src/mobile.rs Resolved
Comment thread desktop/ox-mobile/src/mobile.rs Resolved

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 61e0d73f10

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread desktop/ox-mobile/src/mobile.rs Resolved
Base automatically changed from mobile/shared-session-core to main November 28, 2026 21:16

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 6e34cc5a52

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread desktop/ox-mobile/src/mobile.rs Resolved
@n0rpan n0rpan added the full-ci label Nov 28, 2026
@n0rpan

n0rpan commented Nov 28, 2026 •

Copy link
Copy Markdown
Collaborator Author

In line to merge. Commit 199f124 is reviewed with nothing blocking; it enters the merge queue when OX merge check passes.

@n0rpan

n0rpan commented Nov 28, 2026

Copy link
Copy Markdown
Collaborator Author

@codex security review

Asked for by the full-ci label, for commit b50800f.

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. 🎉

Reviewed commit: b50800f50a

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@n0rpan

n0rpan commented Nov 28, 2026

Copy link
Copy Markdown
Collaborator Author

I checked the failed Intel job on the previous head (6e34cc5). Rustup could not resolve static.rust-lang.org while fetching the Rust 1.100.0 manifest, so the native test command stopped before compiling the PR. The failed job is superseded by the full CI run on b50800f.

@n0rpan
n0rpan enabled auto-merge November 28, 2026 21:24
@n0rpan
n0rpan added this pull request to the merge queue Nov 28, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to a conflict with the base branch Nov 28, 2026
@n0rpan

n0rpan commented Nov 28, 2026

Copy link
Copy Markdown
Collaborator Author

@codex security review

Asked for by the full-ci label, for commit 57f3a82.

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Another round soon, please!

Reviewed commit: 57f3a82f3b

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@n0rpan
n0rpan enabled auto-merge November 28, 2026 22:13
@n0rpan
n0rpan disabled auto-merge November 28, 2026 22:30
@n0rpan n0rpan removed the full-ci label Nov 28, 2026
@n0rpan n0rpan added the full-ci label Nov 28, 2026
@n0rpan

n0rpan commented Nov 28, 2026

Copy link
Copy Markdown
Collaborator Author

@codex security review

Asked for by the full-ci label, for commit 199f124.

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Hooray!

Reviewed commit: 199f12496d

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@n0rpan
n0rpan enabled auto-merge November 28, 2026 22:39
@n0rpan
n0rpan added this pull request to the merge queue Nov 28, 2026
Merged via the queue into main with commit c38cccb Nov 28, 2026
42 of 59 checks passed
@n0rpan
n0rpan deleted the mobile/native-app branch November 28, 2026 23:14
n0rpan added a commit that referenced this pull request Nov 29, 2026
* Share the native host session transport with mobile

* Land the native mobile app and TestFlight delivery from main

* Page mobile conversations and find the Android SDK in CI

* Start ADB before booting the Android CI emulator

* Set a shared AVD directory for Android CI

* Scan pairing QR codes natively on iOS

Add an AVFoundation camera adapter behind a narrow C bridge. The Pair screen requests camera permission, scans an OX invitation, and hands the link to the existing Rust verified pairing flow. Cancel, denied, unavailable and invalid codes keep manual entry available, and the scanner stops after one accepted code so a repeated frame cannot pair twice.

Tracks #95. Based on #97.

* Use a UIKit message composer on iPhone

* Validate scanned invitations with the shared pairing parser

* Verify native editor layout in the iPhone simulator

* Use LavaPipe for the Android emulator smoke check

* Add provider API key setup to OX Mobile

Add a native Provider API keys screen for a paired host. It reads the
allowlisted ReadRows snapshot through PairedClient::settings, shows each
direct provider and whether the host reports a saved or environment key,
and submits a masked replacement or first key with the shared typed
EditKey request. The host normalizes the destination and never returns a
saved value; the phone does not keep the typed key after the save.

No server change: ReadRows and EditKey are already on the signed settings
allowlist. Subscription sign-in and unrelated settings stay out of this
step.

* Make QR the primary iPhone pairing action

* Key provider edits by their canonical host destination

* Isolate the iPhone simulator device set in CI

* Keep mobile drafts and make approval questions usable

* Capture the primary display in the iPhone launch check

* Let mobile reconnect when the runtime needs sign-in

* Add host update settings to OX Mobile

The phone now shows and changes the host's update settings through the
existing signed `host_update` settings action, with the host keeping every
update decision.

- Export `host_updates` on iOS and Android and build the settings envelope
  in one place (`host_updates::request`), used by the desktop client and the
  phone, so the command cannot drift between them.
- Add a Host updates screen: installed version, the host's own state
  message, update mode, release channel, scheduled status, schedule/cancel
  and refresh. Unmanaged installations show the status and installation
  guidance without controls.
- Replies are the host's authoritative `Status`; controls are disabled while
  a request is out, a reply is dropped when the paired host or the screen
  changed, and a failed initial load offers a retry.

Tests are wire-only: the command JSON, the settings envelope the server
parses, and the status reply. No test host preferences or downloads run.

* Keep the update controller off mobile targets

* Bind mobile approvals to the exact request reviewed

* Enter mobile provider keys in native secure fields

Bind the native prompt to the provider row and key-store revision it opened for. The phone saves only after the operator confirms, and discloses when a write replaces a key saved for another endpoint.

Verified the iPhoneOS 27.1 Linux xtool build, ARM64 Android check, x86_64 Android APK build, and an Android emulator fixture with password and no-learning flags, masking, cancel, and submit.

* Add host update settings to OX Mobile

The phone now shows and changes the host's update settings through the
existing signed `host_update` settings action, with the host keeping every
update decision.

- Export `host_updates` on iOS and Android and build the settings envelope
  in one place (`host_updates::request`), used by the desktop client and the
  phone, so the command cannot drift between them.
- Add a Host updates screen: installed version, the host's own state
  message, update mode, release channel, scheduled status, schedule/cancel
  and refresh. Unmanaged installations show the status and installation
  guidance without controls.
- Replies are the host's authoritative `Status`; controls are disabled while
  a request is out, a reply is dropped when the paired host or the screen
  changed, and a failed initial load offers a retry.

Tests are wire-only: the command JSON, the settings envelope the server
parses, and the status reply. No test host preferences or downloads run.

(cherry picked from commit 1e52e2c)

* Keep the update controller off mobile targets

(cherry picked from commit b5b2e17)

* Keep iPhone key entry open during app switching

* Run the mobile Rust unit tests in the Android CI job

* Keep QR camera linkage compatible with the activity bridge

* Keep key setup separate from subscription sign-in

---------

Co-authored-by: OX Worker <[email protected]>
Co-authored-by: Claude Code <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant