Skip to content

Claude Code. Any Model. The most powerful AI coding agent now speaks every language.

fix(antigravity): expose the access token sent by capacity fallback

Jack Rudenkofabaa512f10e
diff --git a/packages/cli/src/providers/transport/antigravity.ts b/packages/cli/src/providers/transport/antigravity.ts
index 857ea80d..7946010c 100644
--- a/packages/cli/src/providers/transport/antigravity.ts
+++ b/packages/cli/src/providers/transport/antigravity.ts
@@ -381,6 +381,16 @@ export class AntigravityProviderTransport implements ProviderTransport {
return this.buildLocalHeaders();
}
+ /**
+ * The access token `buildLocalHeaders` signs the capacity-fallback fetches
+ * with, for exact-value redaction. Those fetches never pass through
+ * ComposedHandler's `fetchHeaders`, and the token mirrored here is not always
+ * the delegated artifact's, so it is registered on its own.
+ */
+ redactionSecrets(): string[] {
+ return this.accessToken ? [this.accessToken] : [];
+ }
+
/**
* Build the Antigravity headers from local OAuth state. Used by the 429
* fallback chain (handleCapacityExhausted), which needs a fresh