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
[Due for payment 2026-05-26] [Due for payment 2026-05-26] Android - Chat - Keyboard reopens automatically after being closed via device´s back button. #90891
Version Number: 9.3.75-1 Reproducible in staging?: Yes Reproducible in production?: No If this was caught during regression testing, add the test name, ID and link from BrowserStack:#90516 Email or phone of affected tester (no customers):ibellicotest+2250@gmail.com Issue reported by: Applause Internal Team Bug source: Exploratory - Significant User Experience Deterioration Device used: Motorola MotoG60 / Android 12 (Hybrid app) App Component: Other
Action Performed:
Open the Expensify app.
Open any chat.
Send any message to chat.
Long tap and select the just send message.
Select "Edit Comment"
Make any edition and send it.
Type another message but don´t send it.
Close keyboard via device´s back button.
Note that keyboard closes and reopens automatically.
Close it one more time via device´s back button.
Note that now, keyboard remains closed.
Expected Result:
Keyboard shouldn´t reappear after being closed using back button.
Actual Result:
Keyboard has to be closed twice if using device´s back button to close it. At first try, it closes and reopens automatically.
👋 Friendly reminder that deploy blockers are time-sensitive ⏱ issues! Check out the open `StagingDeployCash` deploy checklist to see the list of PRs included in this release, then work quickly to do one of the following:
Identify the pull request that introduced this issue and revert it.
Classification: Frontend bug Causing PR: #90516 - "Allow editing messages in Composer on narrow screens V2" by @chrispader (High confidence) Related Issues: None
Recommendation: REVERT
PR #90516 introduced a significant refactor of message editing in the composer. The keyboard re-opening behavior is a direct regression from this change, and the PR has already required one prior revert cycle (it was reverted in #90513 after the original #76741 introduced deploy blockers). Reverting is the safest path to unblock the deploy.
Assigned: @chrispader (PR author), @hungvu193@mountiny (approving reviewers) Labels: DeployBlockerCash kept (frontend bug in App repo). No label changes made.
The bug is reproducible on staging only (not production), consistent with a regression introduced in the current staging deploy.
The issue affects Android HybridApp, and the bug occurs specifically after the message editing flow: edit a message, send it, type a new draft, close keyboard via back button — keyboard reopens automatically.
PR Allow editing messages in Composer on narrow screens V2 #90516 is titled "Allow editing messages in Composer on narrow screens V2" and completely refactors how the bottom composer handles message editing on narrow (mobile) layouts — exactly the affected code path.
src/pages/inbox/report/ReportActionCompose/useEditComposerToggle.ts (new file introduced by this PR)
src/libs/focusComposerWithDelay/requestKeyboardForFocusedComposer/index.native.ts (new file introduced by this PR)
src/libs/refocusComposerAfterPreventFirstResponder.ts (modified by this PR)
src/pages/inbox/report/ReportActionCompose/ComposerWithSuggestions.tsx (modified by this PR)
These files directly control keyboard focus behavior on Android.
Root Cause
In src/pages/inbox/report/ReportActionCompose/useEditComposerToggle.ts (line 94), when editing ends for any reason, onFocus?.() is unconditionally called. This causes the composer to request keyboard focus even when the user dismissed editing by pressing the Android back button to close the keyboard. The sequence is:
User edits a message and submits it — editing state transitions out of EDITING.
useEditComposerToggle's useEffect detects wasEditingRef.current is true and editing just ended.
onFocus?.() is called at line 94, which triggers focus on the main composer.
This focus call causes the soft keyboard to reappear on Android.
The user must dismiss the keyboard a second time.
Additionally, src/libs/focusComposerWithDelay/requestKeyboardForFocusedComposer/index.native.ts (introduced by this PR) calls KeyboardController.setFocusTo('current') via requestIdleCallback, which can re-show the IME on Android even when the user has explicitly dismissed the keyboard.
This PR was previously reverted once (original PR #76741 reverted in #90513) due to deploy blockers, and was re-landed as v2 with fixes. The keyboard re-open regression is a new issue introduced in the v2 attempt.
changed the title [-]Android - Chat - Keyboard reopens automatically after being closed via device´s back button.[/-][+][Due for payment 2026-05-26] Android - Chat - Keyboard reopens automatically after being closed via device´s back button.[/+]on May 19, 2026
The solution for this issue has been 🚀 deployed to production 🚀 in version 9.3.75-14 and is now subject to a 7-day regression period 📆. Here is the list of pull requests that resolve this issue:
@hungvu193 The PR fixing this issue has been merged! The following checklist (instructions) will need to be completed before the issue can be closed. Please copy/paste the BugZero Checklist from here into a new comment on this GH and complete it. If you have the K2 extension, you can simply click: [this button]
changed the title [-][Due for payment 2026-05-26] Android - Chat - Keyboard reopens automatically after being closed via device´s back button.[/-][+][Due for payment 2026-05-26] [Due for payment 2026-05-26] Android - Chat - Keyboard reopens automatically after being closed via device´s back button.[/+]on May 19, 2026
The solution for this issue has been 🚀 deployed to production 🚀 in version 9.3.77-3 and is now subject to a 7-day regression period 📆. Here is the list of pull requests that resolve this issue:
@hungvu193 The PR fixing this issue has been merged! The following checklist (instructions) will need to be completed before the issue can be closed. Please copy/paste the BugZero Checklist from here into a new comment on this GH and complete it. If you have the K2 extension, you can simply click: [this button]
Activity
melvin-bot commentedon May 16, 2026
@mountiny recently merged #90516, but they are OOO right now, so I'll auto-assign someone else.
melvin-bot commentedon May 16, 2026
Triggered auto assignment to @inimaga (
DeployBlockerCash), see https://stackoverflowteams.com/c/expensify/questions/9980/ for more details.melvin-bot commentedon May 16, 2026
💬 A slack conversation has been started in #expensify-open-source
github-actions commentedon May 16, 2026
👋 Friendly reminder that deploy blockers are time-sensitive ⏱ issues! Check out the open `StagingDeployCash` deploy checklist to see the list of PRs included in this release, then work quickly to do one of the following:
OSBotify commentedon May 16, 2026
Investigation Summary
Classification: Frontend bug
Causing PR: #90516 - "Allow editing messages in Composer on narrow screens V2" by @chrispader (High confidence)
Related Issues: None
Recommendation: REVERT
PR #90516 introduced a significant refactor of message editing in the composer. The keyboard re-opening behavior is a direct regression from this change, and the PR has already required one prior revert cycle (it was reverted in #90513 after the original #76741 introduced deploy blockers). Reverting is the safest path to unblock the deploy.
Assigned: @chrispader (PR author), @hungvu193 @mountiny (approving reviewers)
Labels:
DeployBlockerCashkept (frontend bug in App repo). No label changes made.Detailed Analysis
Evidence
Verification
src/pages/inbox/report/ReportActionCompose/useEditComposerToggle.ts(new file introduced by this PR)src/libs/focusComposerWithDelay/requestKeyboardForFocusedComposer/index.native.ts(new file introduced by this PR)src/libs/refocusComposerAfterPreventFirstResponder.ts(modified by this PR)src/pages/inbox/report/ReportActionCompose/ComposerWithSuggestions.tsx(modified by this PR)Root Cause
In
src/pages/inbox/report/ReportActionCompose/useEditComposerToggle.ts(line 94), when editing ends for any reason,onFocus?.()is unconditionally called. This causes the composer to request keyboard focus even when the user dismissed editing by pressing the Android back button to close the keyboard. The sequence is:EDITING.useEditComposerToggle'suseEffectdetectswasEditingRef.currentis true and editing just ended.onFocus?.()is called at line 94, which triggers focus on the main composer.Additionally,
src/libs/focusComposerWithDelay/requestKeyboardForFocusedComposer/index.native.ts(introduced by this PR) callsKeyboardController.setFocusTo('current')viarequestIdleCallback, which can re-show the IME on Android even when the user has explicitly dismissed the keyboard.This PR was previously reverted once (original PR #76741 reverted in #90513) due to deploy blockers, and was re-landed as v2 with fixes. The keyboard re-open regression is a new issue introduced in the v2 attempt.
5 remaining items
mountiny commentedon May 18, 2026
Waiting for a retest
m-natarajan commentedon May 18, 2026
Not Repro, Galaxy A55/ Android 16, v9.3.75-3
repro.-.90891.mp4
[-]Android - Chat - Keyboard reopens automatically after being closed via device´s back button.[/-][+][Due for payment 2026-05-26] Android - Chat - Keyboard reopens automatically after being closed via device´s back button.[/+]melvin-bot commentedon May 19, 2026
Reviewinglabel has been removed, please complete the "BugZero Checklist".melvin-bot commentedon May 19, 2026
The solution for this issue has been 🚀 deployed to production 🚀 in version 9.3.75-14 and is now subject to a 7-day regression period 📆. Here is the list of pull requests that resolve this issue:
If no regressions arise, payment will be issued on 2026-05-26. 🎊
For reference, here are some details about the assignees on this issue:
melvin-bot commentedon May 19, 2026
@hungvu193 The PR fixing this issue has been merged! The following checklist (instructions) will need to be completed before the issue can be closed. Please copy/paste the BugZero Checklist from here into a new comment on this GH and complete it. If you have the K2 extension, you can simply click: [this button]
[-][Due for payment 2026-05-26] Android - Chat - Keyboard reopens automatically after being closed via device´s back button.[/-][+][Due for payment 2026-05-26] [Due for payment 2026-05-26] Android - Chat - Keyboard reopens automatically after being closed via device´s back button.[/+]melvin-bot commentedon May 19, 2026
The solution for this issue has been 🚀 deployed to production 🚀 in version 9.3.77-3 and is now subject to a 7-day regression period 📆. Here is the list of pull requests that resolve this issue:
If no regressions arise, payment will be issued on 2026-05-26. 🎊
For reference, here are some details about the assignees on this issue:
melvin-bot commentedon May 19, 2026
@hungvu193 The PR fixing this issue has been merged! The following checklist (instructions) will need to be completed before the issue can be closed. Please copy/paste the BugZero Checklist from here into a new comment on this GH and complete it. If you have the K2 extension, you can simply click: [this button]