Skip to content

File search recents are shared across browse revisions #1387

Description

@DivyamTalwar

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions