Skip to content

Fix Gemini CLI compatibility with proxy and GOOGLE_CLOUD_LOCATION#200

Merged
bbrowning merged 1 commit into
mainfrom
gemini-fixes
May 12, 2026
Merged

Fix Gemini CLI compatibility with proxy and GOOGLE_CLOUD_LOCATION#200
bbrowning merged 1 commit into
mainfrom
gemini-fixes

Conversation

@bbrowning

Copy link
Copy Markdown
Owner

Two fixes for the Gemini agent:

  1. Add GOOGLE_CLOUD_LOCATION and CLOUD_ML_REGION to the google
    provider's passthrough env vars, and auto-sync between them when
    only one is set on the host. This ensures the Gemini CLI sees
    GOOGLE_CLOUD_LOCATION (which it now requires) even when the host
    only has CLOUD_ML_REGION. The sync also benefits the vertex provider.

  2. Pin Gemini CLI to 0.35.3 to work around an upstream proxy bug
    (Proxy defined in environment broken: "TypeError: HttpsProxyAgent is not a constructor" when using proxy options google-gemini/gemini-cli#24471) where 0.36.0+ throws
    "HttpsProxyAgent is not a constructor" when proxy env vars are set.

Co-Authored-By: Claude Opus 4.6 noreply@anthropic.com

Two fixes for the Gemini agent:

1. Add GOOGLE_CLOUD_LOCATION and CLOUD_ML_REGION to the google
   provider's passthrough env vars, and auto-sync between them when
   only one is set on the host. This ensures the Gemini CLI sees
   GOOGLE_CLOUD_LOCATION (which it now requires) even when the host
   only has CLOUD_ML_REGION. The sync also benefits the vertex provider.

2. Pin Gemini CLI to 0.35.3 to work around an upstream proxy bug
   (google-gemini/gemini-cli#24471) where 0.36.0+ throws
   "HttpsProxyAgent is not a constructor" when proxy env vars are set.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@bbrowning bbrowning merged commit 6d3682e into main May 12, 2026
6 checks passed
@bbrowning bbrowning deleted the gemini-fixes branch May 12, 2026 18:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant