Repository navigation
[Due for payment 2026-09-03] Spend - x of 2 appears on the expense thread RHP after returning from expense report #99616
Description
Activity
While Applause doesn't embed attachments for this bug, here are the links for quick view:
https://platform.applause.com/services/links/v1/external/211062d3c9e9192d8a4eda45bb2e41d1a9a006c8b7b68890be73740bd02beae0- addedDeployBlockerCashThis issue or pull request should block deploymentThis issue or pull request should block deploymentBugSomething is broken. Auto assigns a BugZero manager.Something is broken. Auto assigns a BugZero manager.
on Aug 26, 2026 You have been assigned to this deploy blocker because you recently merged this PR: #98611
@JS00001 @ShridharGoel you have been assigned to this deploy blocker because you reviewed the offending PR: #98611
@thelullabyy you have been assigned to this deploy blocker because you authored the offending PR: #98611
💬 A slack conversation has been started in #expensify-open-source
github-actions commented
on Aug 26, 2026 on Aug 26, 2026 – with GitHub ActionsContributorMore actions👋 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.
- Find someone who can quickly fix the issue.
- Fix the issue yourself.
🔍 Investigation Summary
Classification: Frontend bug
Causing PR: #98611 - "Standardize Expense Report and Expense header with predictable button placement and carousel counter" by @thelullabyy (High confidence)
Related Issues: #90366 (the issue this PR implemented)Recommendation: ROLL FORWARD
The
x of Ncarousel counter is a brand-new feature added by this PR and does not exist before it, so #98611 is unambiguously the cause. Reverting a 35-file header-standardization + carousel feature is heavy-handed for a narrow, staging-only carousel-state edge case, so a targeted fix by the author is preferred (revert as fallback if no quick fix lands before deploy).Assigned: @thelullabyy (PR author), @ShridharGoel and @JS00001 (approving reviewers) — already auto-assigned by Melvin.
Labels: No change. Issue carries onlyDeployBlockerCash; since this is a Frontend bug (fix lives inExpensify/App), that label is correctly kept and there is noDeployBlockerto remove.📋 Detailed Analysis
Evidence
- The visible
x of 2indicator is the new carousel counter introduced by this PR. Before Standardize Expense Report and Expense header with predictable button placement and carousel counter #98611 the transaction navigation rendered only prev/next arrows with no counter text; the PR adds thecommon.currentOfTotal("{current} of {total}") label and renders it in the header. See the counter render atMoneyRequestReportTransactionsNavigation.tsx#L353-L366. - The bug reproduces on staging (9.4.62-1) and not on production, consistent with a regression from a PR currently on the staging checklist #99596, which includes Standardize Expense Report and Expense header with predictable button placement and carousel counter #98611 (merged 2026-08-26T13:00:56Z).
Verification
- Affected UI: the expense-thread RHP header.
MoneyRequestHeaderrenders the transaction carousel whenever the thread is in the RHP:MoneyRequestHeader.tsx#L103and#L192-L195. - The counter shows whenever the current transaction is found in the persisted
TRANSACTION_THREAD_NAVIGATION_TRANSACTION_IDSOnyx list, i.e.currentTransactionIndex !== -1:#L107driving the render guard at#L355. - Confirmed Standardize Expense Report and Expense header with predictable button placement and carousel counter #98611 modifies every file on this code path:
MoneyRequestReportTransactionsNavigation.tsx,MoneyRequestHeader.tsx,Search/index.tsx,MoneyRequestReportTransactionList.tsx,useNavigateToTransactionThread.ts, andTransactionThreadNavigation.ts.
Root Cause
This PR added persistent, cross-screen carousel state that leaks across the reported navigation flow:
- Opening an expense from the Spend page's flat list seeds the carousel with all sibling transaction IDs of the search, keyed by the search hash:
Search/index.tsx#L580-L590. With two expenses, the list is[t1, t2], so the counter readsx of 2. - The PR expanded
CAROUSEL_PRESERVING_SCREENSto includeSEARCH_REPORT/SEARCH_MONEY_REQUEST_REPORT/EXPENSE_REPORT:#L35-L41. The unmount cleanup skipsclearActiveTransactionIDs()for those screens:#L200-L208. So clicking the report subtitle (step 9) navigates into the expense report without clearing the seeded[t1, t2]list. - Opening an expense from inside that drilled-in report (step 10) intentionally preserves the broader Spend carousel instead of re-seeding it with the report's own siblings, via
shouldPreserveBroaderCarousel: true:MoneyRequestReportTransactionList.tsx#L680anduseNavigateToTransactionThread.ts#L93. - After backing out twice (step 11), the stale
[t1, t2]list is still in Onyx and the returned expense thread's transaction is a member of it, socurrentTransactionIndex !== -1and the header re-rendersx of 2on a thread where the search carousel context is no longer appropriate.
Suggested direction for the targeted fix (for the author to confirm against intended UX): when opening an expense from within a drilled-in expense report, either re-seed the carousel with that report's own siblings rather than preserving the broader Spend list, or scope the preserved carousel to the originating search hash so it is not treated as active once the user has navigated into a different report context. The author should confirm the intended behavior for the counter in cross-report drill-in flows before landing the fix.
- The visible
Not repro on Win 11/Chrome build v9.4.62-4
Recording.14.mp4
- removedDeployBlockerCashThis issue or pull request should block deploymentThis issue or pull request should block deploymentHourlyKSv2KSv2
on Aug 27, 2026 - changed the title
[-]Spend - x of 2 appears on the expense thread RHP after returning from expense report[/-][+][Due for payment 2026-09-03] Spend - x of 2 appears on the expense thread RHP after returning from expense report[/+]on Aug 27, 2026 The solution for this issue has been 🚀 deployed to production 🚀 in version 9.4.62-4 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-03. 🎊
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]
Metadata
Metadata
Assignees
Labels
Type
Projects
- StatusShow more project fieldsDone
If you haven’t already, check out our contributing guidelines for onboarding. To join our Slack channel, fill out this form.
Version Number: 9.4.62-1
Reproducible in staging?: Yes
Reproducible in production?: No
If this was caught during regression testing, add the test name, ID and link from BrowserStack: #98611
Email or phone of affected tester (no customers): jsdnjosdodjsdionjio@gmail.com
Issue reported by: Applause Internal Team
Bug source: Exploratory - Significant User Experience Deterioration
Device used: Mac 26.5 / Chrome
App Component: Search
Action Performed:
Expected Result:
x of 2 will not appear on the expense thread RHP after returning from expense report.
Actual Result:
x of 2 appears on the expense thread RHP after returning from expense report.
Workaround:
Unknown
Platforms:
Screenshots/Videos
Bug7243746_1787786311825.7.mp4
View all open jobs on GitHub
Issue Owner
Current Issue Owner: @thelullabyy