Skip to content

Cursor usage for the selected authenticated account #1941

Closed

Description

@currentbits

User outcome

Show quota/usage only when a supported Cursor SDK/account source can be bound to the selected identity. Surface unsupported or stale data clearly.

Current scope

providerUsage explicitly marks Cursor unsupported. The later upstream fix uses the SDK account and removes CLI/Keychain fallback. This is a candidate only if Solenta adopts a supported authentication integration, not a reason to scrape unrelated credentials.

Acceptance criteria

  • Investigate a supported SDK/account usage source before implementation.
  • Bind usage to the selected identity; avoid unrelated CLI/Keychain-account fallback.
  • Represent unsupported/stale/error states explicitly and test attribution without exposing credentials.

Verification

Add focused behavior coverage for the changed path, run relevant checks and record any unverified platform/provider behavior. Do not alter real user credentials or settings during tests.

Tracked by #1926. Implementation status is separate from merge status.

Activity

  1. added
    plan:todo
    plan:doing
    and removed
    plan:todo
    on Nov 8, 2026
  2. currentbits commented on Nov 11, 2026

    @currentbits
    OwnerAuthor

    Investigation (2026-11-11), branch coder/cursor-usage-for-the-selected-authentica-be66cb @ 558adfb2:

    • Cursor CLI 2026.09.10: status --format json returns auth state only, and about --format json adds tier and email. Neither has any usage or quota fields.
    • @cursor/sdk 1.3.1 has agent.getUsage() / Agent.getUsage(id), which give token counts and cost for one agent's runs. It also has Cursor.me(), which returns the API key's name and owner. Both need CURSOR_API_KEY. There are no plan-quota or rate-limit windows.
    • Solenta authenticates Cursor through the CLI login, not an SDK API key.

    Result: there is still no supported account-quota source, so Cursor stays explicitly unavailable and nothing falls back to CLI or Keychain credentials. Changed in this commit: the message and spec research are updated, and a new test covers the base cursor row and a named Cursor instance. It checks that both are unavailable with no windows and fetchedAt: null, that nothing is spawned, and that no API key appears in the row. The UI already marks stale and error rows. This is worth revisiting only if Solenta adopts SDK/API-key auth and Cursor adds an account quota API.

  3. added
    plan:done
    and removed
    plan:doing
    on Nov 11, 2026
  4. currentbits commented on Nov 11, 2026

    @currentbits
    OwnerAuthor

    Closing: neither the CLI nor @cursor/sdk 1.3.1 offers a supported account-quota source, so Cursor stays explicitly unavailable with no cross-account fallback. Investigation and test are in 558adfb2 on coder/cursor-usage-for-the-selected-authentica-be66cb. Reopen if Solenta adopts SDK/API-key auth and Cursor adds an account quota API.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    plan:done

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions