[Bug][Mobile] Android composer does not scroll the current line into view while typing a long prompt
Description
On the Android mobile app (Play Store 1.1.0), typing a long multi-line prompt in the chat composer eventually leaves the line I am typing on out of view. The composer stops following the caret, so I am typing blind until I send the message or manually scroll the input.
I could not tell from the app whether the editor stops growing at its max height and then fails to scroll the caret into view, or whether it grows but the caret still ends up outside the visible area (possibly behind the keyboard). Either way, the current line is not scrolled into view while typing.
Expected behavior
- While typing, the caret/current line is always scrolled into view in the composer, both while the editor is still growing and after it has reached its maximum height.
- Moving the caret back up to an earlier line should also scroll that line into view.
Notes / possibly related
- #11987 — iOS composer never grows with the prompt (open). Same family, different platform.
- #11757 — fix(mobile): grow the composer with the typed prompt (closed, unmerged). Its description says the expanded composer stayed at its min height so "the caret and the end of a long prompt sat off-screen while typing", and that the box is shared between iOS and Android (same Yoga
minHeight), but the caret-scroll part of that fix was iOS-only (scrollCaretIntoViewIfNeeded). Android appears to have no equivalent caret-into-view call. - #11992 — Android composer and working pill cover the newest transcript lines (open). Different surface (transcript, not the composer's own scroll).
- #11918 — fix(mobile): keep collapsed Android composer placeholder on one line (open).
Environment
- Android, T3 Code 1.1.0 (Google Play)
Confirmed which of the two it is: the composer stops growing (it reaches its max height and stays there), and from that point on the line I am typing on is off-screen — the editor does not scroll its own content to follow the caret. So the growth cap is working; what is missing is the caret-into-view scroll inside the editor once it is capped.
Triage
Android chat composer: while typing a long multi-line prompt, the current line / caret leaves the visible input. The user is typing blind until they send or manually scroll the field. Reported on Play Store 1.1.0. This is a real composer-editor bug, not the transcript-under-chrome reports.
What we think is going on
Two stacked gaps on current main. Either one can hide the caret; together they match the report.
1. The expanded box may never grow. ThreadComposer (and NewTaskDraftScreen) pass minHeight: 72 / maxHeight: 160 with no concrete height. Native Android already emits onComposerContentSizeChange from T3ComposerEditorView.kt, but T3ComposerEditor.native.tsx does not subscribe. Yoga then treats minHeight: 72 as the laid-out height, so later lines sit outside the visible editor. That is the same diagnosis as closed-unmerged #11757.
2. Android never scrolls the caret into view. #11757’s caret half was iOS-only (scrollCaretIntoViewIfNeeded → scrollRangeToVisible). Android has no bringPointIntoView (or equivalent) after text, selection, chip-span, or layout updates. setScrollEnabled only toggles isVerticalScrollBarEnabled — scrollbar visibility, not caret follow. That fits “I can scroll the input by hand, but it will not follow me.”
Keyboard covering the caret (KeyboardStickyView on Android is enabled={isKeyboardVisible && !keyboardStateSuspect}) is a possible extra, but the unused content-size event + missing Android caret scroll already explain typing blind. The same size box is used on the new-task composer, so that surface likely fails the same way.
Not the same bug as
- #11987 — iOS composer never grows. Same family, different platform. Some later comments say a store update improved iOS grow/taps; that does not give Android a caret-into-view path.
- #11757 — intended grow fix for both platforms; closed unmerged. Even if revived, its caret scroll would still be iOS-only.
- #11992 — composer / working pill covering transcript lines. Different surface.
- #11918 / #12605 — collapsed Android placeholder wrap.
- #10960 — transcript under Gboard, not the composer’s own scroll.
No merged PR adds Android caret-into-view or wires onComposerContentSizeChange into a clamped height.
Next step
Keep this open as an Android composer caret-follow bug.
- Engineering: reproduce on current
main(not only store 1.1.0). Thread composer, then new-task. Type past the min box, then past 160px; move the caret back to line 1. Confirm whether the box is stuck at min height, stuck after max height, and/or sitting behind the keyboard. - Fix direction: give the expanded editor a clamped
heightfrom the existing content-size event (the JS half of #11757), and callbringPointIntoViewafter text/selection/layout on Android. Do not treat a revival of #11757 as sufficient — that PR never added the Android caret call. - Report + source are enough; no more reporter info required.
Workaround: manually scroll the input, or write the long prompt on web/desktop.
Confirmed on Android. When a long prompt wraps to a new line, the composer does not follow the caret and the current line disappears below the visible area. This is especially annoying with a physical keyboard. You end up typing blind. I would really appreciate a fix.
Reproducible on 1.3.0. Once the composer hits max height, the current line scrolls out of view and the input does not follow the caret.
- Galaxy S25 Ultra (SM-S938U1), Android 16, One UI 8.5
- T3 Code 1.3.0 (Google Play)
Recording attached.
https://github.com/user-attachments/assets/587525c8-0e97-4e7a-af99-f4d391b3a813
Still reproducible for me on the current Android V2 beta build (2026-10-03), including the New thread composer.
Environment
- Xiaomi 17
- Android 16
- HyperOS 3.0.319.0
Repro / actual behavior Once the input reaches about 3 visible lines, the next wrapped line moves below the visible editor instead of the composer scrolling to keep the caret in view. At that point only the top of the blue caret is visible below the text, and further typing is effectively blind.
Manual scrolling still works, so this continues to match the missing Android caret-follow / bringPointIntoView behavior described in the triage above.
This has been reproducible for me since the early Android releases and is still present in the current V2 beta.
For me, after sending the initial message, you can no longer see the text input for any future messages. I am on the 2.0 beta on a pixel 8 pro.
[!NOTE] Grok responding on behalf of Julius.
Closing this as fixed by #17492, which just landed on main. The Android composer wasn't following the caret because the native editor's layout requests were never serviced, so the scroll-into-view kept getting deferred. That PR fixes it at the root, covering both the long-prompt case and reopened drafts.
If you still see the current line scroll out of view on a build that includes #17492 (for example on Samsung or Xiaomi keyboards), please reopen with your device, keyboard app, and app version. The separate "can't see the input after sending" report is a different issue, so please file that one on its own if it persists.