You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Antigravity's Orchestrator (Argon) (gemini-pro-orchestrator-argon, model ID 1681) shows up as unpriced ($0.00) in Usage -> Cost:
antigravityRateModel maps gemini-pro-orchestrator-neon -> gemini-4-neon, gemini-pro-orchestrator-g1-pro -> gemini-4-argon, and gemini-pro-orchestrator -> gemini-4-carbon, but does not map gemini-pro-orchestrator-argon, leaving it unmatched in the LiteLLM rate table.
MODEL_IDS omits 1681, so steps without inline model-name metadata fall back to antigravity-model-1681 instead of gemini-pro-orchestrator-argon.
Add 1681: "gemini-pro-orchestrator-argon" to MODEL_IDS in apps/server/src/provider/Drivers/antigravityUsageReader.ts.
Map gemini-pro-orchestrator-argon to "gemini-4-argon" in antigravityRateModel.
Add test coverage in apps/server/src/provider/Drivers/antigravityUsageReader.test.ts for both the explicit model name (gemini-pro-orchestrator-argon) and model-less steps carrying model ID 1681.
Verification
Found in local Antigravity conversation DB: gen_metadata records field 3 = 1681, field 19 = "gemini-pro-orchestrator-argon", field 21 = "Orchestrator (Argon)".
Before fix: All 35 gemini-pro-orchestrator-argon records in local Antigravity history resolved with rateModel: undefined and costSource: "unpriced" ($0.00).
After fix: Running readAntigravityUsage + priceUsage against the same local Antigravity conversations directory and usage-model-rates.json priced all 35/35 records via rateModel: "gemini-4-argon" (costSource: "modelPriced", $5.06).
Automated checks:
vp test run src/provider/Drivers/antigravityUsageReader.test.ts src/usage/usagePricing.test.ts -> 2 files, 32 passed.
Macroscope's review found this PR approvable — Recognizes Antigravity Argon Orchestrator usage and applies the existing Argon rates to usage cost summaries. The change is confined to usage reporting and does not alter provider charges or model-selection defaults.
You can add or adjust custom eligibility rules. Learn more.
Reviewing files that changed from the base of the PR and between 0c7659f and c507568.
You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.
Use the checkbox below for a quick retry:
Trigger review
No actionable comments were generated in the recent review.
Walkthrough
The usage reader now resolves model ID 1681 to gemini-pro-orchestrator-argon. It maps that model and gemini-pro-orchestrator-g1-pro to gemini-4-argon. The test covers named and model-less steps.
Changes: Argon model mapping
Layer / File(s)
Summary
Model mapping and test coverage apps/server/src/provider/Drivers/antigravityUsageReader.ts, apps/server/src/provider/Drivers/antigravityUsageReader.test.ts
The reader adds the fallback mapping for model ID 1681 and maps both Argon orchestrator names to gemini-4-argon. The test covers named and model-less steps resolved to that rate model.
This change prices Antigravity Orchestrator (Argon) usage in Usage → Cost. It has tests for named and model-less steps, and no actionable merge risk was found.
Pre-merge checks: 4
Check name
Status
Explanation
Title check
The title "fix(server): price Antigravity Orchestrator (Argon) usage" names the main change. The PR adds the model ID 1681 to MODEL_IDS and maps gemini-pro-orchestrator-argon to gemini-4-argon so that…
Description check
The description follows the template sections Problem, Fix (Change), Scope, and Verification. It explains the root cause in two numbered points: a missing rate-model mapping and a missing MODEL_IDS en…
Linked Issues check
Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check
Check skipped because no linked issues were found for this pull request.
Full details: Title check
Explanation
The title "fix(server): price Antigravity Orchestrator (Argon) usage" names the main change. The PR adds the model ID 1681 to MODEL_IDS and maps gemini-pro-orchestrator-argon to gemini-4-argon so that this Antigravity model is priced instead of showing $0.00. The title is specific, follows the conventional commit format, and matches the changeset.
Full details: Description check
Explanation
The description follows the template sections Problem, Fix (Change), Scope, and Verification. It explains the root cause in two numbered points: a missing rate-model mapping and a missing MODEL_IDS entry for 1681. It lists the file-level changes and the test coverage, and it reports before and after pricing results with the commands run. The Scope section does not link an issue or explain why no issue is needed, and it does not link the referenced PR #40352 as a maintainer request. The template also asks for the model and harness used, and the description includes 'Assisted by Gemini 4 Neon', which covers that. Overall the description is mostly complete, with a gap in the Scope section.
Finishing Touches
Generate unit tests (beta)
Create a new PR
Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 9 remain after this review.
Seed five separate synthetic Antigravity conversation databases, each with 200K input and 20K output tokens: named Orchestrator Argon (no numeric ID), numeric-only 1681, named Orchestrator Neon, numeric-only 1537, and named Gemini 4 Argon. On each fresh server, create a project through t3.project, enable Antigravity in settings.json with Gemini API key mode and a dummy key, open /usage, allow Antigravity usage access, select Cost and 30 days, wait for loading to finish, and capture the full breakdown.
Environment: real web client and server, browser viewport 1280×1100, light theme, isolated fresh state, T3CODE_DEV_SEED=0; ANTIGRAVITY_DATA_DIR points to the same synthetic history on both sides. Provider setup is written through the normal settings file; usage access and display controls are driven in the UI.
Scenario: Orchestrator Argon named and numeric history contributes to estimated cost
Base total: $3.00; named Argon and ID 1681 are Unpriced at 220K tokens each. Head total: $5.40; both merge as gemini-pro-orchestrator-argon, $2.40 / 440K tokens. Neon remains $1.80 / 440K and Gemini 4 Argon remains $1.20 / 220K.
Run seed.py with an empty output directory argument, set ANTIGRAVITY_DATA_DIR to that directory, and inherit ANTIGRAVITY_DATA_DIR and T3CODE_DEV_SEED into scenarios:prove.
Not shown:
History is synthetic, as in triage. No Google-signed-in agy session was available to independently confirm that real history emits model ID 1681 or the exact Orchestrator Argon label; the app's handling and pricing of those inputs is proven. The author's 35 original records and $5.06 total were not available.
…ingdotgg#45341
Ported prerequisite pingdotgg#45341 (open-popups) and 27 of 28 upstream commits
from b4b58d2..7538a0f, preserving all locked T4 customizations,
zero telemetry, and T4 branding:
- Bounded command projection reads (pingdotgg#47115)
- Move threads between projects & recover missing workspace folders (pingdotgg#47234)
- Mention menu highlight update (pingdotgg#47210, enabling files mention in test for T4 Lock pingdotgg#18)
- Mobile image-chip-without-text send (pingdotgg#47173)
- Antigravity Argon pricing (pingdotgg#47202), OpenCode 64-char MCP tool names (pingdotgg#43800)
- GitHub HTTPS->SSH clone fallback (pingdotgg#47239), open popup coordination (pingdotgg#47167)
- Plus 19 additional upstream fixes across server, web, mobile, and providers
- Auto-synced all 30 GT v12 i18n catalogs via sync:t4-i18n (0 untranslated)
- Deferred pingdotgg#47163 (depends on unported workflow-subjects) in .t4-upstream-sync.json
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
size:XS0-9 changed lines (additions + deletions).vouch:unvouchedAuthor is not yet trusted in the VOUCHED list.
2 participants
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
Antigravity's
Orchestrator (Argon)(gemini-pro-orchestrator-argon, model ID1681) shows up as unpriced ($0.00) in Usage -> Cost:antigravityRateModelmapsgemini-pro-orchestrator-neon->gemini-4-neon,gemini-pro-orchestrator-g1-pro->gemini-4-argon, andgemini-pro-orchestrator->gemini-4-carbon, but does not mapgemini-pro-orchestrator-argon, leaving it unmatched in the LiteLLM rate table.MODEL_IDSomits1681, so steps without inline model-name metadata fall back toantigravity-model-1681instead ofgemini-pro-orchestrator-argon.Fix
Follows the same pattern as #40352:
1681: "gemini-pro-orchestrator-argon"toMODEL_IDSinapps/server/src/provider/Drivers/antigravityUsageReader.ts.gemini-pro-orchestrator-argonto"gemini-4-argon"inantigravityRateModel.apps/server/src/provider/Drivers/antigravityUsageReader.test.tsfor both the explicit model name (gemini-pro-orchestrator-argon) and model-less steps carrying model ID1681.Verification
gen_metadatarecordsfield 3 = 1681,field 19 = "gemini-pro-orchestrator-argon",field 21 = "Orchestrator (Argon)".gemini-pro-orchestrator-argonrecords in local Antigravity history resolved withrateModel: undefinedandcostSource: "unpriced"($0.00).readAntigravityUsage+priceUsageagainst the same local Antigravity conversations directory andusage-model-rates.jsonpriced all 35/35 records viarateModel: "gemini-4-argon"(costSource: "modelPriced",$5.06).vp test run src/provider/Drivers/antigravityUsageReader.test.ts src/usage/usagePricing.test.ts-> 2 files, 32 passed.vp fmt --check apps/server/src/provider/Drivers/antigravityUsageReader.ts apps/server/src/provider/Drivers/antigravityUsageReader.test.ts-> passed.Assisted by Gemini 4 Neon.