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
Report -"Waiting for and admin to pay expenses" on approved expense changes when reopening it #81967
Version Number: 9.3.16.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:#81403 Email or phone of affected tester (no customers):ibellicotest+2250@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.
Prerequisite 2: Delayed submissions set to manual and approvals enabled.
Open the staging.new.expensify.com website,
Open any workspace chat.
Create a manual expense.
Open the just created expense.
Submit and approve the expense.
Note that next step changes to "Waiting for an admin to pay expenses"
Close and reopen report.
Note that next step now changes to "Waiting for you to pay expenses"
Expected Result:
After an expense is submitted and approved, next steps should display a "Waiting for you to pay expenses" message.
Actual Result:
After an expense is submitted and approved, next step shows a "Waiting for an admin to pay expenses" message, that changes to "Waiting for you to pay expenses" after report is closed and reopened.
👋 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: Needs Investigation - Likely Frontend bug Suspected PR: #81403 - "fix: 81349 Mark as paid via bulk" by @MrMuzyk (Low-Medium confidence) Related Issues: N/A
Recommendation: NEEDS INVESTIGATION
This issue requires further investigation to identify the root cause. While PR #81403 was flagged by melvin-bot and touches payment-related code, the connection to the "next step" message bug is not immediately clear.
Why this recommendation:
The bug involves incorrect "next step" messaging after approval (shows "Waiting for an admin to pay" instead of "Waiting for you to pay")
The message corrects itself upon reopening the report, suggesting the backend data is correct but the optimistic frontend update is wrong
PR fix: 81349 Mark as paid via bulk #81403 modified PaymentUtils.getActivePaymentType() which is used in payment flows, but does not directly affect next step calculation
No other PRs in the staging deploy checklist appear to modify NextStepUtils, buildOptimisticNextStep, or related approval logic
Engineering team should investigate buildOptimisticNextStep in /home/runner/_work/App/App/src/libs/NextStepUtils.ts and the approval flow in approveMoneyRequest
This could potentially be a backend bug since the next step is correctly set by the server but incorrectly set optimistically by the client
Labels: Keeping both DeployBlockerCash and DeployBlocker labels until root cause is confirmed
Detailed Analysis
Evidence
The issue occurs when:
User creates a manual expense in a workspace chat
User submits AND approves the expense (meaning they are the admin/approver)
Next step incorrectly shows "Waiting for an admin to pay expenses"
After closing and reopening the report, it correctly shows "Waiting for you to pay expenses"
This pattern suggests:
The backend correctly calculates the next step (since reopening fetches fresh data and shows the right message)
The frontend optimistic update in approveMoneyRequest incorrectly calculates the next step
The bug is in buildOptimisticNextStep or the parameters passed to it
Activity
melvin-bot commentedon Feb 10, 2026
You have been assigned to this deploy blocker because you recently merged this PR: #81403
melvin-bot commentedon Feb 10, 2026
💬 A slack conversation has been started in #expensify-open-source
melvin-bot commentedon Feb 10, 2026
Triggered auto assignment to @stephanieelliott (
Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details. Please add this bug to a GH project, as outlined in the SO.github-actions commentedon Feb 10, 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 Feb 10, 2026
Investigation Summary
Classification: Needs Investigation - Likely Frontend bug
Suspected PR: #81403 - "fix: 81349 Mark as paid via bulk" by @MrMuzyk (Low-Medium confidence)
Related Issues: N/A
Recommendation: NEEDS INVESTIGATION
This issue requires further investigation to identify the root cause. While PR #81403 was flagged by melvin-bot and touches payment-related code, the connection to the "next step" message bug is not immediately clear.
Why this recommendation:
PaymentUtils.getActivePaymentType()which is used in payment flows, but does not directly affect next step calculationNextStepUtils,buildOptimisticNextStep, or related approval logicAction items:
getActivePaymentTypecould indirectly affect how next steps are calculated after approvalbuildOptimisticNextStepin/home/runner/_work/App/App/src/libs/NextStepUtils.tsand the approval flow inapproveMoneyRequestLabels: Keeping both
DeployBlockerCashandDeployBlockerlabels until root cause is confirmedDetailed Analysis
Evidence
The issue occurs when:
This pattern suggests:
approveMoneyRequestincorrectly calculates the next stepbuildOptimisticNextStepor the parameters passed to itVerification
I verified that:
src/libs/PaymentUtils.ts,src/components/SettlementButton/index.tsx, andsrc/libs/actions/Search.tsapproveMoneyRequestfunction in/home/runner/_work/App/App/src/libs/actions/IOU/index.tscallsbuildOptimisticNextStep(line 10181-10189)Root Cause
Uncertain - The root cause is not definitively identified. Possible explanations:
MrMuzyk commentedon Feb 10, 2026
Looking at it
MrMuzyk commentedon Feb 10, 2026
Im almost certain that it wasn't introduced by my PR but I haven't found the true culprit yet
MrMuzyk commentedon Feb 10, 2026
I believe that this is the culprit PR that caused this bug
aimane-chnaif commentedon Feb 10, 2026
@MobileMage please check this
MobileMage commentedon Feb 10, 2026
Yeah, this is me, fixing.
Fix next step showing 'an admin' instead of 'you' after approval
srikarparsi commentedon Feb 10, 2026
This has been fixed by this revert