fix(pricing): support Gemini 3.8 Flash Cursor usage - #1211
Merged
Conversation
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
TL;DR
Cursor usage for
gemini-3.8-flash-highnow contributes to spend and token totals instead of appearing as an unknown model. Adds Gemini 3.8 Flash pricing and aliases that work offline and on first launch.Approved issue
Fixes #1201. Maintainer PR.
What was happening
-highslug remained unpriced and its usage was excluded from totals.What this changes
gemini-3.8-flashat $0.75 input, $0.75 cache writes, $0.075 cache reads, and $3.75 output per million tokens.none,low,medium,high, andxhigheffort suffixes, optional preview suffixes, andGemini 3.8 Flash (Auto…)Router labels to that entry, following existing Gemini alias patterns.Heads-up
Tests
swift test --filter 'ModelPricing|PricingBundledResource|CursorCSV|CursorSpend': 81 tests passed.CONFIG=debug script/build_and_run.sh verify: rebuilt, signed, relaunched, and confirmed running.Screenshots
Not applicable; pricing data and aliases only.
Note
Low Risk
Data-only pricing supplement and documentation with tests; no runtime logic changes beyond what the existing resolution pipeline already does for other Gemini Flash models.
Overview
Gemini 3.8 Flash Cursor usage (e.g.
gemini-3.8-flash-high) is now priced and included in spend/token totals instead of showing as an unknown model.The bundled pricing supplement adds a
gemini-3.8-flashentry at Google’s introductory API rates ($0.75 input/cache write, $0.075 cache read, $3.75 output per million), bumpsupdated_at, and adds slug and Cursor Router alias rules for effort/preview variants—matching the existing Gemini 3.7 pattern (including $3.75 output vs Cursor’s $3.50 table).Regression tests cover alias resolution (including offline/first launch), negative cases for bogus suffixes, and CSV → spend aggregation without unknown-model warnings. docs/pricing.md documents the new model and rates.
Reviewed by Cursor Bugbot for commit bafa89d. Bugbot is set up for automated code reviews on this repo. Configure here.