Summary
alert accept can return alert not found while an alert is still present in immediate snapshot -i output.
Version
Repro pattern
- Open app that triggers iOS permission alert.
- Run
alert accept --platform ios --session <id> --json.
- Sometimes get:
code: COMMAND_FAILED
message: alert not found
- Immediately run
snapshot -i and alert nodes are still present.
Expected
More robust alert handling, e.g.:
- short internal retry window before failing
- clear distinction in error details between "not visible yet" vs "no alert in hierarchy"
Why this matters
Permission alerts are frequent in clean simulator sessions and currently introduce flaky setup flows.
Summary
alert acceptcan returnalert not foundwhile an alert is still present in immediatesnapshot -ioutput.Version
agent-device 0.7.6Repro pattern
alert accept --platform ios --session <id> --json.code: COMMAND_FAILEDmessage: alert not foundsnapshot -iand alert nodes are still present.Expected
More robust alert handling, e.g.:
Why this matters
Permission alerts are frequent in clean simulator sessions and currently introduce flaky setup flows.