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
Agents - Back arrow leads to Edit agent page instead of Agents page #90872
Version Number: v9.3.75-1 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:#89802 Email or phone of affected tester (no customers):applausetester+ag150526@applause.expensifail.com Issue reported by: Applause Internal Team Bug source: Exploratory - Critical User Impact Device used: Windows 11/ Chrome, Samsung S23FE/ Android 16, iPhone 13 Mini/ iOS 26.5 App Component: Other
Action Performed:
Open the Expensify app
Log in with an Expensifail account
Go to Account > Agents
Tap on any existing agent
Tap on Delete agent, and confirm the deletion
Tap the back arrow at the top left (browser back arrow in Web)
👋 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.
Classification: Frontend bug Causing PR: #89802 - "feat: edit agent functionality" by @NicolasBonet (High confidence) Related Issues: #89355
Recommendation: REVERT
The bug is clearly introduced by PR #89802 and is isolated to the new agent editing/deletion flow. Reverting this PR will resolve the navigation regression without impacting any other functionality.
Assigned: @NicolasBonet (PR author), @ShridharGoel@puneetlath@yuwenmemon (approving reviewers) from highest-confidence causing PR only Labels: DeployBlockerCash kept (Frontend bug - App PR caused this). DeployBlocker not present, no change needed.
Detailed Analysis
Evidence
The issue was first reported against version v9.3.75-1, which is the current staging version.
The bug is staging-only (marked "N/A - new feature, doesn't exist in prod"), consistent with a regression introduced by a PR in the current staging deploy.
PR feat: edit agent functionality #89802 ("feat: edit agent functionality") introduced the Edit Agent page and the deleteAgent action, merged on 2026-05-14, which is the exact feature area this bug is about.
PR feat: edit agent functionality #89802 confirms it modifies src/libs/actions/Agent.ts (133 additions, 1 deletion) and adds src/pages/settings/Agents/EditAgentPage.tsx.
Root Cause
In src/libs/actions/Agent.ts at line 285, the deleteAgent function navigates to the agents list using:
Navigation.navigate(ROUTES.SETTINGS_AGENTS);
Navigation.navigate pushes a new screen onto the navigation stack rather than dismissing/popping the current Edit Agent screen. As a result, the Edit Agent page remains in the navigation history. After deletion, the user is taken to the Agents list, but pressing the back arrow pops back to the now-stale Edit Agent page instead of exiting the settings flow or returning to the Agents list cleanly. The fix would need to use an appropriate navigation method (such as Navigation.dismissModal or a goBack to the agents route) that removes the Edit Agent page from the stack upon successful deletion.
The solution for this issue has been 🚀 deployed to production 🚀 in version 9.3.79-4 and is now subject to a 7-day regression period 📆. Here is the list of pull requests that resolve this issue:
@ShridharGoel The PR fixing this issue has been merged! The following checklist (instructions) will need to be completed before the issue can be closed. Please copy/paste the BugZero 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]
changed the title [-][Due for payment 2026-05-29] Agents - Back arrow leads to Edit agent page instead of Agents page[/-][+]Agents - Back arrow leads to Edit agent page instead of Agents page[/+]on May 29, 2026
Activity
melvin-bot commentedon May 16, 2026
@yuwenmemon recently merged #89802, but they are OOO right now, so I'll auto-assign someone else.
melvin-bot commentedon May 16, 2026
Triggered auto assignment to @Gonals (
DeployBlockerCash), see https://stackoverflowteams.com/c/expensify/questions/9980/ for more details.melvin-bot commentedon May 16, 2026
💬 A slack conversation has been started in #expensify-open-source
github-actions commentedon May 16, 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:
OSBotify commentedon May 16, 2026
Investigation Summary
Classification: Frontend bug
Causing PR: #89802 - "feat: edit agent functionality" by @NicolasBonet (High confidence)
Related Issues: #89355
Recommendation: REVERT
The bug is clearly introduced by PR #89802 and is isolated to the new agent editing/deletion flow. Reverting this PR will resolve the navigation regression without impacting any other functionality.
Assigned: @NicolasBonet (PR author), @ShridharGoel @puneetlath @yuwenmemon (approving reviewers) from highest-confidence causing PR only
Labels:
DeployBlockerCashkept (Frontend bug - App PR caused this).DeployBlockernot present, no change needed.Detailed Analysis
Evidence
v9.3.75-1, which is the current staging version.deleteAgentaction, merged on 2026-05-14, which is the exact feature area this bug is about.Verification
src/libs/actions/Agent.ts— thedeleteAgentfunction introduced in PR feat: edit agent functionality #89802.src/libs/actions/Agent.ts(133 additions, 1 deletion) and addssrc/pages/settings/Agents/EditAgentPage.tsx.Root Cause
In
src/libs/actions/Agent.tsat line 285, thedeleteAgentfunction navigates to the agents list using:Navigation.navigatepushes a new screen onto the navigation stack rather than dismissing/popping the current Edit Agent screen. As a result, the Edit Agent page remains in the navigation history. After deletion, the user is taken to the Agents list, but pressing the back arrow pops back to the now-stale Edit Agent page instead of exiting the settings flow or returning to the Agents list cleanly. The fix would need to use an appropriate navigation method (such asNavigation.dismissModalor a goBack to the agents route) that removes the Edit Agent page from the stack upon successful deletion.27 remaining items
melvin-bot commentedon May 22, 2026
The solution for this issue has been 🚀 deployed to production 🚀 in version 9.3.79-4 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-05-29. 🎊
For reference, here are some details about the assignees on this issue:
melvin-bot commentedon May 22, 2026
@ShridharGoel The PR fixing this issue has been merged! The following checklist (instructions) will need to be completed before the issue can be closed. Please copy/paste the BugZero 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]
melvin-bot commentedon May 26, 2026
@ShridharGoel Whoops! This issue is 2 days overdue. Let's get this updated quick!
NicolasBonet commentedon May 27, 2026
Not overdue
melvin-bot commentedon May 28, 2026
Triggered auto assignment to @mallenexpensify (
Awaiting Payment)melvin-bot commentedon May 28, 2026
Payment Summary
Upwork Job
BugZero Checklist (@mallenexpensify)
ShridharGoel commentedon May 29, 2026
Payment not needed here, can be closed
[-][Due for payment 2026-05-29] Agents - Back arrow leads to Edit agent page instead of Agents page[/-][+]Agents - Back arrow leads to Edit agent page instead of Agents page[/+]