fix(ios): settle the first capture after an open that saw the launch in flight

Merged
TH
2mo ago
+147-26

Summary

When an iOS open reports postOpenObservation: unobservable, the session's next capture now reuses the existing post-gesture quiet-window loop, so a selector click right after the open waits for two matching reads (bounded) before it picks its tap point. On CI, that first capture caught General at y=319 instead of the settled y=406.

  • The mark is placed after the session is published, so fresh replay sessions are covered.
  • observable, probe-failed, app-unidentified, not-eligible, Android, and warm clicks are unchanged.
  • If the screen never settles, the existing "surface was still changing after open" warning applies.
  • The tap-outcome guarantee cell now names the open-time mark.

I rejected a runner-side frame guard: it adds a query to every warm click.

Completes #3354 as rescoped. Layout shifts that don't follow an open, observable opens, and the typed failure for a moved target moved to #3367.

Validation

  • pnpm check:affected --run passed on 601fff53a, rebased onto main.
  • Live run on 1fb2bced2, iPhone 17 Pro Max simulator (iOS 27.0), 01-settings.ad with --retries 0 --debug, 5/5 passed:
open verdictrunsstabilizationclick
observable1none1.30 s
unobservable42 reads, 2.55โ€“2.57 s3.12 s each

The unobservable path adds about 1.8 s to the first click after such an open. These runs did not reproduce the CI layout shift itself.

๐Ÿค– Generated with Claude Code