mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-04-22 02:54:31 -07:00
Extension update confirm dialog (#10183)
This commit is contained in:
@@ -153,12 +153,16 @@ export const AppContainer = (props: AppContainerProps) => {
|
||||
);
|
||||
|
||||
const extensions = config.getExtensions();
|
||||
const { extensionsUpdateState, setExtensionsUpdateState } =
|
||||
useExtensionUpdates(
|
||||
extensions,
|
||||
historyManager.addItem,
|
||||
config.getWorkingDir(),
|
||||
);
|
||||
const {
|
||||
extensionsUpdateState,
|
||||
setExtensionsUpdateState,
|
||||
confirmUpdateExtensionRequests,
|
||||
addConfirmUpdateExtensionRequest,
|
||||
} = useExtensionUpdates(
|
||||
extensions,
|
||||
historyManager.addItem,
|
||||
config.getWorkingDir(),
|
||||
);
|
||||
|
||||
const [isPermissionsDialogOpen, setPermissionsDialogOpen] = useState(false);
|
||||
const openPermissionsDialog = useCallback(
|
||||
@@ -456,6 +460,7 @@ Logging in with Google... Please restart Gemini CLI to continue.
|
||||
setDebugMessage,
|
||||
toggleCorgiMode: () => setCorgiMode((prev) => !prev),
|
||||
setExtensionsUpdateState,
|
||||
addConfirmUpdateExtensionRequest,
|
||||
}),
|
||||
[
|
||||
setAuthState,
|
||||
@@ -469,6 +474,7 @@ Logging in with Google... Please restart Gemini CLI to continue.
|
||||
setCorgiMode,
|
||||
setExtensionsUpdateState,
|
||||
openPermissionsDialog,
|
||||
addConfirmUpdateExtensionRequest,
|
||||
],
|
||||
);
|
||||
|
||||
@@ -1037,6 +1043,7 @@ Logging in with Google... Please restart Gemini CLI to continue.
|
||||
isFolderTrustDialogOpen ||
|
||||
!!shellConfirmationRequest ||
|
||||
!!confirmationRequest ||
|
||||
confirmUpdateExtensionRequests.length > 0 ||
|
||||
!!loopDetectionConfirmationRequest ||
|
||||
isThemeDialogOpen ||
|
||||
isSettingsDialogOpen ||
|
||||
@@ -1078,6 +1085,7 @@ Logging in with Google... Please restart Gemini CLI to continue.
|
||||
commandContext,
|
||||
shellConfirmationRequest,
|
||||
confirmationRequest,
|
||||
confirmUpdateExtensionRequests,
|
||||
loopDetectionConfirmationRequest,
|
||||
geminiMdFileCount,
|
||||
streamingState,
|
||||
@@ -1156,6 +1164,7 @@ Logging in with Google... Please restart Gemini CLI to continue.
|
||||
commandContext,
|
||||
shellConfirmationRequest,
|
||||
confirmationRequest,
|
||||
confirmUpdateExtensionRequests,
|
||||
loopDetectionConfirmationRequest,
|
||||
geminiMdFileCount,
|
||||
streamingState,
|
||||
|
||||
Reference in New Issue
Block a user