From 68cf3ffcf15d37411a4ff440828a197517b21c1d Mon Sep 17 00:00:00 2001 From: thuanpham582002 Date: Tue, 24 Mar 2026 23:28:35 +0700 Subject: [PATCH] chore: remove deprecated DefaultGoogleOneScopes constant Remove unused DefaultGoogleOneScopes constant that was marked as DEPRECATED. Google One now always uses the built-in Gemini CLI client with DefaultCodeAssistScopes, making this constant dead code. Verified no references exist elsewhere in the codebase. --- backend/internal/pkg/geminicli/constants.go | 5 ----- 1 file changed, 5 deletions(-) diff --git a/backend/internal/pkg/geminicli/constants.go b/backend/internal/pkg/geminicli/constants.go index 97234ffd27..50ff6bd5c1 100644 --- a/backend/internal/pkg/geminicli/constants.go +++ b/backend/internal/pkg/geminicli/constants.go @@ -27,11 +27,6 @@ const ( // https://www.googleapis.com/auth/generative-language.retriever (often with cloud-platform). DefaultAIStudioScopes = "https://www.googleapis.com/auth/cloud-platform https://www.googleapis.com/auth/generative-language.retriever" - // DefaultGoogleOneScopes (DEPRECATED, no longer used) - // Google One now always uses the built-in Gemini CLI client with DefaultCodeAssistScopes. - // This constant is kept for backward compatibility but is not actively used. - DefaultGoogleOneScopes = "https://www.googleapis.com/auth/cloud-platform https://www.googleapis.com/auth/generative-language.retriever https://www.googleapis.com/auth/drive.readonly https://www.googleapis.com/auth/userinfo.email https://www.googleapis.com/auth/userinfo.profile" - // GeminiCLIRedirectURI is the redirect URI used by Gemini CLI for Code Assist OAuth. GeminiCLIRedirectURI = "https://codeassist.google.com/authcode"