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 2026-04-17] [Due for payment 2026-04-16] Scan - Confirm page shows old receipt when it is replaced with new receipt #87301
Version Number: 9.3.54-0 Reproducible in staging?: Yes Reproducible in production?: No If this was caught during regression testing, add the test name, ID and link from BrowserStack:#84919 Email or phone of affected tester (no customers):sdoijndosodsons@gmail.com Issue reported by: Applause Internal Team Bug source: Exploratory - Significant User Experience Deterioration Device used: Mac 26.2 / Chrome App Component: Money Requests
Action Performed:
Go to staging.new.expensify.com
Go to workspace chat.
Click + > Create expense > Scan.
Upload a receipt.
On confirm page, click on the receipt.
Click Replace.
Upload a different receipt.
Click on the receipt.
Expected Result:
Confirm page will show the replaced receipt.
Actual Result:
Confirm page shows old receipt when it is replaced with new receipt.
👋 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: #84919 - "feat: Add thumbnail support for receipts and improve image handling" by @kubabutkiewicz (High confidence)
Related Issues: #83503 (the issue this PR was fixing)
Recommendation: REVERT
PR 84919 introduced a useLocalReceiptThumbnail hook and an initialLocalSourceRef that locks in the receipt image source on first render to avoid a flash. This freeze persists when the user replaces the receipt: initialLocalSourceRef.current is only written once (when it is undefined) and never updated, so the confirmation page keeps displaying the old receipt URI after replacement.
Labels: DeployBlockerCash kept (App PR is the cause); DeployBlocker removed (no backend fix needed)
Evidence:
Bug reproduces only on staging (not production), and version 9.3.54-0 matches the merge date of PR 84919 (2026-04-07T20:26:14Z).
PR 84919 is listed in the StagingDeployCash for 9.3.54-0.
melvin-bot automatically assigned the PR author to this deploy blocker, corroborating this as the causing PR.
Bug specifically hits the Replace receipt flow on the confirmation page, exactly the area this PR modified.
Verification:
src/components/MoneyRequestConfirmationListFooter.tsx is directly modified by PR 84919.
src/hooks/useLocalReceiptThumbnail.ts (new file introduced by this PR) contains the thumbnail caching logic driving the broken behavior.
Root Cause:
PR 84919 introduced initialLocalSourceRef in MoneyRequestConfirmationListFooter.tsx to lock in the receipt image source on first render and avoid a source-swap flash during async thumbnail loading. Because useRef persists across re-renders and initialLocalSourceRef.current is only assigned when it equals undefined, replacing the receipt updates resolvedReceiptImage but does NOT update initialLocalSourceRef.current. effectiveReceiptSource therefore stays frozen on the original receipt URI for the component lifetime, causing the old receipt to remain displayed after replacement.
changed the title [-]Scan - Confirm page shows old receipt when it is replaced with new receipt[/-][+][Due for payment 2026-04-16] Scan - Confirm page shows old receipt when it is replaced with new receipt[/+]on Apr 9, 2026
The solution for this issue has been 🚀 deployed to production 🚀 in version 9.3.54-7 and is now subject to a 7-day regression period 📆. Here is the list of pull requests that resolve this issue:
@brunovjk 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]
changed the title [-][Due for payment 2026-04-16] Scan - Confirm page shows old receipt when it is replaced with new receipt[/-][+][Due for payment 2026-04-17] [Due for payment 2026-04-16] Scan - Confirm page shows old receipt when it is replaced with new receipt[/+]on Apr 10, 2026
The solution for this issue has been 🚀 deployed to production 🚀 in version 9.3.57-1 and is now subject to a 7-day regression period 📆. Here is the list of pull requests that resolve this issue:
@brunovjk@mallenexpensify 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]
Activity
melvin-bot commentedon Apr 8, 2026
You have been assigned to this deploy blocker because you recently merged this PR: #84919
melvin-bot commentedon Apr 8, 2026
💬 A slack conversation has been started in #expensify-open-source
github-actions commentedon Apr 8, 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 8, 2026
Investigation Summary
Classification: Frontend bug
Causing PR: #84919 - "feat: Add thumbnail support for receipts and improve image handling" by @kubabutkiewicz (High confidence)
Related Issues: #83503 (the issue this PR was fixing)
Recommendation: REVERT
PR 84919 introduced a useLocalReceiptThumbnail hook and an initialLocalSourceRef that locks in the receipt image source on first render to avoid a flash. This freeze persists when the user replaces the receipt: initialLocalSourceRef.current is only written once (when it is undefined) and never updated, so the confirmation page keeps displaying the old receipt URI after replacement.
Assigned: @kubabutkiewicz (PR author), @brunovjk (approving reviewer), @Julesssss (approving reviewer)
Labels: DeployBlockerCash kept (App PR is the cause); DeployBlocker removed (no backend fix needed)
Evidence:
Verification:
Root Cause:
PR 84919 introduced initialLocalSourceRef in MoneyRequestConfirmationListFooter.tsx to lock in the receipt image source on first render and avoid a source-swap flash during async thumbnail loading. Because useRef persists across re-renders and initialLocalSourceRef.current is only assigned when it equals undefined, replacing the receipt updates resolvedReceiptImage but does NOT update initialLocalSourceRef.current. effectiveReceiptSource therefore stays frozen on the original receipt URI for the component lifetime, causing the old receipt to remain displayed after replacement.
9 remaining items
[-]Scan - Confirm page shows old receipt when it is replaced with new receipt[/-][+][Due for payment 2026-04-16] Scan - Confirm page shows old receipt when it is replaced with new receipt[/+]melvin-bot commentedon Apr 9, 2026
Reviewinglabel has been removed, please complete the "BugZero Checklist".melvin-bot commentedon Apr 9, 2026
The solution for this issue has been 🚀 deployed to production 🚀 in version 9.3.54-7 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 2026-04-16. 🎊
For reference, here are some details about the assignees on this issue:
melvin-bot commentedon Apr 9, 2026
@brunovjk 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]
melvin-bot commentedon Apr 9, 2026
Triggered auto assignment to @mallenexpensify (
Awaiting Payment)[-][Due for payment 2026-04-16] Scan - Confirm page shows old receipt when it is replaced with new receipt[/-][+][Due for payment 2026-04-17] [Due for payment 2026-04-16] Scan - Confirm page shows old receipt when it is replaced with new receipt[/+]melvin-bot commentedon Apr 10, 2026
The solution for this issue has been 🚀 deployed to production 🚀 in version 9.3.57-1 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 2026-04-17. 🎊
For reference, here are some details about the assignees on this issue:
melvin-bot commentedon Apr 10, 2026
@brunovjk @mallenexpensify 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]
brunovjk commentedon Apr 17, 2026
No payment due. This was caught in staging and fixed via a follow-up PR.
mallenexpensify commentedon Apr 17, 2026
Commented on the parent issue