Skip to content

GitHub issue and pull request attachment uses the wrong repository #334603

Closed

Description

Type of issue

Bug

Reproduction

  1. Open a multi-root workspace containing two local GitHub repositories.
  2. In editor Chat, choose Add Context... and then Issue... or Pull Request....
  3. Select one of the workspace folders.
  4. Repeat from the Agents window new-session composer with a local folder selected.

Actual behavior

  • Editor Chat can skip the workspace-folder picker when Git repository metadata has not finished loading.
  • After selecting a folder, the Issue/Pull Request search can be unscoped and list results from other repositories.
  • Git worktree folders can fail repository resolution because .git is a pointer file rather than a directory.
  • In the Agents window, attaching an issue can hang while waiting for unresolved repository HEAD state, and pull request attachment can use an unrelated repository.

Expected behavior

  • A multi-root editor workspace asks which workspace folder to use before opening the Issue/Pull Request search.
  • The subsequent search is scoped to the selected folder's GitHub repository, including for Git worktrees and while normal Git discovery is incomplete.
  • The Agents window attachment flow opens promptly and scopes the search to the resolved selected workspace repository.

Activity

  1. added
    bug
    on Sep 4, 2026
  2. added
    unreleased
    insiders-released
    and removed
    unreleased
    on Sep 4, 2026
  3. locked and limited conversation to collaborators on Oct 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

buginsiders-released

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions