Skip to content

fix(cost): reconcile usage estimates and billing labels#522

Open
willytop8 wants to merge 1 commit intosteipete:mainfrom
willytop8:upstream-cost-clean
Open

fix(cost): reconcile usage estimates and billing labels#522
willytop8 wants to merge 1 commit intosteipete:mainfrom
willytop8:upstream-cost-clean

Conversation

@willytop8
Copy link

Summary

  • reconcile Claude OAuth and Claude web extra-usage values so obvious unit mismatches prefer the web billing value
  • update Codex and Claude local token-cost pricing/model normalization for current model names
  • relabel local token cost as an estimate and rename the latest daily aggregate from "Today" to "Latest day"
  • bump the local cost cache version so pricing updates invalidate stale cached totals

Testing

  • swift build
  • swift test --filter ClaudeOAuthTests
  • swift test --filter ClaudeUsageTests
  • swift test --filter OpenAIDashboardParserTests
  • swift test --filter CostUsageDecodingTests
  • swift test --filter CostUsageScannerTests
  • swift test --filter CLICostTests
  • swift test --filter CostUsagePricingTests
  • swift test --filter MenuCardModelTests

Notes

  • This PR contains only the single fix commit on top of upstream main.
  • The local token-cost numbers remain estimates derived from local logs and published model pricing; they are intentionally separate from dashboard credits and Claude billing values.

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