fix(ios): settle the first capture after an open that saw the launch in flight
Merged
TH
2mo ago+147+147+012345678901234567890123456789-26-26-01234567890123456789
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 --runpassed on601fff53a, rebased onto main.- Live run on
1fb2bced2, iPhone 17 Pro Max simulator (iOS 27.0),01-settings.adwith--retries 0 --debug, 5/5 passed:
| open verdict | runs | stabilization | click |
|---|---|---|---|
observable | 1 | none | 1.30 s |
unobservable | 4 | 2 reads, 2.55โ2.57 s | 3.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