mirror of
https://github.com/anomalyco/opencode.git
synced 2026-06-01 19:05:38 +00:00
fix(core): always start worktrees as detached (#26931)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user