From 616ec2b7aa1c9f86adf3b5c813acab31b5294248 Mon Sep 17 00:00:00 2001 From: Roo Code Date: Mon, 30 Jun 2025 08:11:04 +0000 Subject: [PATCH] Fix #5177: Add Google Cloud Project ID setting for Gemini CLI - Add project ID input field to GeminiCli settings component - Add translation strings for project ID field with helpful descriptions - Enables users to set custom project ID for enterprise/non-free tier access - Backend support was already implemented, this adds the missing UI --- .../src/components/settings/providers/GeminiCli.tsx | 11 +++++++++++ webview-ui/src/i18n/locales/en/settings.json | 3 +++ 2 files changed, 14 insertions(+) diff --git a/webview-ui/src/components/settings/providers/GeminiCli.tsx b/webview-ui/src/components/settings/providers/GeminiCli.tsx index 9c1654e4bb..686739ec52 100644 --- a/webview-ui/src/components/settings/providers/GeminiCli.tsx +++ b/webview-ui/src/components/settings/providers/GeminiCli.tsx @@ -40,6 +40,17 @@ export const GeminiCli = ({ apiConfiguration, setApiConfigurationField }: Gemini {t("settings:providers.geminiCli.oauthPathDescription")} + + + +
+ {t("settings:providers.geminiCli.projectIdDescription")} +
+
{t("settings:providers.geminiCli.description")}
diff --git a/webview-ui/src/i18n/locales/en/settings.json b/webview-ui/src/i18n/locales/en/settings.json index 9083d4a204..9107ee7580 100644 --- a/webview-ui/src/i18n/locales/en/settings.json +++ b/webview-ui/src/i18n/locales/en/settings.json @@ -313,6 +313,9 @@ "description": "This provider uses OAuth authentication from the Gemini CLI tool and does not require API keys.", "oauthPath": "OAuth Credentials Path (optional)", "oauthPathDescription": "Path to the OAuth credentials file. Leave empty to use the default location (~/.gemini/oauth_creds.json).", + "projectId": "Google Cloud Project ID (optional)", + "projectIdDescription": "Specify your Google Cloud Project ID for enterprise or non-free tier access. Leave empty for automatic project discovery with personal accounts.", + "projectIdPlaceholder": "e.g., my-project-id", "instructions": "If you haven't authenticated yet, please run", "instructionsContinued": "in your terminal first.", "setupLink": "Gemini CLI Setup Instructions",