[$175] fix: Stop the Inbox tab from reopening the previous account's report after a copilot switch

Open
#106,042 6 comments 1 reaction 3 assignees View on GitHub

Maintainers usually reply within 1 day

@jayeshmangwani is already working on this.

Since Nov 4, 2026.

Assessment

This issue has not been assessed yet.

Description

Bug External Reviewing Weekly

Problem

When a copilot switches accounts, the app clears Onyx but keeps the navigation state of every tab except Search. The Inbox tab still holds the report the previous account had open, so tapping Inbox after the switch reopens it. OpenReport returns 403 for the new account and the user sees "Hmm... it's not here".

Solution

Every copilot switch, in either direction, now clears all preserved navigator states and the last visited Workspaces and Settings tab paths. It then resets the root to the Settings tab (or Home when copiloting from an agent's own pages). ONBOARDING_MODAL_NAVIGATOR is now registered in every session, so browser back works after the reset, and OnboardingGuard redirects copilot and supportal sessions away from onboarding routes.

PR

https://github.com/Expensify/App/pull/105911

Issue OwnerCurrent Issue Owner: @BartekObudzinski
Upwork Automation - Do Not Edit
Dominant language
TypeScript
Stars
5k
Forks
4k
Avg merge
3d 7h
Merged PRs (30d)
561

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from Expensify/App

All issues in Expensify/App

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.