fix: prevent failed search retry flicker#95043
Conversation
|
Also the failing test is not related to our PR changes, thanks |
|
@QichenZhu 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] |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 12c1036a35
ℹ️ About Codex in GitHub
Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".
Codecov Report✅ Changes either increased or maintained existing code coverage, great job!
|
Reviewer Checklist
Screenshots/VideosAndroid: HybridAppScreen_recording_20260706_161351.webmAndroid: mWeb Chromeandroid-web.webmiOS: HybridAppSimulator.Screen.Recording.-.iPhone.17.-.2026-07-06.at.16.13.26.moviOS: mWeb Safariios-web.movMacOS: Chrome / SafariScreen.Recording.2026-07-06.at.4.21.18.PM.mov |
QichenZhu
left a comment
There was a problem hiding this comment.
Please fix the unit tests. Thanks!
trjExpensify
left a comment
There was a problem hiding this comment.
Ah nice, I think I raised this one. 👍
|
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
|
🚧 blimpich 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/blimpich in version: 9.4.29-0 🚀
|
|
🤖 Help site review — no changes required. I reviewed the changes in this PR against the help site files under Conclusion: No help site updates are needed. Why: This is an internal bug fix. It changes only There are no new or changed user-facing features, settings, tab names, button labels, or workflows. The existing Search help articles (e.g. Because no documentation is affected, I did not create a draft help site PR. @nabi-ebrahimi, please review the linked help site PR and confirm it reflects the current behavior. Then mark the linked help site PR |
|
🚀 Deployed to staging by https://github.com/blimpich in version: 9.4.31-0 🚀
|
|
🤖 Help site review: no changes required. I reviewed the changes in this PR against the help site articles under Why: This is an internal bug fix, not a feature or behavior change users would look up. It only prevents an already-failed If you believe a specific article should mention this behavior, let me know which one and I'll draft the update. @nabi-ebrahimi, please review the linked help site PR and confirm it reflects the current behavior. Then mark the linked help site PR |
|
🚀 Deployed to production by https://github.com/grgia in version: 9.4.31-0 🚀
Bundle Size Analysis (Sentry): |
Explanation of Change
This PR fixes the
Something went wrongpage flicker for failed Search queries.The reverted PR removed the broader Search refresh effect, which fixed the flicker but caused stale cached Search regressions. This version keeps the existing refresh behavior and only skips the refresh when the current Search snapshot already has errors.
This prevents
Searchfrom re-running the same failedoffset: 0query and clearingerrorsoptimistically, while preserving successful cached Search refreshes for Reports/Draft.Fixed Issues
$ #92462
PROPOSAL: #92462 (comment)
Tests
type:chat category:abcd.Something went wrongpage appears./Searchrequests are sent for the same failed query.Offline tests
N/A. This change only prevents an already failed online Search snapshot from being retried and flickering. It does not change offline behavior.
QA Steps
Same as tests.
// TODO: These must be filled out, or the issue title must include "[No QA]."
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectiontoggleReportand notonIconClick)Avatar, 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
Screen.Recording.2026-07-02.at.10.10.57.PM.mov
Android: mWeb Chrome
Screen_Recording_20260702_221409_Chrome.mp4
iOS: Native
Screen.Recording.2026-07-02.at.10.23.36.PM.mov
iOS: mWeb Safari
Screen.Recording.2026-07-02.at.10.29.05.PM.mov
MacOS: Chrome / Safari
Screen.Recording.2026-07-02.at.10.03.15.PM.mov