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