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-09-15] Report- Canceled disappeared after navigate away and back #99093
Version Number: v9.4.57-2 Reproducible in staging?: Yes Reproducible in production?: N/A - new feature, doesn't exist in prod If this was caught during regression testing, add the test name, ID and link from BrowserStack:#98758 Email or phone of affected tester (no customers):applausetester+dk31@applause.expensifail.com Issue reported by: Applause Internal Team Bug source: Exploratory - Critical User Impact Device used: Windows 11 Home/Chrome App Component: Chat Report View
👋 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: #98758 - "refactor: align expense preview card metadata line with mobile row styling, fix scanning and split layouts" by @Krishna2323 (High confidence) Related Issues: #96475 (the feature this PR shipped — "Canceled" at the report level)
Recommendation: ROLL FORWARD
This PR introduced the report-level "Canceled" label, so it is the cause, but it is a large layout refactor that also fixed 4 separate preview regressions (#96475, #98221, #98206, #98329). A full revert would reintroduce all of those, which is broader harm than this one status label disappearing on navigation, so a targeted fix is preferable. Keeping DeployBlockerCash (App deploy is blocked); no DeployBlocker label is present.
Assigned: @Krishna2323 (PR author), @situchan and @JS00001 (approving reviewers) from the causing PR Labels: No changes. DeployBlockerCash kept (App PR caused it; bug is not reproducible in production only because the feature is new). No DeployBlocker present, so nothing to remove.
📋 Detailed Analysis
Evidence
PR refactor: align expense preview card metadata line with mobile row styling, fix scanning and split layouts #98758 added the report-level "Canceled" display. Before this PR the MoneyRequestReportPreview header rendered only expenseCount; the PR added the supportingText line that prepends "Canceled" and moved the status off the per-expense preview line. This is exactly the behavior under test (the bug's "Expected Result" is verbatim step 7 of the PR's own test plan).
The PR touches the two files that own this behavior: ReportPreviewHeader.tsx (report-level label) and TransactionPreviewUtils.ts / TransactionPreviewContent.tsx (moved "Canceled" off the expense line unless standalone).
Verification
Affected file for the disappearing label: src/components/ReportActionItem/MoneyRequestReportPreview/ReportPreviewHeader.tsx#L69-L70
Confirmed via gh pr diff 98758 that this exact supportingText line was added by the PR.
The iouReport feeding this line is read in ReportActionItem.tsx via getStableReportSelector, which does include isCancelledIOU, so the selector is not dropping the field — the field itself is transient (see Root Cause).
Root Cause
The report-level label is wired directly to the transient, optimistic iouReport?.isCancelledIOU flag:
isCancelledIOU is only ever written by client-side optimistic/failure action data — it is set true when a payment is cancelled and is never re-derived when the report is (re)loaded from the server:
Optimistic set: src/libs/actions/IOU/PayMoneyRequest.ts#L552 and #L697
The only other writers are ReportWorkflow.ts (retract) and the false resets in failure data.
When you navigate away and back to the workspace chat, OpenReport refreshes the chat and its IOU report; the fresh server payload does not carry the optimistic isCancelledIOU: true, so the flag is lost and the report-level "Canceled" label vanishes. The report status badge (stateNum/statusNum) survives the reload, which is why "[Approved]" stays but "Canceled" disappears.
Suggested targeted fix (for @Krishna2323): drive the report-level "Canceled" from a durable source that survives a reload — e.g. derive it from the presence of the cancel-payment report action (the same signal used to build the optimistic flag) rather than reading the ephemeral iouReport.isCancelledIOU, or have the backend persist/return the cancelled state on OpenReport. If a durable fix can't land quickly under deploy-blocker time pressure, fall back to reverting #98758.
@JS00001@Krishna2323@situchan 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!
changed the title [-]Report- Canceled disappeared after navigate away and back[/-][+][Due for payment 2026-09-15] Report- Canceled disappeared after navigate away and back[/+]on Sep 8, 2026
The solution for this issue has been 🚀 deployed to production 🚀 in version 9.4.73-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 2026-09-15. 🎊
The following checklist (instructions) will need to be completed before the issue can be closed. Please copy/paste the Contributor+ 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]. If no checklist is needed for this issue, you can click: [no checklist button]
Activity
applause-bot commentedon Aug 20, 2026
While Applause doesn't embed attachments for this bug, here are the links for quick view:
https://platform.applause.com/services/links/v1/external/303481c7f6cbc80327b8ccf1e0042a55ec7013b7af82bcbc84e5ce2a81cf4538
melvin-bot commentedon Aug 20, 2026
You have been assigned to this deploy blocker because you recently merged this PR: #98758
melvin-bot commentedon Aug 20, 2026
@JS00001 @situchan you have been assigned to this deploy blocker because you reviewed the offending PR: #98758
github-actions commentedon Aug 20, 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:
melvin-bot commentedon Aug 20, 2026
@Krishna2323 you have been assigned to this deploy blocker because you authored the offending PR: #98758
melvin-bot commentedon Aug 20, 2026
💬 A slack conversation has been started in #expensify-open-source
MelvinBot commentedon Aug 20, 2026
🔍 Investigation Summary
Classification: Frontend bug
Causing PR: #98758 - "refactor: align expense preview card metadata line with mobile row styling, fix scanning and split layouts" by @Krishna2323 (High confidence)
Related Issues: #96475 (the feature this PR shipped — "Canceled" at the report level)
Recommendation: ROLL FORWARD
This PR introduced the report-level "Canceled" label, so it is the cause, but it is a large layout refactor that also fixed 4 separate preview regressions (#96475, #98221, #98206, #98329). A full revert would reintroduce all of those, which is broader harm than this one status label disappearing on navigation, so a targeted fix is preferable. Keeping
DeployBlockerCash(App deploy is blocked); noDeployBlockerlabel is present.Assigned: @Krishna2323 (PR author), @situchan and @JS00001 (approving reviewers) from the causing PR
Labels: No changes.
DeployBlockerCashkept (App PR caused it; bug is not reproducible in production only because the feature is new). NoDeployBlockerpresent, so nothing to remove.📋 Detailed Analysis
Evidence
MoneyRequestReportPreviewheader rendered onlyexpenseCount; the PR added thesupportingTextline that prepends "Canceled" and moved the status off the per-expense preview line. This is exactly the behavior under test (the bug's "Expected Result" is verbatim step 7 of the PR's own test plan).ReportPreviewHeader.tsx(report-level label) andTransactionPreviewUtils.ts/TransactionPreviewContent.tsx(moved "Canceled" off the expense line unless standalone).Verification
src/components/ReportActionItem/MoneyRequestReportPreview/ReportPreviewHeader.tsx#L69-L70App/src/components/ReportActionItem/MoneyRequestReportPreview/ReportPreviewHeader.tsx
Lines 69 to 70 in cc08ea1
gh pr diff 98758that this exactsupportingTextline was added by the PR.iouReportfeeding this line is read inReportActionItem.tsxviagetStableReportSelector, which does includeisCancelledIOU, so the selector is not dropping the field — the field itself is transient (see Root Cause).Root Cause
The report-level label is wired directly to the transient, optimistic
iouReport?.isCancelledIOUflag:ReportPreviewHeader.tsx:70const supportingText = iouReport?.isCancelledIOU ? ... : expenseCount;isCancelledIOUis only ever written by client-side optimistic/failure action data — it is settruewhen a payment is cancelled and is never re-derived when the report is (re)loaded from the server:src/libs/actions/IOU/PayMoneyRequest.ts#L552and#L697App/src/libs/actions/IOU/PayMoneyRequest.ts
Lines 547 to 560 in cc08ea1
ReportWorkflow.ts(retract) and thefalseresets in failure data.When you navigate away and back to the workspace chat,
OpenReportrefreshes the chat and its IOU report; the fresh server payload does not carry the optimisticisCancelledIOU: true, so the flag is lost and the report-level "Canceled" label vanishes. The report status badge (stateNum/statusNum) survives the reload, which is why "[Approved]" stays but "Canceled" disappears.Suggested targeted fix (for @Krishna2323): drive the report-level "Canceled" from a durable source that survives a reload — e.g. derive it from the presence of the cancel-payment report action (the same signal used to build the optimistic flag) rather than reading the ephemeral
iouReport.isCancelledIOU, or have the backend persist/return the cancelled state onOpenReport. If a durable fix can't land quickly under deploy-blocker time pressure, fall back to reverting #98758.view run
situchan commentedon Aug 20, 2026
This is also reproducible in production. We can demote this
prod.mp4
11 remaining items
m-natarajan commentedon Sep 3, 2026
Chrome / v9.4.69-0
Reproduces
REC-20260903153448.mp4
JS00001 commentedon Sep 3, 2026
@Krishna2323 this is still reproducible, can you work on a fix please
situchan commentedon Sep 3, 2026
#99097 is not merged yet
melvin-bot commentedon Sep 3, 2026
@JS00001 @Krishna2323 @situchan 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 Sep 7, 2026
This issue has not been updated in over 14 days. @JS00001, @Krishna2323, @situchan eroding to Weekly issue.
[-]Report- Canceled disappeared after navigate away and back[/-][+][Due for payment 2026-09-15] Report- Canceled disappeared after navigate away and back[/+]melvin-bot commentedon Sep 8, 2026
@Krishna2323 / @situchan
The solution for this issue has been 🚀 deployed to production 🚀 in version 9.4.73-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 2026-09-15. 🎊
The following checklist (instructions) will need to be completed before the issue can be closed. Please copy/paste the Contributor+ 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]. If no checklist is needed for this issue, you can click: [no checklist button]
JS00001 commentedon Sep 9, 2026
this was a blocker, so payment isnt needed here