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
👋 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.
👋 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: Frontend bug Causing PR: #78853 - "Remove Onyx.connect() for the key: ONYXKEYS.BETAS in src/libs/ReportUtils.ts" by @Krishna2323 (High confidence) Related Issues: None
Recommendation: REVERT
PR #78853 refactored getExpenseReportStateAndStatus() to require an allBetas parameter instead of using a module-level Onyx.connect(). This introduces a critical issue where expense reports can receive incorrect state/status values if allBetas is not properly initialized in all code paths, causing reports to be incorrectly filtered from the LHN.
Labels: This is a Frontend bug. The issue currently has DeployBlockerCash label, which is correct - this should block the App deploy. No label changes needed.
Detailed Analysis
Evidence
PR #78853 was merged on 2026-01-21 at 17:05:02Z and is included in v9.3.6-0 staging deploy. The PR refactored getExpenseReportStateAndStatus() from using a module-level Onyx.connect() to requiring allBetas as a parameter:
This function is critical because it determines the stateNum and statusNum of expense reports, which are used by the LHN filtering logic.
Root Cause
The reported bug shows expense reports disappearing when:
Account B creates an expense in workspace chat
Account A changes workflow settings (disables "Add Approval and Payment")
Account B creates another expense report
Reports disappear except the first one
This behavior is consistent with the LHN filtering logic at src/libs/ReportUtils.ts:9531:
// Hide empty reports that have only a CREATED action, a total of 0, and are in a submitted stateif(report?.total===0&&report?.stateNum===CONST.REPORT.STATE_NUM.SUBMITTED&&report?.statusNum===CONST.REPORT.STATUS_NUM.SUBMITTED&&hasOnlyCreatedAction){returnnull;// Hide from LHN}
The problem: If allBetas is undefined or not properly passed when expense reports are being created/updated (particularly during workflow setting changes), getExpenseReportStateAndStatus() may return incorrect state/status values. This causes reports to match the filtering criteria above and be hidden from the LHN.
Verification
The PR modifies critical files:
src/libs/ReportUtils.ts - Core report utility functions including getExpenseReportStateAndStatus(), buildOptimisticExpenseReport(), buildOptimisticEmptyReport()
Multiple components that create or display expense reports
The timing matches perfectly:
PR merged: 2026-01-21 17:05:02Z
Issue reported: 2026-01-22 08:27:15Z
Version: v9.3.6-0 (current staging deploy)
Reproducible: Staging only (not production)
The issue specifically occurs when workflow settings are changed, which suggests a code path where allBetas might not be properly available during report state updates triggered by policy changes.
doesReportContainRequestsFromMultipleUsers() - Checks if report has multiple users
canCreateRequest() - Validates if request can be created
shouldCreateNewMoneyRequestReport() - Determines if new report should be created
While most UI components were updated to pass allBetas using useOnyx(ONYXKEYS.BETAS), there may be asynchronous updates or background processes triggered by policy changes that don't have access to the properly initialized allBetas value, leading to incorrect report states.
Xiaomi Redmi Note 10 / Android 12
App 9.3.6-3
After creating the third expense report (employee), expenses disappear on the admin side and only an empty report is shown. The admin must reopen the LHN to see the expenses
Activity
melvin-bot commentedon Jan 22, 2026
Triggered auto assignment to @mallenexpensify (
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.melvin-bot commentedon Jan 22, 2026
Triggered auto assignment to @Valforte (
DeployBlockerCash), see https://stackoverflowteams.com/c/expensify/questions/9980/ for more details.melvin-bot commentedon Jan 22, 2026
💬 A slack conversation has been started in #expensify-open-source
github-actions commentedon Jan 22, 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:
12 remaining items
github-actions commentedon Jan 22, 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 Jan 22, 2026
Investigation Summary
Classification: Frontend bug
Causing PR: #78853 - "Remove Onyx.connect() for the key: ONYXKEYS.BETAS in src/libs/ReportUtils.ts" by @Krishna2323 (High confidence)
Related Issues: None
Recommendation: REVERT
PR #78853 refactored
getExpenseReportStateAndStatus()to require anallBetasparameter instead of using a module-levelOnyx.connect(). This introduces a critical issue where expense reports can receive incorrect state/status values ifallBetasis not properly initialized in all code paths, causing reports to be incorrectly filtered from the LHN.Labels: This is a Frontend bug. The issue currently has
DeployBlockerCashlabel, which is correct - this should block the App deploy. No label changes needed.Detailed Analysis
Evidence
PR #78853 was merged on 2026-01-21 at 17:05:02Z and is included in v9.3.6-0 staging deploy. The PR refactored
getExpenseReportStateAndStatus()from using a module-levelOnyx.connect()to requiringallBetasas a parameter:Before (module-level connection):
After (parameter-based):
This function is critical because it determines the
stateNumandstatusNumof expense reports, which are used by the LHN filtering logic.Root Cause
The reported bug shows expense reports disappearing when:
This behavior is consistent with the LHN filtering logic at
src/libs/ReportUtils.ts:9531:The problem: If
allBetasisundefinedor not properly passed when expense reports are being created/updated (particularly during workflow setting changes),getExpenseReportStateAndStatus()may return incorrect state/status values. This causes reports to match the filtering criteria above and be hidden from the LHN.Verification
The PR modifies critical files:
src/libs/ReportUtils.ts- Core report utility functions includinggetExpenseReportStateAndStatus(),buildOptimisticExpenseReport(),buildOptimisticEmptyReport()src/libs/actions/IOU/index.ts- IOU/Expense creation actionsThe timing matches perfectly:
The issue specifically occurs when workflow settings are changed, which suggests a code path where
allBetasmight not be properly available during report state updates triggered by policy changes.Technical Details
The refactoring added
allBetasparameter to:getExpenseReportStateAndStatus()- Determines report state/statusbuildOptimisticExpenseReport()- Creates expense reports optimisticallybuildOptimisticEmptyReport()- Creates empty expense reportsdoesReportContainRequestsFromMultipleUsers()- Checks if report has multiple userscanCreateRequest()- Validates if request can be createdshouldCreateNewMoneyRequestReport()- Determines if new report should be createdWhile most UI components were updated to pass
allBetasusinguseOnyx(ONYXKEYS.BETAS), there may be asynchronous updates or background processes triggered by policy changes that don't have access to the properly initializedallBetasvalue, leading to incorrect report states.melvin-bot commentedon Jan 22, 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.
Valforte commentedon Jan 22, 2026
This is a pretty wide issue that can possibly reach many customers so I think the best course of action is to revert the offending PR.
Beamanator commentedon Jan 22, 2026
@Valforte did you request CP for that revert?
IuliiaHerets commentedon Jan 22, 2026
Xiaomi Redmi Note 10 / Android 12
App 9.3.6-3
After creating the third expense report (employee), expenses disappear on the admin side and only an empty report is shown. The admin must reopen the LHN to see the expenses
Screenrecorder-2026-01-22-19-49-45-530.mp4
Beamanator commentedon Jan 22, 2026
asked for retest, as most likely now that fire is out this should be fixed
m-natarajan commentedon Jan 22, 2026
Not reproduce ,Xiaomi Redmi Note 10 / Android 12, App 9.3.6-4
Screenrecorder-2026-01-22-22-31-54-69.mp4
Beamanator commentedon Jan 22, 2026
Perfecto, thanks! Closing!