Skip to content

fix(pairing): connect one iPhone with a code and clear restart - #1721

Merged
frahlg merged 1 commit into
masterfrom
codex/iphone-pair-code
Oct 18, 2026
Merged

frahlg merged 1 commit into
masterfrom
codex/iphone-pair-code

Conversation

@frahlg

@frahlg frahlg commented Oct 18, 2026 •

Copy link
Copy Markdown
Member

An owner with only an iPhone cannot scan the QR shown in Safari on that phone. Turning on the app link also needs a restart, but the action is hard to find after dismissing the save dialog.

The app tab now offers a direct iPhone link, an explicit copy action, and an eight-character pairing code with the box address. The iPhone exchanges that code directly with the box on the home Wi-Fi. The exchange keeps the code's role, expiry and five-guess limit, replaces it once with a full 128-bit enrollment token, and keeps the existing local-address, house-password and browser-origin checks. App sessions and proxies cannot claim it. No short-code hash or trust material goes through a cloud lookup.

Save and restart FTW stays beside the setting. It saves before restarting, shows progress, handles a refusal and returns to the app tab after reload. Code and copy actions stay visible when the buttons wrap on a phone.

Paired iOS change: srcfl/ftw-app#90. The short-code path needs both changes; the QR format stays v3.

Validation:

  • make verify: passed.
  • npm test: 776 passed.
  • Real HTTP route with the box's actual enrollment identity: passed. Role/expiry, replay, five wrong attempts and concurrent claims: passed, including race checks.
  • Browser check at desktop and 390 px with the production settings code and a simulated box: code, copy, QR/link and restart return. No production box was restarted.

Human UI review and a physical iPhone check remain. This PR does not publish a beta.

Signed-off-by: Fredrik Ahlgren <fredrik@sourceful-labs.com>
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 18, 2026 •

Copy link
Copy Markdown

Codex Review Summary

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

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-18T06:33:43.227530Z 7622380 Draft marked ready
ℹ️ 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.

@frahlg
frahlg merged commit 4223a25 into master Oct 18, 2026
22 checks passed
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