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 2025-10-13] [$250] Onboarding - Navigating back from the #admins chat redirects to the Workspaces page #70179
Awaiting PaymentAuto-added when associated PR is deployed to productionBugSomething is broken. Auto assigns a BugZero manager.DailyKSv2ExternalAdded to denote the issue can be worked on by a contributor
Version Number: 9.2.3-0 Reproducible in staging?: Yes Reproducible in production?: Yes If this was caught during regression testing, add the test name, ID and link from TestRail:#69620 Email or phone of affected tester (no customers):biruknew45ss@gmail.com Issue reported by: Applause Internal Team Device used: android App Component: Other
We're dismissing the modal before navigating to the admins room report. But there might be race condition (due to the indeterministic nature of InteractionManager.runAfterInteractions) that causes navigate to take place before the modal is completely dismissed. The log below clearly says that we're navigating before handling the dismiss modal action:
So the navigation state at this point is: ReportsSplitNavigator (LHN) > TestDriveModalNavigator > ReportsSplitNavigator (ReportScreen). The dismiss modal action is not handled until that time. Inside handleDismissModalAction we have a check for whether the last route is a modal, if it's not, we won't execute the dismissal:
Log.hmmm('[Navigation] dismissModal failed because there is no modal stack to dismiss');
returnnull;
We can see that at this point the last route is the ReportsSplitNavigator which is not a modal so dismissal is not executed, and the eventual navigation state is: ReportsSplitNavigator (LHN) > TestDriveModalNavigator > ReportsSplitNavigator (ReportScreen).
So later when we navigate back from the admin room, the navigation state is ReportsSplitNavigator (LHN) > TestDriveModalNavigator, so we go back to the test drive modal navigator which now does not show because the modal visibility had been set to false. So it shows a random page which is the WorkspacesListPage. I'm not sure the exact reason why it's the WorkspacesListPage but not others.
What changes do you think we should make in order to solve the problem?
We should use dismissModalWithReport instead. This must be used for cases where we open the report after dismissing modal.
changed the title [-]Onboarding - Navigating back from the #admins chat redirects to the Workspaces page[/-][+][$250] Onboarding - Navigating back from the #admins chat redirects to the Workspaces page[/+]on Sep 9, 2025
⚠️@marufsharifi Your proposal is a duplicate of an already existing proposal and has been automatically withdrawn to prevent spam. Please review the existing proposals before submitting a new one.
Please re-state the problem that we are trying to solve in this issue.
What is the root cause of that problem?
The redirection to Workspaces_List occurs because the navigate call in skipTestDrive creates a duplicate ReportsSplitNavigator due to a timing issue with modal dismissal, resulting in an inconsistent navigation stack state. When goBack() is called, the stack unwinds through the invalid modal and initial navigator, and React Navigation’s fallback mechanism redirects to the preloaded Workspaces_List route, which is the last preloaded route as a safe default.
What changes do you think we should make in order to solve the problem?
Make sure the modal is fully dismissed before navigating to the admin report page. Replace InteractionManager.runAfterInteractions with Navigation.isNavigationReady() to ensure navigation happens at the right time.
Navigation.isNavigationReady().then(()=>{if(!isAdminRoom(onboardingReport)){Log.hmmm('[AdminTestDriveModal] Not an admin room');return;}Log.hmmm('[AdminTestDriveModal] Navigating to report',{reportID: onboardingReport?.reportID});Navigation.navigate(ROUTES.REPORT_WITH_ID.getRoute(onboardingReport?.reportID));});
What specific scenarios should we cover in automated tests to prevent reintroducing this issue in the future?
None
What alternative solutions did you explore? (Optional)
As a workaround, use dismissModalWithReport, which leverages forceReplace to navigate to the report page.
The solution for this issue has been 🚀 deployed to production 🚀 in version 9.2.23-3 and is now subject to a 7-day regression period 📆. Here is the list of pull requests that resolve this issue:
@jayeshmangwani@isabelastisser 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]
@MarioExpensify@isabelastisser QA said they can still reproduce the original issue #71822 (comment) but I can not. Can we ask them to retest here and attach recordings if it's still reproducible for them?
Awaiting PaymentAuto-added when associated PR is deployed to productionBugSomething is broken. Auto assigns a BugZero manager.DailyKSv2ExternalAdded to denote the issue can be worked on by a contributor
Activity
melvin-bot commentedon Sep 9, 2025
Triggered auto assignment to @isabelastisser (
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.gijoe0295 commentedon Sep 9, 2025
🚨 Edited by proposal-police: This proposal was edited at 2025-09-10 06:08:31 UTC.
Proposal
Please re-state the problem that we are trying to solve in this issue.
Navigating back from the #admins chat redirects to the Workspaces page
What is the root cause of that problem?
App/src/components/TestDrive/Modal/AdminTestDriveModal.tsx
Lines 25 to 39 in 1e4751d
We're dismissing the modal before navigating to the admins room report. But there might be race condition (due to the indeterministic nature of
InteractionManager.runAfterInteractions) that causesnavigateto take place before the modal is completely dismissed. The log below clearly says that we're navigating before handling the dismiss modal action:So the navigation state at this point is: ReportsSplitNavigator (LHN) > TestDriveModalNavigator > ReportsSplitNavigator (ReportScreen). The dismiss modal action is not handled until that time. Inside
handleDismissModalActionwe have a check for whether the last route is a modal, if it's not, we won't execute the dismissal:App/src/libs/Navigation/AppNavigator/createRootStackNavigator/GetStateForActionHandlers.ts
Lines 150 to 152 in c45d1d3
We can see that at this point the last route is the
ReportsSplitNavigatorwhich is not a modal so dismissal is not executed, and the eventual navigation state is: ReportsSplitNavigator (LHN) > TestDriveModalNavigator > ReportsSplitNavigator (ReportScreen).So later when we navigate back from the admin room, the navigation state is ReportsSplitNavigator (LHN) > TestDriveModalNavigator, so we go back to the test drive modal navigator which now does not show because the modal visibility had been set to false. So it shows a random page which is the WorkspacesListPage. I'm not sure the exact reason why it's the WorkspacesListPage but not others.
What changes do you think we should make in order to solve the problem?
We should use
dismissModalWithReportinstead. This must be used for cases where we open the report after dismissing modal.What specific scenarios should we cover in automated tests to prevent reintroducing this issue in the future?
None
What alternative solutions did you explore? (Optional)
None
[-]Onboarding - Navigating back from the #admins chat redirects to the Workspaces page[/-][+][$250] Onboarding - Navigating back from the #admins chat redirects to the Workspaces page[/+]melvin-bot commentedon Sep 9, 2025
Job added to Upwork: https://www.upwork.com/jobs/~021965449221653042953
melvin-bot commentedon Sep 9, 2025
Triggered auto assignment to Contributor-plus team member for initial proposal review - @jayeshmangwani (
External)marufsharifi commentedon Sep 10, 2025
🚫 Duplicated proposal withdrawn by 🤖 ProposalPolice.
github-actions commentedon Sep 10, 2025
marufsharifi commentedon Sep 10, 2025
Proposal
Please re-state the problem that we are trying to solve in this issue.
What is the root cause of that problem?
The redirection to
Workspaces_Listoccurs because thenavigatecall inskipTestDrivecreates a duplicateReportsSplitNavigatordue to a timing issue with modal dismissal, resulting in an inconsistent navigation stack state. WhengoBack()is called, the stack unwinds through the invalid modal and initial navigator, and React Navigation’s fallback mechanism redirects to the preloadedWorkspaces_Listroute, which is the last preloaded route as a safe default.App/src/components/TestDrive/Modal/AdminTestDriveModal.tsx
Lines 26 to 38 in 712e38e
What changes do you think we should make in order to solve the problem?
Make sure the modal is fully dismissed before navigating to the admin report page. Replace
InteractionManager.runAfterInteractionswithNavigation.isNavigationReady()to ensure navigation happens at the right time.App/src/components/TestDrive/Modal/AdminTestDriveModal.tsx
Lines 30 to 38 in 712e38e
Update to
What specific scenarios should we cover in automated tests to prevent reintroducing this issue in the future?
None
What alternative solutions did you explore? (Optional)
As a workaround, use
dismissModalWithReport, which leveragesforceReplaceto navigate to the report page.App/src/libs/Navigation/Navigation.ts
Lines 559 to 572 in 712e38e
28 remaining items
melvin-bot commentedon Oct 6, 2025
Reviewinglabel has been removed, please complete the "BugZero Checklist".melvin-bot commentedon Oct 6, 2025
The solution for this issue has been 🚀 deployed to production 🚀 in version 9.2.23-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 2025-10-13. 🎊
For reference, here are some details about the assignees on this issue:
melvin-bot commentedon Oct 6, 2025
@jayeshmangwani @isabelastisser 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]
gijoe0295 commentedon Oct 7, 2025
@MarioExpensify @isabelastisser QA said they can still reproduce the original issue #71822 (comment) but I can not. Can we ask them to retest here and attach recordings if it's still reproducible for them?
gijoe0295 commentedon Oct 7, 2025
Oh I just saw @jayeshmangwani comment on Slack so it's not related to our PR, right?
jayeshmangwani commentedon Oct 7, 2025
I think that’s correct. It doesn’t seem related to our PR, but let’s check what the QAs are experiencing.
gijoe0295 commentedon Oct 13, 2025
I think payment is due here @isabelastisser
isabelastisser commentedon Oct 15, 2025
Payment summary:
@jayeshmangwani requires payment through NewDot Manual Requests $250 for C+ review
@gijoe0295 paid in Upwork $250 automatic offer (Contributor)
isabelastisser commentedon Oct 15, 2025
All set!
twisterdotcom commentedon Oct 28, 2025
@jayeshmangwani has submitted payment for this report on ND here.
SO: https://stackoverflowteams.com/c/expensify/questions/7582
Zapier Logs
Run ID: 00040eee-2089-af3c-941a-332855489981