feat(ide): fallback to GEMINI_CLI_IDE_AUTH_TOKEN env var (#14843)

This commit is contained in:
Shreya Keshive
2025-12-09 14:41:32 -05:00
committed by GitHub
parent 364b12e2fa
commit 3f5f030d01
2 changed files with 35 additions and 3 deletions
+4 -3
View File
@@ -151,9 +151,10 @@ export class IdeClient {
this.setState(IDEConnectionStatus.Connecting);
this.connectionConfig = await this.getConnectionConfigFromFile();
if (this.connectionConfig?.authToken) {
this.authToken = this.connectionConfig.authToken;
}
this.authToken =
this.connectionConfig?.authToken ??
process.env['GEMINI_CLI_IDE_AUTH_TOKEN'];
const workspacePath =
this.connectionConfig?.workspacePath ??
process.env['GEMINI_CLI_IDE_WORKSPACE_PATH'];