#522

fix(ios): show mounted image readiness on loopback page

OpenScottH1122wants to merge intofrom

Summary of changes

When the loopback is unavailable but a phone-paired mounted developer image can take tasks, the Loopback detail page now shows “Local automation ready” and does not tell the owner to turn on the loopback. The page also recognizes an open in-process session and an active local_ddi handover.

A network probe still in progress does not by itself establish local automation readiness.

Motivation (Closes #N)

Follow-up to #478. That change made the Connection overview and setup row recognize a mounted image, but the Loopback detail page still checked only an open session. After a task closes that session, it could instruct the owner to turn on the loopback while the overview said the next task was ready.

Test plan

  • iPhone 18 Pro Test, iOS 27.3, isolated simulator bundle. Built PokiTests with Xcode and ran FrontendSubtractionTests/testLoopbackPageShowsLocalAutomationWhenMountedImageCanTakeTasks. It passed with a phone pairing and mounted image, then verified that a computer pairing does not show local automation ready.
  • On the original upstream source, testAfterATaskOnTheMountedImageNoScreenAsksForTheLoopback reproduced the contradictory detail page. After the change its mounted-image page assertion passed. Three later assertions in the same existing test still failed while the live loopback probe was checking, and remain under investigation.
  • Physical iPhone and cellular behavior have not been verified.

Screenshots or screen recording

The simulator regression reads the rendered accessibility labels with synthetic pairing data. No physical-device screenshot is available yet.

AI assistance: Codex. I have reviewed and understand these changes.

Activity

3
chatgpt-codex-connector[bot]2d ago
Codex Review Summary: ✅ Completed

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

ReviewStatusCommitReview trigger
📝 Code Review✅ Completed 2026-11-19T12:57:41.281772Z0629a96PR 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.

JosssphZhou2d ago

Thanks for fixing the detail page after a successful mounted-image task. Could you also cover a failed local session? The runner can still report local_ddi after the passcode prompt or session open fails, and the page then says “Local automation ready.” Please show that state alongside the successful standby case.