Skip to content

Quick Open defaults to the previous worktree copy of a file after switching folder location #349761

Description

Testing #349696 · Windows 11 x64 · Code OSS ade7f1b

  1. Open a local Git folder with a committed app.ts. Enable chat.editorWindow.enableWorktree and reload.
  2. Start a Copilot chat with New Worktree selected. Open app.ts from Explorer in that worktree.
  3. Click Folder Location in the status bar and select the original folder. Leave both copies of app.ts on disk.
  4. Press Ctrl+P, type app.ts, and press Enter without changing the selection. Hover the editor tab to check which copy opened.

Expected: Enter opens app.ts from the current folder.

Actual: The previous worktree's copy is selected first under recently opened. The current folder's copy is second under file results. Opening app.ts from Explorer opens the correct copy.

Related: #271606. Neither worktree was deleted here.

With main active, Quick Open selects a recently opened app.ts above the current folder file result. The local path is redacted.

Activity

  1. added 6 commits that reference this issue on Nov 24, 2026
    8c09e05
    b780f84
    b40f95b
    5d7945f
    8c25400
    91ae67e
  2. added a commit that references this issue on Nov 26, 2026
    7d76954
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions