From b6523a15dc7f032b2804c07f2422daf89f8bcd88 Mon Sep 17 00:00:00 2001 From: Julius Marminge Date: Thu, 12 Feb 2026 22:47:14 -0800 Subject: [PATCH] Use Yes/No labels for desktop worktree confirm Co-authored-by: codex --- apps/desktop/src/confirmDialog.test.ts | 4 ++-- apps/desktop/src/confirmDialog.ts | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/apps/desktop/src/confirmDialog.test.ts b/apps/desktop/src/confirmDialog.test.ts index 60b93e4539..4a4c0ddbed 100644 --- a/apps/desktop/src/confirmDialog.test.ts +++ b/apps/desktop/src/confirmDialog.test.ts @@ -35,7 +35,7 @@ describe("showDesktopConfirmDialog", () => { expect(showMessageBoxMock).toHaveBeenCalledWith( ownerWindow, expect.objectContaining({ - buttons: ["Cancel", "Confirm"], + buttons: ["No", "Yes"], message: "Delete worktree?", }), ); @@ -49,7 +49,7 @@ describe("showDesktopConfirmDialog", () => { expect(result).toBe(false); expect(showMessageBoxMock).toHaveBeenCalledWith( expect.objectContaining({ - buttons: ["Cancel", "Confirm"], + buttons: ["No", "Yes"], message: "Delete worktree?", }), ); diff --git a/apps/desktop/src/confirmDialog.ts b/apps/desktop/src/confirmDialog.ts index 9238de50f9..1beda8543b 100644 --- a/apps/desktop/src/confirmDialog.ts +++ b/apps/desktop/src/confirmDialog.ts @@ -13,7 +13,7 @@ export async function showDesktopConfirmDialog( const options = { type: "question" as const, - buttons: ["Cancel", "Confirm"], + buttons: ["No", "Yes"], defaultId: CONFIRM_BUTTON_INDEX, cancelId: 0, noLink: true,