Repository navigation
fix(ios): refuse simulator notification permission changes - #5112
Conversation
Co-authored-by: GPT-6.2 Sol (Codex) <codex@openai.com>
There was a problem hiding this comment.
All reported issues were addressed across 7 files
Reply with feedback, questions, or to request a fix.
View guided diff | Re-trigger cubic
|
Thanks for the fix. At 5a045c4, two changes are needed because the required Coverage check fails. The Permissions text changed in run-maestro-flows.md, but not in its source, The test "setIosSetting permission runs the simctl plan on the simulator udid and surfaces its refusal" in app-settings.test.ts still uses the Two high-priority inline threads still apply: alert command wording, best fixed with the sentence above, and missing dispatch disclosure. In CI, Coverage reports 2 failed and 22510 passed tests, and both failures come from this change. A live iOS simulator run at the fixed head is required before merge. Run Not verified here: tests were not run locally, as the results come from the CI log and code reading. No live simulator or Limrun run was done, so the claim that Before merge, fix the two failures so Coverage passes, then add the live simulator evidence. |
…mark the refusal undispatched Co-authored-by: GPT-6.2 Sol (Codex) <codex@openai.com> Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
|
Thanks for the review. Fixed in b88bae0:
Live run on an iPhone 17 Pro Max simulator, iOS 26.2:
{
"success": false,
"error": {
"code": "UNSUPPORTED_OPERATION",
"hint": "Use `alert accept` or `alert dismiss` to answer the notification prompt.",
"details": {
"reason": "ios-notification-permission-unsupported",
"dispatched": "no"
}
}
}
Step 2 ran through agent-device 0.21.41, not this branch. This PR does not change the alert path. I have before and after screenshots of the prompt and can attach them if useful. |
|
Thanks for the update. At b88bae0, no further code changes are needed. The Maestro help source and docs now both describe All non-skipped CI checks pass at b88bae0, including Coverage (which failed at 5a045c4), Integration Tests and Smoke Tests (ios). The required live evidence is satisfied by excerpted output from the author, without the message, Not verified here: tests were not run locally, as the results come from CI, and no separate device run was done. The Nothing in this update holds back the merge, so it is ready for the maintainer merge decision. |
Summary
Fixes #5074. The iOS simulator settings plan now refuses explicit
notificationsrequests forgrant,deny, andresetbefore resolving the app or callingsimctl privacy. It returnsios-notification-permission-unsupportedand points callers toalert acceptoralert dismiss. The CLI help and permission docs describe the same behavior.Before / after
Observed in the simulator settings test with a recording runner:
Validation
24f8181c3with the regression patch: 3 failed, 25 passed. Head: all 28 simulator settings tests passed. All 4 focused Limrun settings scenarios passed.Implemented with Codex; checked with Claude Code.
Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.