fix(worktree): track explicit remote-only branch (#31645)

* fix(worktree): track explicit remote branch

* test(worktree): cover remote branch path retry

* fix(worktree): resolve cached remote branches canonically

* fix(git): retain commit validation in bounded ref probes

* fix(worktree): preserve selected remote identity during creation

* test(worktree): count cached resolver Git work during path retries

* Fix branch intent state in composer source fixture

* Make Git and daemon regression fixtures portable

* Use the selected base for existing branch creation

---------

Co-authored-by: Brennan Benson <79079362+brennanb2025@users.noreply.github.com>
This commit is contained in:
Pr1p
2026-10-26 13:13:56 -07:00
committed by GitHub
co-authored by Brennan Benson
parent 161927f562
commit fdcf193cd4
30 changed files with 434 additions and 73 deletions
+2
View File
@@ -97,6 +97,8 @@ export type CreateWorktreeArgs = {
compareBaseRef?: string
/** Existing local branches may contain slashes that the filesystem-safe worktree name cannot. */
branchNameOverride?: string
/** Only an explicit existing-branch pick opts out of new-branch allocation. */
branchIntent?: 'open-existing'
setupDecision?: SetupDecision
/** Per-create choice; omitted callers use the execution host's saved default. */
setupOnly?: boolean