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
Expense - Report auto opens when expense is created from report preview #82131
👋 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: #80480 - "Update create transaction Manual flow to ask for merchant after asking for amount v2" by @nkdengineer (High confidence) Related Issues: None
Recommendation: REVERT
This PR #80480 introduced extensive changes to the create expense flow, including significant navigation logic modifications. The specific issue is in the dismissModalAndOpenReportInInboxTab function which auto-navigates to the expense report after creating an expense from a report preview.
Labels: Keeping DeployBlockerCash (App deploy is blocked). PR #80480 is in the App repository and requires reversion or fix.
Detailed Analysis
Evidence
The bug is only reproducible on staging (v9.3.17-0), not production, confirming it was introduced by a PR in the current staging deploy
Lines 1072-1086 in the dismissModalAndOpenReportInInboxTab function show the problematic logic:
// When a report with one expense is opened in the wide RHP and the user adds another expense, RHP should be dismissed and ROUTES.SEARCH_MONEY_REQUEST_REPORT should be displayed.if(hasMultipleTransactions&&reportID){// On small screens, dismiss all modals and then navigate to the right report.// On large screens, dismiss to the previous RHP first, then replace the current route with the new report.constisNarrowLayout=getIsNarrowLayout();if(isNarrowLayout){Navigation.dismissModal();}else{Navigation.dismissToPreviousRHP();}Navigation.setNavigationActionToMicrotaskQueue(()=>{Navigation.navigate(ROUTES.SEARCH_MONEY_REQUEST_REPORT.getRoute({reportID}),{forceReplace: !isNarrowLayout});});return;}
This code automatically navigates to the expense report when adding an expense from a report preview, which causes the unwanted auto-opening behavior described in the issue.
Root Cause
When creating an expense from a report preview in a workspace chat:
User clicks "Add expense" > "Create expense" from report preview
User creates a manual expense
The handleNavigateAfterExpenseCreate function is called
Since isFromGlobalCreate is false (expense created from workspace chat), it calls dismissModalAndOpenReportInInboxTab
The function detects the report now has multiple transactions and automatically navigates to SEARCH_MONEY_REQUEST_REPORT
This opens the report, instead of staying on the workspace chat
Expected behavior: App should stay on workspace chat when expense is created from report preview Actual behavior: Report auto-opens after creating expense from report preview
PR #80480 introduced merchant step navigation changes but appears to have inadvertently changed the navigation behavior for this flow as well.
Activity
melvin-bot commentedon Feb 11, 2026
Triggered auto assignment to @RachCHopkins (
Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details. Please add this bug to a GH project, as outlined in the SO.melvin-bot commentedon Feb 11, 2026
Triggered auto assignment to @rlinoz (
DeployBlockerCash), see https://stackoverflowteams.com/c/expensify/questions/9980/ for more details.melvin-bot commentedon Feb 11, 2026
💬 A slack conversation has been started in #expensify-open-source
github-actions commentedon Feb 11, 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 Feb 11, 2026
Investigation Summary
Classification: Frontend bug
Causing PR: #80480 - "Update create transaction Manual flow to ask for merchant after asking for amount v2" by @nkdengineer (High confidence)
Related Issues: None
Recommendation: REVERT
This PR #80480 introduced extensive changes to the create expense flow, including significant navigation logic modifications. The specific issue is in the
dismissModalAndOpenReportInInboxTabfunction which auto-navigates to the expense report after creating an expense from a report preview.Labels: Keeping
DeployBlockerCash(App deploy is blocked). PR #80480 is in the App repository and requires reversion or fix.Detailed Analysis
Evidence
Verification
Affected file:
/home/runner/_work/App/App/src/libs/actions/IOU/index.tsLines 1072-1086 in the
dismissModalAndOpenReportInInboxTabfunction show the problematic logic:This code automatically navigates to the expense report when adding an expense from a report preview, which causes the unwanted auto-opening behavior described in the issue.
Root Cause
When creating an expense from a report preview in a workspace chat:
handleNavigateAfterExpenseCreatefunction is calledisFromGlobalCreateis false (expense created from workspace chat), it callsdismissModalAndOpenReportInInboxTabSEARCH_MONEY_REQUEST_REPORTExpected behavior: App should stay on workspace chat when expense is created from report preview
Actual behavior: Report auto-opens after creating expense from report preview
PR #80480 introduced merchant step navigation changes but appears to have inadvertently changed the navigation behavior for this flow as well.
rlinoz commentedon Feb 11, 2026
testing revert here #82132
rlinoz commentedon Feb 11, 2026
reverting fixes the issue cc: @nkdengineer @Krishna2323
rlinoz commentedon Feb 11, 2026
It looks like other navigation blocker are associated with the same PR, so I will continue with the revert.
rlinoz commentedon Feb 11, 2026
This is fixed.
IuliiaHerets commentedon Feb 11, 2026
QA team can't reproduce this issue anymore. Windows 11 / Chrome / v9.3.17-5
Native apps were not updated yet
empty.report.mp4
IuliiaHerets commentedon Feb 11, 2026
Issue is passed on Android app too, build 9.3.17-5
Screenrecorder-2026-02-11-17-53-31-886.mp4