Repository navigation
Description
Before submitting
- I searched existing issues and did not find a duplicate.
- I included enough detail to reproduce or investigate the problem.
Area
apps/server
Steps to reproduce
- Run turns through the Antigravity provider using Orchestrator (Neon) (
gemini-pro-orchestrator-neon) orgemini-4-hydrogen-orchestrator. The numeric fallback also reproduces with usage records containing only model ID1537(MODEL_PLACEHOLDER_M537). - Open Usage → Cost and inspect the model breakdown.
Expected behavior
The affected Orchestrator variants should resolve to the existing base-model LiteLLM rates in usage-model-rates.json (gemini/gemini-4-neon, gemini/gemini-4-hydrogen, and gemini/gemini-4-argon for their respective variants). The corresponding token usage should contribute to the total estimated cost.
Actual behavior
The breakdown shows gemini-pro-orchestrator-neon, gemini-4-hydrogen-orchestrator, and antigravity-model-1537 as Unpriced. Their token usage contributes no estimated cost.
- In
apps/server/src/provider/Drivers/antigravityUsageReader.ts,antigravityRateModel()strips suffixes matching-(?:extra-low|low|medium|high|tiered|control|thinking|agent)$. It leavesgemini-4-hydrogen-orchestratorunchanged and lacks explicit mappings for Orchestrator slugs such asgemini-pro-orchestrator-neonandgemini-pro-orchestrator-g1-pro. - The
MODEL_IDSfallback ends at1419(gemini-4-argon). When the reader cannot learn a name from metadata, ID1537becomesantigravity-model-1537, which has no rate match. Newer IDs such as1533,1534, and1525can also fall back to numeric names when metadata does not identify them. [Bug]: Usage reports show models such as antigravity-model-1073 instead of Gemini 3.6 Flash (Low) #19189 reports the earlier numeric fallback for a different model, and [Bug]: Antigravity usage limits stay at 100% left after account switch and at 0% exhaustion (stale acp_token.json + cloudcode-pa backfill) #39828 mentions the missing mapping for the separate Neon ID1532.
Suggested fix: Map gemini-pro-orchestrator-neon to gemini-4-neon and gemini-pro-orchestrator-g1-pro to gemini-4-argon for rate lookup. Strip -orchestrator for base-named variants such as gemini-4-hydrogen-orchestrator. Add the confirmed 1537 mapping to MODEL_IDS and verify other current MODEL_PLACEHOLDER_M* mappings before adding them.
Impact
Minor bug or occasional failure
Version or commit
0.1.11 (commit 59651c1761f6)
Environment
Windows x64, T3 Code Desktop 0.1.11, Antigravity ACP 1.5.13.
Logs or stack traces
Sanitized ACP log excerpt and the rate keys observed in the local usage-model-rates.json.
ACP: Orchestrator (Neon) (enum: MODEL_PLACEHOLDER_M537)
Rate keys:
gemini/gemini-4-neon
gemini/gemini-4-hydrogen
gemini/gemini-4-argon
Screenshots, recordings, or supporting files
No response
Workaround
In Usage → All environments → Model prices, add a model alias (usageModelAliases) to gemini-4-neon or gemini-4-hydrogen, as appropriate. You can also use Set price on the unpriced row to add a manual price override (usagePriceOverrides).
Activity