Skip to content

feat: show Cursor CLI subscription usage in the footer - #20469

Closed
Tauri-EPO wants to merge 1 commit into
stablyai:mainfrom
Tauri-EPO:feat/cursor-usage-meter
Closed

Tauri-EPO wants to merge 1 commit into
stablyai:mainfrom
Tauri-EPO:feat/cursor-usage-meter

Conversation

@Tauri-EPO

Copy link
Copy Markdown
Contributor

ELI5

Cursor users can see their monthly subscription usage in Orca's existing footer and Usage popover. Detailed mode labels Cursor Models and Other models separately; Compact shows the most consumed reported pool. It follows the existing used/remaining preference and visibility controls.

What Changed

  • Add a read-only, asynchronous Cursor CLI auth-file reader and dashboard usage fetcher to the existing rate-limit service.
  • Map explicit percentages and real billing-cycle reset timestamps; missing data is never shown as zero or estimated from spend/bonus credits.
  • Clear old snapshots and cooldowns on credential changes, and discard responses that finish after logout/account changes.
  • Sanitize transport errors, reject authenticated redirects, honor cancellation and HTTP 429 Retry-After, including manual refresh.
  • Keep new snapshot fields optional and negotiate the status-bar item with older paired hosts.

Why

No Cursor footer implementation is merged in the inspected upstream main (fe4237c). This builds on the closest existing work, #16815, with additional regression fixes and current-main schema integration. Remote compatibility adapts #18119. Credit is retained in the commit trailers.

The new regression tests failed against the reused implementation for credential leakage in errors, missing 429 handling, redirects, pool-only responses, cross-account stale data, late logout responses, and Compact presentation, then passed with the corrections.

Linked Issue

Related to #15516 (footer portion only) and #20067. This does not close the broader Accounts-pane/WSL request. Other inspected proposals: #8669, #13837, #16815, #18119; #11780 was closed without merging.

Visual Proof

Playwright captured these directly from a hidden Electron renderer on Windows. The same isolated test profile is used throughout. Percentages are synthetic fixtures, not personal account data. Before shows the unconfigured/absent meter; after seeds the configured Cursor snapshot. No screenshot files are committed.

Before Detailed
Footer without Cursor usage Detailed Cursor footer
Compact Light theme
Compact Cursor footer Cursor footer in light theme

Cursor Usage popover

Testing

  • Automated tests added/updated.
  • Windows live investigation: the CLI token authenticated GetCurrentPeriodUsage with HTTP 200. Tokens were kept out of logs and artifacts.
  • pnpm build passed, including all typecheck projects, relay/CLI/desktop/web output and platform-native build.
  • pnpm run check:code-quality:changed -- --base HEAD passed: zero new findings across all five checks.
  • Directed suite covering rate-limit service/fetchers, footer, web UI compatibility, appearance search, hydration, shared types, and RPC preferences: 986 passed, 9 failed, 995 total across 108 files. All nine failures reproduce on the original upstream rate-limit sources at fe4237c: two Codex child-kill assertions and seven Claude fallback/supplement assertions. The baseline control ran 72 tests, with the same nine failures. These are not claimed green.
  • Hidden Electron E2E passed: detailed/compact changes through the real popover, dark/light screenshots, and all native windows confirmed invisible. All test and build launches used ORCA_BACKGROUND_LAUNCH=1.
  • Full repository unit/lint suites and macOS/Linux/SSH execution were not run locally; cross-platform CI remains pending.

AI Disclosure

Implemented and reviewed with OpenAI Codex (GPT-6).

Review

  • Cross-platform: paths are resolved per platform; only Windows account authentication and rendered behavior were tested live. macOS/Linux file paths are unit-tested. Keychain-only and IDE-only logins are explicitly outside this reader.
  • SSH/remote/local: this is the serving runtime's account meter. Changing to an SSH or WSL workspace does not claim that workspace's credentials or forward client tokens. Folder workspaces share the same account usage. New web clients filter the enum for old hosts; snapshot fields are optional.
  • Supported agents/integrations: reuses shared polling, state, popover, icons, and controls; retains Gemini bucket filtering. No native Cursor chat or token refresh is added.
  • Performance: two small asynchronous auth reads per cycle, a bounded cancellable request, existing poll/backoff lifecycle, and no SQLite scans or new timers.
  • UI: existing tokens and components, named independent model pools, used/remaining preference, compact/detailed controls, and dark/light evidence.
  • Security: credentials stay in the main process; only a private hash identifies cache ownership. No auth-file writes, cookie extraction, raw transport errors, or credential forwarding across redirects.

Agent skill upstream boundary

  • Not applicable; no upstream skill-installer source or fixtures copied.

Notes

The personal-account dashboard endpoint is undocumented and may change. Authentication currently requires the CLI's auth.json on the serving runtime. See docs/readme/cursor-usage.md for scope and failure behavior. Native OS credential stores, IDE SQLite credentials, account management, and workspace-specific WSL/SSH accounts remain outside this footer change.

Author

X/Twitter handle: not provided.

Checklist

  • Scoped to Cursor subscription usage in the footer.
  • Explained what changed and why, with prior-work attribution.
  • Before/after screenshots attached.
  • Self-reviewed for correctness, security, and performance.
  • Cross-platform, SSH/remote, and path impact considered.
  • All CI checks green; draft pending CI and platform validation.

Adapt existing Cursor footer work to current upstream with account-safe
refreshes, bounded requests, compact presentation and remote compatibility.

Co-authored-by: ivo922 <[email protected]>
Co-authored-by: Mihail Vratchanski <[email protected]>
@Tauri-EPO
Tauri-EPO marked this pull request as ready for review September 13, 2026 10:18
@coderabbitai

coderabbitai Bot commented Sep 13, 2026 •

Copy link
Copy Markdown
Contributor

Review Change StackReview Change Stack

📝 Walkthrough

Walkthrough

This change adds Cursor CLI authentication and dashboard usage fetching. It integrates Cursor into rate-limit service state, refresh cycles, credential identity handling, retry behavior, and shared types. It adds Cursor status-bar visibility, rendering, settings search, localization, error messages, default-item migration, and paired-host capability filtering. Tests cover authentication, fetching, service orchestration, rendering, persistence, compatibility, and end-to-end behavior.

Priority: ➖ Normal

Merge Risk: 🔵 Low · up to 8ba86

A temporary paired-host status failure can prevent an acknowledged status-bar update from reaching the host. Local preferences remain saved, but the host update should fall back to the compatible payload.

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 3.51% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 57 functions across 50 files. (12 skipped:… Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (4 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly and concisely describes the main change: displaying Cursor CLI subscription usage in the footer.
Description check ✅ Passed The description covers the required sections, including scope, rationale, linked issues, visual proof, testing, AI disclosure, compatibility considerations, and checklist status. It also clearly docum…
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
Full details: Docstring Coverage

Explanation

Docstring coverage is 3.51% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 57 functions across 50 files. (12 skipped: 2 unsupported, 10 over the file limit.)

  • Fix all pre-merge checks with AI

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Actionable comments posted: 1


ℹ️ Review info
⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Advanced

Run ID: 76ddcb21-3767-4c80-9595-0d8616b355fe

📥 Commits

Reviewing files that changed from the base of the PR and between fe4237c and 8ba8640.

📒 Files selected for processing (62)
  • docs/readme/cursor-usage.md
  • mobile/src/components/accounts-snapshot.ts
  • src/main/rate-limits/claude-oauth-usage-error.ts
  • src/main/rate-limits/cursor-auth.test.ts
  • src/main/rate-limits/cursor-auth.ts
  • src/main/rate-limits/cursor-credential-identity.ts
  • src/main/rate-limits/cursor-fetcher-failures.test.ts
  • src/main/rate-limits/cursor-fetcher.test.ts
  • src/main/rate-limits/cursor-fetcher.ts
  • src/main/rate-limits/rate-limit-retry-after.ts
  • src/main/rate-limits/rate-limit-service-test-harness.ts
  • src/main/rate-limits/service-account-target-selection.test.ts
  • src/main/rate-limits/service-antigravity-usage.test.ts
  • src/main/rate-limits/service-cursor-identity.test.ts
  • src/main/rate-limits/service-inactive-account-previews.test.ts
  • src/main/rate-limits/service-live-claude-usage.test.ts
  • src/main/rate-limits/service-minimax-usage.test.ts
  • src/main/rate-limits/service-refresh-orchestration.test.ts
  • src/main/rate-limits/service-window-activation.test.ts
  • src/main/rate-limits/service/service-configuration.ts
  • src/main/rate-limits/service/service-full-cycle-application.ts
  • src/main/rate-limits/service/service-full-cycle-preparation.ts
  • src/main/rate-limits/service/service-polling.ts
  • src/main/rate-limits/service/service-result-policy.ts
  • src/main/rate-limits/service/service-state.ts
  • src/main/rate-limits/service/service-types.ts
  • src/main/runtime/rpc/methods/client-ui.test.ts
  • src/renderer/src/components/settings/AppearanceWindowSidebarSection.tsx
  • src/renderer/src/components/settings/appearance-status-bar-cursor-toggle-search.ts
  • src/renderer/src/components/settings/appearance-status-bar-ports-toggle-search.ts
  • src/renderer/src/components/settings/appearance-status-bar-search.test.ts
  • src/renderer/src/components/settings/appearance-status-bar-search.ts
  • src/renderer/src/components/status-bar/StatusBarProviderSegment.tsx
  • src/renderer/src/components/status-bar/StatusBarVisibilityMenu.tsx
  • src/renderer/src/components/status-bar/provider-segment-monthly-window.test.tsx
  • src/renderer/src/components/status-bar/status-bar-agent-gating.test.ts
  • src/renderer/src/components/status-bar/status-bar-agent-gating.ts
  • src/renderer/src/components/status-bar/status-bar-provider-visibility.test.ts
  • src/renderer/src/components/status-bar/status-bar-provider-visibility.ts
  • src/renderer/src/components/status-bar/tooltip.test.ts
  • src/renderer/src/components/status-bar/tooltip.tsx
  • src/renderer/src/components/status-bar/usage-error-copy.test.ts
  • src/renderer/src/components/status-bar/usage-error-copy.ts
  • src/renderer/src/components/status-bar/usage-provider-settings-target.test.ts
  • src/renderer/src/components/status-bar/usage-provider-settings-target.ts
  • src/renderer/src/components/status-bar/use-status-bar-controller.ts
  • src/renderer/src/i18n/locales/en.json
  • src/renderer/src/store/slices/ui-hydration-workspace-preferences.test.ts
  • src/renderer/src/store/slices/ui/ui-slice-hydration-actions.ts
  • src/renderer/src/web/preload-api/web-status-bar-host-updates.ts
  • src/renderer/src/web/preload-api/web-ui-api.test.ts
  • src/renderer/src/web/preload-api/web-ui-api.ts
  • src/shared/cursor-usage-buckets.ts
  • src/shared/persisted-ui-state-types.ts
  • src/shared/protocol-version.ts
  • src/shared/rate-limit-state-factory.ts
  • src/shared/rate-limit-types.test.ts
  • src/shared/rate-limit-types.ts
  • src/shared/rpc-contract/client-ui-params.ts
  • src/shared/status-bar-defaults.ts
  • src/shared/ui-chrome-types.ts
  • tests/e2e/status-bar-cursor-usage.spec.ts

Included review availability: Your plan provides up to 10 included reviews per hour; 9 remain after this review.

if (!hostUpdates.statusBarItems?.includes('cursor')) {
return hostUpdates
}
const status = await getRemoteRuntimeStatus()

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🩺 Stability & Availability | 🟡 Minor | ⚡ Quick win

Handle failed remote status queries as unsupported.

If getRemoteRuntimeStatus() rejects, prepareHostUiUpdates rejects before it removes cursor. setWithAck propagates that rejection, so it does not send ui.set. However, setWithAck writes the merged local UI state first, so local persistence has already occurred.

Treat a failed capability query as unsupported and remove cursor before returning the host update. This allows setWithAck to send the compatible update.

@pullfrog pullfrog Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Important

The Cursor credential-identity check conflates an unreadable/corrupt auth.json (status: 'error') with a signed-out state, so a transient file read/parse failure is treated as an account change: it clears the meter (and its 429 cooldown) and discards a freshly fetched valid snapshot. See the inline comment.

Reviewed changes

Reviewed the full 62-file diff at 8ba8640dd0 against main (fe4237cd41) — a new Cursor subscription-usage meter in the status bar.

  • Auth + fetch: new cursor-auth.ts (async auth.json read, per-platform paths, sanitized errors) and cursor-fetcher.ts (timeout/abort, redirect: 'error', 401/403/429 handling, percent clamping, billing-cycle reset mapping).
  • Service integration: a cursor slot and cursorAuthConfigured flag threaded through the rate-limit service, with per-cycle credential-key change detection, late-response discard, and a 429 cooldown that skips the fetch.
  • Renderer: status-bar visibility/gating (detection-gated on cursor-agent), segment/bucket presentation, tooltip icon and error copy, settings search entry, and default-on hydration.
  • Shared/wire: cursor added to the StatusBarItem/provider enums plus optional snapshot fields, and a status-bar.cursor-item.v1 capability the web preload uses to strip cursor before writing to hosts that don't advertise it.
  • Tests/docs: fetcher/auth/identity/web-compat/segment tests, an e2e footer spec, and docs/readme/cursor-usage.md.
Technical details
# Auth-read errors are treated as account changes

## Affected sites
- `src/main/rate-limits/cursor-credential-identity.ts:5` — `cursorCredentialKey` returns `null` for both `missing` and `error`, so callers cannot tell "logged out / different account" from "file momentarily unreadable".
- `src/main/rate-limits/service/service-full-cycle-preparation.ts:152-155` — clears `state.cursor` (and its `usageMetadata.retryAtMs`) whenever the key differs; an `error` read yields `null`.
- `src/main/rate-limits/service/service-full-cycle-application.ts:230-234` — `latestKey !== cursorResult.value.credentialKey` is also true when the second read errors, so the just-fetched valid result is thrown away.

## Required outcome
- Only treat a real credential change as: a different valid token hash, or a genuine `missing` (signed out). A read/parse `error` must leave `this.cursorCredentialKey` and `state.cursor` untouched and must not discard the in-flight result.
- `cursorAuthConfigured` should not flip to `false` on a transient error if the previous read was `ok`.
- Add a regression test where `readCursorAuthSession` resolves `{ status: 'error' }`; the current suite only covers `missing` and network failures, so this path is untested.

## Open questions for the human
- Should an auth-file parse error keep the last-good snapshot with an error chip (the `grok` behaviour) rather than blanking the meter?

ℹ️ Nitpicks

  • src/main/rate-limits/service-cursor-identity.test.ts:99 uses expect(service.getState().cursor?.session ?? null).toBeNull(), which also passes for cursor === null, undefined, or a fetching placeholder. expect(service.getState().cursor).toBeNull() would actually pin the "cleared" claim in the test name.
  • The Linux/macOS auth path matches Vercel's official @ai-sdk/harness-cursor resolver, but those platforms are unit-tested only, not live-verified. A cheap fallback to ~/.cursor/auth.json (the CLI home Orca already assumes elsewhere) would cover installs whose CLI resolves auth differently.

Pullfrog  | Fix all ➔ | Fix 👍s ➔ | View workflow run | Using DeepSeek Flash (free via Pullfrog for OSS) | 𝕏

Comment on lines +230 to +234
if (cursorResult.status === 'fulfilled' && latestKey !== cursorResult.value.credentialKey) {
// An account changed while the request was in flight; its response no longer owns the meter.
this.updateState({ ...this.state, cursor: null })
return
}

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

The identity check treats an auth-file read/parse error (status: 'error') exactly like a signed-out state: cursorCredentialKey returns null for both, so a transient failure (e.g. cursor-agent rewriting auth.json mid-login, or an EACCES) registers as an account change. This branch then discards the freshly fetched valid snapshot, and the prepare-side clear at service-full-cycle-preparation.ts:152-155 also drops the 429 retryAtMs cooldown. grok keeps its last-good snapshot through the same auth-read error, so this is a behavioral regression rather than an intentional policy.

Technical details
# Auth-read errors are treated as account changes

## Affected sites
- `src/main/rate-limits/cursor-credential-identity.ts:5` — returns `null` for both `missing` and `error`.
- `src/main/rate-limits/service/service-full-cycle-preparation.ts:152-155` — clears `state.cursor` + cooldown on any key mismatch.
- `src/main/rate-limits/service/service-full-cycle-application.ts:230-234` — mismatches when the second read errors, discarding the result.

## Required outcome
- An `error` read must leave `this.cursorCredentialKey` and `state.cursor` untouched and must not discard the in-flight result; only a different valid hash or a genuine `missing` should count as a change.
- `cursorAuthConfigured` should not flip to `false` on a transient error if the previous read was `ok`.
- Add a regression test with `readCursorAuthSession` resolving `{ status: 'error' }`.

lurunzi added a commit to lurunzi/orca that referenced this pull request Sep 23, 2026
Reuse the usage service and footer for Cursor monthly allowances. Adapt paired-host preference compatibility from stablyai#20469.

Co-authored-by: Tauri-EPO <[email protected]>
Co-authored-by: Mihail Vratchanski <[email protected]>
Co-authored-by: Codex <[email protected]>
(cherry picked from commit 72d5f98)
@lurunzi

lurunzi commented Sep 24, 2026

Copy link
Copy Markdown
Contributor

I have a local Cursor usage prototype and would like to contribute its independent hardening parts here rather than open a competing PR: fork implementation.

The review points worth retaining are credential-fingerprint isolation (an account change must not reuse another account's quota), Retry-After handling, execution-host ownership of credentials, and capability negotiation before a host publishes new status-bar content to older clients. The full commit also contains unrelated tooling/settings changes and should not be imported wholesale.

Protocol/source attribution to steipete/CodexBar (MIT), #20469 and #18119 must be retained when extracting code. I have not revalidated live account/API behavior or rendered UI in this contribution round. This is a source-level contribution note, prepared with Codex.

@nwparker

Copy link
Copy Markdown
Contributor

Heads up — I've opened #22633, which brings Cursor usage tracking together from this PR and the other open attempts (#8669, #11780, #13837, #16815, #18119, #20469, #21833). You're credited as a co-author on the commit; your work is in there.

The one thing I changed structurally: none of the open PRs read the macOS Keychain, and that's where cursor-agent 2026.06+ actually stores the session. On an up-to-date macOS install there's no ~/.cursor/auth.json at all, so the auth.json PRs find nothing, and the state.vscdb PRs find nothing for CLI-only users. #22633 reads keychain → auth.json → Cursor IDE in order, so it works either way.

Could you try it on your account and tell me if the numbers are right? There's an installable build here:

https://github.com/stablyai/orca-adhoc/releases/tag/v1.4.211-adhoc.20260924221219

macOS is signed and notarized, so it installs through Orca's updater. Windows is unsigned — grab orca-windows-setup.exe and run it once (SmartScreen will warn), and every switch after that works in-app. To go back, switch channels in Settings → Updates.

What I'd love checked, since I couldn't: the live numbers on a working paid plan. The only Cursor account on this machine has an expired token, so I verified the credential discovery and every error path end-to-end, but never saw real percentages render. If the pools (Cursor Models / Other Models / On-demand) and the plan total match what cursor.com/dashboard shows you, that's the confirmation I'm missing. If they don't, tell me what you see versus the dashboard and I'll fix it.

Also useful if you're on a plan shape I couldn't test: unlimited/Ultra, on-demand enabled, teams, or the older request-quota billing.

@nwparker

Copy link
Copy Markdown
Contributor

Update: new build, please use this one instead —

https://github.com/stablyai/orca-adhoc/releases/tag/v1.4.211-adhoc.20260924232116

The build I linked earlier has been deleted, because review found three bugs in it that would have hit you directly:

  • An expired CLI token hid a valid Cursor IDE session. If you ever ran cursor-agent login and now work mainly in the IDE, the old build told you "sign-in expired" forever while a perfectly good session sat unused. A live session now wins regardless of where it's stored.
  • A null field in the response threw away the whole reading, so some accounts would have shown no usage at all.
  • Cursor's pools rendered with no number — icon and an empty bar. That one only showed up on a healthy account, which is exactly what I couldn't test.

Same ask as before, and the same one thing I still can't verify myself: do the numbers match your cursor.com dashboard? Install instructions are unchanged — macOS through Orca's updater, Windows via orca-windows-setup.exe once past SmartScreen, Settings → Updates to go back.

@lurunzi

lurunzi commented Sep 25, 2026

Copy link
Copy Markdown
Contributor

Hi @nwparker!

Tested on Windows with an active Cursor Pro account — everything renders cleanly and the live numbers match my cursor.com dashboard perfectly:

  • Plan: Pro
  • Cursor Models: 78% used (rendered in yellow warning tier)
  • Other Models: 100% used (rendered in red full tier)
  • Reset timer: Resets in 1d 10h (matching Sep 26)
  • Credential resolution: Seamlessly picked up from %APPDATA%\Cursor\auth.json with zero errors or empty bars.

Here are the live screenshots on Windows (both Compact and Detailed modes):

Compact Mode

Compact Mode

Detailed Mode

Detailed Mode


By the way, seeing how cleanly you consolidated RateLimitService across platforms, I wanted to mention that I've also implemented a local probe for Antigravity quota / rate limits on my fork: feat(rate-limits): support Antigravity 5h and weekly quota via local probe. It connects to the local Antigravity Language Server Connect-RPC endpoint to track 5h session and weekly quota (dual-window, similar to Claude/Codex), alongside separating Antigravity effort tiers into a clean pill picker (feat(native-chat): split CLI-listed effort tiers).

If you or the team are interested in bringing Antigravity usage into the footer status bar next, I'd be more than happy to open a PR or collaborate on upstreaming it!

@nwparker

Copy link
Copy Markdown
Contributor

This is exactly the test I couldn't run — thank you. A live Pro account on Windows covers three things I only had unit tests for: the %APPDATA%\Cursor\auth.json path, the two-pool render, and a pool sitting at 100%. I've recorded it in the PR description and credited you there.

Attribution — agreed, and it's now in the PR description. The WorkosCursorSessionToken cookie shape, the usage-summary endpoint and the CSRF Origin/Referer requirement came from steipete/CodexBar (MIT) via #13837, #18119, #20469 and #21833, along with the used / limit preference over the rounded percentage fields, isUnlimited, and the legacy request-quota fallback. All six PR authors are co-authors on the commit.

Your four hardening points — I checked each against the branch rather than assuming:

  1. Credential-fingerprint isolation — in. The snapshot carries a truncated sha256 of the WorkOS subject (hashed because it rides into renderer and mobile state), and a known-and-changed identity clears the previous reading before the stale policy runs. Worth flagging that my first attempt at this was broken: provenance was stamped only on success, so the guard was unreachable for exactly the case it existed for — an account switch whose first refresh fails. Fixed in c665ac7; every failure holding a readable session now names its account.
  2. Retry-After — in. 429 parses it into retryAtMs, and the service skips refetches while that window is open.
  3. Execution-host ownership — in. Tokens never leave main; the renderer sees percentages, a source label and a boolean. A web client says the sign-in detail is host-only rather than claiming "not signed in".
  4. Capability negotiation — I don't think this change needs it, and I'd rather say why than just agree. No old client can receive a cursor provider value: mobile's ProviderRateLimitsSchema is only applied to the claude/codex/inactive-account slots, which never carry Cursor, and web clients build their rate-limit state locally (createRateLimitsApi returns an empty state) rather than decoding the host's. New optional fields on RateLimitState are ignored by an older client, and a newer client already treats a missing provider key as pending. So there's no new opcode and nothing an old decoder can choke on. If you've seen a path where the host does publish this to an older client, I'd genuinely like to know — that's the kind of thing I'd rather be wrong about early.

So I think the hardening you flagged is already covered. If your fork has something beyond those four, point me at the specific hunk and I'll pull it in with attribution.

Antigravity — out of scope here, yes. This PR is one provider and is at the point of merging; folding in a second provider with a different transport (local Connect-RPC to the language server) would mean re-reviewing the whole thing. It sounds genuinely useful though, and the provider seam this adds should make it a much smaller change to land on its own — #16704 is the parity issue for it, and a standalone PR referencing that would be the natural home. Happy to review.

@Tauri-EPO

Copy link
Copy Markdown
Contributor Author

Closing in favor of #22633, which merged on 2026-09-26 and shipped in v1.4.214. It brings the open Cursor usage attempts together, this one included (co-authored on 8846987), and also reads the macOS Keychain and the Cursor IDE session, which this PR did not. Thanks for consolidating them.

@Tauri-EPO Tauri-EPO closed this Oct 2, 2026
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.

3 participants