Add extension settings to be requested on install (#9802)

This commit is contained in:
christine betts
2025-10-23 11:47:08 -04:00
committed by GitHub
parent bde5d61812
commit 750c0e366f
13 changed files with 641 additions and 20 deletions

View File

@@ -16,6 +16,7 @@ import {
} from '@google/gemini-cli-core';
import { getErrorMessage } from '../../utils/errors.js';
import { stat } from 'node:fs/promises';
import { promptForSetting } from '../../config/extensions/extensionSettings.js';
interface InstallArgs {
source: string;
@@ -69,6 +70,9 @@ export async function handleInstall(args: InstallArgs) {
const name = await installOrUpdateExtension(
installMetadata,
requestConsent,
process.cwd(),
undefined,
promptForSetting,
);
debugLogger.log(`Extension "${name}" installed successfully and enabled.`);
} catch (error) {