From e847bfce8b01079054fd3ce77df70f6049a4e271 Mon Sep 17 00:00:00 2001 From: LaZzyMan Date: Fri, 15 May 2026 16:47:17 +0800 Subject: [PATCH] fix(worktree): add showWorktreeExitDialog to dialogsVisible MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Phase C task 8 introduced showWorktreeExitDialog state and the dialog render in DialogManager, but missed adding the flag to the dialogsVisible OR expression. DefaultAppLayout only renders DialogManager when dialogsVisible is true, so the dialog was never shown — second Ctrl+C in a worktree silently absorbed instead of triggering the prompt. Caught by Group E E2E tests. Co-Authored-By: Claude Opus 4.7 --- packages/cli/src/ui/AppContainer.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/cli/src/ui/AppContainer.tsx b/packages/cli/src/ui/AppContainer.tsx index b0d194abfa..3319b1c816 100644 --- a/packages/cli/src/ui/AppContainer.tsx +++ b/packages/cli/src/ui/AppContainer.tsx @@ -2132,7 +2132,8 @@ export const AppContainer = (props: AppContainerProps) => { isHelpDialogOpen || isExtensionsManagerDialogOpen || isRewindSelectorOpen || - bgTasksDialogOpen; + bgTasksDialogOpen || + showWorktreeExitDialog; dialogsVisibleRef.current = dialogsVisible; const shouldShowStickyTodos = stickyTodos !== null &&