Regression: GPT-5.6 Codex usage is displayed as GPT-5 and priced incorrectly
Summary
In codeburn 0.7.2, usage generated through Codex with GPT-5.6 is displayed under the generic GPT-5 model name, and the cost totals are calculated with the wrong pricing mapping. This makes both the model breakdown and the reported dollar amount inaccurate.
The model in use is GPT-5.6 (reported as gpt5.6 in Codex contexts and commonly represented as gpt-5.6 in usage data). GPT-5.6 should not be silently collapsed into gpt-5.
Environment
- codeburn:
0.7.2 - provider: Codex
- model: GPT-5.6 (
gpt5.6/gpt-5.6) - OS: Ubuntu 24.04.4 LTS (Noble Numbat)
- kernel:
7.0.0-28-generic - architecture:
x86_64 - Node.js:
v20.20.2 - npm:
11.18.0
Steps to reproduce
- Use Codex with the GPT-5.6 model.
- Complete one or more prompts so that Codex writes usage data to its local logs.
- Run
codeburn reportorcodeburn status. - Inspect the model breakdown and cost total.
The same behavior can also be checked through the JSON/CSV export and by comparing the underlying Codex model identifier with the model label emitted by codeburn.
Actual behavior
- GPT-5.6 usage is shown as
GPT-5, so separate model usage is merged into the wrong bucket. - The cost calculation uses the generic GPT-5 mapping rather than an exact GPT-5.6 mapping.
- The resulting per-model cost and aggregate totals are wrong.
- Because the fallback is silent, users cannot tell whether the total is an estimate, a subscription usage figure, or a price calculated for a different model.
Expected behavior
- Preserve the exact model identifier from the Codex usage record.
- Display GPT-5.6 distinctly as
GPT-5.6(and preserve any exact documented variant or suffix rather than reducing it toGPT-5). - Apply the correct, documented pricing for the exact model when a billable price is available.
- If Codex subscription usage does not expose a reliable billable API price, do not silently reuse GPT-5 pricing. Show the model correctly and mark cost as unavailable or configurable, with a clear warning.
Suspected cause
The installed 0.7.2 bundle has a generic gpt-5 display/pricing fallback, but the GPT-5.6 model identifier is not resolved consistently across the model-name and pricing paths. An unknown or unmatched GPT-5.6 identifier therefore falls through to the generic GPT-5 label/rate.
I tested the diagnosis with a local-only workaround in the installed bundle by adding explicit GPT-5.6 display/pricing entries. That is not an upstream source change and will be overwritten on reinstall; the upstream fix should use the repository's normal model registry and verify the rates against the provider/source of truth rather than copying guessed values.
Suggested fix
- Normalize provider prefixes without stripping the model version.
- Add exact GPT-5.6 model identifiers to the shared model display registry.
- Resolve pricing using the same canonical identifier used for display.
- Make unknown-model fallback explicit in output and avoid silently charging an unrelated model's rate.
- Add a regression test covering model display, CSV/JSON export, per-model totals, and aggregate totals for GPT-5.6 usage.
This is a regression/recurrence of the earlier GPT-5.6 report in #754, with the current version and system details included here.