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-14] Expense - Undeleted expense does not load when undeleted and opened offline #86793
Version Number: 9.3.51-0 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:#85818 Email or phone of affected tester (no customers):soidnjsojdiosjiosdjo@gmail.com Issue reported by: Applause Internal Team Bug source: Exploratory - Significant User Experience Deterioration Device used: Mac 26.2 / Chrome App Component: Search
Action Performed:
Go to staging.new.expensify.com
Go to workspace chat.
Create an expense.
Delete the expense.
Go to Reports > Expenses.
Click Status, select Deleted and click Apply.
Go offline.
Select the expense via checkbox.
Click dropdown button > Undelete.
Go to Inbox and open self DM.
Open the undeleted expense.
Expected Result:
The undeleted expense will load.
Actual Result:
The undeleted expense does not load. It opens "Say hello!" page.
👋 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: #85818 - "[Payment due @rojiphil] Deleted transactions on search" by @jnowakow (High confidence) | Recommendation: REVERT | This PR introduces a complex flow for undeleting transactions that fails when performed offline. The transaction thread creation logic does not properly handle the offline scenario, resulting in navigation failures. | Labels: Both DeployBlockerCash and DeployBlocker should remain in place as this is reproducible on staging and affects the App (frontend).
Classification: Frontend bug Causing PR: #85818 - "[Payment due @rojiphil] Deleted transactions on search" by @jnowakow (High confidence) Related Issues: None
Recommendation: REVERT
This PR introduces a complex flow for undeleting transactions that fails when performed offline. The transaction thread creation logic does not properly handle the offline scenario, resulting in navigation failures.
Labels: Both DeployBlockerCash and DeployBlocker should remain in place as this is reproducible on staging and affects the App (frontend).
Multiple files for UI changes to support deleted transaction status
The PR correctly identifies deleted transactions by checking if `transaction.reportID === CONST.REPORT.TRASH_REPORT_ID` ("-1").
Root Cause
When a transaction is undeleted via `changeTransactionsReport()`:
Deleted transactions have no old IOU action: Line 1023 in `src/libs/actions/Transaction.ts`:
```typescript
const oldIOUAction = isDeletedExpense ? undefined : getIOUActionForReportID(...)
```
The comment explains: "Skip lookup for deleted transactions: the old IOU action is already cleaned up during deletion and its transaction thread is deleted, so reusing it is harmful."
A new transaction thread must be created: When `oldIOUAction` is undefined, the code creates a completely new transaction thread (lines 1335-1393). This includes:
Creating an optimistic transaction thread report
Creating a new IOU action
Linking the thread to the parent report
Offline navigation failure: When the undelete happens while offline:
The optimistic data creates the new transaction thread
The transaction's `reportID` is changed from "-1" to the selfDM report ID
However, when the user tries to navigate to this expense, the transaction thread report is not properly accessible or the navigation fails to resolve the correct route
This causes the app to fall back to showing the "Say hello!" page instead of the expense details
The issue is that the offline transaction thread creation and navigation logic does not properly handle the case where a deleted transaction is being restored without a previous IOU action to reference.
changed the title [-]Expense - Undeleted expense does not load when undeleted and opened offline[/-][+][Due for payment 2026-04-14] Expense - Undeleted expense does not load when undeleted and opened offline[/+]on Apr 7, 2026
The solution for this issue has been 🚀 deployed to production 🚀 in version 9.3.52-9 and is now subject to a 7-day regression period 📆. Here is the list of pull requests that resolve this issue:
@luacmartins@jnowakow 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 Mar 31, 2026
You have been assigned to this deploy blocker because you recently merged this PR: #85818
melvin-bot commentedon Mar 31, 2026
💬 A slack conversation has been started in #expensify-open-source
github-actions commentedon Mar 31, 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 Mar 31, 2026
Classification: Frontend bug | Causing PR: #85818 - "[Payment due @rojiphil] Deleted transactions on search" by @jnowakow (High confidence) | Recommendation: REVERT | This PR introduces a complex flow for undeleting transactions that fails when performed offline. The transaction thread creation logic does not properly handle the offline scenario, resulting in navigation failures. | Labels: Both DeployBlockerCash and DeployBlocker should remain in place as this is reproducible on staging and affects the App (frontend).
OSBotify commentedon Mar 31, 2026
🔍 Investigation Summary
Classification: Frontend bug
Causing PR: #85818 - "[Payment due @rojiphil] Deleted transactions on search" by @jnowakow (High confidence)
Related Issues: None
Recommendation: REVERT
This PR introduces a complex flow for undeleting transactions that fails when performed offline. The transaction thread creation logic does not properly handle the offline scenario, resulting in navigation failures.
Labels: Both
DeployBlockerCashandDeployBlockershould remain in place as this is reproducible on staging and affects the App (frontend).📋 Detailed Analysis
Evidence
Verification
The PR modifies multiple files related to transaction deletion/undeletion:
The PR correctly identifies deleted transactions by checking if `transaction.reportID === CONST.REPORT.TRASH_REPORT_ID` ("-1").
Root Cause
When a transaction is undeleted via `changeTransactionsReport()`:
Deleted transactions have no old IOU action: Line 1023 in `src/libs/actions/Transaction.ts`:
```typescript
const oldIOUAction = isDeletedExpense ? undefined : getIOUActionForReportID(...)
```
The comment explains: "Skip lookup for deleted transactions: the old IOU action is already cleaned up during deletion and its transaction thread is deleted, so reusing it is harmful."
A new transaction thread must be created: When `oldIOUAction` is undefined, the code creates a completely new transaction thread (lines 1335-1393). This includes:
Offline navigation failure: When the undelete happens while offline:
The issue is that the offline transaction thread creation and navigation logic does not properly handle the case where a deleted transaction is being restored without a previous IOU action to reference.
7 remaining items
[-]Expense - Undeleted expense does not load when undeleted and opened offline[/-][+][Due for payment 2026-04-14] Expense - Undeleted expense does not load when undeleted and opened offline[/+]melvin-bot commentedon Apr 7, 2026
Reviewinglabel has been removed, please complete the "BugZero Checklist".melvin-bot commentedon Apr 7, 2026
The solution for this issue has been 🚀 deployed to production 🚀 in version 9.3.52-9 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-14. 🎊
For reference, here are some details about the assignees on this issue:
melvin-bot commentedon Apr 7, 2026
@luacmartins @jnowakow 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 7, 2026
Triggered auto assignment to @mallenexpensify (
Awaiting Payment)