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
Expense - Confirm page loads infinitely after switching from Scan to Manual tab #90648
Version Number: 9.3.74-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:#87920 Email or phone of affected tester (no customers):sdsdjoijdoisnjodis@gmail.com Issue reported by: Applause Internal Team Bug source: Exploratory - Significant User Experience Deterioration Device used: Mac 26.2 / Chrome App Component: Money Requests
Action Performed:
Precondition:
Run Onyx.merge('betas', ['newManualExpenseFlow']); in console.
Go to staging.new.expensify.com
Create a new account.
Create a new workspace.
Open FAB > Create expense.
Switch to Manual tab.
Expected Result:
Confirm page will not load infinitely.
Actual Result:
Confirm page loads infinitely after switching from Scan to Manual tab.
👋 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.
PR #87920 introduced the new manual expense flow (newManualExpenseFlow beta). The confirm page loading infinitely is a direct regression from this PR's changes, and reverting it is the cleanest path to unblocking the deploy.
Assigned: @ChavdaSachin (PR author), @ShridharGoel@puneetlath (approving reviewers) Labels: DeployBlockerCash kept (Frontend bug in App). No label changes made.
The bug requires the newManualExpenseFlow beta flag to reproduce, which is the exact feature this PR implements.
The melvin-bot already linked this PR to the issue.
The PR was merged on 2026-05-13 and is listed in the staging deploy checklist.
Verification
Affected files: src/pages/iou/request/step/IOURequestStepConfirmation.tsx and src/pages/iou/request/IOURequestStartPage.tsx — both are listed in the PR's changed files.
Key change in PR: When the newManualExpenseFlow beta is enabled, IOURequestStepConfirmation is now embedded directly inside the Manual tab of IOURequestStartPage (lines 251-256 of IOURequestStartPage.tsx).
Root Cause
In IOURequestStepConfirmation.tsx at line 757, there is a condition that renders a FullScreenLoadingIndicator:
When the user starts on the Scan tab, the draft transaction's iouRequestType is set to CONST.IOU.REQUEST_TYPE.SCAN. When they switch to the Manual tab, IOURequestStepConfirmation is rendered (because of the new embedded flow), but:
isScanRequest(transaction) returns true because the transaction's iouRequestType is still SCAN — initMoneyRequest (called via resetIOUTypeIfChanged in useResetIOUType) is triggered asynchronously via Onyx and may not have updated yet, or does not update the embedded component's transaction reference in time.
Object.values(receiptFiles).length is 0 because no receipt has been provided in the manual flow.
The combination causes the loading indicator to show indefinitely. In the original (non-embedded) confirmation flow this was not an issue because the confirmation page was never reached with a SCAN request type and no receipt. The new embedded architecture in PR #87920 created this edge case.
⏱️ Ran out of time before I could finish. This usually means the task was too complex or I got stuck exploring. Please try again with a more specific request or post in #melvinbot-ai.
Activity
melvin-bot commentedon May 14, 2026
You have been assigned to this deploy blocker because you recently merged this PR: #87920
melvin-bot commentedon May 14, 2026
💬 A slack conversation has been started in #expensify-open-source
github-actions commentedon May 14, 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 May 14, 2026
Investigation Summary
Classification: Frontend bug
Causing PR: #87920 - "Feat: Manual expense flow UI refactor - r3" by @ChavdaSachin (High confidence)
Related Issues: None
Recommendation: REVERT
PR #87920 introduced the new manual expense flow (
newManualExpenseFlowbeta). The confirm page loading infinitely is a direct regression from this PR's changes, and reverting it is the cleanest path to unblocking the deploy.Assigned: @ChavdaSachin (PR author), @ShridharGoel @puneetlath (approving reviewers)
Labels:
DeployBlockerCashkept (Frontend bug in App). No label changes made.Detailed Analysis
Evidence
StagingDeployCashchecklist PR Deploy Checklist: New Expensify 2026-05-13 #90562).newManualExpenseFlowbeta flag to reproduce, which is the exact feature this PR implements.Verification
src/pages/iou/request/step/IOURequestStepConfirmation.tsxandsrc/pages/iou/request/IOURequestStartPage.tsx— both are listed in the PR's changed files.newManualExpenseFlowbeta is enabled,IOURequestStepConfirmationis now embedded directly inside the Manual tab ofIOURequestStartPage(lines 251-256 ofIOURequestStartPage.tsx).Root Cause
In
IOURequestStepConfirmation.tsxat line 757, there is a condition that renders aFullScreenLoadingIndicator:When the user starts on the Scan tab, the draft transaction's
iouRequestTypeis set toCONST.IOU.REQUEST_TYPE.SCAN. When they switch to the Manual tab,IOURequestStepConfirmationis rendered (because of the new embedded flow), but:isScanRequest(transaction)returnstruebecause the transaction'siouRequestTypeis stillSCAN—initMoneyRequest(called viaresetIOUTypeIfChangedinuseResetIOUType) is triggered asynchronously via Onyx and may not have updated yet, or does not update the embedded component's transaction reference in time.Object.values(receiptFiles).lengthis0because no receipt has been provided in the manual flow.The combination causes the loading indicator to show indefinitely. In the original (non-embedded) confirmation flow this was not an issue because the confirmation page was never reached with a
SCANrequest type and no receipt. The new embedded architecture in PR #87920 created this edge case.ShridharGoel commentedon May 14, 2026
This is a known bug and is behind beta.
MelvinBot commentedon May 14, 2026
⏱️ Ran out of time before I could finish. This usually means the task was too complex or I got stuck exploring. Please try again with a more specific request or post in #melvinbot-ai.
Run details
melvin-bot commentedon May 14, 2026
If you are the assigned CME please investigate whether the linked PR caused a regression and leave a comment with the results.
If a regression has occurred and you are the assigned CM follow the instructions here.
If this regression could have been avoided please consider also proposing a recommendation to the PR checklist so that we can avoid it in the future.
13 remaining items
melvin-bot commentedon May 29, 2026
@thelullabyy Whoops! This issue is 2 days overdue. Let's get this updated quick!
melvin-bot commentedon Jun 2, 2026
@thelullabyy Still overdue 6 days?! Let's take care of this!
jponikarchuk commentedon Jun 3, 2026
Deploy Blocker #92508 was identified to be related to the PR #91218 that attempted to fix this issue.
melvin-bot commentedon Jun 4, 2026
@thelullabyy 8 days overdue is a lot. Should this be a Weekly issue? If so, feel free to change it!
dukenv0307 commentedon Jun 5, 2026
@thelullabyy can you create the PR for this issue? I don't have enough effort to do
thelullabyy commentedon Jun 5, 2026
Checking...
thelullabyy commentedon Jun 8, 2026
@jponikarchuk Could you please re-verify this bug. It is not reproducible on my end anymore
trjExpensify commentedon Jun 8, 2026
#92545 - was it not fixed by this?
thelullabyy commentedon Jun 9, 2026
@trjExpensify no, it is for fixing another issue
trjExpensify commentedon Jun 9, 2026
Interesting... I can't seem to repro. I'll ping QA.
m-natarajan commentedon Jun 9, 2026
Unable to reproduce in Mac 15.4.1 Safari, Win 11 Chrome v9.4.1-2
Recording.2330.mp4
Recording.2979.mp4
trjExpensify commentedon Jun 9, 2026
Niceeee... let's close it then!