fix(ios): confirm keyboard absence before settle diff
Summary
On iOS, confirm keyboard disappearance for 1.5 seconds before a settled diff reports it. A capture can temporarily omit the keyboard window while the keyboard stays visible. Keyboard appearance and ordinary fills keep the normal settle window. Fixes #5417.
Before / after
With a keyboard visible before fill --settle and omitted from post-action captures until 900 ms:
- Before: the loop settled at 502 ms on the incomplete tree and could report
- [keyboard]. - After: it waits through the omission, then returns a capture with the keyboard; the diff has no keyboard or prediction-bar removal.
- A sustained keyboard disappearance still settles after at least 1.5 s.
Validation
Tested 050185bc5cc143faa4bd3ae601a3789ae5dfb634. New regression tests failed before the fix; focused tests passed (39/39). pnpm check:affected --run --head 050185bc5cc143faa4bd3ae601a3789ae5dfb634 passed with exactCommit=true in a no-space checkout on Node 26: format, lint, typecheck, layering, fallow, build, related Vitest, and unit (22,905 passed; 105 skipped).
On an isolated iPhone 17 simulator (iOS 26.5), repeated Contacts fills kept the keyboard visible without a false removal; discarding the contact hid it. iOS 27.2, where the report reproduces, is unavailable here. The simulator and session were removed. Cold self-review completed; CI and independent review are pending.

Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.