fix(core): always start worktrees as detached (#26931)

This commit is contained in:
James Long
2026-05-11 16:22:25 -04:00
committed by GitHub
parent 42a0453945
commit 9067218b74
7 changed files with 101 additions and 47 deletions

View File

@@ -1398,7 +1398,7 @@ export type WorktreeCreateInput = {
export type Worktree = {
name: string
branch: string
branch?: string
directory: string
}
@@ -1795,9 +1795,9 @@ export type Workspace = {
id: string
type: string
name: string
branch: string | null
directory: string | null
extra: unknown | null
branch?: string | null
directory?: string | null
extra?: unknown | null
projectID: string
timeUsed: number | "NaN" | "Infinity" | "-Infinity" | "Infinity" | "-Infinity" | "NaN"
}
@@ -2566,7 +2566,7 @@ export type EventWorktreeReady = {
type: "worktree.ready"
properties: {
name: string
branch: string
branch?: string
}
}
@@ -6772,7 +6772,7 @@ export type ExperimentalWorkspaceCreateData = {
body?: {
id?: string
type: string
branch: string | null
branch?: string | null
extra?: unknown | null
}
path?: never

View File

@@ -8540,7 +8540,7 @@
]
}
},
"required": ["type", "branch"],
"required": ["type"],
"additionalProperties": false
}
}
@@ -12803,7 +12803,7 @@
"type": "string"
}
},
"required": ["name", "branch", "directory"],
"required": ["name", "directory"],
"additionalProperties": false
},
"WorktreeRemoveInput": {
@@ -14027,7 +14027,7 @@
]
}
},
"required": ["id", "type", "name", "branch", "directory", "extra", "projectID", "timeUsed"],
"required": ["id", "type", "name", "projectID", "timeUsed"],
"additionalProperties": false
},
"WorkspaceWarpError": {
@@ -16580,7 +16580,7 @@
"type": "string"
}
},
"required": ["name", "branch"],
"required": ["name"],
"additionalProperties": false
}
},