Clicking "checkout" on a PR from a branch already in a worktree fails
Maintainer antworten meist innerhalb von 1 Tag
Dieses Issue hat noch niemand übernommen.
Bewertung
- Schwierigkeit
- 4/5
- Geschätzter Aufwand
- 3-5 Tage
- Anfängerfreundlichkeit
- 48/100
- Issue-Typ
- Feature
- Klarheit
- Größtenteils klar
- Aktivitätsstatus
- Aktiv
- Tech-Stack
- git, github, typescript, vscode
- Bereich
- developer-experience, tooling
Rechercherichtung
Start by tracing the pull request checkout command in the VS Code extension and how it handles branches already checked out in a worktree. The issue suggests offering a separate local review branch with the PR’s remote as upstream; inspect existing checkout options and tests to see how that flow fits. Done means reviewing a PR whose branch is already in another worktree can proceed through the proposed option.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Beschreibung
- Extension version: 0.174.0
- VSCode Version: 1.144.0
- OS: macOS Sequoia 15.8.1
- Repository Clone Configuration (single repository/fork of an upstream repository): single repository
- GitHub Product (GitHub.com/GitHub Enterprise version x.x.x): Github.com
Steps to Reproduce:
- Agentic workflows often checkout a branch locally in a worktree and push.
- Create a PR with the new branch
- From your main project clone, try to "checkout" the PR to review
The dialog shows:
Error switching to pull request: Failed to execute git
In the output, we see:
2026-11-04 09:03:03.760 [info] fatal: '<branch>' is already used by worktree at '<path>'
Problem 1: this shows as an [info] message, so it's easy to miss
Problem 2: with agentic workflows where reviewing multiple PRs is more common, there's friction in trying to find the appropriate local worktree and open VSCode in a new window.
A simple fix would be to provide an option to always open a new local branch just for the PR review with the remote as the upstream, e.g. gh/pr-local/NNN -> feat-1234. Then there's much less likelihood of a collision with agent worktrees.
- Vorherrschende Sprache
- TypeScript
- Sterne
- 2.6k
- Forks
- 811
- Ø Merge
- 1 T. 8 Std.
- Gemergte PRs (30 T.)
- 70
Entwicklungsumgebung
Dieses Projekt bietet weder Dev-Container noch Dockerfile noch Beitragsleitfaden – die Einrichtung liegt bei Ihnen. Beginnen Sie mit der README; die allgemeinen Schritte stehen in unserem Leitfaden für den ersten Beitrag.
Erste Schritte
- Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
- Forken Sie das Repository und arbeiten Sie in einem Branch.
- Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.
Mehr aus microsoft/vscode-pull-request-github
-
Cannot open PR: null review comment commit causes TypeError (reading 'oid')Evtl. vergeben Ein verknüpfter Pull Request ist offen oder bereits gemergt. Offen
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 78/100
microsoft/vscode-pull-request-github#9159 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Merging from the PR description tab shows "Error refreshing pull request description: Webview is disposed"Evtl. vergeben @alexr00 hat das vor 3 Tagen übernommen. Offen
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 74/100
microsoft/vscode-pull-request-github#9143 · 1 Reaktion · 2 zugewiesene Personen ·
Maintainer antworten meist innerhalb von 1 Tag
-
Honor open-to-side placement when opening GitHub PR and issue linksEvtl. vergeben @alexr00 hat das vor 3 Tagen übernommen. Offenfeature-request
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 82/100
microsoft/vscode-pull-request-github#9072 · 1 Reaktion · 2 zugewiesene Personen ·
Maintainer antworten meist innerhalb von 1 Tag
-
[github.dev] 0.176.0: Pull Requests view missing and PR info fails to open (0.174.0 works)Evtl. vergeben @alexr00 hat das heute übernommen. Offenbug candidate
microsoft/vscode-pull-request-github#9162 · 2 Kommentare · 5 Reaktionen · 1 zugewiesene Person ·
Maintainer antworten meist innerhalb von 1 Tag
-
Resolve Conflicts doesn’t open in VS Code Desktop with a GitHub Remote RepositoryEvtl. vergeben @alexr00 hat das vor 2 Tagen übernommen. Offen
microsoft/vscode-pull-request-github#9158 · 1 Kommentar · 1 Reaktion · 2 zugewiesene Personen ·
Maintainer antworten meist innerhalb von 1 Tag
Alle Issues in microsoft/vscode-pull-request-github
Ähnliche Issues
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 78/100
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 73/100
hugomrdias/playwright-test#753 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Review view: Daily/Weekly Review header buttons use the app-wide toolbar control styleEvtl. vergeben @colherdesopa hat das heute übernommen. Offen
Schwierigkeit 1/5 1-3 Stunden Anfängerfreundlichkeit 90/100
dongdongbh/Mindwtr#1515 ·
Maintainer antworten meist innerhalb von 1 Tag
-
pending-triage
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 70/100
kirodotdev/Kiro#12301 ·
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 83/100