Port upstream 0.70.0: Codex Sol repricing cutoff, Cyber rates, Daybreak aliases (stacked on #731) - #734
Conversation
Port upstream 0.70.0 steipete#4094 (Codex half): Sol drops to $4/$20 with dated usage before 2026-08-21 keeping the $5/$30 rates, gpt-5.6-cyber and gpt-5.5-cyber get bundled rates, and the Daybreak blue/red aliases price as Sol and Cyber. GPT-5.6 entries now carry their 1.25x cache-write rates like upstream gpt56Pricing, replacing the Astra-only special case.
Upstream prices Pi rows at their timestamp and builds project usage from the dated cost cache, so pre-repricing usage keeps the rates it was billed at. Pi rows use their UTC timestamp date; the workspace index uses its local day keys like the cost scanners.
Upstream prices the whole GPT-5.4 request at $5/$22.50 (cache read $0.50) and GPT-5.5 at $10/$45 (cache read $1) once input passes 272K tokens. Fast mode keeps its 272K cutoff for both models.
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Advanced Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
…r rates, Daybreak aliases (stacked on #731)
…malize + reserve pricing tests)
…iority assert; update priority-trace Sol expectations to post-#734 repricing rates
Summary
Ports the Codex half of upstream 0.70.0 steipete#4094: GPT-5.6 Sol repricing with a dated cutoff, Cyber rates and the Daybreak aliases. Backend pricing only. Stacked on #731 (
port/micro-0.60.4-opencodex-unpriced), which is stacked on #682.Sol repricing
gpt-5.6-solnow bills $4 input, $0.40 cached input and $20 output per 1M tokens. Above 272K input tokens the whole request bills $8, $0.80 and $30.codex_historical_pricing, that mirrors upstreamcodexHistoricalPricing.Cyber and Daybreak
gpt-5.6-cyberandgpt-5.5-cyberget bundled rates: $12.50 input, $1.25 cached input and $75 output per 1M tokens, with no long-context tier.gpt-5.6-cybercache writes bill at $15.625 (1.25x).gpt-5.5-cyberpublishes no cache-write rate, so its writes bill at the input rate.gpt-daybreak-blue-latestnormalizes togpt-5.6-solandgpt-daybreak-red-latesttogpt-5.6-cyber, after theopenai/prefix is stripped. Recorded model names stay unchanged.Dated pricing for Pi and the workspace index
Parity fixes found during review
gpt56Pricing. Before, onlygpt-6-astrahad a cache-write rate and the other models billed writes at the input rate. The Astra-only special case is gone; Astra keeps $12.50 and $25.gpt-5.4-codex) and GPT-5.5 gain upstream's long-context tier. Above 272K input tokens the whole request bills $5, $0.50 and $22.50 for GPT-5.4, and $10, $1 and $45 for GPT-5.5. Fast mode keeps its 272K cutoff for both. This also gives Claude-routedopenai/gpt-5.4andopenai/gpt-5.5rows the bundled 272K boundary, as upstream does.docs/PROVIDERS.mdgets a "Codex model pricing" section.Upstream reference
8466920937), Codex half. The Antigravity half is lane A'sport/micro-0.70.0-antigravity-pricing-aliases.v0.70.0:Sources/CodexBarCore/Vendored/CostUsage/CostUsagePricing.swift(gpt56Pricing,codexHistoricalPricing,normalizeCodexModel,codexCostUSD(pricing:)).Sources/CodexBarCore/PiSessionCostScanner.swiftandSources/CodexBarCore/CodexLocalProjectUsageIndexer.swift.CostUsagePricingTests.swift,CodexSolHistoricalPricingTests.swift,CodexAliasedModelPricingTests.swift,PiSessionCostScannerTests.swift.docs/model-pricing.mdanddocs/codex.md.Differences from upstream
-codexsuffix. As before, Windows strips a-codexsuffix when the base model is priced.Not in this PR
gpt-reservetogpt-5.6-lunaalias. It is not on main yet and belongs to the reserve pricing alias backlog item.Validation
Windows, toolchain 1.98.0, run at
6f6e9292:cargo fmt --all --check: pass.cargo clippy --workspace --all-targets -- -D warnings: pass.cargo test -p codexbar --lib -- cost_pricing codex_costs: 73 passed.cargo test -p codexbar: 2218 passed, 0 failed, 1 ignored.cargo test -p codexbar-desktop-tauri: 462 passed, 1 failed. The failure isbootstrap_payload_exposes_every_provider_variant. It reads host settings and fails the same way on main; Make the bootstrap catalog test hermetic (#684) #711 fixes it.cost_pricing_tests.rs:pi_session_cost.rs: rows at 2026-08-20T23:59:59Z, 2026-08-21T00:00:00Z and without a timestamp.codex_workspaces/indexer.rs: the same Sol usage on 2026-08-20 and 2026-08-21.codex_costs.rs: GPT-5.5 short-context and long-context costs.Affected areas
UI proof
Not applicable. No UI code changes. Usage & Spend shows the new values through the existing spend contract.