Problem
The browse file-search dialog stores recently opened files under a key scoped only by repository name. When a user switches branches or revisions, recents from another revision can still appear.
Reproduction
Open file search for a repo on one revision, select a file, then switch to another branch or revision in the same repo and open file search again.
Expected
Recently opened files should be scoped to the revision context that can resolve those paths.
Actual
The dialog can show repo-level recents from a different revision. Selecting one navigates with the current revision, which can point to a path that does not exist there.
Impact
Users browsing multiple branches can get stale file suggestions and confusing dead-end navigation.
Problem
The browse file-search dialog stores recently opened files under a key scoped only by repository name. When a user switches branches or revisions, recents from another revision can still appear.
Reproduction
Open file search for a repo on one revision, select a file, then switch to another branch or revision in the same repo and open file search again.
Expected
Recently opened files should be scoped to the revision context that can resolve those paths.
Actual
The dialog can show repo-level recents from a different revision. Selecting one navigates with the current revision, which can point to a path that does not exist there.
Impact
Users browsing multiple branches can get stale file suggestions and confusing dead-end navigation.