fix(worktree): add showWorktreeExitDialog to dialogsVisible

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 <noreply@anthropic.com>
This commit is contained in:
LaZzyMan 2026-05-15 16:47:17 +08:00
parent 97afde76a0
commit e847bfce8b

View file

@ -2132,7 +2132,8 @@ export const AppContainer = (props: AppContainerProps) => {
isHelpDialogOpen ||
isExtensionsManagerDialogOpen ||
isRewindSelectorOpen ||
bgTasksDialogOpen;
bgTasksDialogOpen ||
showWorktreeExitDialog;
dialogsVisibleRef.current = dialogsVisible;
const shouldShowStickyTodos =
stickyTodos !== null &&