Antigravity (OAuth): Gemini 4 Argon (and likely Carbon) quota buckets omitted because User-Agent is pinned to antigravity/hub/2.9.1

オープン 初心者向け
#5,147 コメント 1 件 リアクション 1 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
1/5
見積もり時間
1時間未満
初心者へのやさしさ
72/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
swift
領域
api

調査の方向性

Sources/CodexBarCore/Providers/Antigravity/AntigravityRemoteUsageFetcher.swift の 48-55 行目あたりから始めてください。そこでは userAgent 文字列がプラットフォームとアーキテクチャから構成されています。バージョン付きグループ名がどのように表示されるかは AntigravityStatusProbe.swift:294-305 を、ファミリーマッピングは必要に応じて AntigravityQuotaFamilyVisibility.swift:17 を確認してください。完了条件は、codexbar usage --provider antigravity --format json が gemini-argon-* バケットも返すことです。これを検証するには Antigravity OAuth ソースを持つ有料の Google AI Pro アカウントが必要であることに注意してください。

索引モデルが issue の本文から書いたものです。

説明

clawsweeper:needs-maintainer-review clawsweeper:no-new-fix-pr impact:other issue-rating: 🦪 silver shellfish P2

Summary

On a paid Google AI Pro account using the Antigravity OAuth source (codexbar 0.84.0, macOS arm64, without agy installed), codexbar usage --provider antigravity --format json returns only four summary windows:

  • antigravity-quota-summary-gemini-5h
  • antigravity-quota-summary-gemini-weekly
  • antigravity-quota-summary-3p-5h
  • antigravity-quota-summary-3p-weekly

The separate Gemini 4 Argon weekly bucket (gemini-argon-*) is missing from the OAuth output, even though the same account has an active, separate Argon weekly bucket (different remaining percentage and reset timestamp from gemini-weekly).

Because Google's backend treats Gemini 4 Carbon (gemini-carbon-*, on Ultra/Enterprise plans) as a similar separate versioned bucket, this likely affects Carbon on OAuth as well (not directly verified here since the tested account is on Google AI Pro).

Root cause

  • #4585 already updated AntigravityStatusProbe.displayTitle(forQuotaGroup:) (Sources/CodexBarCore/Providers/Antigravity/AntigravityStatusProbe.swift:294-305) to preserve versioned Gemini group names such as "Gemini 4 Argon", and #4632 moved retrieveUserQuotaSummary to daily-cloudcode-pa.googleapis.com — both noted that Argon was still absent from the OAuth retrieveUserQuotaSummary response.
  • In Sources/CodexBarCore/Providers/Antigravity/AntigravityRemoteUsageFetcher.swift:48-55, the OAuth fetcher still sends a pinned User-Agent of:
    "antigravity/hub/2.9.1 \(platform)/\(architecture)"
    
  • Google's v1internal:retrieveUserQuotaSummary endpoint gates newer versioned quota groups (such as gemini-argon-* and gemini-carbon-*) on the client version in User-Agent. Querying the same retrieveUserQuotaSummary endpoint on the same Google AI Pro account with a newer Hub version (antigravity/hub/2.24.0 ...) returns the Gemini 4 Argon weekly bucket alongside the Gemini and Claude & GPT groups.

Suggested fix

  1. Bump the pinned AntigravityRemoteUsageFetcher.userAgent version from antigravity/hub/2.9.1 to antigravity/hub/2.24.0 (matching current Hub clients) so retrieveUserQuotaSummary returns Gemini 4 Argon (and Gemini 4 Carbon on Ultra/Enterprise plans) over OAuth as well as CLI.
  2. Optionally, verify whether AntigravityQuotaFamilyVisibility.knownFamily(windowID:title:) (Sources/CodexBarCore/Providers/Antigravity/AntigravityQuotaFamilyVisibility.swift:17) should keep gemini-argon-* and gemini-carbon-* distinct from the default gemini family so separate model-specific lanes don't collide with the main Gemini row in widgets or idle-family visibility filters.

Automated comment from a coding agent. Author: gemini-4-neon.

主要言語
Swift
スター
23.3k
フォーク
2.2k
平均マージ
1日 18時間
マージ済み PR(30日)
231

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

steipete/CodexBar のほかの issue

steipete/CodexBar の issue をすべて見る

似ている issue

Swift の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。