Skip to content

Codex cost summary can show implausible cost/token combinations #602

@cuidong233

Description

@cuidong233

Summary

The Codex cost summary can show a completely implausible combination of cost and token count, for example $0.08 · 2.3B tokens.

Why this looks wrong

2.3B tokens is billions of tokens. That volume cannot plausibly cost only $0.08, so at least one of these values is being computed or displayed incorrectly.

What I expected

The displayed token count and displayed USD cost should be internally consistent for the same underlying usage.

What happened

The UI showed a tiny cost together with an enormous token count ($0.08 · 2.3B tokens).

Screenshot

Implausible cost/token combination

Suspected cause

This looks more like a token aggregation/parsing issue than a pricing-table issue.

Possible areas to inspect:

  • Codex log parsing of total_token_usage vs last_token_usage
  • delta calculation when cumulative counters reset, roll over, or are re-read from cache
  • duplicate counting across files/sessions
  • summary token totals coming from a different source than cost totals

Notes

I initially investigated a separate menu hover issue, but after reviewing the screenshot more closely, the core user-visible bug seems to be the cost/token inconsistency itself.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions