Fix display label for gpt-5.3-codex-spark in codex usage output
Summary
codeburn today and related commands currently render the model display name as "GPT-5.3 Codex" even when usage is actually for gpt-5.3-codex-spark.
This is misleading because users are seeing a retired/legacy model label in day summary output.
Repro
- Run:
codeburn today --provider codex --format json
- In output, see
modelDisplayName: "GPT-5.3 Codex"while the underlying model isgpt-5.3-codex-spark.
Also reproduces when querying model usage directly:
codeburn models --provider codex -p today --format json
Expected
Display should prefer the actual active model name or at least not present as retired legacy GPT-5.3 Codex in UX summaries.
Actual
gpt-5.3-codex-spark is mapped through display-alias logic to GPT-5.3 Codex and shown as such in today/model outputs.
Relevant code path
src/providers/codex.tsincludes display-name mapping entry'gpt-5.3-codex': 'GPT-5.3 Codex'with matching logic.src/models.tscontainsBUILTIN_ALIASES/SHORT_NAMESentries forgpt-5.3-codex.
Why this matters
- Confuses operators on billing/monitoring dashboards by making retired/legacy model look active.
- Masks transition to
-sparksuffix models and makes spend attribution misleading.
Suggested fix
- Add explicit display mapping for the current variant names (including
gpt-5.3-codex-spark) and prefer variant string in UI summary when exact match exists. - Or, if these variants should remain, rename display labels to indicate
GPT-5.3 (Spark)or current public model branding.
Confirmed the label: getShortModelName("gpt-5.3-codex-spark") and the Codex modelDisplayName both return "GPT-5.3 Codex" via a longest-first startsWith(key+"-") match. That's intended for reasoning suffixes (-high/-low); -spark gets caught too.
Pricing isn't affected. LiteLLM is the only price source and has no gpt-5.3-codex-spark, so getModelCosts falls back to the base gpt-5.3-codex rate ($1.75/$14 per M), not $0 or a wrong tier. So this is a cosmetic label, totals are correct.
gpt-5.3-codex-spark isn't in LiteLLM, our maps, or any public model name I can find. Can you paste a real rollout-*.jsonl line that emits it? Once confirmed it's one map entry (plus a price entry if the rate differs).
Picking this up. Root cause is the longest-first startsWith(key + "-") matcher (intended for -high/-low reasoning suffixes) also absorbing the -spark variant, so it renders as the base GPT-5.3 Codex. Fix: add an explicit display entry gpt-5.3-codex-spark -> GPT-5.3 Codex Spark in SHORT_NAMES and the Codex provider's modelDisplayName; the longer key wins under the longest-first sort, while -high/-low still fold onto the base. Pricing is unaffected (LiteLLM has no spark key; cost falls back to the base rate as before). PR incoming.