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
[Bug]: Reopening a closed pull request tab from another route leaks foreign search params and loses saved PR filters #42874
Reopening a closed pull request tab (Mod+Shift+T / Reopen Closed View) from any other route—such as /issues or a chat thread—leaks the current route's URL search params into /pull-requests and drops the user's saved pull request list preferences.
Steps to reproduce
Open /pull-requests, change filters (for example involvement=reviewing and state=merged, which are saved in localStorage), open a PR tab, and close it (× or Mod+W).
Navigate to /issues?who=assigned&status=closed&q=login&host=linear.app&tracker=linear&scope=ENG&key=ENG-12 (or any non-/pull-requests route).
Press Mod+Shift+T (Reopen Closed View).
Expected behavior
T3 Code navigates to /pull-requests using the saved PR list preferences (involvement=reviewing, state=merged) plus the reopened PR's selection params, without carrying over search params from /issues.
Actual behavior
T3 Code navigates to /pull-requests?who=assigned&status=closed&q=login&host=linear.app&tracker=linear&scope=ENG&key=ENG-12&involvement=all&state=open&repository=...&number=...:
Saved PR list preferences are lost and reset to involvement=all, state=open.
Shared param names (q, host) from /issues actively filter the PR list (e.g. host=linear.app & q=login show an empty PR list).
In apps/web/src/components/ReopenClosedViewShortcut.tsx, globalPullRequests passes search: (previous) => pullRequestsSearchForRestore(previous, selected), where TanStack Router supplies the current route's search as previous, unlike the adjacent globalIssues branch (issuesSearchForRestore(readIssueListPreferences(), selected)).
Activity