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
Spend - Original expense is briefly visible on expenses list after being splitted. #98942
Version Number: 9.4.56-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:#97475 Email or phone of affected tester (no customers):ibellicotest+2766@gmail.com Issue reported by: Applause Internal Team Bug source: Exploratory - Significant User Experience Deterioration Device used: Motorola MotoG60 / Android 12 (Hybrid app) - Windows 11 / Chrome App Component: Search
Action Performed:
Prerequisite: Account has at least one workspace.
Open the staging.new.expensify.com website.
Navigate to workspace chat.
Create a manual expense.
Navigate to "Spend" > "Expenses"
Select the just created expense.
Click on dropdown menu > "Split" > Save splits
Note that when splits appear, original expense is still visible and selected for some time.
Expected Result:
Original expense should automatically disappear from expenses list after being splitted.
Actual Result:
Original expense is still visible for some time and still selected after being splitted while on "Expenses" section on "Spend".
👋 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.
Auto-assigned PR #97475 is NOT the cause — do not revert it (High confidence). Its revert would drop the SelfDM/distance-unit fixes without touching this bug.
Root cause: The forward-split optimistic update only removes the original expense from snapshot_${currentSearchHash} and never touches the grouped search snapshots (activeGroupSearchHashes). Spend > Expenses is a grouped Search view, so its rows are rendered from a group-hash snapshot the removal code skips — the original stays visible (and selected) until the server-side Search refetch returns. This matches "still visible… for some time," "still selected," and "not reproducible in production" (the grouped Spend view is new on staging).
Recommendation: Fix forward with a targeted change (do not revert). In the forward-split branch of updateSplitTransactions, apply the original-removal + child-injection to every active snapshot hash (currentSearchHash ∪ activeGroupSearchHashes), mirroring what the reverse-split branch already does. Also clear the now-removed transaction from the selection.
Investigation details
Why #97475 is refuted (High confidence) — I read its full diff. It only:
adds a distanceUnit field in two param-building spots of SplitTransactionUpdate.ts (via conflict-fix commit e1d11d0) — it does not touch snapshot-removal or searchContext plumbing;
resolves distance rate/unit in SplitExpenseItems.ts;
sets pendingAction: null in the Create-Report move-transaction flow (Transaction.ts);
adds an isDeletedAction guard in TransactionPreviewUtils.ts;
None affect whether the original expense is optimistically removed from a grouped Search list. The melvin auto-assignment fired only because #97475 was the tester's most recently merged split-related PR (heuristic) and the one checklist PR that touched SplitTransactionUpdate.ts at all.
Affected code path
The bulk "Split" action opens the Split page with backTo = the current search?q=... route → SplitExpenses.ts:131-138.
"Save splits" calls updateSplitTransactionsFromSplitExpensesFlow with searchContext: { currentSearchHash, activeGroupSearchHashes, … } → SplitExpensePage.tsx:404 (isSearchBackToRoute / activeGroupSearchHashes at L148-150).
The asymmetry in updateSplitTransactions:
Reverse split (delete a split) builds snapshotKeysToUpdate from bothcurrentSearchHash and every activeGroupSearchHashes, plus an all-snapshot scan → SplitTransactionUpdate.ts:1497-1510.
Forward split (create splits) removes the original and injects children into onlysnapshot_${searchContext?.currentSearchHash} → SplitTransactionUpdate.ts:1795-1834 (original removal at L1807-1810). It never consults activeGroupSearchHashes. The all-snapshot scan at L1721-1794 only runs for self-DM splits, not this workspace-chat case.
getActiveGroupSearchHashes returns hashes only when the query is grouped → SearchUIUtils.ts:3292-3295. Spend > Expenses is grouped, so its visible rows live in a group-hash snapshot that the forward-split removal skips.
Root-cause mechanism (forward split omits activeGroupSearchHashes for the grouped Spend view): Medium-High
Exact PR that introduced the grouped Spend/Expenses view surfacing this: Undetermined — it's a Search/"Spend" grouping PR in the current checklist, not a split PR. (GitHub blame endpoint was returning 502s and the local clone is shallow.) Whoever owns the grouped Spend > Expenses Search view should confirm.
Next Steps for Contributor+ team: To accept:@MelvinBot implement [this](https://github.com/Expensify/App/issues/98942) to create a draft PR. To refine:@MelvinBot <your feedback> To reject: Explain why you are rejecting Melvin's proposal.
Activity
applause-bot commentedon Aug 19, 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/9b0f2b74f2465b63b9fec21a226292bc7baf466ed546ed9c474e6cdc76703ae5
melvin-bot commentedon Aug 19, 2026
You have been assigned to this deploy blocker because you recently merged this PR: #97475
melvin-bot commentedon Aug 19, 2026
@mountiny @dmkt9 you have been assigned to this deploy blocker because you reviewed the offending PR: #97475
melvin-bot commentedon Aug 19, 2026
@ZhenjaHorbach you have been assigned to this deploy blocker because you authored the offending PR: #97475
melvin-bot commentedon Aug 19, 2026
💬 A slack conversation has been started in #expensify-open-source
github-actions commentedon Aug 19, 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:
MelvinBot commentedon Aug 19, 2026
🔍 Deploy Blocker Analysis
Auto-assigned PR #97475 is NOT the cause — do not revert it (High confidence). Its revert would drop the SelfDM/distance-unit fixes without touching this bug.
Root cause: The forward-split optimistic update only removes the original expense from
snapshot_${currentSearchHash}and never touches the grouped search snapshots (activeGroupSearchHashes). Spend > Expenses is a grouped Search view, so its rows are rendered from a group-hash snapshot the removal code skips — the original stays visible (and selected) until the server-side Search refetch returns. This matches "still visible… for some time," "still selected," and "not reproducible in production" (the grouped Spend view is new on staging).Recommendation: Fix forward with a targeted change (do not revert). In the forward-split branch of
updateSplitTransactions, apply the original-removal + child-injection to every active snapshot hash (currentSearchHash∪activeGroupSearchHashes), mirroring what the reverse-split branch already does. Also clear the now-removed transaction from the selection.Investigation details
Why #97475 is refuted (High confidence) — I read its full diff. It only:
distanceUnitfield in two param-building spots ofSplitTransactionUpdate.ts(via conflict-fix commite1d11d0) — it does not touch snapshot-removal orsearchContextplumbing;SplitExpenseItems.ts;pendingAction: nullin the Create-Report move-transaction flow (Transaction.ts);isDeletedActionguard inTransactionPreviewUtils.ts;None affect whether the original expense is optimistically removed from a grouped Search list. The melvin auto-assignment fired only because #97475 was the tester's most recently merged split-related PR (heuristic) and the one checklist PR that touched
SplitTransactionUpdate.tsat all.Affected code path
backTo= the currentsearch?q=...route →SplitExpenses.ts:131-138.updateSplitTransactionsFromSplitExpensesFlowwithsearchContext: { currentSearchHash, activeGroupSearchHashes, … }→SplitExpensePage.tsx:404(isSearchBackToRoute/activeGroupSearchHashesat L148-150).The asymmetry in
updateSplitTransactions:snapshotKeysToUpdatefrom bothcurrentSearchHashand everyactiveGroupSearchHashes, plus an all-snapshot scan →SplitTransactionUpdate.ts:1497-1510.snapshot_${searchContext?.currentSearchHash}→SplitTransactionUpdate.ts:1795-1834(original removal at L1807-1810). It never consultsactiveGroupSearchHashes. The all-snapshot scan at L1721-1794 only runs for self-DM splits, not this workspace-chat case.getActiveGroupSearchHashesreturns hashes only when the query is grouped →SearchUIUtils.ts:3292-3295. Spend > Expenses is grouped, so its visible rows live in a group-hash snapshot that the forward-split removal skips.Confidence
activeGroupSearchHashesfor the grouped Spend view): Medium-HighNext Steps for Contributor+ team:
To accept:
@MelvinBot implement [this](https://github.com/Expensify/App/issues/98942)to create a draft PR.To refine:
@MelvinBot <your feedback>To reject: Explain why you are rejecting Melvin's proposal.
ZhenjaHorbach commentedon Aug 19, 2026
Yeah
This issue is not from the last PR
But will open a PR soon
mountiny commentedon Aug 19, 2026
I think this is minor enough that it does not need to be a blocker
ZhenjaHorbach commentedon Aug 24, 2026
@mitarachim
Can you recheck this issue in staging, please?
mitarachim commentedon Aug 25, 2026
Hello @ZhenjaHorbach issue not reproducible using latest build
Not.Split.mp4
ZhenjaHorbach commentedon Aug 25, 2026
Thanks for checking!
@mountiny
Let's close this