Skip to content

fix(cursor): support overall usage summary#555

Open
tomvardasca wants to merge 1 commit intosteipete:mainfrom
tomvardasca:feature/fix-cursor-overall-usage
Open

fix(cursor): support overall usage summary#555
tomvardasca wants to merge 1 commit intosteipete:mainfrom
tomvardasca:feature/fix-cursor-overall-usage

Conversation

@tomvardasca
Copy link

Summary

Fix Cursor usage parsing for enterprise/team accounts.

Cursor now returns included-plan usage under individualUsage.overall for some accounts. CodexBar only read individualUsage.plan, which caused usage to display as 0%.

Changes

  • fall back to individualUsage.overall
  • fall back to teamUsage.pooled when needed
  • add regression tests for the newer payload shape

Testing

  • swift test --filter CursorStatusProbeTests

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