Repository navigation
fix(pricing): handle scheduled built-in prices in Settings and saves - #107
Merged
bhavsarpratik merged 1 commit intoNov 2, 2026
Merged
Conversation
Split out of the Antigravity runtime review (splunk#92) for separate review. - Settings → Model pricing shows the built-in price in effect now, so a model with a scheduled price change shows the rate that applies today. - An "apply to all history" save equal to a scheduled model's current built-in price is kept as an override, so it applies before the scheduled change too, instead of silently restoring the earlier price. "All history" always replaces the timeline with one flat price, so saving the earlier price shown before a change keeps it after the change as well. - A dated save is compared with the built-in price in effect from its start date. Saving that price keeps following the built-in, including any later scheduled change, instead of pinning it. Saving the current price from a date before the change is kept as an override for that window, instead of being silently dropped. - Models without scheduled price changes behave as before. Today this affects gpt-5.6, gpt-5.6-sol, gpt-5.6-terra, and gpt-5.6-luna on Codex, and gpt-5.6-sol on Cursor.
4 of 5 tasks
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.
Problem
The #92 review asked for the shared pricing change to go in its own pull request: #92 (comment)
For a model with a scheduled built-in price change, Settings → Model pricing has two problems:
What changed
Today this affects:
gpt-5.6,gpt-5.6-sol,gpt-5.6-terraandgpt-5.6-lunagpt-5.6-solThe Antigravity PR (#92) adds Gemini models with scheduled increases on 2026-12-01 and 2027-01-01, and they benefit from the same handling.
Related: #92
Validation
python3 -m unittest discover -s tests: 2,247 tests, OK (17 skipped)tests/integration/test_model_pricing_compat.py.token_meter/app.pyreverted tomain, 7 fail: all-history keep, dated follow-schedule, a dated save of today's price before the change, replacing an existing override, the Cursor path with restore and idempotent re-save, the displayed price in effect now, and re-saving the shown price before a change.py_compile: OKgit diff --check: cleanLimitations
model_pricing_settings, on adjacent lines. Whichever merges second may need a one-line rebase.