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-26] Distance - No error when creating distance with invalid waypoints from reuse route #103263
Version Number: 9.5.4-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:#102258 Email or phone of affected tester (no customers):sodjinosdjiojiosjio@gmail.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:
Go to staging.new.expensify.com
Go to workspace chat.
Go offline.
Create a distance expense with invalid waypoints.
Go online.
Wait for the expense to be created.
Click + > Track distance > Map.
Click Reuse route.
Select the route with invalid waypoints.
Click Create expense.
Open the expense.
Expected Result:
In Step 10, error should show up when creating distance with invalid waypoints.
Actual Result:
In Step 10, error does not show up when creating distance with invalid waypoints. User can proceed with invalid waypoints.
In Step 11, there is no error on the expense preview.
👋 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.
Causing PR:Add Reuse route to the distance Map tab (Expensify/App#102258), by ShridharGoel. It merged on 2026-10-06 and is in the 9.5.4-0 checklist. No other PR in this release touches Reuse route. Confidence: high.
Recommendation: revert. The feature is new, has no beta check, and the PR is also named in two other open blockers. Fixing forward would take several separate fixes.
Root cause: Selecting a reused route sets isReusedRoute: true. useFetchRoute then skips getRoute, so errorFields.route is never set. The new Reuse route page also skips the Map step's route-error check. Confirmation blocks submit only when there is a route error, so invalid waypoints go through.
Investigation details
All links point to merge commit 8b3fdd9a.
Invalid waypoints are saved. Offline, the waypoint page saves the typed address without coordinates and expects the backend to fill them in later. If the address can't be resolved, the expense keeps those waypoints. Reuse route later returns them.
Selecting the route sets the flag.ReusableDistanceRoutes.ts:47-53 copies the waypoints and distance into the draft and sets isReusedRoute: true. The route type has no field that says whether the route is valid.
Stop skipping getRoute for reused routes, or set isReusedRoute only when every waypoint has coordinates and the distance is above 0.
Run the Map step's checks on the Reuse route page before calling navigateToNextStep().
A revert also removes: the web map crash fix in MapViewImpl.web.tsx, and the waypoint clean-up in useWaypointItems and updateWaypoints. Re-land these with the feature.
I didn't run the app. The code path alone shows that the reuse flow turns off the only check that produces this error.
Next Steps: Revert the PR above, or reply with @MelvinBot <your feedback> to refine this analysis.
P.S. Is everyone reading this sure this is really a near-term priority? Be brave: if you disagree, go ahead and close it out. If someone disagrees, they'll reopen it, and if they don't: one less thing to do!
changed the title [-]Distance - No error when creating distance with invalid waypoints from reuse route[/-][+][Due for payment 2026-11-26] Distance - No error when creating distance with invalid waypoints from reuse route[/+]on Nov 19, 2026
The solution for this issue has been 🚀 deployed to production 🚀 in version 9.5.42-2 and is now subject to a 7-day regression period 📆. Here is the list of pull requests that resolve this issue:
If no regressions arise, payment will be issued on 2026-11-26. 🎊
The following checklist (instructions) will need to be completed before the issue can be closed. Please copy/paste the Contributor+ Checklist from here into a new comment on this GH and complete it. If you have the K2 extension, you can simply click: [this button]. If no checklist is needed for this issue, you can click: [no checklist button]
Not able to reproduce because, after starting a new Track distance with an enabled internet connection, “Reuse route” doesn’t appear or appears with only valid routes:
Windows 10/Chrome/Build v9.5.52-1
Activity
applause-bot commentedon Oct 6, 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/ddaa5de97f941cff32138946e1fd7a3a13462f4f8faf0ef91249638b52ef0aac
melvin-bot commentedon Oct 6, 2026
You have been assigned to this deploy blocker because you recently merged this PR: #102258
melvin-bot commentedon Oct 6, 2026
@Gonals @Pujan92 you have been assigned to this deploy blocker because you reviewed the offending PR: #102258
melvin-bot commentedon Oct 6, 2026
@ShridharGoel you have been assigned to this deploy blocker because you authored the offending PR: #102258
melvin-bot commentedon Oct 6, 2026
💬 A slack conversation has been started in #expensify-open-source
github-actions commentedon Oct 6, 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 Oct 6, 2026
Deploy Blocker Investigation
Causing PR: Add Reuse route to the distance Map tab (
Expensify/App#102258), byShridharGoel. It merged on 2026-10-06 and is in the 9.5.4-0 checklist. No other PR in this release touches Reuse route. Confidence: high.Recommendation: revert. The feature is new, has no beta check, and the PR is also named in two other open blockers. Fixing forward would take several separate fixes.
Root cause: Selecting a reused route sets
isReusedRoute: true.useFetchRoutethen skipsgetRoute, soerrorFields.routeis never set. The new Reuse route page also skips the Map step's route-error check. Confirmation blocks submit only when there is a route error, so invalid waypoints go through.Investigation details
All links point to merge commit
8b3fdd9a.ReusableDistanceRoutes.ts:47-53copies the waypoints and distance into the draft and setsisReusedRoute: true. The route type has no field that says whether the route is valid.useFetchRoute.ts:44adds!transaction?.isReusedRoutetoshouldFetchRoute. Confirmation uses the same hook (IOURequestStepConfirmation.tsx:627), so the fetch is skipped there too.IOURequestStepDistanceMap.tsx:319-329).IOURequestStepReuseRoute.tsx:143-161callsnavigateToNextStep()as soon as the draft is written.if (!!routeError ...)(useConfirmationValidation.ts:188), androuteErrorcomes fromerrorFields.route(useConfirmationListData.ts:152). The draft has no stored route, so it also counts as "pending route" (useDistanceRequestState.ts:127). That skips the amount check (useConfirmationValidation.ts:318).The expense preview shows no error because the App never records a route error. I didn't check what the server does with the request.
Other open blockers from the same PR:
If you fix forward instead, the minimum is:
getRoutefor reused routes, or setisReusedRouteonly when every waypoint has coordinates and the distance is above 0.navigateToNextStep().A revert also removes: the web map crash fix in
MapViewImpl.web.tsx, and the waypoint clean-up inuseWaypointItemsandupdateWaypoints. Re-land these with the feature.I didn't run the app. The code path alone shows that the reuse flow turns off the only check that produces this error.
Next Steps: Revert the PR above, or reply with
@MelvinBot <your feedback>to refine this analysis.view run
18 remaining items
expensify-chore-bot commentedon Nov 17, 2026
This issue has not been updated in over 15 days. @Pujan92, @Gonals, @ShridharGoel eroding to Monthly issue.
P.S. Is everyone reading this sure this is really a near-term priority? Be brave: if you disagree, go ahead and close it out. If someone disagrees, they'll reopen it, and if they don't: one less thing to do!
[-]Distance - No error when creating distance with invalid waypoints from reuse route[/-][+][Due for payment 2026-11-26] Distance - No error when creating distance with invalid waypoints from reuse route[/+]melvin-bot commentedon Nov 19, 2026
@Pujan92
The solution for this issue has been 🚀 deployed to production 🚀 in version 9.5.42-2 and is now subject to a 7-day regression period 📆. Here is the list of pull requests that resolve this issue:
If no regressions arise, payment will be issued on 2026-11-26. 🎊
The following checklist (instructions) will need to be completed before the issue can be closed. Please copy/paste the Contributor+ Checklist from here into a new comment on this GH and complete it. If you have the K2 extension, you can simply click: [this button]. If no checklist is needed for this issue, you can click: [no checklist button]
IuliiaHerets commentedon Nov 22, 2026
Not able to reproduce because, after starting a new Track distance with an enabled internet connection, “Reuse route” doesn’t appear or appears with only valid routes:
Windows 10/Chrome/Build v9.5.52-1
2026-11-22.14-35-34.mp4
2026-11-22.14-36-39.mp4