Preserve exact GPT-5 Codex pricing keys#511
Conversation
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 3e74f2e168
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
|
@codex review |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 3e74f2e168
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
|
Thanks @iam-brain ! |
|
Thought I asked this earlier but forgot @ratulsarna, bumping Codex's cache to v2 to clear the old cache so sessions can revalidate using the new models was the smallest change doable to introduce the new models and wanted to ask your opnion on that. Keep that small bandaid or should something be introduced to flush the cache with each model update? |
* Preserve exact GPT-5 Codex pricing keys * Suppress zero-cost chart peak * Bump Codex cache artifact version
Summary
-codexand effectively pricing persisted usage as a different model than the one the scanner recorded, which made local cost reports harder to trust and hid model-specific behavior in breakdowns.gpt-5.3-codex-sparkas a zero-cost Research Preview case. The goal is to keep preview usage visible in scanner output, CLI payloads, and chart details without incorrectly charging it or dropping it from breakdowns just because the cost is zero.Validation
swift test --filter 'CostUsagePricingTests|CostUsageScannerTests|CostUsageDecodingTests|CLICostTests|UsageFormatterTests'pnpm check./Scripts/compile_and_run.sh