fix(ios): mark zero-area nodes unmeasured and point their press refusal at scroll --until

Merged
RU
4d ago
+402-9

Summary

Fixes #4451.

  • Snapshot: buildSnapshotState marks a node published with a zero-area frame as [unmeasured], next to the covered annotation, so every producer gets it. Regular snapshots only; --raw is unchanged.
  • Recovery: the #3841 refusal is unchanged (target_bounds_invalid, not dispatched). When a scrollable sibling is listed before such a target, the refusal adds scrollContainerRef and a hint naming scroll <direction> --until <selector>, with no direction.

9 files. Scope expansion: the off-screen hint now quotes its selector with shellQuote too; an apostrophe broke its command.

Not covered: under a framed scroll ancestor the off-screen stage still refuses first, with scrollDirection: "up" read from the 0×0 frame.

Validation

Base eec35e9, head a91a366.

  • vitest run snapshot-state.test.ts resolution-touch-point.test.ts target-visibility-stages.test.ts: base 6 failed, 15 passed; head 21 passed.
  • pnpm check:affected --run --head a91a366 (exactCommit: true): failed at unit, 1 of 19,494: daemon-runtime-composition.test.ts:86, identical on an isolated base checkout; no daemon file touched. Host cause unproven; CI owns unit. The runner stops there; by hand, check:doc-prose and check:doc-links (Node 24.21.0) passed.
  • iOS 26.2 simulator, the issue's Flutter repro, press 'label="View all"':
    • base: @e6 [button] "View all"; Next: Read the diagnostics log for the failing step.
    • head: @e6 [button] "View all" [unmeasured]; Next: … run scroll <direction> --until 'label="View all"' …. Following it, the press taps.
  • Marked nodes in full snapshots are counted in the review reply. Not run: Appium, Revyl, physical devices, macOS, Linux.
  • Independent review, four rounds; Cubic's findings answered in-thread.