Skip to content

Agents - Back arrow leads to Edit agent page instead of Agents page #90872

Closed

Description

@jponikarchuk

If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!


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:

  1. Open the Expensify app
  2. Log in with an Expensifail account
  3. Go to Account > Agents
  4. Tap on any existing agent
  5. Tap on Delete agent, and confirm the deletion
  6. Tap the back arrow at the top left (browser back arrow in Web)

Expected Result:

The back arrow leads to the Agents page.

Actual Result:

The back arrow leads to the Edit agent page.

Workaround:

Unknown

Platforms:

  • Android: App
  • Android: mWeb Chrome
  • iOS: App
  • iOS: mWeb Safari
  • iOS: mWeb Chrome
  • Windows: Chrome
  • MacOS: Chrome / Safari

Screenshots/Videos

Video.mp4

View all open jobs on GitHub

Issue OwnerCurrent Issue Owner: @mallenexpensify
Upwork Automation - Do Not Edit

Activity

  1. added
    DeployBlockerCash
    Bug
    on May 16, 2026
  2. melvin-bot commented on May 16, 2026

    @melvin-bot

    @yuwenmemon recently merged #89802, but they are OOO right now, so I'll auto-assign someone else.

  3. melvin-bot commented on May 16, 2026

    @melvin-bot

    Triggered auto assignment to @Gonals (DeployBlockerCash), see https://stackoverflowteams.com/c/expensify/questions/9980/ for more details.

  4. melvin-bot commented on May 16, 2026

    @melvin-bot

    💬 A slack conversation has been started in #expensify-open-source

  5. github-actions commented on May 16, 2026

    @github-actions
    Contributor

    👋 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:

    1. Identify the pull request that introduced this issue and revert it.
    2. Find someone who can quickly fix the issue.
    3. Fix the issue yourself.
  6. OSBotify commented on May 16, 2026

    @OSBotify
    Contributor

    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: 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.
    • melvin-bot already flagged PR feat: edit agent functionality #89802 as the likely cause in the first comment on the issue.
    • 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.

    Verification

    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.

  7. 27 remaining items

  8. melvin-bot commented on May 22, 2026

    @melvin-bot

    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:

  9. melvin-bot commented on May 22, 2026

    @melvin-bot

    @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]

  10. melvin-bot commented on May 26, 2026

    @melvin-bot

    @ShridharGoel Whoops! This issue is 2 days overdue. Let's get this updated quick!

  11. NicolasBonet commented on May 27, 2026

    @NicolasBonet
    Contributor

    Not overdue

  12. added
    Awaiting Payment
    on May 28, 2026
  13. melvin-bot commented on May 28, 2026

    @melvin-bot

    Triggered auto assignment to @mallenexpensify (Awaiting Payment)

  14. melvin-bot commented on May 28, 2026

    @melvin-bot

    Payment Summary

    Upwork Job

    BugZero Checklist (@mallenexpensify)

    • I have verified the correct assignees and roles are listed above and updated the necessary manual offers
    • I have verified that there are no duplicate or incorrect contracts on Upwork for this job (https://www.upwork.com/ab/applicants/2057227338762059291/hired)
    • I have verified the PR was not reverted
    • I have applied any discounts due to bugs/regressions introduced by this PR
    • I have paid out the Upwork contracts or cancelled the ones that are incorrect
    • I have verified the payment summary above is correct
  15. ShridharGoel commented on May 29, 2026

    @ShridharGoel
    Contributor

    Payment not needed here, can be closed

  16. 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
  17. removed
    Awaiting Payment
    on May 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

BugDailyEngineering

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions