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
Expensify Card - RHP back button on Reconciliation account page is unresponsive #89122
Version Number: 9.3.64-9 Reproducible in staging?: Yes Reproducible in production?: No If this was caught during regression testing, add the test name, ID and link from BrowserStack:#85234 Email or phone of affected tester (no customers):applausetester+khcategory20@applause.expensifail.com Issue reported by: Applause Internal Team Bug source: Exploratory - Significant User Experience Deterioration Device used: Mac 26.2 / Chrome App Component: Workspace Settings
Action Performed:
Precondition:
Workspace is set up with Expensify Card feature.
Workspace is connected to QBO.
Go to staging.new.expensify.com
Go to workspace settings > Accounting.
Click Card reconciliation.
Enable Continuous Reconciliation.
Click Expensify Card settlement account.
Click Reconciliation account.
Click Expensify Card settlement account.
Click Reconciliation account.
Click RHP back button twice.
Click RHP back button again.
Expected Result:
RHP back button will return to Settlement account page.
Actual Result:
RHP back button on Reconciliation account page is unresponsive.
Account list on this page is empty.
👋 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: #85234 - "Introduce a Bottom Tab Navigator for Top-Level Navigation" by @WojtekBoman (High confidence) Related Issues: #85260
Recommendation: REVERT
PR #85234 introduced a major navigation refactor including a new createRightModalNavigator with state preservation logic (RightModalRouter + usePreserveNavigatorState). The preserved-state mechanism appears to incorrectly restore a stale RHP stack when the same RHP modal (workspace accounting reconciliation) is opened multiple times in sequence, causing both the empty account list and unresponsive back button.
Assigned: @WojtekBoman (PR author), @ZhenjaHorbach (approving reviewer), @mountiny (approving reviewer) Labels: DeployBlockerCash kept (Frontend bug, App PR caused the issue). DeployBlocker not present, no change needed.
PR Introduce a Bottom Tab Navigator for Top-Level Navigation #85234 introduced a new createRightModalNavigator factory (src/libs/Navigation/AppNavigator/createRightModalNavigator/index.tsx) that wraps the RightModalNavigator with usePreserveNavigatorState, and a new RightModalRouter (src/libs/Navigation/AppNavigator/createRightModalNavigator/RightModalRouter.ts) that calls getPreservedNavigatorState(options.parentRoute.key) to restore the previous RHP stack state on mount.
The bug is reproducible by navigating into the Reconciliation account page, going back, and then re-entering it (steps 7-10 in the repro). This pattern directly exercises the state preservation/restoration path introduced by PR Introduce a Bottom Tab Navigator for Top-Level Navigation #85234: on the second visit, the RHP is initialized from the preserved state of the previous visit, but the preserved state may not accurately reflect the current navigation intent, resulting in an empty account list and a broken back button.
src/libs/Navigation/AppNavigator/createSplitNavigator/usePreserveNavigatorState.ts (used by RightModalRouter)
The reconciliation account pages (src/pages/workspace/accounting/reconciliation/) are opened as RHP screens, placing them squarely in the path of the new createRightModalNavigator state preservation logic.
Root Cause
PR #85234 introduced RightModalRouter, which calls getPreservedNavigatorState(options.parentRoute.key) to restore a previously preserved RHP stack when the RightModalNavigator is instantiated. When the user navigates through the reconciliation flow multiple times (steps 7-9 in the repro), the preserved state from a previous RHP instance is restored on the new RHP mount. This preserved state does not match the current navigation intent: it contains an outdated route stack where the account list data may no longer be bound (resulting in an empty list), and the back action on that restored stack resolves to an unexpected destination (making the back button appear unresponsive).
@mananjadhav@mjasikowski@NikkiWines@huult this issue was created 2 weeks ago. Are we close to a solution? Let's make sure we're treating this as a top priority. Don't hesitate to create a thread in #expensify-open-source to align faster in real time. Thanks!
Activity
melvin-bot commentedon Apr 28, 2026
@mountiny recently merged #85234, but they are OOO right now, so I'll auto-assign someone else.
melvin-bot commentedon Apr 28, 2026
Triggered auto assignment to @NikkiWines (
DeployBlockerCash), see https://stackoverflowteams.com/c/expensify/questions/9980/ for more details.melvin-bot commentedon Apr 28, 2026
💬 A slack conversation has been started in #expensify-open-source
github-actions commentedon Apr 28, 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 Apr 28, 2026
Investigation Summary
Classification: Frontend bug
Causing PR: #85234 - "Introduce a Bottom Tab Navigator for Top-Level Navigation" by @WojtekBoman (High confidence)
Related Issues: #85260
Recommendation: REVERT
PR #85234 introduced a major navigation refactor including a new
createRightModalNavigatorwith state preservation logic (RightModalRouter+usePreserveNavigatorState). The preserved-state mechanism appears to incorrectly restore a stale RHP stack when the same RHP modal (workspace accounting reconciliation) is opened multiple times in sequence, causing both the empty account list and unresponsive back button.Assigned: @WojtekBoman (PR author), @ZhenjaHorbach (approving reviewer), @mountiny (approving reviewer)
Labels:
DeployBlockerCashkept (Frontend bug, App PR caused the issue).DeployBlockernot present, no change needed.Detailed Analysis
Evidence
createRightModalNavigatorfactory (src/libs/Navigation/AppNavigator/createRightModalNavigator/index.tsx) that wraps theRightModalNavigatorwithusePreserveNavigatorState, and a newRightModalRouter(src/libs/Navigation/AppNavigator/createRightModalNavigator/RightModalRouter.ts) that callsgetPreservedNavigatorState(options.parentRoute.key)to restore the previous RHP stack state on mount.Verification
src/libs/Navigation/AppNavigator/createRightModalNavigator/RightModalRouter.ts(new file)src/libs/Navigation/AppNavigator/createRightModalNavigator/index.tsx(new file)src/libs/Navigation/AppNavigator/Navigators/RightModalNavigator.tsx(usescreateRightModalNavigator)src/libs/Navigation/AppNavigator/createSplitNavigator/usePreserveNavigatorState.ts(used by RightModalRouter)src/pages/workspace/accounting/reconciliation/) are opened as RHP screens, placing them squarely in the path of the newcreateRightModalNavigatorstate preservation logic.Root Cause
PR #85234 introduced
RightModalRouter, which callsgetPreservedNavigatorState(options.parentRoute.key)to restore a previously preserved RHP stack when theRightModalNavigatoris instantiated. When the user navigates through the reconciliation flow multiple times (steps 7-9 in the repro), the preserved state from a previous RHP instance is restored on the new RHP mount. This preserved state does not match the current navigation intent: it contains an outdated route stack where the account list data may no longer be bound (resulting in an empty list), and the back action on that restored stack resolves to an unexpected destination (making the back button appear unresponsive).22 remaining items
mananjadhav commentedon May 3, 2026
@huult Are you taking a look at this issue?
huult commentedon May 4, 2026
I’ll fix this in PR #86977 since it’s related to the
WORKSPACE_EXPENSIFY_CARD_SETTINGS_ACCOUNTmigration.huult commentedon May 5, 2026
Screen.Recording.2026-05-05.at.14.14.03.mov
This issue is fixed in this PR: #86977
melvin-bot commentedon May 7, 2026
@mananjadhav Whoops! This issue is 2 days overdue. Let's get this updated quick!
melvin-bot commentedon May 11, 2026
@mananjadhav Still overdue 6 days?! Let's take care of this!
melvin-bot commentedon May 12, 2026
@mananjadhav @mjasikowski @NikkiWines @huult this issue was created 2 weeks ago. Are we close to a solution? Let's make sure we're treating this as a top priority. Don't hesitate to create a thread in #expensify-open-source to align faster in real time. Thanks!
melvin-bot commentedon May 13, 2026
@mananjadhav Now this issue is 8 days overdue. Are you sure this should be a Daily? Feel free to change it!
mananjadhav commentedon May 13, 2026
@huult Can we confirm this isfixed and can be closed?
huult commentedon May 15, 2026
Screen.Recording.2026-05-15.at.12.08.34.mov
This cannot be reproduced with my changes. We can close this ticket cc @mananjadhav @NikkiWines @mjasikowski