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
Distance - Rate change tooltip reappears after dismissing it and reset app #93512
Version Number: 9.4.7-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:#93103 Email or phone of affected tester (no customers):applausetester+ssndjois2jd1@applause.expensifail.com Issue reported by: Applause Internal Team Bug source: Exploratory - Significant User Experience Deterioration Device used: Mac 26.5 / Chrome App Component: Money Requests
Action Performed:
Precondition:
Log in with Expensifail account.
Enable Distance rates.
Create the following distance rates:
Rate A: $0.67/mi, valid Jan 1 2025 - Dec 31 2025
Rate B: $0.70/mi, valid Jan 1 2026 - Dec 31 2026
Go to staging.new.expensify.com
Go to workspace chat.
Click + > Track distance > Manual.
Enter amount > Next.
Click Date and change date to 2025.
Dismiss the tooltip.
Close the RHP.
Go to Account > Troubleshoot > Clear cache and restart > Reset and refresh.
Repeat Step 2 to 5.
Expected Result:
Rate change tooltip will not reappear after dismissing it and reset app.
Actual Result:
Rate change tooltip reappears after dismissing it and reset app.
👋 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.
Root Cause: The "We updated the rate based on your travel date" tooltip (mileageRateAutoUpdated) is dismissed correctly on the App side, but the dismissal is not being persisted server-side, so it comes back after Clear cache and reset/refresh.
The App stores tooltip dismissals in the dismissedProductTraining NVP. When the user dismisses this tooltip, the App optimistically writes the dismissal and fires the DismissProductTraining write command (Welcome/index.ts:191-207). The gating logic also correctly honors that NVP for this new tooltip (ProductTrainingContext/index.tsx:126-130).
Clear cache and reset/refresh wipes the optimistic local value and re-fetches the NVP from the server. Since the tooltip reappears after that refetch, the server did not store the dismissal for the new name mileageRateAutoUpdated — i.e. the App-side flow is correct, and the persistence gap is on the backend.
This is a backend issue, outside the Expensify/App repo. The newly added product-training name mileageRateAutoUpdated (introduced in #93103) needs to be recognized/allowlisted server-side so the DismissProductTraining write actually persists it. This requires an internal engineer with access to the backend that handles that write command — it cannot be fixed in App.
Investigation details & evidence chain
Repro mechanism:
Change date to 2025 → rate auto-updates → rateAutoUpdated is set on the transaction → tooltip shows.
Clear cache and reset/refresh → local Onyx (including the optimistic dismissal) is wiped and the NVP is re-fetched from the server.
Repeat → rateAutoUpdated becomes true again, and because the server returned no dismissal for mileageRateAutoUpdated, the gating no longer blocks it → tooltip reappears.
Why the App side is ruled out:
Dismissal is wired on the rate field (X button → hideTooltip(true), tap → hideProductTrainingTooltip), both of which call dismissProductTraining (RateField.tsx).
If the server had persisted the dismissal, the refetched NVP would contain mileageRateAutoUpdated and the tooltip would stay hidden. It does not stay hidden → the server did not persist it.
Alternative considered: the reset clearing the pending request queue before the write flushes. Unlikely here — the repro dismisses, closes the RHP, then navigates to Settings → Troubleshoot before resetting, giving the online write ample time to reach the server.
Confidence: Medium. The deduction from App source is strong, but I could not pull staging/production logs to directly confirm the backend dropped the DismissProductTraining write for the new name (no log access in this run). To confirm, an engineer with log access can check the DismissProductTraining command on staging for name=mileageRateAutoUpdated and verify whether the name is allowlisted in the backend handler.
Next Steps: This requires a backend change outside Expensify/App, so please escalate to an internal engineer to register/allowlist the mileageRateAutoUpdated product-training name server-side. Reply with @MelvinBot <your feedback> to refine this analysis.
The newly added product-training name mileageRateAutoUpdated (introduced in #93103) needs to be recognized/allowlisted server-side so the DismissProductTraining write actually persists it. This requires an internal engineer with access to the backend that handles that write command — it cannot be fixed in App.
@rlinoz this would require backend changes if we decide to fix it.
Activity
applause-bot commentedon Jun 13, 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/538461efd20d4c1502a0216cd060850556bf7595add659c7fee8976d2f5640ce
melvin-bot commentedon Jun 13, 2026
You have been assigned to this deploy blocker because you recently merged this PR: #93103
melvin-bot commentedon Jun 13, 2026
💬 A slack conversation has been started in #expensify-open-source
github-actions commentedon Jun 13, 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:
MelvinBot commentedon Jun 13, 2026
Issue Analysis
Root Cause: The "We updated the rate based on your travel date" tooltip (
mileageRateAutoUpdated) is dismissed correctly on the App side, but the dismissal is not being persisted server-side, so it comes back afterClear cache and reset/refresh.The App stores tooltip dismissals in the
dismissedProductTrainingNVP. When the user dismisses this tooltip, the App optimistically writes the dismissal and fires theDismissProductTrainingwrite command (Welcome/index.ts:191-207). The gating logic also correctly honors that NVP for this new tooltip (ProductTrainingContext/index.tsx:126-130).Clear cache and reset/refreshwipes the optimistic local value and re-fetches the NVP from the server. Since the tooltip reappears after that refetch, the server did not store the dismissal for the new namemileageRateAutoUpdated— i.e. the App-side flow is correct, and the persistence gap is on the backend.This is a backend issue, outside the
Expensify/Apprepo. The newly added product-training namemileageRateAutoUpdated(introduced in #93103) needs to be recognized/allowlisted server-side so theDismissProductTrainingwrite actually persists it. This requires an internal engineer with access to the backend that handles that write command — it cannot be fixed in App.Investigation details & evidence chain
Repro mechanism:
rateAutoUpdatedis set on the transaction → tooltip shows.API.write(DISMISS_PRODUCT_TRAINING, {name: 'mileageRateAutoUpdated', ...}).Clear cache and reset/refresh→ local Onyx (including the optimistic dismissal) is wiped and the NVP is re-fetched from the server.rateAutoUpdatedbecomes true again, and because the server returned no dismissal formileageRateAutoUpdated, the gating no longer blocks it → tooltip reappears.Why the App side is ruled out:
hideTooltip(true), tap →hideProductTrainingTooltip), both of which calldismissProductTraining(RateField.tsx).DismissedProductTraining.ts) and the gate reads it viaisProductTrainingElementDismissed(TooltipUtils.ts).mileageRateAutoUpdatedand the tooltip would stay hidden. It does not stay hidden → the server did not persist it.Alternative considered: the reset clearing the pending request queue before the write flushes. Unlikely here — the repro dismisses, closes the RHP, then navigates to Settings → Troubleshoot before resetting, giving the online write ample time to reach the server.
Confidence: Medium. The deduction from App source is strong, but I could not pull staging/production logs to directly confirm the backend dropped the
DismissProductTrainingwrite for the new name (no log access in this run). To confirm, an engineer with log access can check theDismissProductTrainingcommand on staging forname=mileageRateAutoUpdatedand verify whether the name is allowlisted in the backend handler.Next Steps: This requires a backend change outside
Expensify/App, so please escalate to an internal engineer to register/allowlist themileageRateAutoUpdatedproduct-training name server-side. Reply with@MelvinBot <your feedback>to refine this analysis.melvin-bot commentedon Jun 13, 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.
melvin-bot commentedon Jun 13, 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.
Krishna2323 commentedon Jun 15, 2026
@rlinoz this would require backend changes if we decide to fix it.
rlinoz commentedon Jun 15, 2026
Demoting, minor UI issue, and I think it should fix the way it is working.
rlinoz commentedon Jun 15, 2026
asking here https://expensify.slack.com/archives/C07HPDRELLD/p1781522966651399?thread_ts=1780942730.538109&cid=C07HPDRELLD
rlinoz commentedon Jun 15, 2026
Expected behavior.