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-06-22] [Due for payment 2026-06-19] Search - Expense that was marked as done, is shown as "Submitted" on preview on "Search" #93368
Version Number: 9.4.6-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:#92254 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:
Open the Expensify app.
Sign up with a new account and select "Track expenses for my business" during onboarding.
Navigate to workspace chat.
Create a manual expense.
Open the just created expense and send a message.
Tap on "Mark as done"
Note that a "Marked as done" message appears on transaction thread,
Tap on the search icon on the top right corner.
Note that "Submitted" is displayed on report preview instead of "Marked as done"
Expected Result:
After an expense is marked as done, report preview on "Search" should display "Marked as done" message.
Actual Result:
After an expense is marked as done, report preview on search shows "Submitted" message.
👋 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.
The "Submitted" → "Marked as done" copy swap from PR #92254 was wired into getLastMessageTextForReport, which already has the correct branch:
OptionsListUtils/index.ts:829-835 — returns iou.markedAsDone when shouldShowMarkAsDone({report, isTrackIntentUser, policy}) is true, otherwise iou.submitted.
The problem is that the two call sites that build the Search router preview text never forward isTrackIntentUser (and createOption doesn't forward policy either), so shouldShowMarkAsDone always evaluates to false and the text falls through to "Submitted":
The LHN doesn't have this bug because SidebarUtils.ts:983 correctly threads isTrackIntentUser into the same helper. The report title in Search is also correct because it routes through computeReportNameBasedOnReportAction, which was patched. Only the preview/second line was missed.
What changes do you think we should make in order to solve the problem?
Thread isTrackIntentUser (and policy for createOption) into the two getLastMessageTextForReport calls in OptionsListUtils, mirroring what SidebarUtils already does for the LHN:
Read the onboarding choice from ONYXKEYS.NVP_INTRO_SELECTED and derive isTrackIntentUser via the existing isTrackIntentUserSelector / isTrackOnboardingChoice pattern. The cleanest match to existing code is a module-level Onyx.connect (as ReportNameUtils.ts:199-206 already does for introSelected).
Pass that isTrackIntentUser into the getLastMessageTextForReport calls at :471 and :1175, and add the report's policy to the createOption call (:1175) so shouldShowMarkAsDone has all three inputs.
After this, shouldShowMarkAsDone can evaluate true in the Search path and the preview will read "Marked as done", consistent with the LHN, title, and report thread.
Investigation details & alternatives considered
Definition:shouldShowMarkAsDone — ReportUtils.ts:~12997 requires isTrackIntentUser && isSubmitAndClose(policy) && isReportOwner(report) and that the next approver is the owner. With isTrackIntentUser defaulting to false and policy undefined in createOption, it can never return true on the Search path.
Alternative considered (cached lastMessageText):getAlternateText first uses option.lastMessageText if present. For the Search router, the relevant value is recomputed in createOption, so plumbing the params fixes it. If any surface instead renders a backend-cached lastMessageText string, that would be a backend concern — but the reproduced Search-router preview goes through createOption, which recomputes client-side.
Scope check: The fix is localized to OptionsListUtils and matches the bug scope (only the Search preview second line is wrong; title/LHN already correct). No other surface needs changes.
Next Steps for Contributor+ team: To accept:@MelvinBot implement this to create a draft PR. To refine:@MelvinBot <your feedback> To reject: Explain why you are rejecting Melvin's proposal.
changed the title [-]Search - Expense that was marked as done, is shown as "Submitted" on preview on "Search"[/-][+][Due for payment 2026-06-19] Search - Expense that was marked as done, is shown as "Submitted" on preview on "Search"[/+]on Jun 12, 2026
The solution for this issue has been 🚀 deployed to production 🚀 in version 9.4.6-4 and is now subject to a 7-day regression period 📆. Here is the list of pull requests that resolve this issue:
@Valforte 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]. If no checklist is needed for this issue, you can click: [no checklist button]
changed the title [-][Due for payment 2026-06-19] Search - Expense that was marked as done, is shown as "Submitted" on preview on "Search"[/-][+][Due for payment 2026-06-22] [Due for payment 2026-06-19] Search - Expense that was marked as done, is shown as "Submitted" on preview on "Search"[/+]on Jun 15, 2026
The solution for this issue has been 🚀 deployed to production 🚀 in version 9.4.7-4 and is now subject to a 7-day regression period 📆. Here is the list of pull requests that resolve this issue:
@Valforte 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]. If no checklist is needed for this issue, you can click: [no checklist button]
Activity
applause-bot commentedon Jun 12, 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/7c1729ccfda965cba784a46ed8b71da98567e512173d0d6adae23d9096c86b3e
melvin-bot commentedon Jun 12, 2026
You have been assigned to this deploy blocker because you recently merged this PR: #92254
melvin-bot commentedon Jun 12, 2026
💬 A slack conversation has been started in #expensify-open-source
github-actions commentedon Jun 12, 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 Jun 12, 2026
Proposal
What is the root cause of that problem?
The "Submitted" → "Marked as done" copy swap from PR #92254 was wired into
getLastMessageTextForReport, which already has the correct branch:The problem is that the two call sites that build the Search router preview text never forward
isTrackIntentUser(andcreateOptiondoesn't forwardpolicyeither), soshouldShowMarkAsDonealways evaluates tofalseand the text falls through to "Submitted":getAlternateText→OptionsListUtils/index.ts:471— passespolicybut notisTrackIntentUser.createOption→OptionsListUtils/index.ts:1175— passes neitherisTrackIntentUsernorpolicy. This is the value rendered as the preview row in the Search router (SearchAutocompleteList.tsx:472usesoption.lastMessageText).The LHN doesn't have this bug because
SidebarUtils.ts:983correctly threadsisTrackIntentUserinto the same helper. The report title in Search is also correct because it routes throughcomputeReportNameBasedOnReportAction, which was patched. Only the preview/second line was missed.What changes do you think we should make in order to solve the problem?
Thread
isTrackIntentUser(andpolicyforcreateOption) into the twogetLastMessageTextForReportcalls inOptionsListUtils, mirroring whatSidebarUtilsalready does for the LHN:ONYXKEYS.NVP_INTRO_SELECTEDand deriveisTrackIntentUservia the existingisTrackIntentUserSelector/isTrackOnboardingChoicepattern. The cleanest match to existing code is a module-levelOnyx.connect(asReportNameUtils.ts:199-206already does forintroSelected).isTrackIntentUserinto thegetLastMessageTextForReportcalls at:471and:1175, and add the report'spolicyto thecreateOptioncall (:1175) soshouldShowMarkAsDonehas all three inputs.After this,
shouldShowMarkAsDonecan evaluate true in the Search path and the preview will read "Marked as done", consistent with the LHN, title, and report thread.Investigation details & alternatives considered
shouldShowMarkAsDone—ReportUtils.ts:~12997requiresisTrackIntentUser && isSubmitAndClose(policy) && isReportOwner(report)and that the next approver is the owner. WithisTrackIntentUserdefaulting tofalseandpolicyundefined increateOption, it can never return true on the Search path.lastMessageText):getAlternateTextfirst usesoption.lastMessageTextif present. For the Search router, the relevant value is recomputed increateOption, so plumbing the params fixes it. If any surface instead renders a backend-cachedlastMessageTextstring, that would be a backend concern — but the reproduced Search-router preview goes throughcreateOption, which recomputes client-side.OptionsListUtilsand matches the bug scope (only the Search preview second line is wrong; title/LHN already correct). No other surface needs changes.Related issues
Expensify/App#86223— the parent feature task for the track-intent copy work (PR Issue 86223 update cta and workspace chat copy for track intent users #92254).Next Steps for Contributor+ team:
To accept:
@MelvinBot implement thisto create a draft PR.To refine:
@MelvinBot <your feedback>To reject: Explain why you are rejecting Melvin's proposal.
jayeshmangwani commentedon Jun 12, 2026
@MelvinBot implement this
MelvinBot commentedon Jun 12, 2026
🤖 Draft PR created: #93409
Please mark it as "Ready for review" when it is ready for review.
m-natarajan commentedon Jun 12, 2026
Passed, Chrome and Xiaomi Redmi Note 10 / Android 12 / v9.4.6-4
REC-20260612234340.mp4
Screenrecorder-2026-06-13-00-07-40-320.mp4
[-]Search - Expense that was marked as done, is shown as "Submitted" on preview on "Search"[/-][+][Due for payment 2026-06-19] Search - Expense that was marked as done, is shown as "Submitted" on preview on "Search"[/+]melvin-bot commentedon Jun 12, 2026
Reviewinglabel has been removed, please complete the "BugZero Checklist".melvin-bot commentedon Jun 12, 2026
The solution for this issue has been 🚀 deployed to production 🚀 in version 9.4.6-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-06-19. 🎊
melvin-bot commentedon Jun 12, 2026
@Valforte 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]. If no checklist is needed for this issue, you can click: [no checklist button]
[-][Due for payment 2026-06-19] Search - Expense that was marked as done, is shown as "Submitted" on preview on "Search"[/-][+][Due for payment 2026-06-22] [Due for payment 2026-06-19] Search - Expense that was marked as done, is shown as "Submitted" on preview on "Search"[/+]melvin-bot commentedon Jun 15, 2026
The solution for this issue has been 🚀 deployed to production 🚀 in version 9.4.7-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-06-22. 🎊
melvin-bot commentedon Jun 15, 2026
@Valforte 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]. If no checklist is needed for this issue, you can click: [no checklist button]