feat(worktree): add skip delete confirmation preference (#771)

- feat(worktree): add skip delete confirmation preference
This commit is contained in:
Jinjing
2026-04-17 15:29:19 -07:00
committed by GitHub
parent 71fd14f369
commit 023d65ebfa
8 changed files with 252 additions and 60 deletions
+1
View File
@@ -120,6 +120,7 @@ export function getDefaultSettings(homedir: string): GlobalSettings {
activeCodexManagedAccountId: null,
terminalScopeHistoryByWorktree: true,
defaultTuiAgent: null,
skipDeleteWorktreeConfirm: false,
defaultTaskViewPreset: 'all',
agentCmdOverrides: {},
terminalMacOptionAsAlt: 'true'
+6
View File
@@ -617,6 +617,12 @@ export type GlobalSettings = {
terminalScopeHistoryByWorktree: boolean
/** Which agent to pre-select in the new-workspace composer. null = auto (first detected). */
defaultTuiAgent: TuiAgent | null
/** Why: worktree deletion is destructive (git worktree remove + rm -rf of the
* working directory), so Orca shows a confirmation dialog by default. Users
* who delete frequently can opt into skipping the dialog via a "Don't ask
* again" checkbox inside it or from the General settings pane. We keep this
* defaulted to false so first-time behavior stays safe. */
skipDeleteWorktreeConfirm: boolean
/** Default preset in the new-workspace GitHub task view. */
defaultTaskViewPreset: TaskViewPresetId
/** Per-agent CLI command overrides. A missing key means use the catalog default binary name. */