Repository navigation
Conversation
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Disable separate-worktree checkout when a same-repository PR's branch is already checked out in the selected project folder. Keep In this repository available and show Checked out here on the disabled option.
Fixes #42402
Each menu opening starts a branch-only subscription and follows HEAD changes while the menu stays open. Worktree checkout waits for the first branch result. PRs without a known same-repository head still go through the server's existing checkout check.
Verification
vp run check:changedpassed on26d23193.Before and after
Review evidence
Tier 1. Four web files reuse the existing branch subscription and server guard. Opening the menu starts an independent subscription that follows HEAD without starting remote status polling. An external checkout can briefly outrun the filesystem watcher, so the server remains authoritative when the action runs. The checkout menu has never owned the separate stacked-PR ref list.
The supplemental server test failed during collection. The desktop reproduction exercised the server guard on main.
Revert this PR to restore the previous menu behavior.