[$175] [Auto] [EX-50] "Your free trial has started!" welcome message Not displayed in admin room
If you haven’t already, check out our contributing guidelines for onboarding. To join our Slack channel, fill out this form.
Version Number: v9.5.25-0 Reproducible in staging?: Yes Reproducible in production?: Yes If this was caught during regression testing, add the test name, ID and link from BrowserStack: https://test-management.browserstack.com/projects/2219752/folder/13176668/test-cases/41236540 Email or phone of affected tester (no customers): [email protected] Issue reported by: Applause Internal Team Bug source: Regression TC Execution Device used: web App Component: Other
Action Performed:
- Open the link www.staging.new.expensify.com
- Sign up with new email address without +
- Select the intent "Manage my team's expenses"
- Choose 10–50 as the team size
- On the ""Select the features you want" modal:"" modal, ensure all default features are selected >> Uncheck Accounting
- Select all all optional (additional) features ("Travel", "Rules", "Distance rates", "Expensify Cards", "Tags", "Per Diem" "Time") >> Click Continue
- Complete the remaining onboarding setup
- Navigate to Workspace settings , ensure WS plan type is "Control"
- Navigate to #admins room
- Verify "Your free trial has started!" welcome message displayed
- Repeat steps several times if not reproduced
Expected Result:
"Your free trial has started!" welcome message should be displayed
Actual Result:
"Your free trial has started!" welcome message is not displayed
Workaround:
Unknown
Platforms:
- [ ] Android: App
- [ ] Android: mWeb Chrome
- [ ] iOS: App
- [ ] iOS: mWeb Safari
- [ ] iOS: mWeb Chrome
- [x] Windows: Chrome
- [x] MacOS: Chrome Safari
Screenshots/Videos
https://github.com/user-attachments/assets/7a659606-a34b-4ec2-80e6-e9094ff577ef
Applause Internal Information Exported by: Julia Ponikarchuk Bug ID: 7299495
Upwork Automation - Do Not Edit
- Upwork Job URL: https://www.upwork.com/jobs/~022115876929620283351
- Upwork Job ID: 2115876929620283351
- Last Price Increase: 2026-10-29
Issue Owner
Current Issue Owner: @getusha
While Applause doesn't embed attachments for this bug, here are the links for quick view: https://platform.applause.com/services/links/v1/external/02f279873a6d69faf89a95e9949d98a3d57086866344a018bdab79946027f74f
Issue Analysis
Root Cause: This appears to be a backend/internal issue. A separate internal investigation is needed.
The App never posts "Your free trial has started!" to #admins itself for the "Manage my team's expenses" intent. It sends the text to the backend in CompleteGuidedSetup, and the backend decides which welcome message to post, if any. The App shows only what comes back.
Recommended Fix: No App change recommended. The fix is outside the App repo, so please escalate to an internal engineer with backend access.
Investigation details
What the App does (public code, SHA dd9296e)
- For
MANAGE_TEAM, the App skips the optimistic welcome message. The code comment says the server picks theinboxAdminsBespokevariant at response time: src/libs/ReportUtils.ts:13547, src/libs/ReportUtils.ts:13952. - The App sends an
optimisticConciergeReportActionIDso the backend can post its own welcome: src/libs/ReportUtils.ts:13623. - One onboarding variant,
inboxAdminsBespoke, swaps the standard welcome for a custom message in #admins: src/types/onyx/OnboardingRHPVariant.ts:8. The server assigns the variant per user, which fits the "repeat several times" intermittent repro. - This behavior shipped in June 2026 with Update MANAGE_TEAM onboarding: skip stale optimistic writes and navigate from API response. It is not a recent App regression.
Ruled out on the App side
- Feature selection or Control upgrade race: the selected features and the Control plan go into one
CreateWorkspacecall.completeOnboardingwaits for that write before it callsCompleteGuidedSetup. No separate upgrade call can race the message. - Accounting unchecked: this only removes the accounting tasks. The message stays.
Things to check on the tester side
- Emails containing
+post onboarding to the Concierge DM, not #admins: src/libs/ReportUtils.ts:14262-14266. The repro already says "without +", so this probably doesn't apply. - For an affected account, check the
CompleteGuidedSetupresponse. Note the returned onboarding variant and whether it posted a comment to the #admins report.
Related issues
- [Exploratory] LHN-Trial badge banner in concierge but admin chat shows trial badge in LHN.: a different trial-messaging symptom in the same flow.
Next Steps: Reply with @MelvinBot <your feedback> to refine this analysis.
Triggered auto assignment to Contributor-plus team member for initial proposal review - @aimane-chnaif (External)
Job added to Upwork: https://www.upwork.com/jobs/~022115876929620283351
Proposal:
Please re-state the problem that we are trying to solve in this issue.
When completing guided onboarding with the "Manage my team's expenses" intent (MANAGE_TEAM), selecting workspace features that configure a Control plan, and navigating to the #admins room, the "Your free trial has started!" welcome message is intermittently not displayed.
What is the root cause of that problem?
-
Client-side optimistic deferral: In
src/libs/ReportUtils.ts:13498-13500, optimistic writes for the welcome message are explicitly suppressed for theMANAGE_TEAMflow:// Server picks the inboxAdminsBespoke variant at response time, so optimistic writes here would be stale. const shouldDeferOptimisticTasks = engagementChoice === CONST.ONBOARDING_CHOICES.MANAGE_TEAM;Because
shouldDeferOptimisticTasksistrue, lines 13904–13912 and 13926–13934 inReportUtils.tsdo not pushtextCommentAction(onboardingManageTeamMessagefromsrc/languages/en.ts:4309) tooptimisticDataorsuccessData. -
Delegation to Auth backend: Instead of writing locally, the App generates
optimisticConciergeReportActionID(ReportUtils.ts:13575) and passes it along withguidedSetupDatato theCompleteGuidedSetupcommand (src/libs/actions/Report/index.ts:6547). The App relies entirely on the server to create and return the welcome reportAction for the#adminsroom. -
A/B Variant dependency explains the intermittent reproduction: As defined in
src/types/onyx/OnboardingRHPVariant.ts:8, Expensify uses theinboxAdminsBespokevariant ("Bespoke welcome message delivered in #admins room instead of onboarding tasks"). Because the server assigns this variant per-user dynamically, users assigned to the bespoke variant (or when Auth backend omits the welcome reportAction for the selected Control features) receive no standard"Your free trial has started!"reportAction from the server.
What changes do you think we should make in order to solve the problem?
There are two potential paths depending on internal architecture intent:
-
Option A (Backend / Auth fix or Test Case update — Recommended): This behavior is largely by design on the App client following PR #91685 ("Update MANAGE_TEAM onboarding: skip stale optimistic writes and navigate from API response"). If the welcome message is expected to appear in all cases:
- Auth's backend handler for
CompleteGuidedSetupneeds to ensure the welcome reportAction is created and returned in the response for this onboarding feature combination. - Alternatively, if
inboxAdminsBespokeintentionally replaces or omits this message, the Applause regression test case [41236540] needs to be updated to account for A/B variant assignments.
- Auth's backend handler for
-
Option B (App frontend fallback reconciliation): If the team wants the App to guarantee the welcome message on the client without waiting on the server: In
src/hooks/useCompleteOnboarding.tsandsrc/libs/actions/Report/index.ts, inspectextractRHPVariantFromResponse(response). If the returned variant iscontrol(notinboxAdminsBespoke), and no welcome reportAction was returned inresponse.onyxData, dispatch a client-side action addingonboardingMessages[CONST.ONBOARDING_CHOICES.MANAGE_TEAM].messageto#adminsroom. This avoids the stale optimistic write problem that PR #91685 resolved while ensuring the message is never missing.
What alternative solutions did you explore? (Optional)
Re-enabling optimistic writes unconditionally in prepareOnboardingOnyxData (shouldDeferOptimisticTasks = false):
Rejected because it directly reverts the fix in PR #91685 and causes stale / duplicate reportActions when the server assigns the inboxAdminsBespoke variant.
What automated tests can you add to prevent this from re-occurring?
In tests/unit/ReportUtilsTest.ts and tests/unit/OnboardingFlowTest.ts:
- Verify
prepareOnboardingOnyxDatacorrectly populatesoptimisticConciergeReportActionIDforMANAGE_TEAM. - If Option B is adopted, add a unit test in
tests/unit/useCompleteOnboardingTest.tsverifying fallback welcome action generation whenCompleteGuidedSetupresponds withcontrolvariant.
Contributor details Your Expensify account email: [email protected] Upwork Profile Link: https://www.upwork.com/freelancers/~014bb7d4c250a1fe03
⚠️ Invalid email. Please make sure to create an Expensify account with this email first here.
Contributor details Your Expensify account email: [email protected] Upwork Profile Link: https://www.upwork.com/freelancers/~014bb7d4c250a1fe03
✅ Contributor details stored successfully. Thank you for contributing to Expensify!
Proposal
Please re-state the problem that we are trying to solve in this issue.
When signing up with a new email, choosing "Manage my team's expenses", selecting 10-50 team size, and enabling workspace features, the "Your free trial has started!" welcome message is intermittently missing when navigating to the #admins room.
What is the root cause of that problem?
- In
src/libs/ReportUtils.ts:13550-13552, optimistic writes are explicitly deferred forMANAGE_TEAMonboarding:
Becauseconst shouldDeferOptimisticTasks = engagementChoice === CONST.ONBOARDING_CHOICES.MANAGE_TEAM;shouldDeferOptimisticTasksistrue, lines13955-13965suppress addingtextCommentAction("# Your free trial has started! Let's get you set up.") tooptimisticDataandsuccessData. The client delegates message creation to the server viaguidedSetupDatainCompleteGuidedSetup(src/libs/ReportUtils.ts:14112-14115). - In
src/hooks/useCompleteOnboarding.ts:138-142andsrc/libs/navigateAfterOnboarding.ts:139-148, when the server assigns the account to theCONST.ONBOARDING_RHP_VARIANT.HOME_PAGE_NO_RHP(homePageNoRHP) experiment arm, onboarding is routed to/home(ROUTES.HOME) rather than#admins, and the server does not return a report action for the#adminswelcome message. - Consequently, when the user manually navigates to
#admins, the room renders in its empty state because optimistic task/message insertion was deferred byshouldDeferOptimisticTasksand no#adminswelcome message was returned inresponse.onyxData.
What changes do you think we should make in order to solve the problem?
In src/hooks/useCompleteOnboarding.ts (or inside completeOnboarding in src/libs/actions/Report/index.ts), reconcile the #admins welcome message when shouldDeferOptimisticTasks is active and the server response for CompleteGuidedSetup omits the #admins welcome action (such as under HOME_PAGE_NO_RHP):
- In
src/libs/ReportUtils.ts, keepshouldDeferOptimisticTasksfor the checklist tasks so bespoke server task variants are not overwritten, or include the deterministictextCommentAction("# Your free trial has started! Let's get you set up.") foradminsChatReportIDwhenshouldPostTasksInAdminsRoomis true so#adminsalways contains the welcome header regardless of which RHP experiment variant is selected. - Add a unit test in
tests/unit/ReportUtilsTest.tsverifying thatprepareOnboardingOnyxDataforCONST.ONBOARDING_CHOICES.MANAGE_TEAMpreserves the#adminswelcome message action while still deferring bespoke checklist tasks.
What alternative solutions did you explore? (Optional)
- Setting
shouldDeferOptimisticTasks = falsefor all tasks: Explored and rejected because it reintroduces stale optimistic task lists before the server picks theinboxAdminsBespokevariant (regressing PR #91685).
@aimane-chnaif Huh... This is 4 days overdue. Who can take care of this?
@aimane-chnaif Huh... This is 4 days overdue. Who can take care of this?
@aimane-chnaif Huh... This is 4 days overdue. Who can take care of this?
@aimane-chnaif 6 days overdue. This is scarier than being forced to listen to Vogon poetry!
Not reproducible
📣 @ronanchnlps-bit! 📣 Hey, it seems we don’t have your contributor details yet! You'll only have to do this once, and this is how we'll hire you on Upwork. Please follow these steps:
- Make sure you've read and understood the contributing guidelines.
- Get the email address used to login to your Expensify account. If you don't already have an Expensify account, create one here. If you have multiple accounts (e.g. one for testing), please use your main account email.
- Get the link to your Upwork profile. It's necessary because we only pay via Upwork. You can access it by logging in, and then clicking on your name. It'll look like this. If you don't already have an account, sign up for one here.
- Copy the format below and paste it in a comment on this issue. Replace the placeholder text with your actual details.
Format:
Contributor details
Your Expensify account email: <REPLACE EMAIL HERE>
Upwork Profile Link: <REPLACE LINK HERE>
Proposal
Please re-state the problem that we are trying to solve in this issue.
When signing up with a new email address (without +), selecting the "Manage my team's expenses" (CONST.ONBOARDING_CHOICES.MANAGE_TEAM) intent, choosing team size 10–50, configuring workspace features that create a Control plan workspace, and navigating to the #admins room, the "Your free trial has started! Let's get you set up." welcome message is intermittently not displayed.
What is the root cause of that problem?
- Client-side deferral of
textCommentActionforMANAGE_TEAMinprepareOnboardingOnyxData(src/libs/ReportUtils.ts, lines 13740, 14118, 14145–14175, 14235–14245): InprepareOnboardingOnyxData:
Proposal
Please re-state the problem that we are trying to solve in this issue.
When signing up with a new account, selecting the "Manage my team's expenses" onboarding intent (MANAGE_TEAM), choosing team size 10–50, selecting optional workspace features (Control plan), and navigating to the #admins room, the "Your free trial has started!" welcome message is not displayed in #admins.
What is the root cause of that problem?
- In
src/libs/ReportUtils.ts(lines 13547–13552),buildOptimisticOnboardingDatasets:const shouldDeferOptimisticTasks = engagementChoice === CONST.ONBOARDING_CHOICES.MANAGE_TEAM;. As noted in the code comment (// Server picks the inboxAdminsBespoke variant at response time, so optimistic writes here would be stale), whenshouldDeferOptimisticTasksistrue, the client intentionally skips pushingtextCommentAction(onboardingManageTeamMessage, which starts with"# Your free trial has started! Let's get you set up."insrc/languages/en.ts:4309) intooptimisticDataandsuccessData(lines 13952–13985). - Instead, the client passes
optimisticConciergeReportActionIDandguidedSetupData(containing the welcome message payload) to the backendCompleteGuidedSetupAPI command (src/libs/actions/Report/index.ts, line 6547), delegating creation of the#adminswelcome message to the server based on the assignedonboardingRHPVariant. - When the server assigns the new account to the
CONST.ONBOARDING_RHP_VARIANT.HOME_PAGE_NO_RHP(homePageNoRHP) experiment arm (handled insrc/hooks/useCompleteOnboarding.ts:138-142andsrc/libs/navigateAfterOnboarding.ts:139-148), post-onboarding navigation routes the user to/home(ROUTES.HOME) rather than#admins, and the backend omits posting the bespoke#adminstrial welcome message.
What changes do you think we should make in order to solve the problem?
- Because the decision of whether to post the
#adminswelcome message duringMANAGE_TEAMonboarding is controlled on the backend insideCompleteGuidedSetup(and varies by the server-assignedonboardingRHPVariant), no frontend change inExpensify/Appshould overrideshouldDeferOptimisticTasks. - Either escalate to a backend engineer if
CompleteGuidedSetupis intended to always post the trial welcome message in#adminseven under thehomePageNoRHPvariant, or update BrowserStack test case41236540to account for thehomePageNoRHPonboarding experiment variant.
What alternative solutions did you explore? (Optional)
We considered removing shouldDeferOptimisticTasks in src/libs/ReportUtils.ts so the client always writes the standard onboardingManageTeamMessage optimistically, but that would conflict with the server's inboxAdminsBespoke message variant and produce duplicate or stale welcome messages in #admins.
📣 @jeff-graham-ai! 📣 Hey, it seems we don’t have your contributor details yet! You'll only have to do this once, and this is how we'll hire you on Upwork. Please follow these steps:
- Make sure you've read and understood the contributing guidelines.
- Get the email address used to login to your Expensify account. If you don't already have an Expensify account, create one here. If you have multiple accounts (e.g. one for testing), please use your main account email.
- Get the link to your Upwork profile. It's necessary because we only pay via Upwork. You can access it by logging in, and then clicking on your name. It'll look like this. If you don't already have an account, sign up for one here.
- Copy the format below and paste it in a comment on this issue. Replace the placeholder text with your actual details.
Format:
Contributor details
Your Expensify account email: <REPLACE EMAIL HERE>
Upwork Profile Link: <REPLACE LINK HERE>
@aimane-chnaif Whoops! This issue is 2 days overdue. Let's get this updated quick!
@aimane-chnaif Eep! 4 days overdue now. Issues have feelings too...