codeburn icon indicating copy to clipboard operation
codeburn copied to clipboard

Fix display label for gpt-5.3-codex-spark in codex usage output

Open martinmclee opened this issue 5 months ago • 2 comments

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

  1. Run:
codeburn today --provider codex --format json
  1. In output, see modelDisplayName: "GPT-5.3 Codex" while the underlying model is gpt-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.ts includes display-name mapping entry 'gpt-5.3-codex': 'GPT-5.3 Codex' with matching logic.
  • src/models.ts contains BUILTIN_ALIASES / SHORT_NAMES entries for gpt-5.3-codex.

Why this matters

  • Confuses operators on billing/monitoring dashboards by making retired/legacy model look active.
  • Masks transition to -spark suffix 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.

martinmclee avatar Jun 09 '26 08:06 martinmclee

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).

iamtoruk avatar Jun 09 '26 17:06 iamtoruk

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.

ozymandiashh avatar Jun 21 '26 12:06 ozymandiashh