Repository navigation
Fix not-found page after clearing cache - #100859
Conversation
|
@MelvinBot create a GH issue for this PR and assign me to it. Update the PR description to link to this issue. |
|
Created #100860 and assigned it to The issue writes up both halves of the bug this PR fixes: the transient partially-cleared Onyx state in One thing to check before you get review: #95079 ("Clear cache & refresh goes to Humm It's not here page") describes the same user-facing symptom and was closed on 2026-07-15 as unable to reproduce. If you'd rather have this PR close out that existing issue instead, swap the link — otherwise #100860 references it under Related. |
|
@abdulrahuman5196 Please copy/paste the Reviewer Checklist from here into a new comment on this PR and complete it. If you have the K2 extension, you can simply click: [this button] |
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
Codecov Report✅ Changes either increased or maintained existing code coverage, great job!
|
|
@NicolasBonet i've addressed both of your review comments! Waiting for review by @abdulrahuman5196 🙌🏼 |
Thanks, @abdulrahuman5196 . Your test was the right way to verify this fix: you reproduced the migrated-user path on main with controlled Onyx state and confirmed that this PR fixes it. The welcome flow still exists, but Applause cannot create the required migration-cohort and dismissed-modal state using its release builds and test accounts. A cache reset on an arbitrary account would not verify this bug. Your verification is sufficient, so I’ve marked the PR [No QA] and removed the QA steps. Any further manual testing of this path would need a C+ reviewer or Expensify engineer with a suitable account. @NicolasBonet all yours 🙌🏼 |
NicolasBonet
left a comment
There was a problem hiding this comment.
@abdulrahuman5196 please complete the checklist including the video
|
@abdulrahuman5196 please take care of this. |
|
Hi, Will close it out today. |
Reviewer Checklist
Screenshots/VideosAndroid: HybridAppandroidHybrid-0-Screen_Recording_2026-10-01_at_10.51.30.PM.movAndroid: mWeb ChromeandroidMWeb-0-Screen_Recording_2026-10-01_at_10.54.21.PM.moviOS: HybridAppiosHybrid-0-Screen_Recording_2026-10-01_at_10.31.55.PM.moviOS: mWeb SafariiosMWeb-0-Screen_Recording_2026-10-01_at_10.35.16.PM.movMacOS: Chrome / SafarimacOS-0-Screen_Recording_2026-10-01_at_10.25.55.PM.mov |
@chrispader I don't think we should mark the pr as No QA due to this condition. We can add steps to verify the normal |
abdulrahuman5196
left a comment
There was a problem hiding this comment.
Changes looks good and works well. Reviewers checklist is also complete.
All yours.
🎀 👀 🎀
C+ Reviewed
|
Chris's AI wingmate on PR duty. 🤖 Thanks, @abdulrahuman5196. I updated the QA steps so Applause can verify the normal Clear cache and restart flow with any staging account, including an offline reset. I also removed Your controlled Onyx reproduction already verified the migrated-user welcome path on main and this PR. That account state is not a prerequisite for the release-build QA steps. The PR is ready for review. |
|
@NicolasBonet this is ready to be merged! 🙌🏼 |
|
@abdulrahuman5196 please review your checklist: "You completed 43 out of 48 checklist items with 0 unfinished items" |
|
pr checklist have been updated |
abdulrahuman5196
left a comment
There was a problem hiding this comment.
Changes looks good and works well. Reviewers checklist is also complete.
All yours.
🎀 👀 🎀
C+ Reviewed
|
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
|
🚧 NicolasBonet has triggered a test Expensify/App build. You can view the workflow run here. |
|
🧪🧪 Use the links below to test this adhoc build on Android, iOS, and Web. Happy testing! 🧪🧪
|
|
🚀 Deployed to staging by https://github.com/NicolasBonet in version: 9.5.2-0 🚀
|
|
No help site update is needed. This PR fixes a bug: after you select Clear cache and restart in Account > Troubleshoot, the app now returns to Troubleshoot instead of showing a not-found page, which is what users already expect. |
|
Hi @chrispader. QA team failed this PR on Android with the original issue, welcome module appears after clearing the cache 1791174688920.100859-Android-Fail.mp4 |
|
🚀 Deployed to production by https://github.com/Julesssss in version: 9.5.2-4 🚀
Bundle Size Analysis (Sentry): |
@IuliiaHerets @NicolasBonet working on this in #102983 |
@IuliiaHerets @NicolasBonet The AI features promo modal has been removed in #104177, so this issue is resolved |
Clearing Onyx through Account > Troubleshoot > Clear cache and restart could briefly expose partially cleared account state. The migrated-user welcome guard could then build a modal route on top of Troubleshoot, which resolves to the not-found page on every platform. This PR keeps the reset behind the existing app-loading gate and ensures dynamic welcome modals use a valid base route.
Explanation of Change
clearOnyxAndResetAppnow seedsIS_LOADING_APP=truein the same operation that clears account-scoped Onyx data. Consumers therefore cannot act on the transient state between the clear and the following OpenApp request, and the fix adds no newOnyx.connectorOnyx.connectWithoutViewsubscription. The forced-onboarding 2FA reconnect explicitly keepsIS_LOADING_APP=falsebecause OpenApp remains deferred until the user dismisses its success screen.The migrated-user and Submit-plan welcome guards now share a route helper that checks whether the active screen can host their dynamic modal. If it cannot, the helper falls back to Home instead of constructing an invalid route. The migrated-user guard tests cover the reset race and the invalid Troubleshoot base path.
Fixed Issues
$ #100860
PROPOSAL: N/A
Tests
Offline tests
QA Steps
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectionAvatar, I verified the components usingAvatarare working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG))npm run compress-svg)Avataris modified, I verified thatAvataris working as expected in all cases)Designlabel and/or tagged@Expensify/designso the design team can review the changes.mainbranch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTeststeps.Screenshots/Videos
Android: Native
ClearRefreshBugAndroid.mp4
ClearRefreshFixedAndroid.mp4
iOS: Native
ClearRefreshFixedBug.mov
ClearRefreshFixediOS.mov
MacOS: Chrome / Safari
ClearRefreshBug.mov
ClearRefreshFixed.mov