Skip to content

[Due for payment 2026-08-27] Expense - "Held this expense" and reason message are displayed in chat, below expense. #98936

Closed

Description

@applause-bot

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.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: #98751
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: Money Requests

Action Performed:

Prerequisite: Account has at least one workspace.

  1. Open the staging.new.expensify.com website.
  2. Open any workspace chat.
  3. Create a manual expense.
  4. Right click on report preview > "Hold"
  5. Enter any reason and hold the expense.
  6. Note that after returning to chat, "Held this expense" and reason message are displayed below report.
  7. Open report.
  8. Note that both messages are also visible on transaction thread.

Expected Result:

"Held this expense" and reason messages should only be visible inside expense report.

Actual Result:

"Held this expense" and reason message, are displayed below expense report in chat and also inside report.

Workaround:

Unknown

Platforms:

  • Android: App
  • Android: mWeb Chrome
  • iOS: App
  • iOS: mWeb Safari
  • iOS: mWeb Chrome
  • Windows: Chrome
  • MacOS: Chrome Safari

Screenshots/Videos

Bug7236801_1787101259521.Held_Reason.mp4

View all open jobs on GitHub

Applause Internal Information
Exported by: Mita Rachim
Bug ID: 7236801

Issue OwnerCurrent Issue Owner: @suneox

Activity

  1. added
    DeployBlockerCash
    Bug
    on Aug 19, 2026
  2. applause-bot commented on Aug 19, 2026

    @applause-bot
    Author

    While Applause doesn't embed attachments for this bug, here are the links for quick view:
    https://platform.applause.com/services/links/v1/external/2a424cf211b28bfac9ae81582945fafaefa289fde61391372d7cea524c3fb857

  3. melvin-bot commented on Aug 19, 2026

    @melvin-bot

    You have been assigned to this deploy blocker because you recently merged this PR: #98751

  4. melvin-bot commented on Aug 19, 2026

    @melvin-bot

    @mjasikowski @huult you have been assigned to this deploy blocker because you reviewed the offending PR: #98751

  5. melvin-bot commented on Aug 19, 2026

    @melvin-bot

    @suneox you have been assigned to this deploy blocker because you authored the offending PR: #98751

  6. melvin-bot commented on Aug 19, 2026

    @melvin-bot

    💬 A slack conversation has been started in #expensify-open-source

  7. github-actions commented on Aug 19, 2026

    @github-actions
    Contributor

    👋 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:

    1. Identify the pull request that introduced this issue and revert it.
    2. Find someone who can quickly fix the issue.
    3. Fix the issue yourself.
  8. MelvinBot commented on Aug 19, 2026

    @MelvinBot
    Contributor

    🔍 Deploy Blocker Analysis

    Causing PR: #98751 — "Migrate money request hold reason and receipt view routes to dynamic routes" (author suneox) — High confidence
    Recommendation: Revert #98751 (safe default for a time-sensitive blocker). A targeted roll-forward is possible if the team prefers to keep the migration — details below.

    Root cause

    PR #98751 migrated the hold-reason route from a standalone modal route to a nested dynamic route. When you hold from a report preview, the URL becomes /r/<parentChatReportID>/hold-reason?transactionID=…&reportID=<childReportID>.

    For a freshly-created manual expense, the transaction thread doesn't exist yet, so reportAction.childReportID passed by ReportUtils.changeMoneyRequestHoldStatus is undefined. From there:

    1. The query param is dropped. getUrlWithParams only serializes truthy values, so with reportID === undefined the built URL carries no reportID at all.
    2. The dynamic screen inherits the base path's reportID. getStateFromPath merges the underlying REPORT screen's params, and getStateForDynamicRoute layers query params on top. Because the query no longer carries reportID, it is not overridden — the hold-reason screen resolves route.params.reportID = <parentChatReportID> (the workspace chat) instead of undefined.
    3. The wrong report gets the actions. DynamicHoldReasonPage passes that reportID to putOnHold. A truthy initialReportID skips creating a transaction thread and writes the two hold report actions straight into that report — so "Held this expense" and the reason land in REPORT_ACTIONS_<parentChatReportID>, i.e. below the report preview in the workspace chat.

    Pre-PR, initialReportID was undefined, so putOnHold built a fresh transaction thread (the else branch at Hold.ts:80-84), keeping those actions out of the parent chat. This is why it reproduces on staging but not production.

    Why only hold-reason is affected

    Every other dynamic route that carries reportID (e.g. MONEY_REQUEST_STEP_TAG, ..._MERCHANT, ..._DATE) uses it to mean the same report as the base path, so the merge/fallback is harmless. Hold-reason is the only case where the dynamic route's reportID intentionally refers to a different report (the transaction thread) than the base path — and where it can legitimately be undefined. That is precisely why the collision surfaced here.

    Resolution

    Option 1 — Revert #98751 (recommended). Clean, self-contained navigation PR; it's Part 1 of a series with no known dependent PRs merged on top. Lowest risk for a blocker.

    Option 2 — Targeted roll-forward. Give the hold-reason dynamic route a query-param key that does not collide with the base path's reportID (e.g. childReportID), so an absent value stays undefined and putOnHold recreates the thread as before. This needs re-testing across all four entry screens (report + 3 search RHP screens) and the already-held/unhold path, so under blocker time pressure Option 1 is the safer immediate action.


    Next Steps for Contributor+ team:
    To accept: @MelvinBot implement [this](https://github.com/Expensify/App/issues/98936) to create a draft PR.
    To refine: @MelvinBot <your feedback>
    To reject: Explain why you are rejecting Melvin's proposal.

  9. suneox commented on Aug 19, 2026

    @suneox
    Contributor

    I'm taking a look at this one

  10. added
    Reviewing
    on Aug 19, 2026
  11. mjasikowski commented on Aug 19, 2026

    @mjasikowski
    Contributor
  12. IuliiaHerets commented on Aug 19, 2026

    @IuliiaHerets

    Issue is not reproducible on Windows 11/ Chrome in v9.4.56-2

    98936-Web.mp4

    Issue is not reproducible on Samsung S23FE/ Android 16 in v9.4.56-2

    98936.mp4
  13. Beamanator commented on Aug 19, 2026

    @Beamanator
    Contributor

    woohoo! closing!

  14. removed
    DeployBlockerCash
    on Aug 20, 2026
  15. added
    Daily
    and removed
    Reviewing
    Hourly
    on Aug 20, 2026
  16. changed the title [-]Expense - "Held this expense" and reason message are displayed in chat, below expense.[/-] [+][Due for payment 2026-08-27] Expense - "Held this expense" and reason message are displayed in chat, below expense.[/+] on Aug 20, 2026
  17. melvin-bot commented on Aug 20, 2026

    @melvin-bot

    @suneox / @huult

    The solution for this issue has been 🚀 deployed to production 🚀 in version 9.4.56-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-08-27. 🎊

    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]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

BugDailyEngineering

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions