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-11-18] [$175] "Please enter different email error" displayed when navigate back to Work email modal #101576
Awaiting PaymentAuto-added when associated PR is deployed to productionBugSomething is broken. Auto assigns a BugZero manager.DailyKSv2EngineeringExternalAdded to denote the issue can be worked on by a contributor
"Please enter a different email than the one you signed up with" error message is displayed
After several back and forward tries with different emails Add work email button become unresponsive
👋 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.
Every file in this flow (the onboarding work-email pages, the whole src/components/Form library, Session/Welcome actions, and the en strings) is byte-identical between production and staging, so there is no App PR in this release to revert. @amyevans — could we get the tester to re-confirm production and grab a requestID for the AddWorkEmail call, so we can tell whether the backend response is what changed?
Labels: No changes. DeployBlockerCash kept (no causing App PR ruled in or out, and the issue is reported as not reproducible on production).
📋 Detailed Analysis
Evidence
The reported copy has exactly one source in the codebase — the validate() callback on the onboarding work-email form:
It is a purely local field error (it is never written to Onyx and the backend cannot set it), so for the tester to see it after typing sdfasdfasdf@test.com, session.email must have become the submitted work email by the time the user navigates back from the security-code screen. That points at the AddWorkEmail round trip mutating session.email rather than at the validation itself.
The secondary symptom ("Add work email button becomes unresponsive") has a separate, plausible frontend cause: FormProvider returns early from submit whenever the Onyx form's isLoading is set, and AddWorkEmail sets isLoading: true optimistically with nothing resetting it if the user leaves the screen before the request settles.
I compared production (9.4.81-1) against staging (9.4.84-1) across the full 597-file diff, and separately checked blob SHAs via the GitHub contents/commits API (which is authoritative and not affected by a shallow clone):
Nothing in the import graph of BaseOnboardingWorkEmail changed either — the only onboarding-adjacent files in the release diff are src/components/OnboardingHelpDropdownButton.tsx and src/hooks/useCompleteOnboarding.ts, neither of which is on this code path.
Candidates I ruled out after reading their diffs (all touch shared infrastructure but none touch session email, form validation, or onboarding navigation):
Not established. Two hypotheses, in order of likelihood:
Backend/data trigger.AddWorkEmail's response (or a Pusher update following it) now leaves session.email set to the submitted work email before the merge is validated. The frontend guard then fires correctly-but-uselessly on the way back. If confirmed, the frontend should still be hardened: compare against the signup login captured at sign-in rather than live session.email, and skip the check for an address that is merely pending validation.
Pre-existing frontend bug that Applause reached for the first time via exploratory testing (bug source is listed as Exploratory), in which case "not reproducible in production" is unreliable — onboarding only runs once per account, so a production re-test needs a brand new public-domain signup.
The stuck submit button is independently reproducible from code reading and should be fixed regardless, by clearing ONBOARDING_WORK_EMAIL_FORM.isLoading when the work-email screen regains focus.
🤖 Addendum to the investigation above — no App PR in this release can be reverted for this.
Bottom line: every file in this flow (the onboarding work-email pages, the whole src/components/Form library, and the Session/Welcome actions) is byte-identical between production (9.4.81-1) and staging (9.4.84-1), so there is no causing PR in the 9.4.84 checklist. The full evidence — blob-SHA comparison per file, plus the candidate PRs I read and ruled out — is in the detailed comment.
What I'd do next:
Re-test on production with a brand new public-domain signup. Onboarding runs once per account, so the "not reproducible in production" signal is weak — and staging App points at the production API, so a pure backend change should break both.
Grab a requestID for the AddWorkEmail call. The error copy is a purely local field error with one producer that compares the typed address to live session.email — so it can only fire on a different address if AddWorkEmail has already mutated session.email to the submitted work email.
One fix worth making regardless of the trigger: the stuck "Add work email" button is independently explainable from code. AddWorkEmail sets isLoading: true optimistically (src/libs/actions/Session/index.ts:1659-1686) and FormProvider returns early from submit while it's set — with nothing clearing it if the user navigates back before the request settles. Clearing ONBOARDING_WORK_EMAIL_FORM.isLoading when that screen regains focus fixes the unresponsive button.
I also tried to reproduce this on web to settle hypothesis 1, but the test session was unusable (the app client had gone blank before handoff), so that attempt produced no repro data either way.
DeployBlockerCash left in place — I can't rule a PR in or out, so demoting it isn't mine to call. amyevans, over to you on the production re-test.
Next Steps: Reply with @MelvinBot <your feedback> to refine this analysis.
changed the title [-][$175] "Please enter different email error" displayed when navigate back to Work email modal[/-][+][Due for payment 2026-11-18] [$175] "Please enter different email error" displayed when navigate back to Work email modal[/+]on Nov 18, 2026
[Contributor] The offending PR and associated issue have been commented on, pointing out the bug it caused and why, so the author and reviewers can learn from the mistake.
[Contributor] If the regression was CRITICAL (e.g. interrupts a core flow) A discussion in #expensify-open-source has been started about whether any other steps should be taken (e.g. updating the PR review checklist) in order to catch this type of bug sooner.
Link to discussion: N/A. Not critical: it only happened after going back from the next step, and the user could still finish onboarding with Skip or a different email.
[Contributor] If it was decided to create a regression test for the bug, please propose the regression test steps using the template below to ensure the same bug will not reach production again.
Regression Test Proposal
Precondition:
Sign up with a new public-domain email (for example a new Gmail address) and don't validate it.
Make up a work email on a company domain nobody uses (for example yourname+1@qa-test-4821.com).
"Press back" means the browser back button on web and the system back button on Android.
Test:
On "What’s your work email?", enter the made-up work email and tap "Add work email".
Verify "See if your team's in Expensify" appears.
Tap "Back" at the top of the screen.
Verify "What’s your work email?" appears with the work email still in the field and no error.
Tap "Add work email".
Verify "Please enter a different email than the one you signed up with" doesn't appear and "See if your team's in Expensify" appears.
Web and Android only: press back.
Verify "What’s your work email?" appears with the work email filled in and no message.
Web only: reload the page.
Web and Android only: press back again.
Verify "Please finish the setup questions to start using the app" appears.
Tap "Add work email".
Verify "See if your team's in Expensify" appears.
Tap "Skip".
Verify "What do you want to do today?" appears without "Please finish the setup questions to start using the app".
Why the work exceeded the issue: The issue asked to remove a wrong error after going back to "What’s your work email?". Fixing everything in the report took three PRs: the error itself, the "Add work email" button becoming unresponsive, and back on "See if your team's in Expensify", which did nothing and showed the "finish setup" message on the next screen.
Regressions caused by this PR: None. The last PR's regression period ended on 2026-11-13.
I wrote the diffs for all three. MelvinBot opened them as PRs.
Files touched: 18 across the three PRs (+931 −36): the onboarding work email and private-domain screens, the root navigator's handling of blocked browser back, and tests.
Core flow changes: Onboarding (work email and private-domain steps) and browser back handling in the root navigator (#105493).
Test coverage: 22 new UI and unit tests (3, 5 and 14). Tested on web in wide and narrow layouts for all three PRs, and on the Android app for #102843 and #105493.
Awaiting PaymentAuto-added when associated PR is deployed to productionBugSomething is broken. Auto assigns a BugZero manager.DailyKSv2EngineeringExternalAdded to denote the issue can be worked on by a contributor
Activity
applause-bot commentedon Sep 18, 2026
While Applause doesn't embed attachments for this bug, here are the links for quick view:
https://platform.applause.com/services/links/v1/external/c37b15005ebbd8605530f0c4106550f2599967cb401cefc3bb127cc97d77d212
github-actions commentedon Sep 18, 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:
melvin-bot commentedon Sep 18, 2026
Triggered auto assignment to @amyevans (
DeployBlockerCash), see https://stackoverflowteams.com/c/expensify/questions/9980/ for more details.melvin-bot commentedon Sep 18, 2026
💬 A slack conversation has been started in #expensify-open-source
MelvinBot commentedon Sep 18, 2026
🔍 Investigation Summary
Classification: Undetermined — no PR in the 9.4.84 checklist touches the affected code path (see Verification below). Keeping the existing
DeployBlockerCashlabel until the trigger is confirmed.Causing PR: None identified in the 9.4.84-1 StagingDeployCash checklist (Low confidence for every candidate I evaluated)
Related Issues: [$250] [Due for payment 2026-03-19] Onboarding work email: re-add public domain validation and prevent same-email submission — the issue that introduced the validation rule producing this exact copy
Recommendation: NEEDS INVESTIGATION
Every file in this flow (the onboarding work-email pages, the whole
src/components/Formlibrary,Session/Welcomeactions, and theenstrings) is byte-identical betweenproductionandstaging, so there is no App PR in this release to revert. @amyevans — could we get the tester to re-confirm production and grab a requestID for theAddWorkEmailcall, so we can tell whether the backend response is what changed?Labels: No changes.
DeployBlockerCashkept (no causing App PR ruled in or out, and the issue is reported as not reproducible on production).📋 Detailed Analysis
Evidence
The reported copy has exactly one source in the codebase — the
validate()callback on the onboarding work-email form:App/src/pages/OnboardingWorkEmail/BaseOnboardingWorkEmail.tsx
Lines 157 to 179 in b1f7a98
It is a purely local field error (it is never written to Onyx and the backend cannot set it), so for the tester to see it after typing
sdfasdfasdf@test.com,session.emailmust have become the submitted work email by the time the user navigates back from the security-code screen. That points at theAddWorkEmailround trip mutatingsession.emailrather than at the validation itself.That guard was added in Re-add public domain validation and prevent same-email submission on onboarding work email (merged 2026-03-11) and has been on production for six months, so it is not new in this release.
The secondary symptom ("Add work email button becomes unresponsive") has a separate, plausible frontend cause:
FormProviderreturns early fromsubmitwhenever the Onyx form'sisLoadingis set, andAddWorkEmailsetsisLoading: trueoptimistically with nothing resetting it if the user leaves the screen before the request settles.FormProvidersubmit gate:App/src/components/Form/FormProvider.tsx
Lines 300 to 309 in b1f7a98
AddWorkEmailoptimisticisLoading:App/src/libs/actions/Session/index.ts
Lines 1659 to 1686 in b1f7a98
App/src/libs/actions/Welcome/index.ts
Lines 94 to 102 in b1f7a98
Verification
I compared
production(9.4.81-1) againststaging(9.4.84-1) across the full 597-file diff, and separately checked blob SHAs via the GitHub contents/commits API (which is authoritative and not affected by a shallow clone):src/pages/OnboardingWorkEmail/(all 4 files)src/pages/OnboardingWorkEmailValidation/BaseOnboardingWorkEmailValidation.tsx9842a669d(2026-08-08)9842a669dsrc/components/Form/(all 8 files)src/libs/actions/Session/index.tsa16bad68f(2026-09-11)a16bad68fsrc/libs/actions/Welcome/index.ts752dc5672(2026-07-06)752dc5672src/languages/*onboarding.workEmailValidationError.*Nothing in the import graph of
BaseOnboardingWorkEmailchanged either — the only onboarding-adjacent files in the release diff aresrc/components/OnboardingHelpDropdownButton.tsxandsrc/hooks/useCompleteOnboarding.ts, neither of which is on this code path.Candidates I ruled out after reading their diffs (all touch shared infrastructure but none touch session email, form validation, or onboarding navigation):
OnyxUpdates.ts/User.ts; changes update-chain recovery onlyLocaleContextProvider/IntlStore; date-format only,translateidentity unchangedAddWorkEmailchange, but it merged 2026-09-11 and is already on productionRoot Cause
Not established. Two hypotheses, in order of likelihood:
AddWorkEmail's response (or a Pusher update following it) now leavessession.emailset to the submitted work email before the merge is validated. The frontend guard then fires correctly-but-uselessly on the way back. If confirmed, the frontend should still be hardened: compare against the signup login captured at sign-in rather than livesession.email, and skip the check for an address that is merely pending validation.The stuck submit button is independently reproducible from code reading and should be fixed regardless, by clearing
ONBOARDING_WORK_EMAIL_FORM.isLoadingwhen the work-email screen regains focus.nlemma commentedon Sep 18, 2026
This bug shows up on every PR, so it’s hard to pinpoint the PR that caused it.
MelvinBot commentedon Sep 18, 2026
🤖 Addendum to the investigation above — no App PR in this release can be reverted for this.
Bottom line: every file in this flow (the onboarding work-email pages, the whole
src/components/Formlibrary, and theSession/Welcomeactions) is byte-identical betweenproduction(9.4.81-1) andstaging(9.4.84-1), so there is no causing PR in the 9.4.84 checklist. The full evidence — blob-SHA comparison per file, plus the candidate PRs I read and ruled out — is in the detailed comment.What I'd do next:
AddWorkEmailcall. The error copy is a purely local field error with one producer that compares the typed address to livesession.email— so it can only fire on a different address ifAddWorkEmailhas already mutatedsession.emailto the submitted work email.One fix worth making regardless of the trigger: the stuck "Add work email" button is independently explainable from code.
AddWorkEmailsetsisLoading: trueoptimistically (src/libs/actions/Session/index.ts:1659-1686) andFormProviderreturns early fromsubmitwhile it's set — with nothing clearing it if the user navigates back before the request settles. ClearingONBOARDING_WORK_EMAIL_FORM.isLoadingwhen that screen regains focus fixes the unresponsive button.I also tried to reproduce this on web to settle hypothesis 1, but the test session was unusable (the app client had gone blank before handoff), so that attempt produced no repro data either way.
DeployBlockerCashleft in place — I can't rule a PR in or out, so demoting it isn't mine to call.amyevans, over to you on the production re-test.Next Steps: Reply with
@MelvinBot <your feedback>to refine this analysis.view run · no recording available
amyevans commentedon Sep 18, 2026
I've not been able to reproduce 🤔 . I've tried a couple times, here's one for instance:
Screen.Recording.2026-09-18.at.9.37.50.AM.mov
I'm investigating backend code/logs though to see if anything comes up
amyevans commentedon Sep 18, 2026
Alright turns out it's slightly different steps needed to reproduce:
With that I'm able to reproduce on production:
Screen.Recording.2026-09-18.at.9.58.35.AM.mov
So not a deploy blocker
92 remaining items
[-][$175] "Please enter different email error" displayed when navigate back to Work email modal[/-][+][Due for payment 2026-11-18] [$175] "Please enter different email error" displayed when navigate back to Work email modal[/+]expensify-chore-bot commentedon Nov 18, 2026
Triggered auto assignment to @mallenexpensify (
Awaiting Payment)TaduJR commentedon Nov 18, 2026
[Contributor] The offending PR and associated issue have been commented on, pointing out the bug it caused and why, so the author and reviewers can learn from the mistake.
Link to the comment on the PR: Re-add public domain validation and prevent same-email submission on onboarding work email #84448 (comment)
Link to the comment on the Issue:
[Contributor] If the regression was CRITICAL (e.g. interrupts a core flow) A discussion in #expensify-open-source has been started about whether any other steps should be taken (e.g. updating the PR review checklist) in order to catch this type of bug sooner.
Link to discussion: N/A. Not critical: it only happened after going back from the next step, and the user could still finish onboarding with Skip or a different email.
[Contributor] If it was decided to create a regression test for the bug, please propose the regression test steps using the template below to ensure the same bug will not reach production again.
Regression Test Proposal
Precondition:
yourname+1@qa-test-4821.com).Test:
Do we agree 👍 or 👎
TaduJR commentedon Nov 18, 2026
Price increase request
Mandatory
Proposed amount: $350
Why the work exceeded the issue: The issue asked to remove a wrong error after going back to "What’s your work email?". Fixing everything in the report took three PRs: the error itself, the "Add work email" button becoming unresponsive, and back on "See if your team's in Expensify", which did nothing and showed the "finish setup" message on the next screen.
Regressions caused by this PR: None. The last PR's regression period ended on 2026-11-13.
Optional
Multiple PRs:
Files touched: 18 across the three PRs (+931 −36): the onboarding work email and private-domain screens, the root navigator's handling of blocked browser back, and tests.
Core flow changes: Onboarding (work email and private-domain steps) and browser back handling in the root navigator (#105493).
Test coverage: 22 new UI and unit tests (3, 5 and 14). Tested on web in wide and narrow layouts for all three PRs, and on the Android app for #102843 and #105493.
cc @amyevans
expensify-chore-bot commentedon Nov 18, 2026
Payment Summary
Resolving PRs:
Upwork Job
BugZero Checklist (@mallenexpensify)
mallenexpensify commentedon Nov 19, 2026
Claude posting on behalf of Matt:
Your call. Job price: $250 (TaduJR assigned 2026-09-18).
TaduJR asked for $350. No employee has ruled. The strict rule gives 100%.
The request says three PRs fixed the full report.
MelvinBot wrote all three PRs. No deploy blockers.
Next: pick the amount, press Caps+Y, then pay.
Evidence
PAYPREP v1mallenexpensify commentedon Nov 20, 2026
@amyevans 👀 on the price increase request above plz.
amyevans commentedon Nov 20, 2026
@mallenexpensify 👍 to $350
mallenexpensify commentedon Nov 20, 2026
Payment Summary
Contributor+: @TaduJR paid $350 via Upwork