You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Bug]: Android: typing while an attached photo is still processing inserts it into the middle of the text (2.4.0) #46379
I searched existing issues and did not find a duplicate.
I included enough detail to reproduce or investigate the problem.
Area
apps/mobile
Steps to reproduce
Open a thread in the T3 Code Android app (2.4.0 (831)).
Add one or more photos to the composer (they start loading/processing asynchronously, and no inline token/placeholder appears in the text input yet).
Before the photos finish loading and appearing in the text input, start typing a message.
Expected behavior
Either an inline placeholder appears immediately when the photo is added/processing, or once processing finishes the photo chip is inserted cleanly without interrupting or landing in the middle of the text being typed (so the user does not have to wait for photo loading to finish before typing).
Actual behavior
While the photos are still processing/loading, nothing appears in the text field yet. When the user starts typing right away, once the photo finishes processing, the app inserts the photo chip directly into the middle of the typed text.
Because of this, the user currently has to wait until all attached photos finish loading and visibly appear in the message composer before starting to type.
Impact
Minor bug or occasional failure
Version or commit
2.4.0 (831)
Environment
Samsung Galaxy S25 Ultra (Android), T3 Code mobile 2.4.0 (831)
Notes
Checked against current main: #35528 added mapCapturedRange / caretAfterInsertion in apps/mobile/src/state/use-composer-drafts.ts, but this still reproduces on Android 2.4.0 (831) when typing while attachments are processing asynchronously in use-composer-attachment-actions.ts / composerImages.ts (before any inline reference appears in the composer).
Activity