TextInput on Android Chrome: text invisible until the word is committed (Samsung Keyboard), and w...

Runtime: @rive-app/webgl2 2.55.1 (textInputProxy.ts is the same in webgl2-threads 2.55.1 and in 2.54.0)
Authoring: Rive CLI 1.11.0, AnimaScript file
Browser: Chrome 138 on Android 10 (reduced UA "Linux; Android 10; K"), HTTPS, cross-origin isolated
Works correctly: iPhone Safari (webgl2 and webgl2-threads 2.55.1) and desktop browsers

Setup. One single-line TextInput (maxCharacters 80) whose text is bound two-way to a view-model string. FocusData on the field, and an Enter KeyboardInput listener that fires a submit trigger. The host logs each change of the view-model string. Typed on the phone's own keyboard: "It works ".

1. Samsung Galaxy S20, Samsung Keyboard: nothing shows until the word is committed. Every letter is a composition update, and the field shows nothing until the space. Event capture on the runtime's hidden <input> (capture phase, so val is the value before the runtime's handler runs):

keydown kc=229 → compositionstart → compositionupdate "I" → beforeinput insertCompositionText "I" → input insertCompositionText val="I"
keydown kc=229 → compositionupdate "It" → beforeinput insertCompositionText "It" → input insertCompositionText val="It"
compositionend data="It" val="It"
keydown kc=229 val="" → beforeinput insertText " " → input insertText " " val=" "
view-model string = "It "          ← first change

TextInputProxy.onInput returns while composing is true, so the composed text reaches Rive only at composition end. The final text is right ("It works test test "), but nothing appears while typing, so the field looks broken. Any keyboard that composes words should show the same thing; we logged it on Samsung Keyboard.
Expected: each letter appears as it is typed, as in a native <input>.

2. Huawei phone, Microsoft SwiftKey: every space repeats the word just typed. The view-model string, in order:

"I" → "It" → "ItIt " → "ItIt w" …
"Test" → "TestTest " → "TestTest if" → "TestTest ifif " → … "TestTest ifif itit worksworks "
"THat" → "THatHat " → … "THatHat thatthat thatthat "

Letters arrive one at a time, and Backspace removes one character at a time. Each space inserts the last word again. We have no event capture from this phone.

My reading, not proven: SwiftKey commits each letter directly, with no composition. The proxy forwards it and sets value = "", but SwiftKey keeps its own copy of the text before the caret. On space it re-commits the word into the emptied field, and the proxy forwards that as new text.
Expected: "It works ".

Likely root. The proxy is always empty: commit() clears element.value after forwarding. Android keyboards keep state about the text around the caret, so they see a field that doesn't match what they typed. A proxy that mirrors the edited text, with the caret and composing region at the right place, would let the keyboard compose in place. It could then forward insertCompositionText updates live, so Rive can show the composing word. The TODO in textInputProxy.ts ("iOS won't autorepeat Backspace in an empty field (needs a text mirror)") points the same way.