Repository navigation
fix: preserve Samsung browser input, IME, and hydration compatibility - #698
Merged
trueadm merged 3 commits intoAug 10, 2026
Merged
Conversation
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes using default effort and found 1 potential issue.
Bugbot Autofix is ON, but it could not run because the branch was deleted or merged before autofix could start.
Reviewed by Cursor Bugbot for commit a12ad69. Configure here.
domgan-oai
marked this pull request as ready for review
August 10, 2026 21:52
2 of 5 tasks
trueadm
added a commit
that referenced
this pull request
Oct 2, 2026
The hydration-interactivity and hydration-stress gates have failed on every
weekly Bench run since 2026-08-17 with "octane-tsrx: search typing did not
produce native input events". The search-and-send sample runs inside
`<Hydrate when={interaction()}>`. Since #698 (2d06817), `interaction()`
captures `input` by default: Octane's document capture stops the native event
and replays an untrusted clone once the boundary hydrates, as
docs/deferred-hydration.md describes. The harness counted input with a
document capture listener registered after Octane's, so it never saw
pre-hydration typing. The harness passes at #698's parent and fails at #698.
Count input at window capture, ahead of any page code, and only trusted
events, so a deferred event is still observed and its replayed clone is not
counted twice. The post-hydration check of exactly one native event per typed
character still holds for every target.
Drop the js-framework-reorder waiver for ripple's interleaved keyed inserts.
It expired on 2026-10-01, and ripple 0.4.0 now passes the prepend100 and
insertmid100 identity gates.
Co-authored-by: Claude Opus 5.5 <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Summary
Why
Samsung/Android keyboards depend on uninterrupted trusted composition and editor focus. Existing controlled-input restoration, keyed movement, and deferred hydration could discard unfinished candidates, interrupt the keyboard, lose focus, commit effects too early, or require a second tap. Several framework paths also assumed browser APIs newer than the advertised Chromium 87 / Samsung Internet 14 module target.
Changes
compositionend.contentEditableselection across compiled/descriptor reorders, including open shadow roots and older Chromium withoutmoveBefore; restore shadow-hosted focus and selection after unavoidable blur.beforeinput, and composition interactions to the deferred-hydration public contract and subclass-aware/cross-realm event replay while preserving irreversible native default actions.Object.prototype.hasOwnPropertyonce and reuse it throughout Octane's client, server, universal, component-capability, method-dependency, and React-bridge modules without requiring Chromium 93+Object.hasOwn.modulesbrowser target, document the Chromium/Samsung support mapping, and compile the website plus playground runtime to a supported browser baseline.Validation
pnpm format:checkpnpm typecheck(complete monorepo, bindings, website, all examples, and benchmark types).pnpm testnode benchmarks/bundle-size/run-minimal.mjs: all 28 production bundles build, execute, and pass reachability checks; see existing budget overruns and measured deltas below.Risk / follow-ups
inertstill requires an application polyfill on older supported engines.mainfor deferred hydration, Suspense, and server rendering. Compared with the exact upstream parent, this change adds roughly 1.0 KiB gzip to shared-runtime entries and 1.6 KiB gzip to deferred hydration; 12 additional narrowly budgeted scenarios exceed their committed ceilings. Budgets were not silently increased.Provenance
agent-authored)Note
High Risk
Touches the render scheduler, keyed reconciler, controlled-input restore path, and deferred-hydration activation transactions—areas where subtle focus/IME bugs are easy to introduce despite extensive test coverage.
Overview
Improves Samsung Internet / Android WebView behavior by keeping native IME composition, editor focus, selection, and the original server DOM node through controlled updates, keyed list reorders, and deferred hydration that suspends mid-activation.
Controlled inputs defer value restoration while composition is active (including missed
compositionstart, late commits aftercompositionend, blur interruption, and dynamic type changes to text). Keyed reconciliation avoids blur during moves via focus-awareinsertBefore/ sibling rotation whenmoveBeforeis missing, with focus tracking through shadow roots and iframes. Deferred hydration stops cloning fallback over visible SSR content on suspend: it keeps the connected server arm, parks partial adoption (refs/effects), and extends interaction capture to touch/input/composition withoutpreventDefaulton events that must stay trusted.Platform compatibility: shared
hasOwnPropinstead ofObject.hasOwn, passive effects with a hidden-tab timeout fallback, legacymatchMedialisteners,IntersectionObserverabsence handling, non-passive delegatedtouchstart/touchmove, and Rsbuildsamsungbrowser targets plus docs for Chromium/Samsung version mapping.Reviewed by Cursor Bugbot for commit 0b2a36a. Bugbot is set up for automated code reviews on this repo. Configure here.