Repository navigation
Manage paired devices from OX Mobile - #103
Conversation
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.
…ile/beta-integration
Settings → Paired devices lists the devices paired with this host under this login, marks the phone that is asking, revokes another device, and approves or declines a device waiting in an open pairing window. The screen is a new `devices` module that speaks the existing signed `DeviceAction` requests through `PairedClient::settings` (`devices`, `revoke_device`, `approve_pending`, `deny_pending`). The host's `Reply`, `Device` and `PendingPair` types are not compiled for iOS and Android, so the module keeps a read-only copy of the fields the phone shows; unknown fields from a newer host are ignored. A shorter reply still lists devices. mobile.rs gains the `Screen::Devices` arm, the Settings entry and a `devices` state field, plus the three view helpers the module reuses. No server or signing code changes. Validation: the module and the mobile sources typecheck and pass clippy with `-D warnings` on a host-target stand-in that includes the real files (only the UIKit keyboard bridge and the platform credential store are stubbed), and the reply shape parses both the host's documented JSON and the server's own serde encoding. Not verified: an iOS/Android build or a run against a live host — this machine has no SDK and no mobile test lane. `cargo fmt` and the desktop/ci tests pass. Refs #95.
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
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.
Decode a bounded Camera2 luminance frame with the maintained quircs 0.10.3 crate through a small JNI bridge. The repo-owned Camera2 Activity requests the camera permission once, delivers exactly one result, and releases the camera and handler thread on pause, cancel and finish. It reuses the shared invitation gate and keeps manual text pairing available. Add host tests for decoding a host-style QR and for the JNI frame bounds.
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 3ca9c6b2f6
ℹ️ 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".
Transplant the three QR commits (3172630, 45d5c95, 9bbeb1d) onto 1711f60's native iPhone composer. The shared invitation parser, the manual pairing fallback, the camera usage description and the camera permission handling are kept. The incidental mobile-beta changes that were on the previous PR head are left out. Co-Authored-By: Claude Code <[email protected]>
…-after-android-qr
|
In line to merge. Commit f22344d is reviewed with nothing blocking; it enters the merge queue when |
|
Codex Review: Didn't find any major issues. What shall we delve into next? Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
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". |
Track headless host administration in #95. Add a Paired devices screen to host settings. It marks this phone, shows requests waiting to pair, and lets an operator approve, decline, or revoke another device through the host's existing signed settings requests.
Stacked on #97 at
61e0d73, checked againstmainat3234845. Built and linked the unsigned iPhone app on Linux with xtool’s Darwin linker, and ran formatting andgit diff --check. Live approval and revocation from a phone still need verification.