Clicking "checkout" on a PR from a branch already in a worktree fails
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 48/100
- issue の種類
- 機能追加
- 明瞭さ
- おおむね明確
- 活発さ
- 活発
- 技術スタック
- git, github, typescript, vscode
調査の方向性
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.
索引モデルが issue の本文から書いたものです。
説明
- 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.
- 主要言語
- TypeScript
- スター
- 2.6k
- フォーク
- 811
- 平均マージ
- 1日 8時間
- マージ済み PR(30日)
- 70
環境構築
このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
microsoft/vscode-pull-request-github のほかの issue
-
Cannot open PR: null review comment commit causes TypeError (reading 'oid')対応中かも このイシューにリンクされたプルリクエストがオープン中、またはマージ済みです。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
microsoft/vscode-pull-request-github#9159 ·
メンテナーはふだん 1 日以内に返信
-
Merging from the PR description tab shows "Error refreshing pull request description: Webview is disposed"対応中かも @alexr00 が 3 日前に担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 74/100
microsoft/vscode-pull-request-github#9143 · リアクション 1 件 · 担当者 2 名 ·
メンテナーはふだん 1 日以内に返信
-
Honor open-to-side placement when opening GitHub PR and issue links対応中かも @alexr00 が 3 日前に担当しました。 オープンfeature-request
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
microsoft/vscode-pull-request-github#9072 · リアクション 1 件 · 担当者 2 名 ·
メンテナーはふだん 1 日以内に返信
-
[github.dev] 0.176.0: Pull Requests view missing and PR info fails to open (0.174.0 works)対応中かも @alexr00 が今日担当しました。 オープンbug candidate
microsoft/vscode-pull-request-github#9162 · コメント 2 件 · リアクション 5 件 · 担当者 1 名 ·
メンテナーはふだん 1 日以内に返信
-
Resolve Conflicts doesn’t open in VS Code Desktop with a GitHub Remote Repository対応中かも @alexr00 が 2 日前に担当しました。 オープン
microsoft/vscode-pull-request-github#9158 · コメント 1 件 · リアクション 1 件 · 担当者 2 名 ·
メンテナーはふだん 1 日以内に返信
microsoft/vscode-pull-request-github の issue をすべて見る
似ている issue
-
area: web bug
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
kinqsradio/orbyn-engineering#227 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 85/100
joeldesante/TurfBuilder#258 ·
メンテナーはふだん 1 日以内に返信
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
ncecere/open-mcp-portal#85 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 63/100
loathers/garbage-collector#2865 ·
メンテナーはふだん 1 日以内に返信
-
test-reliability
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
Azure/azure-sdk-for-js#40672 · リアクション 1 件 ·
メンテナーはふだん 1 日以内に返信