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
[$250] Composer Not Displayed After App Relaunch from Chat #89406
BugSomething is broken. Auto assigns a BugZero manager.DailyKSv2ExternalAdded to denote the issue can be worked on by a contributorNeeds ReproductionReproducible steps needed
Version Number: (Latest staging) Reproducible in staging?: Needs Reproduction (Unable to reproduce) Reproducible in production?: Needs Reproduction If this was caught during regression testing, add the test name, ID and link from BrowserStack: Email or phone of affected tester (no customers): Logs:https://stackoverflow.com/c/expensify/questions/4856 Expensify/Expensify Issue URL: Issue reported by:@AndrewGable Slack conversation (hyperlinked to channel name): #Quality
Action Performed:
Open a chat from the Inbox
Kill/force close the app
Reopen the app
Observe the bottom area of the chat screen
Expected Result:
The composer (text input field) should be visible at the bottom
Actual Result:
The bottom navigation bar appears where the composer should be
Composer is not visible or is overlapped
Workaround:
Unknown
Platforms:
Select the officially supported platforms where the issue was reproduced:
📣 @exfy-zapier! 📣
Hey, it seems we don’t have your contributor details yet! You'll only have to do this once, and this is how we'll hire you on Upwork.
Please follow these steps:
Get the email address used to login to your Expensify account. If you don't already have an Expensify account, create one here. If you have multiple accounts (e.g. one for testing), please use your main account email.
Get the link to your Upwork profile. It's necessary because we only pay via Upwork. You can access it by logging in, and then clicking on your name. It'll look like this. If you don't already have an account, sign up for one here.
Copy the format below and paste it in a comment on this issue. Replace the placeholder text with your actual details.
Format:
Contributor details
Your Expensify account email: <REPLACE EMAIL HERE>
Upwork Profile Link: <REPLACE LINK HERE>
Two interacting issues cause the composer to be hidden and the bottom tab bar to appear on iOS cold start after force-close:
1. Tab bar incorrectly shows during unhydrated navigator state.TabNavigatorBar.tsx:47 defines isAtTabRootLevel with a !name guard — when getFocusedLeafScreenName returns undefined (because the split navigator's inner state hasn't hydrated yet, exacerbated by lazy: true in TabNavigator.native.tsx:31), the tab bar treats it as "at root level" and renders visible, overlaying the composer area via negative marginTop.
2. shouldShowComposeInput can persist as false across restarts. On iOS, setShouldShowComposeInputKeyboardAwareBuilder.ts:17 transiently sets shouldShowComposeInput to false during keyboard transitions. Since this Onyx key is persisted to disk, force-killing the app during that window preserves false. On restart, ReportFooter.tsx:61 reads it with a default of false, and the composer only renders when shouldShowComposeInput is true on small screens (line 90). The recovery path — ReportFetchHandler calling setShouldShowComposeInput(true) — is deferred behind both shouldDeferNonEssentials in ReportScreen.tsx:131 and InteractionManager.runAfterInteractions in ReportFetchHandler.tsx:238.
What changes do you think we should make in order to solve the problem?
Two targeted fixes:
In TabNavigatorBar.tsx: When focusedLeaf is undefined and the active route is a split navigator (like REPORTS_SPLIT_NAVIGATOR), treat it as "not at root" instead of "at root". This prevents the tab bar from flashing visible during state hydration. For example, change isAtTabRootLevel to return false when name is undefined but the active route is a known split navigator, or use getPushTargetLeaf from the route params as the fallback before falling back to "at root".
In setShouldShowComposeInputKeyboardAwareBuilder.ts: Ensure shouldShowComposeInput is reset to true before the app backgrounds (e.g., in saveCurrentPathBeforeBackground in App.ts), so a transient false value during keyboard transitions never persists across restarts. Alternatively, make this a non-persisted (in-memory only) Onyx key with initialValue: true.
What alternative solutions did you explore?
Setting shouldShowComposeInput to true unconditionally during app initialization — this would work but could cause a flash of the composer in cases where it should be hidden.
Removing lazy: true from the tab navigator — this would ensure child states hydrate immediately but could negatively impact cold start performance.
Investigation details
Navigation restoration flow:
On force-close, App.ts:234-254 saves the current path to LAST_VISITED_PATH
Tab bar uses marginTop: -(bottomTabHeight + safeAreaBottom) to overlay content (styles/utils/index.ts:2301)
SCREENS.REPORT is correctly excluded from SCREENS_WITH_TAB_BAR (TabNavigatorBar.tsx:37-45), so the tab bar hides once the leaf resolves — but the initial undefined window causes the flash
Composer visibility chain:
ReportFooter.tsx:90: composer shows only when shouldShowComposeInput || !isSmallScreenWidth
ReportFetchHandler.tsx:236-245: sets shouldShowComposeInput(true) via InteractionManager.runAfterInteractions
ReportScreen.tsx:131-153: gates ReportFetchHandler behind shouldDeferNonEssentials, and shows ReportActionComposePlaceholder instead of ReportFooter when deferred
Next Steps for Contributor+ team: Reply with @MelvinBot implement this to create a draft PR, @MelvinBot <your feedback> to refine this analysis, or explain why you are rejecting Melvin's proposal.
changed the title [-]Composer Not Displayed After App Relaunch from Chat[/-][+][$250] Composer Not Displayed After App Relaunch from Chat[/+]on May 1, 2026
The report screen has two transient UI states that can survive or appear during iOS cold start.
First, the bottom tab bar treats an unresolved focused leaf as tab-root. isAtTabRootLevel() returns true when the focused leaf is undefined, and the tab bar then stays visible on narrow layouts:
On the Reports tab, the report can be resolved from the current URL before the nested split state is hydrated, so focusedLeaf and the param fallback can both be absent temporarily. The narrow tab bar uses a negative top margin, so when it is incorrectly visible it overlays the bottom composer area:
Second, shouldShowComposeInput is persisted even though it is only keyboard/edit-mode UI state. The keyboard-aware helper writes false while hiding the composer and writes true only after the keyboard hide event:
What changes do you think we should make in order to solve the problem?
Fix both transient states at their source:
In TabNavigatorBar.tsx, stop treating an unresolved Reports split leaf as tab-root. Use the focused leaf first, then the pushed target leaf, and only fall back to the active tab route name for tabs where the wrapper itself is safe to display as root.
In src/setup/index.ts, add ONYXKEYS.SHOULD_SHOW_COMPOSE_INPUT to ramOnlyKeys.
Remove ONYXKEYS.SHOULD_SHOW_COMPOSE_INPUT from preservation lists in src/libs/actions/App.ts and src/libs/actions/QueuedOnyxUpdates.ts, because this key should not survive resets or logged-out queued-update filtering.
Add focused tests for TabNavigatorBar visibility when the active route is REPORTS_SPLIT_NAVIGATOR with no hydrated child state, with a pushed Report target, and with normal tab-root routes.
Add or update an Onyx setup test to assert SHOULD_SHOW_COMPOSE_INPUT is RAM-only and starts as true.
MelvinBot’s proposal identified the correct areas, but it leaves one navigation fix as an option that is already present in the code path (getPushTargetLeaf) and suggests resetting the composer key on background as an alternative. Resetting on background is weaker than making the key RAM-only because the bug is caused by persisting transient keyboard state in the first place.
What alternative solutions did you explore? (Optional)
⚠️@nabi-ebrahimi Thanks for your proposal. Please update it to follow the proposal template, as proposals are only reviewed if they follow that format (note the mandatory sections).
@situchan Since the original seems to be solved in this PR, but second issue (which I mentioned in my proposal) seems to be reproducible so can you take a look? Thanks
@situchan this issue was created 2 weeks ago. Are we close to approving a proposal? If not, what's blocking us from getting this issue assigned? Don't hesitate to create a thread in #expensify-open-source to align faster in real time. Thanks!
🤖 I attempted to close this issue as fixed, but I don't have the required permissions to close issues in this repository. A maintainer will need to close this manually.
BugSomething is broken. Auto assigns a BugZero manager.DailyKSv2ExternalAdded to denote the issue can be worked on by a contributorNeeds ReproductionReproducible steps needed
Activity
exfy-zapier commentedon May 1, 2026
This has been labelled "Needs Reproduction". Follow the steps here: https://stackoverflowteams.com/c/expensify/questions/16989
melvin-bot commentedon May 1, 2026
📣 @exfy-zapier! 📣
Hey, it seems we don’t have your contributor details yet! You'll only have to do this once, and this is how we'll hire you on Upwork.
Please follow these steps:
Format:
MelvinBot commentedon May 1, 2026
Proposal
What is the root cause of that problem?
Two interacting issues cause the composer to be hidden and the bottom tab bar to appear on iOS cold start after force-close:
1. Tab bar incorrectly shows during unhydrated navigator state.
TabNavigatorBar.tsx:47definesisAtTabRootLevelwith a!nameguard — whengetFocusedLeafScreenNamereturnsundefined(because the split navigator's inner state hasn't hydrated yet, exacerbated bylazy: trueinTabNavigator.native.tsx:31), the tab bar treats it as "at root level" and renders visible, overlaying the composer area via negativemarginTop.2.
shouldShowComposeInputcan persist asfalseacross restarts. On iOS,setShouldShowComposeInputKeyboardAwareBuilder.ts:17transiently setsshouldShowComposeInputtofalseduring keyboard transitions. Since this Onyx key is persisted to disk, force-killing the app during that window preservesfalse. On restart,ReportFooter.tsx:61reads it with a default offalse, and the composer only renders whenshouldShowComposeInputistrueon small screens (line 90). The recovery path —ReportFetchHandlercallingsetShouldShowComposeInput(true)— is deferred behind bothshouldDeferNonEssentialsinReportScreen.tsx:131andInteractionManager.runAfterInteractionsinReportFetchHandler.tsx:238.What changes do you think we should make in order to solve the problem?
Two targeted fixes:
In
TabNavigatorBar.tsx: WhenfocusedLeafisundefinedand the active route is a split navigator (likeREPORTS_SPLIT_NAVIGATOR), treat it as "not at root" instead of "at root". This prevents the tab bar from flashing visible during state hydration. For example, changeisAtTabRootLevelto returnfalsewhennameisundefinedbut the active route is a known split navigator, or usegetPushTargetLeaffrom the route params as the fallback before falling back to "at root".In
setShouldShowComposeInputKeyboardAwareBuilder.ts: EnsureshouldShowComposeInputis reset totruebefore the app backgrounds (e.g., insaveCurrentPathBeforeBackgroundinApp.ts), so a transientfalsevalue during keyboard transitions never persists across restarts. Alternatively, make this a non-persisted (in-memory only) Onyx key withinitialValue: true.What alternative solutions did you explore?
shouldShowComposeInputtotrueunconditionally during app initialization — this would work but could cause a flash of the composer in cases where it should be hidden.lazy: truefrom the tab navigator — this would ensure child states hydrate immediately but could negatively impact cold start performance.Investigation details
Navigation restoration flow:
App.ts:234-254saves the current path toLAST_VISITED_PATHNavigationRoot.tsx:133-143restores it viagetAdaptedStateFromPathgetAdaptedStateFromPath.ts:277-291builds state:TAB_NAVIGATOR > REPORTS_SPLIT_NAVIGATOR > [INBOX, REPORT]Tab bar overlay mechanism:
marginTop: -(bottomTabHeight + safeAreaBottom)to overlay content (styles/utils/index.ts:2301)SCREENS.REPORTis correctly excluded fromSCREENS_WITH_TAB_BAR(TabNavigatorBar.tsx:37-45), so the tab bar hides once the leaf resolves — but the initial undefined window causes the flashComposer visibility chain:
ReportFooter.tsx:90: composer shows only whenshouldShowComposeInput || !isSmallScreenWidthReportFetchHandler.tsx:236-245: setsshouldShowComposeInput(true)viaInteractionManager.runAfterInteractionsReportScreen.tsx:131-153: gatesReportFetchHandlerbehindshouldDeferNonEssentials, and showsReportActionComposePlaceholderinstead ofReportFooterwhen deferredNext Steps for Contributor+ team: Reply with
@MelvinBot implement thisto create a draft PR,@MelvinBot <your feedback>to refine this analysis, or explain why you are rejecting Melvin's proposal.melvin-bot commentedon May 1, 2026
Triggered auto assignment to Contributor-plus team member for initial proposal review - @abdulrahuman5196 (
External)[-]Composer Not Displayed After App Relaunch from Chat[/-][+][$250] Composer Not Displayed After App Relaunch from Chat[/+]melvin-bot commentedon May 1, 2026
Job added to Upwork: https://www.upwork.com/jobs/~022050288719784909672
nabi-ebrahimi commentedon May 1, 2026
Proposal
What is the root cause of that problem?
The report screen has two transient UI states that can survive or appear during iOS cold start.
First, the bottom tab bar treats an unresolved focused leaf as tab-root.
isAtTabRootLevel()returnstruewhen the focused leaf isundefined, and the tab bar then stays visible on narrow layouts:App/src/libs/Navigation/AppNavigator/Navigators/TabNavigatorBar.tsx
Lines 47 to 82 in a8dad1c
focusedLeafand the param fallback can both be absent temporarily. The narrow tab bar uses a negative top margin, so when it is incorrectly visible it overlays the bottom composer area:App/src/styles/utils/index.ts
Lines 2301 to 2304 in a8dad1c
Second,
shouldShowComposeInputis persisted even though it is only keyboard/edit-mode UI state. The keyboard-aware helper writesfalsewhile hiding the composer and writestrueonly after the keyboard hide event:App/src/libs/setShouldShowComposeInputKeyboardAware/setShouldShowComposeInputKeyboardAwareBuilder.ts
Lines 16 to 29 in a8dad1c
SHOULD_SHOW_COMPOSE_INPUThas an initial value but is not listed as a RAM-only key, a force close can relaunch with the stale persistedfalse:App/src/setup/index.ts
Lines 49 to 73 in a8dad1c
ReportFooteronly renders the composer when this key is true:App/src/pages/inbox/report/ReportFooter.tsx
Lines 61 to 90 in a8dad1c
What changes do you think we should make in order to solve the problem?
Fix both transient states at their source:
TabNavigatorBar.tsx, stop treating an unresolved Reports split leaf as tab-root. Use the focused leaf first, then the pushed target leaf, and only fall back to the active tab route name for tabs where the wrapper itself is safe to display as root.src/setup/index.ts, addONYXKEYS.SHOULD_SHOW_COMPOSE_INPUTtoramOnlyKeys.ONYXKEYS.SHOULD_SHOW_COMPOSE_INPUTfrom preservation lists insrc/libs/actions/App.tsandsrc/libs/actions/QueuedOnyxUpdates.ts, because this key should not survive resets or logged-out queued-update filtering.TabNavigatorBarvisibility when the active route isREPORTS_SPLIT_NAVIGATORwith no hydrated child state, with a pushedReporttarget, and with normal tab-root routes.SHOULD_SHOW_COMPOSE_INPUTis RAM-only and starts astrue.MelvinBot’s proposal identified the correct areas, but it leaves one navigation fix as an option that is already present in the code path (
getPushTargetLeaf) and suggests resetting the composer key on background as an alternative. Resetting on background is weaker than making the key RAM-only because the bug is caused by persisting transient keyboard state in the first place.What alternative solutions did you explore? (Optional)
github-actions commentedon May 1, 2026
25 remaining items
Uzaifm127 commentedon May 11, 2026
@mallenexpensify Can you please reassign this issue to @situchan based on this comment. TY
melvin-bot commentedon May 12, 2026
@abdulrahuman5196 10 days overdue. Is anyone even seeing these? Hello?
Uzaifm127 commentedon May 13, 2026
@situchan Since the original seems to be solved in this PR, but second issue (which I mentioned in my proposal) seems to be reproducible so can you take a look? Thanks
melvin-bot commentedon May 15, 2026
@situchan this issue was created 2 weeks ago. Are we close to approving a proposal? If not, what's blocking us from getting this issue assigned? Don't hesitate to create a thread in #expensify-open-source to align faster in real time. Thanks!
situchan commentedon May 18, 2026
@Uzaifm127 are you still able to reproduce?
Uzaifm127 commentedon May 18, 2026
This isn't reproducible on staging now as this PR fixed this issue.
The second issue seems to be fixed now. So I believe we can close this one.
issue-reproduced.mp4
situchan commentedon May 18, 2026
Let's close this
MelvinBot commentedon May 18, 2026
🤖 I attempted to close this issue as fixed, but I don't have the required permissions to close issues in this repository. A maintainer will need to close this manually.