Repository navigation
fix(apple): answer alert get on a quiet screen with status none - #5039
Conversation
…stack#5002) The Apple get leg passed the backends' typed absence through as a COMMAND_FAILED failure, so the "is anything up?" probe exited non-zero on iOS while Android and the tree driver answered the same screen with an alertStatus record whose status is none. readAppleAlertStatus now settles a typed absence into that record, on the runner and the macOS helper alike, and alertIfPresent reads the none record as absence so the launch-confirmation port keeps its answer. The acting legs are unchanged: accept and dismiss still end their window on the typed alert-not-found refusal with the scoped-snapshot fallback.
|
Thanks for the fix. The change at 62faf70 is ready: |
Summary
alert getis the "is anything up?" probe, but on Apple backends a quiet screen failed: the runner's typedALERT_NOT_FOUNDpassed through asCOMMAND_FAILED, so iOS exited non-zero where Android and the tree driver answerstatus: none(#5002).The Apple read leg now settles typed absence into the tree driver's own record, via a new
readAppleAlertStatusbound to the interactor'sreadAlertleg only.alertIfPresentreads that record as absence, so the launch-confirmation port keeps its exact behavior. macOS rides the same leg and answers the same way. The acting legs are unchanged:alert accept|dismisswith no alert still refuse withalert-not-foundand the scoped-snapshot hint.Adjacency: #4859 (in review) reshapes found-alert wording recognition; this PR only reshapes the no-alert answer and shares no paths with it.
Before / after
Before (iOS simulator, no alert up, per the #5002 repro) — exits non-zero:
After (
readAppleAlertStatus, asserted by the new unit test) — exits 0:{ "kind": "alertStatus", "platform": "ios", "action": "get", "alert": null, "status": "none", "message": "No alert visible" }Validation
pnpm check:affected --run --head 62faf70d852a2ba48c4a1c583f984bb44f6aed80: format, lint, typecheck passed; the layering gate fails on 11 pre-existing violations (R89 untyped-reason literals, R88 promise-race ratchet). Detach control at base0d38f89b11da: violation lists byte-identical (cmpexit 0) — zero PR-introduced violations, base-blocked.Simulator: a booted iPhone 17 was available, but no live run: the shared
agent-devicedaemon home is owned by a daemon from another in-flight worktree and exposes no isolated-home override. Unit evidence stands in.Refs #5002
🤖 Generated with Claude Code