Android test-IME fill commits into a stale InputConnection session after focus moves to a new field
Los mantenedores suelen responder en 1 día
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 3/5
- Tiempo estimado
- 1-2 días
- Aptitud para principiantes
- 74/100
- Tipo de issue
- Error
- Claridad
- Bastante claro
- Estado de actividad
- Activo
- Stack tecnológico
- android, react-native, typescript
- Área
- mobile-dev, testing-qa
Línea de trabajo
Start in packages/platform-android/src/text-input.ts at fillAndroidImeHelper and trace how the commit result is checked after focus changes. Reproduce the sequential onboarding echoes scenario under Android load, then verify that a failed commit with the hint still showing causes a fresh IME start before retrying and that the text lands in the new field.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
What happens
On an API 36 emulator under CPU load, fill into a freshly mounted, autofocused React Native TextInput sometimes fails with Android fill verification failed. The trigger is a wizard step change: Continue unmounts one field and mounts the next. The field keeps showing its hint: failureReason: text_mismatch, actual: "e.g. Jane", hintShowing: true, focused: true, and target and actual are the same node.
The test IME does commit, and logs commitText length=4. The app drops the text:
W/RemoteInputConnectionImpl: Session id mismatch header.sessionId: 0 currentSessionId: 1 while calling ...commitText
The helper's retry refocuses 2 s later and hits the same mismatch, so the IME was still on the previous connection session that long after focus moved.
Seen
- e2e mobile benchmark CI: 4 of 45 Android runs (
sequential onboarding echoes the exact values). - Locally: about 1 in 30 under load, 0 in 30 idle.
Tried
Waiting, before the commit, for dumpsys input_method's curEditorInfo.hintText to match the target's placeholder did not help (1/60 vs 1/30 baseline). The system-side editor info is already current when the IME's connection is stale.
Likely direction
Detect "text never landed" (hint still showing after the commit) and force a fresh startInput for the IME before the retry, e.g. by moving focus off the field and back, instead of re-tapping the already focused field. The check would live in fillAndroidImeHelper in packages/platform-android/src/text-input.ts.
- Lenguaje dominante
- TypeScript
- Estrellas
- 4.8k
- Forks
- 315
- Merge medio
- 11 h 27 min
- PR fusionados (30 d)
- 556
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Sin plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de callstack/agent-device
-
Dificultad 1/5 Menos de una hora Aptitud para principiantes 82/100
callstack/agent-device#3062 ·
Los mantenedores suelen responder en 1 día
-
ready-for-agent
Dificultad 2/5 1-3 horas Aptitud para principiantes 84/100
callstack/agent-device#2995 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
callstack/agent-device#1869 ·
Los mantenedores suelen responder en 1 día
-
needs-triage
Dificultad 4/5 3-5 días Aptitud para principiantes 38/100
callstack/agent-device#3077 ·
Los mantenedores suelen responder en 1 día
-
needs-triage
Dificultad 4/5 3-5 días Aptitud para principiantes 68/100
callstack/agent-device#3076 ·
Los mantenedores suelen responder en 1 día
Todos los issues de callstack/agent-device
Issues similares
-
bug via-triage
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
pingdotgg/t3code#14452 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
solana-foundation/program-examples#747 · 1 comentario ·
Los mantenedores suelen responder en 9 días
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 65/100
remotion-dev/remotion#11847 ·
Los mantenedores suelen responder en 1 día
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
openwatersio/slackwater#355 ·
Los mantenedores suelen responder en 1 día
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 74/100
melgarafael/DeskcommCRM#1998 · 3 comentarios ·
Los mantenedores suelen responder en 1 día