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-09-22] [$250] Report opened via /search/r/ deep link shows only a semi-transparent skeleton loader with the Home page visible behind it #97159
Version Number: 9.4.43-1 Reproducible in staging?: Yes Reproducible in production?: Yes If this was caught during regression testing, add the test name, ID and link from BrowserStack: N/A Email or phone of affected tester (no customers):yuwen@expensify.com Logs:https://stackoverflow.com/c/expensify/questions/4856 Expensify/Expensify Issue URL: Issue reported by: Yuwen Slack conversation (hyperlinked to channel name):
Action Performed:
Open a GitHub issue that contains OldDot report links of the form https://www.expensify.com/report?param={"pageReportID":"<reportID>"}. In the recording this was the AP-close "reports awaiting your approval/submission" reminder issue auto-generated by the alteryxbotify bot, where each "Approve report" / "Submit report" link uses that format.
While logged in to New Expensify, click one of those links. Because it's a www.expensify.com link handing off to New Expensify, it routes through the auth transition — https://new.expensify.com/transition?accountID=<id>&email=<email>&shortLivedAuthToken=<token>&exitTo=... — and then redirects to https://new.expensify.com/search/r/<reportID>.
Observe the report view on the /search/r/<reportID> route (reproduced on report IDs 236182401668712 and 238362409868712).
Note: the /transition hop is what triggers this. A link that points straight at new.expensify.com (rather than an OldDot www.expensify.com/report?param=... link) skips the transition and does not reproduce the bug.
Expected Result:
The report opens on the /search/r/<reportID> route and its contents (the report header and its transactions/expenses) render. Any loading placeholder shown beforehand is fully opaque.
Actual Result:
Only a skeleton-loading placeholder renders, and it never resolves into the actual report. The skeleton is semi-transparent, so the Home page (For you / Recently added / Your spend / Discover) is visible through it in the background. Reproduced on two different report IDs.
Workaround:
Not applicable.
Platforms:
Select the officially supported platforms where the issue was reproduced:
Please re-state the problem that we are trying to solve in this issue.
A report opened via a /search/r/<reportID> deep link that first passes through the /transition auth flow renders only a semi-transparent skeleton loader that never resolves into the real report, with the Home page visible behind it.
What is the root cause of that problem?
Two things combine — one is the actual bug, the other explains the "see-through" symptom:
1. The skeleton never resolves (the real bug). The /search/r/:reportID route is SEARCH_MONEY_REQUEST_REPORT (ROUTES.ts:1285) → SearchMoneyRequestReportPage → MoneyRequestReportView. The skeleton is gated by shouldShowOpenReportLoadingSkeleton (isLoadingInitialReportActions) and a separate isAppLoadPending skeleton branch.
openReport sets isLoadingInitialReportActions: true in optimisticData (Report/index.ts:1584) but only flips it back to false in successData/failureData (1629 / 1650) — which for write commands are held in memory until the SequentialQueue flushes. In the transition flow, LogInWithShortLivedAuthTokenPage fires openApp and then navigates to exitTo (the report) without awaiting it (LogInWithShortLivedAuthTokenPage.tsx:74). openApp sets IS_LOADING_APP: true optimistically and clears it only in finallyData — and the code itself warns that an interrupted session can strand IS_LOADING_APP: true with no OpenApp left to clear it (App.ts:356-370). While IS_LOADING_APP/isLoadingInitialReportActions stay stuck, the report stays on the skeleton and can't even fall back to a NotFound page, because shouldShowAccessErrorPage early-returns false while isLoadingApp !== false.
2. Why the Home page shows through. The report screen lives in the RightModalNavigator, whose cards are intentionally transparent — the opaque background is painted by ScreenWrapperContainer via styles.appBG, not by the card or the skeleton (ReportActionsSkeletonView has no background of its own). During the transition window a semi-transparent FullScreenLoadingIndicator (opacity: 0.8) is also layered over Home. So while the screen is stuck loading and the opaque appBG layer isn't solidly covering the RHP area, Home remains visible behind the skeleton. This is a symptom of #1, not an independent bug.
Transparency: RHP cards use a transparent card style; opacity comes from ScreenWrapperContainer's appBG; the skeleton contributes no background; FullScreenLoadingIndicator is opacity: 0.8 by design.
Alternative considered: a paused SequentialQueue (shouldPauseQueue in SaveResponseInOnyx) could equally leave OpenReport's success/failure data un-flushed, stranding isLoadingInitialReportActions: true even if IS_LOADING_APP clears. Both paths produce the identical symptom; production logs (did OpenApp/OpenReport for this reportID complete? was the queue paused?) would confirm which one fires.
Confidence: Medium — the code mechanism is clear and verified, but I have no production logs confirming which stall path actually triggers in the repro.
What changes do you think we should make in order to solve the problem?
Guarantee the loading gates clear even on an interrupted transition. Ensure the transition flow's openApp (or the follow-up ReconnectApp, which already has shouldClearAppLoading self-healing in App.ts) reliably clears IS_LOADING_APP, and that openReport is (re)dispatched for the target report once the app finishes loading, so isLoadingInitialReportActions is driven to false by a real success/failure response rather than being stranded by an un-flushed queue.
Add a safety net so the screen can escape the skeleton. Relax the shouldShowAccessErrorPage guard at SearchMoneyRequestReportPage.tsx:317-320 (or the skeleton branches in MoneyRequestReportView) so a stuck isLoadingApp can't indefinitely block both the report and the NotFound fallback — e.g. time out the loading gate or key it off the actual OpenReport request state rather than the global app-loading flag.
What alternative solutions did you explore? (Optional)
Ensuring ScreenWrapperContainer's appBG always paints opaquely would fix only the cosmetic "see-through" symptom, not the underlying stuck-load, so it should not be the primary fix.
Next Steps for Contributor+ team: To accept:@MelvinBot implement [this](https://github.com/Expensify/App/issues/97159) to create a draft PR. To refine:@MelvinBot <your feedback> To reject: Explain why you are rejecting Melvin's proposal.
Please re-state the problem that we are trying to solve in this issue.
When a report is opened on web via a cold transition/auth deep link (new.expensify.com/transition?... → new.expensify.com/search/r/<reportID>), the report page renders only a semi-transparent skeleton loader that never resolves into the report; the Home page (For you / Recently added / Your spend / Discover) is visible through it in the background. Expected: the /search/r/<reportID> route opens over the Search page with a fully-opaque placeholder that resolves into the report header and its transactions.
What is the root cause of that problem?
SEARCH_MONEY_REQUEST_REPORT (the screen behind /search/r/<reportID>) is a Right-Hand-Panel screen that is only ever meant to render on top of the SEARCH.ROOT full-screen page — it is declared as a child of SCREENS.SEARCH.ROOT in SEARCH_TO_RHP.ts:19, and the inverse relation RHP_TO_SEARCH (RELATIONS/index.ts:35) is what tells the navigator to place SEARCH.ROOT underneath the RHP. On the normal in-app path this is supplied explicitly — getReportURLForCurrentContext.ts:55-60 forces backTo to ROUTES.SEARCH_ROOT before building the SEARCH_MONEY_REQUEST_REPORT route. On a cold deep link through the transition flow there is no in-app navigation state and no backTo, so the linking adapter never materializes the SEARCH.ROOT backdrop; the RHP is placed over the default Home screen instead. Because the RHP is a semi-transparent overlay, Home shows through, and because the Search central screen never mounts, the query/report data behind the skeleton is never loaded — so it never resolves.
What changes do you think we should make in order to solve the problem?
In src/libs/Navigation/helpers/getReportURLForCurrentContext.ts (lines 55-60), the guard already forces backTo to ROUTES.SEARCH_ROOT for the in-app path. Apply the same backdrop guarantee to the deep-link path by ensuring the linking adapter that resolves /search/r/:reportID (the SEARCH_MONEY_REQUEST_REPORT entry in linkingConfig/config.ts:2125) always yields SEARCH.ROOT as the underlying full-screen route when none is present in the incoming state — mirroring how other RHP relations resolve their parent via the RHP_TO_* inverse maps.
// when adapting a cold /search/r/ deep link with no underlying full-screen route,// resolve the RHP's parent from RHP_TO_SEARCH and inject SEARCH.ROOT as the backdropconstunderlyingRoute=RHP_TO_SEARCH[SCREENS.RIGHT_MODAL.SEARCH_MONEY_REQUEST_REPORT];// SCREENS.SEARCH.ROOT
Confirm the sibling RHP report screen SCREENS.RIGHT_MODAL.SEARCH_REPORT (SEARCH_TO_RHP.ts:20, config.ts:1961) is covered by the same fix — it shares the identical SEARCH.ROOT-parent relation and would exhibit the same transparent-over-Home symptom on a cold /search/r/ deep link.
Behavior matrix:
Entry path
Backdrop before
Backdrop after
In-app tap from Search (backTo set)
SEARCH.ROOT (opaque, resolves)
unchanged — SEARCH.ROOT
Cold transition deep link to /search/r/<id>
Home (transparent, never resolves)
SEARCH.ROOT (opaque, resolves)
Cold deep link to SEARCH_REPORT RHP
Home (transparent)
SEARCH.ROOT
What alternative solutions did you explore? (Optional)
Making MoneyRequestReportView's skeleton fully opaque (so Home no longer shows through) would mask the visual symptom but is the wrong layer — it does not restore the missing SEARCH.ROOT backdrop, so the query never runs and the skeleton would still never resolve into the report. The defect must be fixed where the underlying full-screen route is computed for the deep link, not in the placeholder styling.
changed the title [-]Report opened via /search/r/ deep link shows only a semi-transparent skeleton loader with the Home page visible behind it[/-][+][$250] Report opened via /search/r/ deep link shows only a semi-transparent skeleton loader with the Home page visible behind it[/+]on Jul 28, 2026
Then two guards that should stop a second one both miss.
Guard 1, the full-reconnect dedupe, depends on Onyx merge ordering that does not hold here.RecordFullReconnectTime splices LAST_FULL_RECONNECT_TIME immediately before the delivered cutoff so the subscription never sees a new cutoff next to an old reconnect time. The function documents the assumption itself:
assumes Onyx broadcasts a batch's merges in array order … If it ever broke, the worst case is one transient extra reconnect.
On this path the two merges land 339ms apart, so they are not one batch. subscribeToFullReconnect reads lastFullReconnectTime: "", and "" < cutoff fires a full reconnect:
Guard 2, hasLoadedApp, is still false because its write is deferred.HAS_LOADED_APP: true rides in OpenApp's successData, and the sequential queue parks that in queueFlushedData until the queue drains, several seconds after OpenApp returned:
So the "one transient extra reconnect" the comment tolerates becomes a second full OpenApp, and that is the damage: OpenApp applies its priority snapshot to report_, reportActions_ and transactions_ with setcollection, which replaces those collections rather than merging. Anything the snapshot does not carry is deleted, including the report the user is looking at. Measured on main:
6146ms report + 1 action in Onyx, rendered
8540ms report AND reportActions both gone <- OpenApp #2's replace
9019ms /home <- disappearance read as a removal
10390ms report back via SearchForTodos, actions never come back
47s still 0 actions, no further API call
Live Onyx read at 20s on main: {"hasReport":true,"actions":0,"isLoadingApp":false}. The report is present, its actions are gone, the app load has finished and nothing is in flight. reportActions.length === 0 then holds ReportActionsSkeletonView indefinitely, which is the OP's screenshot. The second OpenApp also keeps isAppLoadPending true for several extra seconds, which is the other half of "it just loads forever".
On the semi-transparency: that is the RHP backdrop at its designed variables.overlayOpacity: 0.72. The panel itself is opaque. It reads as broken only because the skeleton never ends.
What changes do you think we should make in order to solve the problem?
Stop reconnectApp from issuing a second full OpenApp when one has already completed for this app load. hasLoadedApp cannot answer that question because its write is deferred, so latch the completion directly (src/libs/actions/App.ts):
+// HAS_LOADED_APP is written by OpenApp's successData, which the sequential queue defers until the queue+// drains, so hasLoadedApp still reads false seconds after OpenApp has returned. Track the completion+// directly so a reconnect arriving in that window is not mistaken for "the app never loaded".+let hasOpenAppCompleted = false;
callback: (val) => {
+ // A sign-out or account switch needs a fresh full download, so the latch must not carry over.+ if (val?.accountID !== currentSessionData.accountID) {+ hasOpenAppCompleted = false;+ }
currentSessionData = {
if (!hasLoadedApp) {
if (bootsplashSpan) {
endSpan(CONST.TELEMETRY.SPAN_NAVIGATION.APP_OPEN);
}
+ // An OpenApp that already returned downloaded everything this reconnect would ask for, and its+ // response applies report_/reportActions_/transactions_ with setcollection. Running a second one+ // replaces those collections again and drops whatever the first OpenApp's snapshot did not carry,+ // which on a deep link is the report currently on screen.+ if (hasOpenAppCompleted) {+ Log.info('[App] Skipping the OpenApp fallback, one has already completed for this app load');+ return;+ }
openApp();
return;
}
The latch is set on resolution only, so a failed OpenApp still allows the fallback, and it is cleared whenever the session's accountID changes, so sign-out and account switch still get a full download. Once hasLoadedApp is applied, reconnects take the normal ReconnectApp path unchanged, so a genuine later full reconnect is unaffected.
Measured, /transition → exitTo=search/r/<id>, Onyx cleared before each run, no mocking, no client-side skeleton or page changes:
main
with this change
OpenApp calls per boot
2
1
empty report 277876063023103
rendered 6.1s, skeleton from 6.3s, /home at 9.0s, 0 actions at 47s
rendered, stays on /search/r/…, 3/3
report 6733546472819928
never rendered, /home at 13.0s
rendered, stays, 3/3
Tests worth adding: a cold boot where reconnectApp runs after OpenApp resolved but before HAS_LOADED_APP is applied (exactly one OpenApp); a server cutoff delivered in the OpenApp response (no second full download); reconnectApp after OpenApp rejected (fallback still runs); sign-out then sign-in (fallback runs again); and a full reconnect after hasLoadedApp is true (still a ReconnectApp, not an OpenApp).
What alternative solutions did you explore? (Optional)
Activity
MelvinBot commentedon Jul 27, 2026
Proposal
Please re-state the problem that we are trying to solve in this issue.
A report opened via a
/search/r/<reportID>deep link that first passes through the/transitionauth flow renders only a semi-transparent skeleton loader that never resolves into the real report, with the Home page visible behind it.What is the root cause of that problem?
Two things combine — one is the actual bug, the other explains the "see-through" symptom:
1. The skeleton never resolves (the real bug). The
/search/r/:reportIDroute isSEARCH_MONEY_REQUEST_REPORT(ROUTES.ts:1285) →SearchMoneyRequestReportPage→MoneyRequestReportView. The skeleton is gated byshouldShowOpenReportLoadingSkeleton(isLoadingInitialReportActions) and a separateisAppLoadPendingskeleton branch.openReportsetsisLoadingInitialReportActions: truein optimisticData (Report/index.ts:1584) but only flips it back tofalsein successData/failureData (1629 / 1650) — which for write commands are held in memory until the SequentialQueue flushes. In the transition flow,LogInWithShortLivedAuthTokenPagefiresopenAppand then navigates toexitTo(the report) without awaiting it (LogInWithShortLivedAuthTokenPage.tsx:74).openAppsetsIS_LOADING_APP: trueoptimistically and clears it only in finallyData — and the code itself warns that an interrupted session can strandIS_LOADING_APP: truewith no OpenApp left to clear it (App.ts:356-370). WhileIS_LOADING_APP/isLoadingInitialReportActionsstay stuck, the report stays on the skeleton and can't even fall back to a NotFound page, becauseshouldShowAccessErrorPageearly-returnsfalsewhileisLoadingApp !== false.2. Why the Home page shows through. The report screen lives in the RightModalNavigator, whose cards are intentionally transparent — the opaque background is painted by
ScreenWrapperContainerviastyles.appBG, not by the card or the skeleton (ReportActionsSkeletonViewhas no background of its own). During the transition window a semi-transparentFullScreenLoadingIndicator(opacity: 0.8) is also layered over Home. So while the screen is stuck loading and the opaqueappBGlayer isn't solidly covering the RHP area, Home remains visible behind the skeleton. This is a symptom of #1, not an independent bug.Investigation details & evidence
MoneyRequestReportView.tsx:169and theisAppLoadPendingbranch just below it.isLoadingInitialReportActionslifecycle: optimistictrueatReport/index.ts:1584;falseonly in success/failure data (held until queue flush).IS_LOADING_APPself-heal note explicitly describes the stuck-truefailure mode:App.ts:356-370.SearchMoneyRequestReportPage.tsx:317-320.ScreenWrapperContainer'sappBG; the skeleton contributes no background;FullScreenLoadingIndicatorisopacity: 0.8by design.Alternative considered: a paused SequentialQueue (
shouldPauseQueueinSaveResponseInOnyx) could equally leave OpenReport's success/failure data un-flushed, strandingisLoadingInitialReportActions: trueeven ifIS_LOADING_APPclears. Both paths produce the identical symptom; production logs (didOpenApp/OpenReportfor this reportID complete? was the queue paused?) would confirm which one fires.Confidence: Medium — the code mechanism is clear and verified, but I have no production logs confirming which stall path actually triggers in the repro.
What changes do you think we should make in order to solve the problem?
openApp(or the follow-upReconnectApp, which already hasshouldClearAppLoadingself-healing inApp.ts) reliably clearsIS_LOADING_APP, and thatopenReportis (re)dispatched for the target report once the app finishes loading, soisLoadingInitialReportActionsis driven tofalseby a real success/failure response rather than being stranded by an un-flushed queue.shouldShowAccessErrorPageguard atSearchMoneyRequestReportPage.tsx:317-320(or the skeleton branches inMoneyRequestReportView) so a stuckisLoadingAppcan't indefinitely block both the report and the NotFound fallback — e.g. time out the loading gate or key it off the actual OpenReport request state rather than the global app-loading flag.What alternative solutions did you explore? (Optional)
Ensuring
ScreenWrapperContainer'sappBGalways paints opaquely would fix only the cosmetic "see-through" symptom, not the underlying stuck-load, so it should not be the primary fix.Next Steps for Contributor+ team:
To accept:
@MelvinBot implement [this](https://github.com/Expensify/App/issues/97159)to create a draft PR.To refine:
@MelvinBot <your feedback>To reject: Explain why you are rejecting Melvin's proposal.
melvin-bot commentedon Jul 27, 2026
Triggered auto assignment to Contributor-plus team member for initial proposal review - @shubham1206agra (
External)melvin-bot commentedon Jul 27, 2026
Job added to Upwork: https://www.upwork.com/jobs/~022081854753756247954
shubham1206agra commentedon Jul 28, 2026
@yuwenmemon Can you make the steps more concrete please? I am not seeing any transition links when clicking from email.
yuwenmemon commentedon Jul 28, 2026
@shubham1206agra updated the OP.
shubham1206agra commentedon Jul 28, 2026
🆘 C+ Help Wanted
aswin-s commentedon Jul 28, 2026
Proposal
Please re-state the problem that we are trying to solve in this issue.
When a report is opened on web via a cold transition/auth deep link (
new.expensify.com/transition?...→new.expensify.com/search/r/<reportID>), the report page renders only a semi-transparent skeleton loader that never resolves into the report; the Home page (For you / Recently added / Your spend / Discover) is visible through it in the background. Expected: the/search/r/<reportID>route opens over the Search page with a fully-opaque placeholder that resolves into the report header and its transactions.What is the root cause of that problem?
SEARCH_MONEY_REQUEST_REPORT(the screen behind/search/r/<reportID>) is a Right-Hand-Panel screen that is only ever meant to render on top of theSEARCH.ROOTfull-screen page — it is declared as a child ofSCREENS.SEARCH.ROOTinSEARCH_TO_RHP.ts:19, and the inverse relationRHP_TO_SEARCH(RELATIONS/index.ts:35) is what tells the navigator to placeSEARCH.ROOTunderneath the RHP. On the normal in-app path this is supplied explicitly —getReportURLForCurrentContext.ts:55-60forcesbackTotoROUTES.SEARCH_ROOTbefore building theSEARCH_MONEY_REQUEST_REPORTroute. On a cold deep link through the transition flow there is no in-app navigation state and nobackTo, so the linking adapter never materializes theSEARCH.ROOTbackdrop; the RHP is placed over the default Home screen instead. Because the RHP is a semi-transparent overlay, Home shows through, and because the Search central screen never mounts, the query/report data behind the skeleton is never loaded — so it never resolves.What changes do you think we should make in order to solve the problem?
src/libs/Navigation/helpers/getReportURLForCurrentContext.ts(lines 55-60), the guard already forcesbackTotoROUTES.SEARCH_ROOTfor the in-app path. Apply the same backdrop guarantee to the deep-link path by ensuring the linking adapter that resolves/search/r/:reportID(theSEARCH_MONEY_REQUEST_REPORTentry inlinkingConfig/config.ts:2125) always yieldsSEARCH.ROOTas the underlying full-screen route when none is present in the incoming state — mirroring how other RHP relations resolve their parent via theRHP_TO_*inverse maps.SCREENS.RIGHT_MODAL.SEARCH_REPORT(SEARCH_TO_RHP.ts:20,config.ts:1961) is covered by the same fix — it shares the identicalSEARCH.ROOT-parent relation and would exhibit the same transparent-over-Home symptom on a cold/search/r/deep link.Behavior matrix:
backToset)/search/r/<id>SEARCH_REPORTRHPWhat alternative solutions did you explore? (Optional)
Making
MoneyRequestReportView's skeleton fully opaque (so Home no longer shows through) would mask the visual symptom but is the wrong layer — it does not restore the missingSEARCH.ROOTbackdrop, so the query never runs and the skeleton would still never resolve into the report. The defect must be fixed where the underlying full-screen route is computed for the deep link, not in the placeholder styling.[-]Report opened via /search/r/ deep link shows only a semi-transparent skeleton loader with the Home page visible behind it[/-][+][$250] Report opened via /search/r/ deep link shows only a semi-transparent skeleton loader with the Home page visible behind it[/+]mukhrr commentedon Jul 28, 2026
Proposal
What is the root cause of that problem?
Here is the chain that produces it, captured from the console on a cold
/transition→exitTo=search/r/<id>boot:On the OldDot handoff
didUserLogInDuringSession()is false, soAuthScreensInitHandlersends aReconnectApp:App/src/libs/Navigation/AppNavigator/AuthScreensInitHandler.tsx
Lines 186 to 189 in 4ce3320
reconnectAppdowngrades that to a fullopenApp()because the app has not loaded yet:App/src/libs/actions/App.ts
Lines 469 to 478 in 4ce3320
Then two guards that should stop a second one both miss.
Guard 1, the full-reconnect dedupe, depends on Onyx merge ordering that does not hold here.
RecordFullReconnectTimesplicesLAST_FULL_RECONNECT_TIMEimmediately before the delivered cutoff so the subscription never sees a new cutoff next to an old reconnect time. The function documents the assumption itself:App/src/libs/FullReconnectUtils.ts
Lines 56 to 76 in 4ce3320
On this path the two merges land 339ms apart, so they are not one batch.
subscribeToFullReconnectreadslastFullReconnectTime: "", and"" < cutofffires a full reconnect:App/src/libs/subscribeToFullReconnect.ts
Lines 36 to 43 in 4ce3320
Guard 2,
hasLoadedApp, is still false because its write is deferred.HAS_LOADED_APP: truerides inOpenApp'ssuccessData, and the sequential queue parks that inqueueFlushedDatauntil the queue drains, several seconds afterOpenAppreturned:App/src/libs/actions/App.ts
Lines 340 to 345 in 4ce3320
So the "one transient extra reconnect" the comment tolerates becomes a second full
OpenApp, and that is the damage:OpenAppapplies its priority snapshot toreport_,reportActions_andtransactions_withsetcollection, which replaces those collections rather than merging. Anything the snapshot does not carry is deleted, including the report the user is looking at. Measured onmain:Live Onyx read at 20s on
main:{"hasReport":true,"actions":0,"isLoadingApp":false}. The report is present, its actions are gone, the app load has finished and nothing is in flight.reportActions.length === 0then holdsReportActionsSkeletonViewindefinitely, which is the OP's screenshot. The secondOpenAppalso keepsisAppLoadPendingtrue for several extra seconds, which is the other half of "it just loads forever".On the semi-transparency: that is the RHP backdrop at its designed
variables.overlayOpacity: 0.72. The panel itself is opaque. It reads as broken only because the skeleton never ends.What changes do you think we should make in order to solve the problem?
Stop
reconnectAppfrom issuing a second fullOpenAppwhen one has already completed for this app load.hasLoadedAppcannot answer that question because its write is deferred, so latch the completion directly (src/libs/actions/App.ts):callback: (val) => { + // A sign-out or account switch needs a fresh full download, so the latch must not carry over. + if (val?.accountID !== currentSessionData.accountID) { + hasOpenAppCompleted = false; + } currentSessionData = {if (!hasLoadedApp) { if (bootsplashSpan) { endSpan(CONST.TELEMETRY.SPAN_NAVIGATION.APP_OPEN); } + // An OpenApp that already returned downloaded everything this reconnect would ask for, and its + // response applies report_/reportActions_/transactions_ with setcollection. Running a second one + // replaces those collections again and drops whatever the first OpenApp's snapshot did not carry, + // which on a deep link is the report currently on screen. + if (hasOpenAppCompleted) { + Log.info('[App] Skipping the OpenApp fallback, one has already completed for this app load'); + return; + } openApp(); return; }The latch is set on resolution only, so a failed
OpenAppstill allows the fallback, and it is cleared whenever the session'saccountIDchanges, so sign-out and account switch still get a full download. OncehasLoadedAppis applied, reconnects take the normalReconnectApppath unchanged, so a genuine later full reconnect is unaffected.Measured,
/transition→exitTo=search/r/<id>, Onyx cleared before each run, no mocking, no client-side skeleton or page changes:mainOpenAppcalls per boot277876063023103/homeat 9.0s, 0 actions at 47s/search/r/…, 3/36733546472819928/homeat 13.0sTests worth adding: a cold boot where
reconnectAppruns afterOpenAppresolved but beforeHAS_LOADED_APPis applied (exactly oneOpenApp); a server cutoff delivered in theOpenAppresponse (no second full download);reconnectAppafterOpenApprejected (fallback still runs); sign-out then sign-in (fallback runs again); and a full reconnect afterhasLoadedAppis true (still aReconnectApp, not anOpenApp).What alternative solutions did you explore? (Optional)
n/a
melvin-bot commentedon Jul 28, 2026
Job added to Upwork: https://www.upwork.com/jobs/~022081972772766824621
137 remaining items
melvin-bot commentedon Sep 21, 2026
Triggered auto assignment to @mallenexpensify (
Awaiting Payment)melvin-bot commentedon Sep 21, 2026
Payment Summary
Resolving PRs:
Upwork Job
BugZero Checklist (@mallenexpensify)
mallenexpensify commentedon Sep 24, 2026
Payment Summary
Contributor: @neerajbachani paid $250 via Upwork
Contributor+: @QichenZhu due $250 via NewDot
@neerajbachani can you please accept the job below? Please reply here and tag me once you have.
https://www.upwork.com/jobs/~022103234989944416573
neerajbachani commentedon Sep 24, 2026
@mallenexpensify I've accepted the job offer here, thanks!!
mallenexpensify commentedon Sep 24, 2026
@neerajbachani paid, summary updated above. Thx.
trjExpensify commentedon Sep 25, 2026
approved $250 for @QichenZhu