Skip to content

fix(stats): count usage-only sessions as one message#298

Open
694410194 wants to merge 1 commit into
CortexLM:mainfrom
694410194:codex/stats-usage-only-message-count
Open

fix(stats): count usage-only sessions as one message#298
694410194 wants to merge 1 commit into
CortexLM:mainfrom
694410194:codex/stats-usage-only-message-count

Conversation

@694410194
Copy link
Copy Markdown

Summary

  • treat sessions with top-level aggregate token usage but no messages array as at least one message in stats
  • keep session-level usage as the source of truth for token totals
  • add focused coverage for usage-only session JSON

Verification

  • git diff --check
  • rustc --version (not available in this environment, so cargo-based tests could not be run here)

Fixes #53202
/claim #53202

Copy link
Copy Markdown

@greptile-apps greptile-apps Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Your free trial has ended. If you'd like to continue receiving code reviews, you can add a payment method here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant