From 4f7fc9de7ef57b9777e297fb1437a5a4163ef07f Mon Sep 17 00:00:00 2001 From: Aadish Verma Date: Wed, 8 Apr 2026 18:10:05 -0700 Subject: [PATCH] fix: bump antigravity User-Agent header version (#2901) resolves #2815 Co-authored-by: Mario Zechner --- packages/ai/CHANGELOG.md | 1 + packages/ai/src/providers/google-gemini-cli.ts | 2 +- packages/coding-agent/CHANGELOG.md | 3 +++ .../coding-agent/examples/extensions/antigravity-image-gen.ts | 2 +- 4 files changed, 6 insertions(+), 2 deletions(-) diff --git a/packages/ai/CHANGELOG.md b/packages/ai/CHANGELOG.md index 8aa803b7..0452734f 100644 --- a/packages/ai/CHANGELOG.md +++ b/packages/ai/CHANGELOG.md @@ -4,6 +4,7 @@ ### Fixed +- Bumped default Antigravity User-Agent version to `1.21.9` ([#2901](https://github.com/badlogic/pi-mono/pull/2901) by [@aadishv](https://github.com/aadishv)) - Fixed thinking levels for Gemma 4 models to use `thinkingLevel` and map Pi reasoning levels to the model's supported thinking levels ([#2903](https://github.com/badlogic/pi-mono/pull/2903) by [@aadishv](https://github.com/aadishv)) ## [0.66.1] - 2026-04-08 diff --git a/packages/ai/src/providers/google-gemini-cli.ts b/packages/ai/src/providers/google-gemini-cli.ts index 926f4ab4..259ca069 100644 --- a/packages/ai/src/providers/google-gemini-cli.ts +++ b/packages/ai/src/providers/google-gemini-cli.ts @@ -77,7 +77,7 @@ const GEMINI_CLI_HEADERS = { }; // Headers for Antigravity (sandbox endpoint) - requires specific User-Agent -const DEFAULT_ANTIGRAVITY_VERSION = "1.18.4"; +const DEFAULT_ANTIGRAVITY_VERSION = "1.21.9"; function getAntigravityHeaders() { const version = process.env.PI_AI_ANTIGRAVITY_VERSION || DEFAULT_ANTIGRAVITY_VERSION; diff --git a/packages/coding-agent/CHANGELOG.md b/packages/coding-agent/CHANGELOG.md index 4aa65fec..5497fda0 100644 --- a/packages/coding-agent/CHANGELOG.md +++ b/packages/coding-agent/CHANGELOG.md @@ -2,6 +2,9 @@ ## [Unreleased] +### Fixed + +- Updated `antigravity-image-gen.ts` example extension to use User-Agent version `1.21.9` ([#2901](https://github.com/badlogic/pi-mono/pull/2901) by [@aadishv](https://github.com/aadishv)) ### Added - Set `PI_CODING_AGENT=true` environment variable at startup so sub-processes can detect they are running inside the coding agent ([#2868](https://github.com/badlogic/pi-mono/issues/2868)) diff --git a/packages/coding-agent/examples/extensions/antigravity-image-gen.ts b/packages/coding-agent/examples/extensions/antigravity-image-gen.ts index bbb9d06a..f4533a06 100644 --- a/packages/coding-agent/examples/extensions/antigravity-image-gen.ts +++ b/packages/coding-agent/examples/extensions/antigravity-image-gen.ts @@ -48,7 +48,7 @@ type SaveMode = (typeof SAVE_MODES)[number]; const ANTIGRAVITY_ENDPOINT = "https://daily-cloudcode-pa.sandbox.googleapis.com"; -const DEFAULT_ANTIGRAVITY_VERSION = "1.18.3"; +const DEFAULT_ANTIGRAVITY_VERSION = "1.21.9"; const ANTIGRAVITY_HEADERS = { "User-Agent": `antigravity/${process.env.PI_AI_ANTIGRAVITY_VERSION || DEFAULT_ANTIGRAVITY_VERSION} darwin/arm64`,