Repository navigation
fix(ios): handle qualification network permission explicitly - #196284
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
Codex review: needs maintainer review before merge. What this changesThis PR explicitly handles the iOS Local Network permission alert during release qualification and removes temporary pairing diagnostics. Example: Release qualification starts onboarding on a fresh iPhone 17 Pro simulator.
Review scores
ProductKind: Bug fix · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review Keep open: this is a focused repair for an observed iOS qualification failure that remains on main, with successful exact-head native qualification and no actionable introduced defect found. Priority: P2 Before mergeNone. FindingsNone. Agent review detailsHow this fits togetherThe iOS release harness launches the native app through XCTest against an isolated Gateway and produces sanitized pairing, chat, relaunch, and transcript qualification results. flowchart LR
A[Release qualification] --> B[Native XCTest suite]
B --> C[Onboarding helper]
C --> D[SpringBoard permission alert]
C --> E[Manual Gateway pairing]
E --> F[Chat and relaunch assertions]
F --> G[Sanitized qualification proof]
Technical reviewBest possible solution: Retain the direct permission handling and existing qualification assertions, then land through the normal CI gates. Do we have a high-confidence way to reproduce the issue? The diagnostic replay reports failure at the existing interruption monitor's Allow tap, and current main retains that path; the precise XCTest tap-error category is unknown, and no target code was executed during this review. Is this the best way to solve the issue? Directly handling the expected system alert at the existing onboarding helper is a small, coherent repair; the remaining fixture edits preserve incremental progress and private-output exclusion while retiring temporary checkpoints. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against a8d7470fbdcc. Provenance checked
TestingProof path: shipped entry point. SecurityNone. EvidenceWhat I checked:
PR surfaceTests -1, Docs 0, Other 0. Total -1 across 4 files. Added test files: 0. View PR surface stats
Preflight sourceSource unknown. Source comparison at the observed PR snapshot only. Completion is self-reported; body, policy, tests, execution, and report bytes are not verified. LabelsLabel changes:
Label justifications:
Rating scale6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior. WorkflowClawSweeper edits this one comment on every review. Comment Reviewed November 9, 2026, 5:28 PM ET / 22:28 UTC. |
What Problem This Solves
Fixes iOS release qualification failing while answering the expected Local Network permission prompt during onboarding. The diagnostic replay stopped at the interruption monitor’s
Allowtap before pairing.User Impact
No app behavior changes. Qualification explicitly answers this onboarding prompt before proceeding to manual pairing, preserving the existing pairing, chat, relaunch, and transcript assertions.
Why This Change Was Made
Continue deliberately starts local network discovery, so the system prompt is part of the tested flow. Following Apple’s guidance for expected UI interruptions, handle it directly in SpringBoard, wait for its Allow button to be hittable, and require dismissal before continuing. Subsequent helper calls can proceed when permission was already granted. Pin the expected English UI labels. Remove the temporary pairing checkpoints added for this investigation, retaining sanitized assertion locations and existing chat checkpoints.
Evidence
Baseline diagnostic replay: native build passed; XCTest failed at
OpenClawSnapshotUITests+Helpers.swift:388inside the generic interruption monitor. The sanitized proof does not establish the underlying XCTest tap-error category.Candidate qualification-only proof: passed run 42707787652, exact head
46ce2b8a0e1a65f5ab229d84a1f343ce25452a8e. Native build passed on iOS 27.2; pairing/chat/relaunch passed in 105.8 s and keyboard/transcript passed in 77.3 s, with complete proof, no errors, and cleanup confirmed. This workflow cannot upload a release.Second fresh-runner qualification: passed run 42710141438 on the same head, Xcode 27.1, iOS 27.2, and stable Gateway 2026.11.2. Pairing/chat/relaunch passed in 114.5 s; keyboard/transcript passed in 83.8 s. Both runs verified all three expected provider requests and confirmed cleanup.
Harness regression tests: 106 passed, 1.256 s test time / 4.24 s command wall time. Per-file CI timing was not present in the CI run output. No net test-line growth. Existing fixtures still verify incremental checkpoint progress, assertion filename sanitization, and assertion-time evidence capture.
Scripts-test typecheck, focused implementation/test lint, pinned SwiftFormat and SwiftLint, formatting, test-line ratchet, and
git diff --checkpassed.Local ClawSweeper committed-range review completed for
f947b3caf5d0fb04c780205dfeff509d87cd2527..46ce2b8a0e1a65f5ab229d84a1f343ce25452a8e: no code blockers; simulator proof remained pending at review time. Local AutoReview also reported scoped-clean at its P0-only threshold against the full precommit change snapshot; the subsequent test formatting was mechanical.PR CI run 42710068617 passed, including iOS screenshot capture and evidence. Hosted ClawSweeper reviewed the same head with no findings.