fix(ios): refuse simulator notification permission changes
Merged
SH
2d ago+93+93+01234567890123456789-23-23-01234567890123456789
Summary
Fixes #5074. The iOS simulator settings plan now refuses explicit notifications requests for grant, deny, and reset before resolving the app or calling simctl privacy. It returns ios-notification-permission-unsupported and points callers to alert accept or alert dismiss. The CLI help and permission docs describe the same behavior.
Before / after
Observed in the simulator settings test with a recording runner:
$ agent-device settings permission grant notifications --app com.example.app
base: sends simctl privacy SIM-1 grant notifications com.example.app
head: UNSUPPORTED_OPERATION (ios-notification-permission-unsupported)
Use `alert accept` or `alert dismiss` to answer the notification prompt.
Simulator runner calls: 0
Validation
- Base
24f8181c3with the regression patch: 3 failed, 25 passed. Head: all 28 simulator settings tests passed. All 4 focused Limrun settings scenarios passed. - Lint, typecheck, build, formatting, layering, Fallow, and command docs, docs links, and docs prose checks passed.
- The affected run stopped in provider tests. The Limrun expectation was updated and passes in the focused run. The Apple runner transport test timed out at 5000 ms on both base and the patched checkout. Full unit and provider checks and live simulator verification remain pending.
Implemented with Codex; checked with Claude Code.
Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.