Fix ctrl-c/esc while Authenticating. (#7879)

This commit is contained in:
Tommaso Sciortino
2025-09-06 10:34:00 -07:00
committed by GitHub
parent 13d39ef746
commit 127d9205b8
2 changed files with 1 additions and 6 deletions

View File

@@ -903,7 +903,6 @@ Logging in with Google... Please restart Gemini CLI to continue.
isEditorDialogOpen ||
isSettingsDialogOpen ||
isFolderTrustDialogOpen ||
isAuthenticating ||
showPrivacyNotice;
if (anyDialogOpen) {
return;
@@ -932,9 +931,6 @@ Logging in with Google... Please restart Gemini CLI to continue.
) {
handleSlashCommand('/ide status');
} else if (keyMatchers[Command.QUIT](key)) {
if (isAuthenticating) {
return;
}
if (!ctrlCPressedOnce) {
cancelOngoingRequest?.();
}
@@ -968,7 +964,6 @@ Logging in with Google... Please restart Gemini CLI to continue.
setCtrlDPressedOnce,
ctrlDTimerRef,
handleSlashCommand,
isAuthenticating,
cancelOngoingRequest,
isThemeDialogOpen,
isAuthDialogOpen,

View File

@@ -137,7 +137,7 @@ export const DialogManager = () => {
return (
<AuthInProgress
onTimeout={() => {
/* This is now handled in AppContainer */
uiActions.onAuthError('Authentication cancelled.');
}}
/>
);