Skip to content

fix(keyboard): ride the inset's edge on a leading spring on iOS - #12802

Draft
vjeux wants to merge 14 commits into
meta:perf/defer-touch-runtimefrom
vjeux:keyboard/ios-ride-edge
Draft

vjeux wants to merge 14 commits into
meta:perf/defer-touch-runtimefrom
vjeux:keyboard/ios-ride-edge

Conversation

@vjeux

@vjeux vjeux commented Nov 19, 2026 •

Copy link
Copy Markdown
Contributor

Stacked on #12044.

User impact

With #12044, ChatLayout's composer and a Tall BottomSheet's field ride Safari on iOS's keyboard from its report. A surface above the keyboard's start moves at once and floats ahead of it. Safari reports the keys late; its inset counts the accessory bar.

Problem and solution fit

  • Each surface rides the inset's edge, moving only while the edge is at it. On a hide it rests once the edge has fallen its travel.
  • The show rides a critically damped 8π s⁻¹ spring cut at 330 ms. It leads UIKit's keyboard spring by 0–18 ms, never trailing it.
  • An app's docked bar with a Core field rides too.
  • A sheet's reveal skips sub-pixel distances, a fix to feat(keyboard): ride UIKit's keyboard motion in Safari on iOS #12044's code.
  • A ride dated early waits for its report.
  • Reduce Motion: unchanged.

Expected behavior and authority

spec:AST-099 FR8: a surface rides within a frame of the keyboard, never under it. No script runs per frame; layout commits once at rest.

Record edits:

  • spec:AST-099 DEC-12 names both springs and the edge ride; FR8 and two summaries say "the keyboard".
  • architecture:react-component-runtime lists what the keyboard schedule holds.

Smallest restoration

  • The hide keeps UIKit's spring from the blur; a leading hide would cover the surface.
  • Only Safari on iOS rides the edge; Chrome on Android is unchanged.

Evidence

  • Simulator (iPhone 17 Pro, iOS 26.2, Safari 26.2, normal speed) at bec2256: no surface is covered. Shows lead the bar: up to ~46 pt in video (DOM ≤ 0.2 pt) on ChatLayout, up to ~14 pt on the sheet. Hides leave from the blur, before Safari's report, up to 73 ms (2–3 drawn frames) behind the bar in 14 of 36 takes.
  • Simulator at 57952f1, as above, 3 takes each at 30 fps: nothing is covered. The composer and docked bar start within a captured frame of the keys, the sheet's field 1–2 frames after. Hides stay above the accessory bar.
  • Physical iPhone 14 (iOS 26.2, Safari 26.2) at 1dfd1b1: no surface is under the keys; video leads page samples by rAF-vs-compositor measurement skew. A Tall sheet's field falls to rest in one captured frame on a hide, as intended; feat(keyboard): ride UIKit's keyboard motion in Safari on iOS #12044 glides. Hides trail 0–3 page frames on both builds; page work ends ≤9 ms after a blur, the first frame 17–41 ms.

Scope

Components: keyboard module, ChatLayout, BottomSheet

  • One defect is restored.
  • Separable contradictory or unsettled tagalongs were removed or split.
  • No new public API, visual representation, default, or interaction model is hidden under the bug-fix label.
  • Public text and artifacts contain no internal Meta context.

Testing

At 57952f1, which merges #11450's head 7f30a61 (with main at 38ea127), on #12044 at b0b18a8:

  • pnpm build, pnpm typecheck, pnpm lint (0 errors), pnpm check:knowledge, pnpm check:sync, changesets, check:repo and the comment-provenance baseline check: pass. Changeset coverage names core and the CLI. CI's Prettier check of the changed files lists none.
  • vitest run --project ui --maxWorkers=8: 1,141 files; 27,429 tests pass and 2 are pending.
  • vitest run --project node --maxWorkers=8: 1,927 files pass and 14 are skipped; 30,248 tests pass and 3 fail as expected. The theme-edit picture tests need a Chrome on PATH, as CI runners have one.
  • Red first: on b0b18a8's keyboardModel.ts, uikitKeyboardSchedule.ts and rideKeyboard.ts, 12 of the 243 cases in the five changed test files fail. At this head 241 pass and 2 are todo.
  • On c369d85's rideKeyboard.ts, the new case for a ride that starts before the report fails. It passes here.
  • On bec2256's keyboardTarget.ts, the two new Safari docked-bar cases fail. All 9 docked-bar cases pass here.
  • On 81da9d7's keyboardTarget.ts, the two new TextInput cases fail: the bar jumps at the report and holds after the blur. They use the real modules, with only Safari's -webkit-touch-callout stubbed.
  • With 1dfd1b1's change to useMobileKeyboard.ts reverted at this head, the pinned sheet case (f = 231.0146499375) fails: the reveal scrolls the body to 248.00000000000006. All 168 sheet cases pass here. This fixes feat(keyboard): ride UIKit's keyboard motion in Safari on iOS #12044's code.
  • Mutants: every curve riding the edge fails 1 case, and the hide on the show's spring fails 5. A curve without the hold, or without the longer duration, fails the new case. The report clearance or the reveal scroll in Safari fails one docked-bar case each. A strict check on the show side fails the pinned case.
  • Playwright in Chromium: the 7 BottomSheet and Chat interaction specs pass 43 and skip 1. The 24 BottomSheet, Chat, TextInput and focus-ring a11y specs pass 114, on a Storybook build stamped with this head as CI stamps it.
  • pnpm size:pages against 7f30a61: docs, form, menu and table add 269–329 B gzip, feat(keyboard): ride UIKit's keyboard motion in Safari on iOS #12044's ride included. The module graphs are unchanged.
  • The CLI docs goldens hold no prose, so the guide's new words change none of them; experimental-isolation.test.mjs passes unchanged.
  • The spring's lead: a unit case checks every millisecond that it never trails UIKit's spring. It also checks a 3–18 ms lead at 30, 50, 70, 90 and 97% of the rise.

Writing rubric results

  • R1 narration: "as before" in DEC-12, deleted.
  • R2 research: none; DEC-12 keeps only the chosen curve and its lead.
  • R3 evidence: none.
  • R4 rejected alternatives: four, in DEC-12's one Rejected: line.
  • R5 change references: none.
  • R6 open questions: none.
  • R7 project status: none.

The keyboard layout guide reads UIKit's keyboard schedule where WebKit
on iOS runs. Core's surfaces ride UIKit's measured keyboard spring: the
show from Safari's one report, the hide from the blur.

Records: AST-099 FR6, FR8, DEC-12.
The timeline helper moves above rideKeyboard's doc comment, and the
start rule's comment gives each topic its own sentence. The guide's
comment names the profile each focus rule belongs to. A unit case drives
focus into a custom element with no shadow root through the guide.
A field in a shadow root or a custom element blurs with its host as the
focusout target. The guide judged that blur by the host, which brings up
no keyboard, so Done in such a field rode only at Safari's later report.
Under UIKit's rules the host's blur now waits as a field's does, and the
element that focus settles on decides.
WebKit can keep a composited element's rects from its last style
resolution while its computed translate follows the ride. A reveal that
ran late in the slide, as after a long task, then judged the field
below its resting place and scrolled the body further. The sheet now
reads the ride's offset from the content box's own rect, against its
layout place, so it moves with the field's rect.
Safari on iOS reports the keyboard's show a little after the keys
start, and its inset counts the accessory bar, which rides on the keys
from their first frame. A surface moved over its own travel along
UIKit's spring floated ahead of the keyboard when it rested above the
keyboard's start.

In Safari on iOS each surface now rides the inset's edge: it moves only
while the edge is at it. The show rides a critically damped spring at
8 pi per second, cut and normalised at 330 ms. It never trails UIKit's
keyboard spring, and from 30 to 97% of the rise it leads it by 3 to
18 ms. The hide keeps UIKit's spring from the blur. Chrome on Android
is unchanged, and under Reduce Motion nothing travels.
@vercel

vercel Bot commented Nov 19, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
astryx Ready Ready Preview Nov 23, 2026 3:23am UTC

Request Review

@astracat-bot

astracat-bot Bot commented Nov 19, 2026 •

Copy link
Copy Markdown
Contributor

AI review status for this pull request.

Review status Updated
🟡 Reviewed (for maintainers only) Nov 23, 2026, 3:57 AM UTC

@cixzhang

Copy link
Copy Markdown
Contributor

/approve-spec ce8fa9f

@meta-cla meta-cla Bot added the CLA Signed This label is managed by the Meta Open Source bot. label Nov 19, 2026

@astracat-bot astracat-bot Bot left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changes requested. The edge ride and the leading spring hold up in the unit tests, and an engineering owner approved the record edits for this head, but the shipped docs and release notes misdescribe the ride and the merge evidence for this head is missing.

  • BottomSheet.doc.mjs (the height prop) and ChatLayout.doc.mjs (its description, dense description and Chinese description) say the rise rides UIKit's own keyboard motion, or that iOS moves only once the keyboard is reported, while this head rises on Core's own ω = 8π spring and waits for the keyboard's top, as the browser-support guide already says.
  • The keyboard-ride-ios and browser-support-ios-keyboard-ride changesets say the surfaces ride UIKit's own keyboard motion, and keyboard-ride-ios-edge announces a fix for a float no release had, since nothing rode in Safari on iOS on this pull request's base; one core and one CLI changeset that describe the ride as it ships would fix both.
  • The description states no iOS Simulator result for this head, which the keyboard spec makes the merge gate, so please add as text, per surface (ChatLayout's composer and a Tall sheet's field), the Simulator, iOS and Safari versions, this head, the animation speed, and the show and blur-hide results.
  • The description has no ## Writing rubric results section for the two record edits, which the knowledge-record contract asks for before review.

No public API changes. Once #12044 lands on the base, this pull request reviews as its own commit.

Claims and files checked

Review mode: same-head; reason: none

Claims:

  • Core fix changeset: surfaces wait for the keyboard's top, then rise: verified (rideKeyboard.ts:29-40, the sheet's 52 px wait case).
  • Core fix changeset: before, a surface resting above the keyboard's start floated ahead of it: false against this pull request's base, where nothing rode in Safari on iOS.
  • Core fix changeset: the rise uses a slightly quicker spring and the hide keeps UIKit's motion: verified (uikitKeyboardSchedule.ts).
  • Core changesets: Chrome on Android and Firefox for Android are unchanged, and Reduce Motion moves nothing: verified (Chrome, Firefox and Reduce Motion tests).
  • Core feature changeset: surfaces ride UIKit's own keyboard motion: false for the rise.
  • Core feature changeset: they moved in one step before, the composer now goes down from the blur, and the ride starts after the touch runtime loads: verified.
  • CLI changeset (edge): the guide says surfaces wait for the keyboard's top and rise a touch ahead of UIKit's motion: verified (browser-support.doc.mjs:159).
  • CLI changeset (ride): the guide says surfaces ride UIKit's keyboard motion: false for the rise; the scroll room and load timing parts are verified.
  • Description: the show spring never trails UIKit's and leads it by 3 to 18 ms from 30 to 97% of the rise: verified (recomputed 3.0 to 17.7 ms; per-millisecond unit case).
  • Description: the edge mapping lives in one function, so no rider changes its call: verified.
  • Description: the ride still plays precomputed keyframes with linear easing on the compositor: verified (animator unchanged).
  • Description: WebKit accelerates a points-based linear() easing only with threaded animations on: not checked (engine behavior).
  • Description: Reduce Motion is unchanged, only Safari on iOS rides the edge, and the hide keeps UIKit's spring from the blur: verified.
  • Description: the changed tests fail on the previous head and the listed mutations fail cases: not rerun.
  • Description: the changed tests pass, including the new Gboard own-travel case: verified (16 affected test files, 386 pass, 2 todo).
  • Description: build, typecheck, lint, knowledge and sync checks, suite totals and browser specs pass: not rerun.
  • Description: the reference pages add 6 to 10 B gzip against the previous head: consistent (whole diff +225 to +266 B).
  • Description: device films are pending: no Simulator result is stated (finding).

Files:

  • .changeset/browser-support-ios-keyboard-edge.md: clear
  • .changeset/browser-support-ios-keyboard-ride.md: finding (changesets)
  • .changeset/keyboard-ride-ios-edge.md: finding (changesets)
  • .changeset/keyboard-ride-ios.md: finding (changesets)
  • docs/architecture/react-component-runtime.md: clear (owner-approved)
  • docs/specs/AST-099-mobile-keyboard/spec.md: clear (owner-approved); note: drop "as before" in the new decision
  • packages/cli/assets/docs/browser-support.doc.mjs: clear
  • packages/cli/test/__golden__/no-icon-set/docs-topics.json: clear (regenerated digest)
  • packages/core/src/BottomSheet/BottomSheet.doc.mjs: finding (docs)
  • packages/core/src/BottomSheet/BottomSheet.test.tsx: clear
  • packages/core/src/Chat/ChatLayout.doc.mjs: finding (docs)
  • packages/core/src/Chat/useChatKeyboard.runtime.test.tsx: clear
  • packages/core/src/Chat/useChatKeyboard.test.tsx: clear
  • packages/core/src/Chat/useChatKeyboard.ts: clear
  • packages/core/src/keyboard/README.md: clear
  • packages/core/src/keyboard/keyboardLayoutGuide.ts: clear
  • packages/core/src/keyboard/keyboardModel.test.ts: clear
  • packages/core/src/keyboard/keyboardModel.ts: clear
  • packages/core/src/keyboard/keyboardTarget.ts: clear
  • packages/core/src/keyboard/keyboardUIKit.test.ts: clear
  • packages/core/src/keyboard/rideKeyboard.test.ts: clear
  • packages/core/src/keyboard/rideKeyboard.ts: clear
  • packages/core/src/keyboard/uikitKeyboardSchedule.ts: clear
  • packages/core/src/keyboard/useMobileKeyboard.ts: clear
  • packages/core/src/utils/touchRuntimeModules.tsx: clear

Automated review (maintainer link)

Comment thread .changeset/keyboard-ride-ios-edge.md Resolved
Comment thread .changeset/keyboard-ride-ios.md Resolved
The component docs and the iOS ride's release notes said the rise rides
UIKit's own keyboard motion. It rides Core's leading spring on the
inset's edge: a surface waits until the keyboard's top reaches it.
BottomSheet's height prop and ChatLayout's descriptions, the Chinese
one included, say so. The iOS ride's two changesets describe the ride
as it ships, so the edge ride's own changesets go. DEC-12 states its
fallback without history.
Safari can date the event that reports the keyboard up to 15 ms after
the frame that dispatches it. A ride starts no later than that frame, so
a long task right after it cannot hold the ride. But the ride's curve
then ran from the frame, ahead of Safari's report, and a surface rose
before the keyboard reached it. The ride now holds the element still
until the report's own time, and its curve runs from there.

@astracat-bot astracat-bot Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changes requested: the newest commit's report-time hold holds up and is tested, but the record edits still have no engineering-owner approval at this head, the new keyboard schedule module still has no approved record, and the merge evidence for this head is missing.

  • Regression: keyboard/uikitKeyboardSchedule.ts is imported from outside its folder by utils/touchRuntimeModules.tsx, and no approved record names it while no approval covers this head's runtime paragraph that names it, so the module needs an owner's API decision.
  • The description states no iOS Simulator result for this head, which the keyboard spec makes the merge gate, so please add as text, for ChatLayout's composer and for a Tall sheet's field, the Simulator, iOS and Safari versions, this head, the animation speed, and the show and blur-hide results.

Approval also waits on an engineering owner's decision on the keyboard spec's new Safari on iOS decision (DEC-12) and its FR6, FR8 and docked-container edits, which change the current rule that a docked container in Safari on iOS follows the visual-viewport height. An engineering owner records that decision by commenting /approve-spec followed by this head's full commit SHA, which also settles the module finding, and the author may do so as an engineering owner. No public API changes.

Claims and files checked

Review mode: incremental; reason: none

Claims:

  • Core changeset: before, the composer and a Tall sheet's field moved up in one step at Safari's report: verified (the base's layout guide has no iOS profile).
  • Core changeset: each now waits until the keyboard's top reaches it, then rises on a spring a touch quicker than UIKit's: verified (rideKeyboard.ts:29-40, uikitKeyboardSchedule.ts:53-54).
  • Core changeset: the composer now goes down with the keyboard from the blur, as the sheet already did: verified (the ChatLayout blur case).
  • Core changeset: the ride starts once the touch support loads, and before that surfaces move in one step: verified (the runtime-load cases).
  • Core changeset: Chrome on Android and Firefox for Android are unchanged, and nothing travels under Reduce Motion: verified (the Chrome, Firefox and Reduce Motion cases pass).
  • CLI changeset: the browser-support guide describes the wait, the quicker rise, the scroll room and the load timing: verified (browser-support.doc.mjs:159).
  • Description: each surface rides the inset's edge with no accessory-bar height subtracted: verified (rideKeyboard.ts:29-40).
  • Description: the show spring never trails UIKit's and leads it by 3 to 18 ms from 30 to 97% of the rise: verified (recomputed 3.0 to 17.7 ms; the per-millisecond unit case).
  • Description: the mapping lives in rideKeyboard, so no rider changes: verified.
  • Description: a report dated after its frame holds the ride still until the report's time: verified (rideKeyboard.ts:104-109, :131-132; the new case).
  • Description: the ride plays precomputed linear keyframes on the compositor: verified (the animator is unchanged); WebKit's acceleration of a points-based linear() easing: not checked (engine behavior).
  • Description: Reduce Motion is unchanged: verified.
  • Description: Safari reports the keys late and its inset counts the accessory bar: not checked (engine behavior).
  • Description: the hide keeps UIKit's spring from the blur, and only Safari on iOS rides the edge: verified (followsEdge is set only on the iOS curves).
  • Description: the record edits are proposed and pending owner review: verified; no approval covers this head yet.
  • Description: the new case fails on the previous head's rideKeyboard.ts and passes here: verified (1 of 12 cases fails there; all pass here).
  • Description: the changed tests fail on the parent pull request's sources, and the listed mutants fail cases: not rerun.
  • Description: the changed tests pass, including the own-travel case on Gboard's slide: verified (16 affected test files: 387 pass, 2 todo).
  • Description: the docs and changesets describe the ride as it ships: verified.
  • Description: build, typecheck, lint, the full suites and the browser specs pass: not rerun; Core and the seven themes build, and the knowledge and sync checks pass.
  • Description: the reference pages add 6 to 9 B gzip against the parent pull request and nothing against the previous head: not rerun against those heads; against this pull request's base they add 226 to 266 B.
  • Description: no new public API or default, and no internal context in public text: verified (empty API delta; no residue in added lines); the Safari ride itself is disclosed, not hidden.
  • Description: writing-rubric results R1 to R7: verified against the added record lines.
  • Description: the Simulator take at this head is pending: confirmed (finding above).

Files:

  • .changeset/browser-support-ios-keyboard-ride.md: clear
  • .changeset/keyboard-ride-ios.md: clear
  • docs/architecture/react-component-runtime.md: names the new module; needs an owner's approval at this head
  • docs/specs/AST-099-mobile-keyboard/spec.md: proposed decision and edits; need an owner's approval at this head
  • packages/cli/assets/docs/browser-support.doc.mjs: clear
  • packages/cli/test/__golden__/no-icon-set/docs-topics.json: clear (regenerated digest)
  • packages/core/src/BottomSheet/BottomSheet.doc.mjs: clear
  • packages/core/src/BottomSheet/BottomSheet.test.tsx: clear
  • packages/core/src/Chat/ChatLayout.doc.mjs: clear
  • packages/core/src/Chat/useChatKeyboard.runtime.test.tsx: clear
  • packages/core/src/Chat/useChatKeyboard.test.tsx: clear
  • packages/core/src/Chat/useChatKeyboard.ts: clear
  • packages/core/src/keyboard/README.md: non-blocking note (lines 317-319)
  • packages/core/src/keyboard/keyboardLayoutGuide.ts: clear
  • packages/core/src/keyboard/keyboardModel.test.ts: clear
  • packages/core/src/keyboard/keyboardModel.ts: clear
  • packages/core/src/keyboard/keyboardTarget.ts: clear
  • packages/core/src/keyboard/keyboardUIKit.test.ts: clear
  • packages/core/src/keyboard/rideKeyboard.test.ts: clear
  • packages/core/src/keyboard/rideKeyboard.ts: clear
  • packages/core/src/keyboard/uikitKeyboardSchedule.ts: finding (no record names the module)
  • packages/core/src/keyboard/useMobileKeyboard.ts: clear
  • packages/core/src/utils/touchRuntimeModules.tsx: finding (imports the module from outside its folder)

Automated review (maintainer link)

Comment thread packages/core/src/keyboard/README.md Resolved
This brings in main at 59fd415 through the base branch's head,
fa845eb, which merged it. Five files are resolved by hand:

- AST-099's gap list: main's, with this branch's Gap 12 wording.
- BottomSheet's height description: main's reveal sentence, with this
  branch's sentence on the ride in Safari on iOS.
- The keyboard README's file table: this branch's table, with main's
  text for the keyboardTarget.ts row.
- keyboardTarget.ts: the imports of both sides.
- The runtime record's touch-runtime paragraph: the base's sentence on
  the fields' reveal, then this branch's sentences on ChatLayout and
  Safari on iOS's keyboard schedule.
In Safari on iOS the sheet's content rides Core's leading spring up and
UIKit's keyboard spring down, as the README's earlier section says.
@cixzhang

Copy link
Copy Markdown
Contributor

/approve-spec bec2256

@astracat-bot astracat-bot Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changes requested: an engineering owner has now approved the record edits for this head, which also settles the keyboard-schedule module, but one docked-bar defect and the merge evidence remain.

  • Miss: under Safari on iOS's new keyboard profile, rideWithKeyboard in keyboardTarget.ts takes Chrome's report clearance and pan put-back, so a Core field in an app's own fixed bottom bar jumps about 294 of 300 px at Safari's report instead of riding the keyboard as the approved DEC-12 and the runtime record's keyboard rule require; gate both on the Chrome profile, as the sheet already does, and add a Safari docked-bar test.
  • Please state the iOS Simulator result for this head in the description as text (Simulator, iOS and Safari versions, this head, animation speed, and the show and blur-hide result for ChatLayout's composer and a Tall sheet), which the keyboard spec makes the merge gate.

No public API changes.

Claims and files checked

Review mode: full; reason: spec-record

Claims:

  • Core changeset: the composer and a Tall sheet's field now ride the keyboard in Safari on iOS: verified for those two surfaces (the iOS cases in the sheet and ChatLayout tests).
  • Core changeset: before, they moved up in one step at Safari's report: verified (the base has no iOS keyboard profile).
  • Core changeset: each waits for the keyboard's top, then rises on a spring a touch quicker than UIKit's: verified (rideKeyboard.ts edge mapping, uikitKeyboardSchedule.ts show spring).
  • Core changeset: the composer now goes down from the blur, as the sheet already did: verified (ChatLayout's blur case).
  • Core changeset: the ride starts once the touch support loads; before that, one step: verified (the runtime-load cases).
  • Core changeset: Chrome on Android and Firefox for Android are unchanged, and nothing travels under Reduce Motion: verified (Chrome, Firefox and Reduce Motion cases pass).
  • CLI changeset: the browser-support guide describes the wait, the quicker rise, the scroll room and the load timing: verified (browser-support.doc.mjs).
  • Description: each surface rides the inset's edge with no accessory-bar height subtracted: verified for the composer and the sheet; an app's docked bar does not (finding above).
  • Description: the show spring never trails UIKit's and leads it by 3 to 18 ms from 30 to 97% of the rise: verified (recomputed; the per-millisecond unit case passes).
  • Description: the mapping lives in rideKeyboard, so no rider changes for it: verified.
  • Description: a report dated after its frame holds the ride still until the report's time: verified (rideKeyboard.ts and its new case).
  • Description: the ride plays precomputed linear keyframes on the compositor: verified (the animator is unchanged); WebKit's acceleration of points-based easing: not checked (engine behavior).
  • Description: Safari reports the keys late and its inset counts the accessory bar: not checked (engine behavior).
  • Description: the hide keeps UIKit's spring from the blur, and only Safari on iOS rides the edge: verified.
  • Description: the record edits are proposed and pending owner review: an engineering owner has since approved them for this head.
  • Description: the changed tests fail on the parent pull request's sources, and the listed mutants fail cases: not rerun.
  • Description: the own-travel case on Gboard's slide passes: verified.
  • Description: the docs and changesets describe the ride as it ships: verified.
  • Description: build, typecheck, lint, the full suites and the browser specs pass: not rerun; Core and the seven themes build, the affected suites pass, and the knowledge and sync checks pass.
  • Description: the reference pages add 287 to 304 B gzip: verified (290 to 303 B measured base against head).
  • Description: no new public API or default, and no internal context in public text: verified.
  • Description: writing-rubric results R1 to R7: verified against the added record lines.
  • Description: the Simulator take at this head is pending: confirmed (finding above).

Files:

  • .changeset/browser-support-ios-keyboard-ride.md: clear
  • .changeset/keyboard-ride-ios.md: clear
  • docs/architecture/react-component-runtime.md: clear (owner-approved at this head)
  • docs/specs/AST-099-mobile-keyboard/spec.md: clear (owner-approved at this head)
  • packages/cli/assets/docs/browser-support.doc.mjs: clear
  • packages/cli/test/__golden__/no-icon-set/docs-topics.json: clear (regenerated digest)
  • packages/core/src/BottomSheet/BottomSheet.doc.mjs: clear
  • packages/core/src/BottomSheet/BottomSheet.test.tsx: clear
  • packages/core/src/Chat/ChatLayout.doc.mjs: clear
  • packages/core/src/Chat/useChatKeyboard.runtime.test.tsx: clear
  • packages/core/src/Chat/useChatKeyboard.test.tsx: clear
  • packages/core/src/Chat/useChatKeyboard.ts: clear
  • packages/core/src/keyboard/README.md: clear
  • packages/core/src/keyboard/keyboardLayoutGuide.ts: clear
  • packages/core/src/keyboard/keyboardModel.test.ts: clear
  • packages/core/src/keyboard/keyboardModel.ts: clear
  • packages/core/src/keyboard/keyboardTarget.ts: finding (docked-bar ride under Safari's profile)
  • packages/core/src/keyboard/keyboardUIKit.test.ts: clear
  • packages/core/src/keyboard/rideKeyboard.test.ts: clear
  • packages/core/src/keyboard/rideKeyboard.ts: clear
  • packages/core/src/keyboard/uikitKeyboardSchedule.ts: clear
  • packages/core/src/keyboard/useMobileKeyboard.ts: clear
  • packages/core/src/utils/touchRuntimeModules.tsx: clear

Automated review (maintainer link)

Safari on iOS's keyboard profile took two of Chrome's paths in the
docked-bar ride: the field set just above the keyboard at the show's
report, and a document scroll read as the browser's reveal. So a Core
field in an app's own fixed bar jumped at Safari's report. Both paths
are now Chrome's only, as in the sheet's ride.
@cixzhang

Copy link
Copy Markdown
Contributor

/approve-spec 81da9d7

@cixzhang cixzhang added ci:run A maintainer lets this outside contributor's pull request run CI (AST-030 FR17) ci:run-a11y Run the accessibility suite on this PR; write access, next push (AST-030 FR12) labels Nov 20, 2026

@astracat-bot astracat-bot Bot left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changes requested: the record edits are owner-approved at this head and the docked-bar fix holds, but the stated Simulator hides miss the new FR8 Safari row, and this head has no Simulator result yet.

  • Miss: the description's Simulator take reports hides leaving up to 73 ms (2–3 drawn frames) behind the bar in 14 of 36 takes, which the new FR8 Safari verification row in spec:AST-099 counts as a failure ("falls more than a frame behind the keyboard"), so please retime the hide so every take stays within a frame, or have an engineering owner amend that row and DEC-12 to allow the trail and approve the new head.
  • Please state the Simulator take at this head in the description (device, iOS and Safari versions, animation speed, and the result for ChatLayout's composer, a Tall sheet and an app's docked bar), because spec:AST-099 DEC-3 and DEC-12 make Simulator evidence a merge gate and the latest commit's change to keyboardTarget.ts keeps the earlier take from carrying over (spec:AST-094 DEC-31).

The two new Safari docked-bar cases fail on the previous revision's keyboardTarget.ts and pass here, and the affected keyboard, sheet, chat and layer suites pass.

Claims and files checked

Review mode: same-head; reason: none

  • Changed rules (0): none.
  • Claims, verified: the show rides a critically damped 8π s⁻¹ spring cut and normalised at 330 ms that never trails UIKit's spring and leads it by 3–18 ms from 30 to 97% of the rise (uikitKeyboardSchedule.ts:53-59, keyboardUIKit.test.ts).
  • Claims, verified: each surface rides the inset's edge and rests once the edge has fallen its travel, with the mapping in rideKeyboard (rideKeyboard.ts:29-40).
  • Claims, verified: an app's docked bar rides the whole show in Safari, and Chrome's report clearance and reveal put-back stay Chrome's (keyboardTarget.ts:960-1031); the two new cases fail on the previous revision's file and all 9 pass here.
  • Claims, verified: a report dated after its frame holds the ride still until its time (rideKeyboard.ts:104-109); the ride plays precomputed linear keyframes (motion/animator.ts:2118); the hide keeps UIKit's spring from the blur; only Safari rides the edge; Reduce Motion is unchanged.
  • Claims, false: the expected behavior that a surface rides within a frame of the keyboard does not hold for hides in the stated Simulator take (up to 73 ms behind in 14 of 36 takes; the first finding above).
  • Claims, true as stated: Simulator results are given for an earlier revision, and this revision's spot check is pending (the second finding above).
  • Claims, verified: both changesets: before, the composer and the sheet's field moved in one step at Safari's report; now they wait for the keyboard's top and rise on a slightly quicker spring, the composer comes down from the blur, the ride starts once touch support loads, and Chrome and Firefox are unchanged.
  • Claims, verified: build-time checks pass (Core typecheck, lint on the changed files, knowledge and sync checks), and the first-load growth of 286–303 B gzip on the four reference pages matches an earlier measurement.
  • Files, clear: keyboardTarget.ts, uikitKeyboardSchedule.ts, keyboardLayoutGuide.ts, keyboardModel.ts, rideKeyboard.ts, useMobileKeyboard.ts, useChatKeyboard.ts, touchRuntimeModules.tsx.
  • Files, clear: keyboardTarget.guide.test.ts, keyboardUIKit.test.ts, keyboardModel.test.ts, rideKeyboard.test.ts, BottomSheet.test.tsx, useChatKeyboard.test.tsx, useChatKeyboard.runtime.test.tsx.
  • Files, clear: the React component runtime record, the keyboard README, both changesets, the browser-support guide, the BottomSheet and ChatLayout docs, and the CLI docs golden; the mobile-keyboard spec is clear apart from its FR8 Safari row, which the first finding measures the hide against.

Automated review (maintainer link)

The layout guide reads Safari on iOS's keyboard schedule only once a
keyboard rider registers it. ChatLayout, a Tall sheet and a host's
docked target do. A TextInput, TextArea or NumberInput in an app's
docked bar did not. So on a page with no other rider, the bar moved at
Safari's report and waited for its hide report. The field now
registers the schedule too. The changesets and the browser-support
guide name the docked bar.
A Tall sheet's reveal read a field resting on the band's edge a
rounding error below it, from the ride's offset in the content's rect,
and scrolled the body by that error. A distance within a pixel is the
rects' rounding, as in a field's own reveal, so now nothing moves.
@cixzhang

Copy link
Copy Markdown
Contributor

/approve-spec 1dfd1b1

@astracat-bot astracat-bot Bot left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changes requested: the record edits are owner-approved at this head, and the docked-bar registration and sheet-reveal fix hold up in tests, but the stated Simulator hides still miss the one-frame limit, and no Simulator result is stated for this head.

  • The description's Simulator take reports hides leaving up to 73 ms (2–3 drawn frames) behind the keyboard in 14 of 36 takes, which the new FR8 Safari verification row in spec:AST-099 counts as a failure ("falls more than a frame behind the keyboard"), so please retime the hide so every take stays within a frame, or have an engineering owner amend that row and DEC-12 to allow the trail and approve the new head.
  • Please state the Simulator take at this head in the description (device, iOS and Safari versions, animation speed, and the show and blur-hide result against the keyboard for ChatLayout's composer, a Tall sheet and an app's docked bar with a TextInput), because spec:AST-099 DEC-3 and DEC-12 make Simulator evidence a merge gate and the last two commits' changes to keyboardTarget.ts and useMobileKeyboard.ts keep the earlier takes from carrying over (spec:AST-094 DEC-31).

The code is unchanged since the last review, and the description and the spec approval for this head leave both points open.

Claims and files checked

Review mode: same-head; reason: none

  • Changed rules (0): none.
  • Claims, verified: each surface rides the inset's edge, holding still until the edge reaches it and resting once it has fallen its travel (rideKeyboard.ts edge mapping).
  • Claims, verified: the show rides a critically damped 8π s⁻¹ spring cut and normalised at 330 ms that never trails UIKit's spring and leads it by 3–18 ms from 30 to 97% of the rise (uikitKeyboardSchedule.ts, keyboardUIKit.test.ts).
  • Claims, verified: an app's docked bar with a Core field rides too, and Chrome's report clearance and reveal put-back stay Chrome's (keyboardTarget.ts, the Chrome-profile gating in the ride).
  • Claims, verified: a sheet's reveal skips sub-pixel distances, and the pinned case fails on the previous commit's file; a ride dated before its report holds still until the report; Reduce Motion is unchanged; only Safari on iOS rides the edge; the hide keeps UIKit's spring from the blur.
  • Claims, false: the expected behavior that a surface rides within a frame of the keyboard does not hold for hides in the stated Simulator take (the first finding above).
  • Claims, true as stated: Simulator results are given for earlier revisions, and the docked-bar take names no revision (the second finding above).
  • Claims, verified: both changesets and the browser-support guide: the composer, a Tall sheet's field and a docked bar's field wait for the keyboard's top and rise on a slightly quicker spring; before, they moved in one step at Safari's report; the composer and the docked bar come down from the blur.
  • Claims, verified: Core's typecheck, lint on the changed files, and the keyboard, sheet, chat, text-field and layer suites pass; no public API changes. Not re-run: the full test projects, browser interaction and accessibility specs, page-size measurement and mutants.
  • Files, clear: uikitKeyboardSchedule.ts, keyboardLayoutGuide.ts, keyboardModel.ts, rideKeyboard.ts, keyboardTarget.ts, useMobileKeyboard.ts, useChatKeyboard.ts, touchRuntimeModules.tsx, their tests, TextInput.keyboard.test.tsx, BottomSheet.test.tsx, the React component runtime record, the keyboard README, the BottomSheet and ChatLayout docs, the browser-support guide, both changesets and the CLI docs golden.
  • Files, finding: the mobile-keyboard spec is clear apart from its FR8 Safari row, which the first finding measures the hide against.

Automated review (maintainer link)

This brings in the base branch's head, 7f30a61, which merges main
at 38ea127. Two files are resolved by hand:

- AST-099's browser-evidence line: this branch's "and FR8" for the iOS
  claims, with main's wording that admits a real Pixel as Android
  evidence. Its verification table: main's rows, which main now
  formats, with this branch's row for Safari on iOS.
- The runtime record's touch-runtime paragraph: this branch's
  sentences on ChatLayout and Safari on iOS's keyboard schedule, with
  the base's sentences on a chunk that fails to load and on the touch
  parts a page loads.
@cixzhang

Copy link
Copy Markdown
Contributor

/approve-spec 57952f1

@astracat-bot astracat-bot Bot left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changes requested: an engineering owner approved the record edits at this head, but the stated hides still miss the one-frame limit and no Simulator result is stated for this head.

  • The description's takes put hides 0–2 drawn frames (Simulator) and 0–3 page frames (iPhone 14) behind the keyboard, which the FR8 Safari verification row in spec:AST-099 counts as a failure ("falls more than a frame behind the keyboard") and which contradicts the description's "within a frame" claim, so please retime the hide so every take stays within a frame, or have the row and DEC-12 amended to state the allowed trail and approved for the new head.
  • Please state the Simulator take at this head in the description (device, iOS and Safari versions, animation speed, and the show and blur-hide result against the keyboard for ChatLayout's composer, a Tall sheet and an app's docked bar with a TextInput), because spec:AST-099 DEC-3 makes Simulator evidence a merge gate and this head's merge changes useMobileKeyboard.ts, so the earlier takes do not carry over under spec:AST-094 DEC-31.

The docked-bar registration, the report-time hold and the sheet's sub-pixel reveal fix hold up in tests, and an approved record now names the schedule module.

Claims and files checked

Review mode: same-head; reason: none

  • Claims, verified: each surface rides the inset's edge, holding still until the edge reaches it and resting once it has fallen its travel (the edge mapping in rideKeyboard.ts and its tests).
  • Claims, verified: the show rides a critically damped 8π s⁻¹ spring cut and normalised at 330 ms that never trails UIKit's keyboard spring and leads it by 3–18 ms from 30 to 97% of the rise (uikitKeyboardSchedule.ts, keyboardUIKit.test.ts).
  • Claims, verified: an app's docked bar with a Core field rides too, and the two Safari docked-bar cases fail without the field's schedule registration (keyboardTarget.ts, TextInput.keyboard.test.tsx).
  • Claims, verified: a sheet's reveal skips sub-pixel distances, and the pinned sheet case fails with that tolerance reverted; a ride dated before its report holds still until the report; Reduce Motion is unchanged; only Safari on iOS rides the edge, and Chrome's report clearance and pan watch stay Chrome's; the hide keeps UIKit's spring from the blur.
  • Claims, false: the expected behavior that a surface rides within a frame of the keyboard does not hold for hides in the stated takes (the first point above).
  • Claims, true as stated: the Simulator and iPhone results are given for the previous head (the second point above).
  • Claims, verified: both changesets and the browser-support guide (the composer, a Tall sheet's field and a docked bar's field wait for the keyboard's top and rise on a slightly quicker spring; before, they moved in one step at Safari's report; the composer and the docked bar come down from the blur; the ride starts once the touch support loads).
  • Claims, verified: no public API changes; Core's typecheck, lint on the changed files and the keyboard, sheet, chat, text-field and layer suites pass at this head. Not re-run: the full test projects, the browser interaction and accessibility specs, the page-size measurement and the mutants.
  • Files, clear: uikitKeyboardSchedule.ts, keyboardLayoutGuide.ts, keyboardModel.ts, rideKeyboard.ts, keyboardTarget.ts, useMobileKeyboard.ts, useChatKeyboard.ts, touchRuntimeModules.tsx, their tests, TextInput.keyboard.test.tsx, BottomSheet.test.tsx, the React component runtime record, the keyboard README, the BottomSheet and ChatLayout docs, the browser-support guide, both changesets and the CLI docs golden.
  • Files, finding: the mobile-keyboard spec is clear apart from its FR8 Safari row, which the first point measures the hides against.

Automated review (maintainer link)

| FR2–FR5 | Release gate: a physical iPhone in a top-level document (DEC-3) | iPhone Safari with the toolbar expanded and collapsed; iPhone home-screen app; the phone's refresh rate | The page lurches, the field ends under the keyboard, or the surface does not follow the keyboard |
| FR3–FR4 | ChatLayout's keyboard tests in jsdom and its interaction proofs in Chromium and WebKit | the fixed and the sticky dock with the keyboard shown and hidden; the message area's end padding; a transcript at its newest message; a page pinch-zoomed with the keyboard up; focus by tap, Tab, `focus()` and Done, under a finger and under a mouse | The dock left under the keyboard or lifted with none; the newest message unable to scroll above the composer; a transcript at its newest message left behind; the page panned to the composer's text under a finger; focus left in the text after Done, or the composer group focusable outside Done's park |
| FR8 | ChatLayout's interaction proofs in Chromium with Chrome's keyboard report | the dock riding Gboard's slide up from the report and down from the blur; reduced motion on | The dock lagging Gboard's slide, laying out or painting per frame, or jumping at the hand-back; the dock travelling under reduced motion instead of DR2's cross-fade |
| FR8 | Safari on iOS in the Simulator, every drawn frame read; release gate: a physical iPhone (DEC-3) | ChatLayout's composer and a Tall sheet: keyboard shown, and hidden by a blur; a main thread blocked from the frame after Safari's report; reduced motion on; focus moving into a frame, a custom element or an open shadow root | A surface jumps at Safari's report, falls more than a frame behind the keyboard, or waits for the hide report instead of riding from the blur. Timing runs from Safari's report, so a ride that starts after its frame fails. A field inside a frame rides its hide from the report (FR7). |

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The description's takes put hides 0–2 drawn frames (Simulator) and 0–3 page frames (iPhone 14) behind the keyboard, and an earlier take had hides up to 73 ms (2–3 drawn frames) behind the bar in 14 of 36 takes. This row counts a surface that "falls more than a frame behind the keyboard" as a failure, and DEC-12 makes the bar's top the edge each surface rides. Either the hide is retimed so every take stays within a frame, or this row and DEC-12 state the allowed trail and an engineering owner approves the new head.

@github-actions
github-actions Bot deleted the branch meta:perf/defer-touch-runtime December 3, 2026 06:09

This branch was successfully deployed

1 active deployment
Preview — 57952f17 Deployed Nov 23, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci:run A maintainer lets this outside contributor's pull request run CI (AST-030 FR17) ci:run-a11y Run the accessibility suite on this PR; write access, next push (AST-030 FR12) CLA Signed This label is managed by the Meta Open Source bot.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants