Skip to content

fix(ios): handle qualification network permission explicitly - #196284

Merged
joshavant merged 1 commit into
mainfrom
fix/ios-qualification-permission-alert
Nov 9, 2026
Merged

joshavant merged 1 commit into
mainfrom
fix/ios-qualification-permission-alert

Conversation

@joshavant

@joshavant joshavant commented Nov 9, 2026 •

Copy link
Copy Markdown
Collaborator

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 Allow tap 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:388 inside 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 --check passed.

  • 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.

@clawsweeper

clawsweeper Bot commented Nov 9, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

ClawSweeper review complete

ClawSweeper finished reviewing this revision. The review result is being finalized.

View the workflow run.

@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation app: ios App: ios scripts Repository scripts size: XS labels Nov 9, 2026
@clawsweeper clawsweeper Bot added clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. P2 Normal backlog priority with limited blast radius. proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. and removed clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. labels Nov 9, 2026
@clawsweeper

clawsweeper Bot commented Nov 9, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge.

What this changes

This 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.

  • Before: The generic interruption monitor fails while tapping Allow, preventing pairing.
  • After: The helper identifies the Local Network alert, waits for Allow to become hittable, dismisses it, and continues pairing.

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A useful, focused repair supported by exact-head native qualification, with no actionable introduced defect found.
Proof confidence 🐚 platinum hermit (4/6) ✨ media proof bonus Sufficient (linked_artifact): The PR records native onboarding, pairing, chat, relaunch, and keyboard/transcript success on iOS 27.2 through the changed XCTest helper; GitHub confirms successful exact-head qualification and proof upload in https://github.com/openclaw/openclaw/actions/runs/42707787652. The sandbox blocked the artifact and log storage host, limiting independent inspection of their contents without invalidating the supplied scenario evidence.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Product

Kind: Bug fix · Worth it: Yes · Fix scope: Complete
User problem: Release operators cannot complete native qualification when the onboarding permission interaction fails before pairing.
Reason: The collaborator-authored repair addresses a recorded failure through the existing helper without changing app permission policy or weakening downstream assertions.

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
Reviewed head: 46ce2b8a0e1a65f5ab229d84a1f343ce25452a8e

Before merge

None.

Findings

None.

Agent review details

How this fits together

The 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]
Loading

Technical review

Best 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

  • Temporary pairing checkpoints and diagnostic fixtures keeps the original intent (f947b3c: The prior diagnostic repair added temporary onboarding checkpoints to locate the pre-pairing failure and requested their removal after diagnosis.)
  • Generic Local Network interruption monitor changes intended behavior with a stated reason (unknown: The helper split carried the existing monitor forward; the original introduction could not be established because git log --follow and earlier-blob inspection encountered unavailable promisor objects.)

Testing

Proof path: shipped entry point.

Security

None.

Evidence

What I checked:

PR surface

Tests -1, Docs 0, Other 0. Total -1 across 4 files. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 2 22 23 -1
Docs 1 1 1 0
Config 0 0 0 0
Generated 0 0 0 0
Other 1 1 1 0
Total 4 24 25 -1

Preflight source

Source unknown. Source comparison at the observed PR snapshot only. Completion is self-reported; body, policy, tests, execution, and report bytes are not verified.

Labels

Label changes:

  • add P2: Repairs an observed release-qualification failure without changing shipped app behavior or release permissions.
  • add proof: sufficient: Contributor real behavior proof is sufficient.
  • add rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🐚 platinum hermit and patch quality is 🐚 platinum hermit.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.

Label justifications:

  • P2: Repairs an observed release-qualification failure without changing shipped app behavior or release permissions.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🐚 platinum hermit and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.
  • proof: sufficient: Contributor real behavior proof is sufficient.

Rating scale

6/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.

Workflow

ClawSweeper edits this one comment on every review. Comment @clawsweeper re-review for a fresh review only. Repair and merge execution lanes are retired.

Reviewed November 9, 2026, 5:28 PM ET / 22:28 UTC.

@joshavant
joshavant merged commit 3fa0f3a into main Nov 9, 2026
138 checks passed
@joshavant
joshavant deleted the fix/ios-qualification-permission-alert branch November 9, 2026 22:53
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Nov 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

app: ios App: ios docs Improvements or additions to documentation P2 Normal backlog priority with limited blast radius. proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. scripts Repository scripts size: XS status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant