t3code icon indicating copy to clipboard operation
t3code copied to clipboard

[Bug]: Usage page displays unpriced activity as zero cost

Open caezium opened this issue 3 months ago • 1 comments

Before submitting

  • [x] I searched existing issues and did not find a duplicate.
  • [x] I included enough detail to reproduce or investigate the problem.

Area

apps/web

Steps to reproduce

  1. Add or encounter a Claude or Codex transcript whose model is not present in the loaded LiteLLM rate table.
  2. Open Usage for a window containing that activity.
  3. Select the cost view and inspect the headline and model/day breakdown.

The server correctly includes the tokens, sets the cost source to unpriced, and increments unpricedRecords.

Expected behavior

The page should visibly say that the API-equivalent cost is unavailable or partial. Fully unpriced rows must not look like a genuine $0.00 result, and mixed totals should indicate that the displayed dollar amount is a lower bound.

Actual behavior

The page formats missing cost as $0.00 and does not expose the already-computed unpriced coverage. The cost-quality data reaches the client but is not rendered after the cost-quality panel was removed.

Impact

Major degradation or frequent failure

Version or commit

main @ 963ebf5bd7cce00d40ff60c258b34c12dcab271e

Environment

Web and desktop Usage page; provider-independent.

Logs, stack traces, or screenshots

UsageBucket.unpricedRecords > 0
MergedUsage.costQuality.unpricedShare > 0
Rendered value: $0.00

Workaround

Switch to the token view and ignore dollar estimates for windows containing unknown models.

caezium avatar Aug 09 '26 08:08 caezium

I have the same issue (Nightly build)

DmitriiSid avatar Aug 09 '26 08:08 DmitriiSid