diff --git a/packages/ui/src/components/session/SessionDialogs.tsx b/packages/ui/src/components/session/SessionDialogs.tsx index ce3128e7..daed832b 100644 --- a/packages/ui/src/components/session/SessionDialogs.tsx +++ b/packages/ui/src/components/session/SessionDialogs.tsx @@ -413,13 +413,7 @@ export const SessionDialogs: React.FC = () => { const target = deleteDialog.sessions[0]; const success = isWorktreeDelete ? await archiveSession(target.id) - : await deleteSession(target.id, { - // In "worktree" mode, remove the selected worktree explicitly below. - // Don't try to derive worktree removal from per-session metadata (may be missing). - archiveWorktree: false, - deleteRemoteBranch: removeRemoteBranch, - deleteLocalBranch, - }); + : await deleteSession(target.id); if (!success) { toast.error(isWorktreeDelete ? t('sessions.sidebar.session.archive.error') diff --git a/packages/ui/src/sync/session-actions.ts b/packages/ui/src/sync/session-actions.ts index 6f1f6b4d..e310f3a0 100644 --- a/packages/ui/src/sync/session-actions.ts +++ b/packages/ui/src/sync/session-actions.ts @@ -811,15 +811,6 @@ export type DeleteSessionOptions = { * confirmation spans a runtime switch. */ expectedRuntimeKey?: string - /** - * Worktree flags accepted from `SessionDialogs`. This action does not consume - * them today — the dialog performs worktree removal itself. They are declared - * so the call site stays type-checked instead of hidden behind an untyped - * bag; wiring or removing them is separate follow-up work. - */ - archiveWorktree?: boolean - deleteRemoteBranch?: boolean - deleteLocalBranch?: boolean } /**