Skip to content

Manage headless host updates from OX Mobile - #121

Merged
n0rpan merged 21 commits into
mainfrom
mobile/host-updates
Nov 29, 2026
Merged

n0rpan merged 21 commits into
mainfrom
mobile/host-updates

Conversation

@n0rpan

@n0rpan n0rpan commented Nov 28, 2026

Copy link
Copy Markdown
Collaborator

Part of #95, stacked on #97. Adds Host updates to mobile Settings. The screen shows the installed version and the host’s status, with controls for update mode, release channel, scheduling and cancellation. It uses the existing signed settings action and renders the state returned by the host.

Validation

  • Six focused host update tests passed. The worker also ran the host server suite, with 73 passing and six fixtures marked ignored by their harness.
  • The Linux iPhone cross-build passed with xtool’s linker and the iPhoneOS 27.1 SDK. git diff --check and the desktop formatter passed.
  • The update controls still need a live phone-to-host test.

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.
@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-29T03:33:02.472685Z e79bf9f Manual request
🔒 Security Review ✅ Completed 2026-11-28T21:46:53.093091Z b5b2e17 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.

Base automatically changed from mobile/native-app to main November 28, 2026 23:14
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)
@n0rpan

n0rpan commented Nov 29, 2026

Copy link
Copy Markdown
Collaborator Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

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

Reviewed commit: 9b130b6cba

ℹ️ 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 added the full-ci label Nov 29, 2026
@n0rpan

n0rpan commented Nov 29, 2026 •

Copy link
Copy Markdown
Collaborator Author

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

@n0rpan

n0rpan commented Nov 29, 2026

Copy link
Copy Markdown
Collaborator Author

@codex security review

Asked for by the full-ci label, for commit 1006e5c.

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Can't wait for the next one!

Reviewed commit: 1006e5ca68

ℹ️ 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 29, 2026 01:30
@n0rpan
n0rpan added this pull request to the merge queue Nov 29, 2026
@n0rpan n0rpan removed the full-ci label Nov 29, 2026
@n0rpan
n0rpan removed this pull request from the merge queue due to a manual request Nov 29, 2026
@n0rpan

n0rpan commented Nov 29, 2026

Copy link
Copy Markdown
Collaborator Author

The previous queue head merged cleanly as text, but the combined tree exposed mod updates to host-side mobile tests after the notification bridge enabled those tests. I've dequeued that head. 08418a9 keeps the updates UI on iOS and Android and runs the mobile Rust tests in the Android CI job.

On the combined tree, all 17 host-side mobile tests passed and the iPhoneOS app linked with xtool on Linux.

@n0rpan

n0rpan commented Nov 29, 2026

Copy link
Copy Markdown
Collaborator Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

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

Reviewed commit: e79bf9f4bc

ℹ️ 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 added the full-ci label Nov 29, 2026
@n0rpan

n0rpan commented Nov 29, 2026

Copy link
Copy Markdown
Collaborator Author

@codex security review

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

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Can't wait for the next one!

Reviewed commit: e79bf9f4bc

ℹ️ 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 29, 2026 03:33
@n0rpan
n0rpan added this pull request to the merge queue Nov 29, 2026
Merged via the queue into main with commit 240ba5d Nov 29, 2026
54 of 57 checks passed
@n0rpan
n0rpan deleted the mobile/host-updates branch November 29, 2026 04:27
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