fix(server): Cursor status says when the account's plan is rejected #15569
main fromrefs/pull/15569/head·opened View on GitHubProblem#
When Cursor rejects a free-plan account, the Cursor provider shows Unavailable with "Cursor SDK catalog request failed. Check server logs for details." The reason is only in server.trace.ndjson: the SDK's /v1/me and /v1/models return 403 with code plan_required. Reported in #15075.
Change#
checkCursorProviderStatus already special-cases authentication failures. It now also checks the catalog failure's cause. A CursorSdkError with code plan_required gets "Cursor's SDK is not available on the free plan. Upgrade the Cursor account to Pro." The wording follows Cursor's own message for that code: "Cloud Agent is not available for free users. Please upgrade to Pro."
Status stays error and auth stays unknown, as before. Other failures keep the generic message.
Scope and approval#
Fixes #15075. It isn't triaged yet. I'm submitting it as a very small, focused fix for an obvious bug: the provider status hides a known, non-retryable reason that the SDK already reports with a stable code. It changes one message in one server function, plus a test. No contract, client, or default changes.
It doesn't change whether free accounts can use Cursor. The report's workaround of staying on a pre-SDK build is a separate question for maintainers.
Verification#
- New test
says when Cursor rejects the account's planinCursorProvider.test.ts. It uses aCursorSdkErrorwithcode: "plan_required"andstatus: 403, the same shape as the report's log. Onmainit fails: the generic "catalog request failed" message is returned. With the fix it passes. vp test run apps/server/src/provider/Layers/CursorProvider.test.ts apps/server/src/provider/Layers/CursorSdkCatalog.test.ts: 10 passed.vp linton both files: no findings.vp run --filter t3 typecheck: exit 0.- Real SDK check, not committed. I pointed the real
@cursor/sdk1.0.31 at a local HTTP server throughCURSOR_BACKEND_URL. That server answered every request with403 {"error":{"code":"plan_required","message":"Cloud Agent is not available for free users. Please upgrade to Pro."}}. I then rancheckCursorProviderStatuswith the realCursorSdkCatalogLive. The SDK requestedGET /v1/me.
main | this PR | |
|---|---|---|
status / auth.status | error / unknown | error / unknown |
message | "Cursor SDK catalog request failed. Check server logs for details." | "Cursor's SDK is not available on the free plan. Upgrade the Cursor account to Pro." |
Not checked: a real free-plan Cursor account against Cursor's API. I don't have one.
- 1
github-actions[bot](GitHub profile, opens in a new tab) added labelsvouch:unvouched
github-actions[bot](GitHub profile, opens in a new tab) added labelssize:XS
Approvability#
Verdict: Approved at
908bc80Macroscope's review found this PR approvable — This is a small, self-contained provider-status bug fix that maps an existing
You can add or adjust custom eligibility rules. [Learn more](https://docs.macroscope.com/approvability#example-custom-eligibility-rules).plan_requiredSDK error to a clear upgrade message without changing successful requests, authentication handling, or provider behavior. A focused regression test covers the new path.Navigate logical layers of code changes, visualize relationships, and explore their blast radius.
🧰 Additional context used
📚 Code guidelines (1)
docs/internals/effect-services.md — auto-discoveredNo actionable comments were generated in the recent review. 🎉
ℹ️ Recent review info
⚙️ Run configuration
- Configuration used: Repository: pingdotgg/t3code/.coderabbit.yaml
- Review profile: CHILL
- Plan: Advanced
- Run ID:
7515bf70-28a5-4e87-aaa7-36a0de825bbb
📥 Commits
Reviewing files that changed from the base of the PR and between eac52f0087d9ba5dee5542f24788d1482affae43 and 908bc8077dd0ea4a6820d366e92be085c6b5711b.
📒 Files selected for processing (2)
apps/server/src/provider/Layers/CursorProvider.test.tsapps/server/src/provider/Layers/CursorProvider.ts
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 8 remain after this review.
📝 Walkthrough
Walkthrough#
The Cursor provider now identifies SDK catalog failures with code
plan_requiredand reports that the SDK requires a Pro plan. A test verifies the error status and message for a 403 failure.Changes#
Cursor plan status
Layer / File(s) Summary Detect and report plan-required failures
apps/server/src/provider/Layers/CursorProvider.ts,apps/server/src/provider/Layers/CursorProvider.test.tsThe provider detects CursorSdkErrorfailures with codeplan_requiredand reports a Pro-plan message. The test checks the error status and message for a 403 failure.Priority: ➖ Normal
Estimated code review effort: 2 (Simple) | ~10 minutes
Change: Bug fix · Severity of issue fixed: Medium
Suggested reviewers:
maria-rcksMerge Risk: ⚪ Minimal · up to
908bcCursor status will now say when a free plan is rejected. Other failures keep their current messages. No merge-blocking risk is apparent.
🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation Title check ✅ Passed The title clearly identifies the fix: Cursor status now explains when the account's plan is rejected. Description check ✅ Passed The description covers the problem, change, scope and approval rationale, and verification. It reports specific test and lint results, a real-SDK check, and the limitation that a real free-plan accoun… Linked Issues check ✅ Passed Issue #15075requires provider status to explain a Cursorplan_requiredaccount rejection instead of showing the generic catalog error.checkCursorProviderStatusnow recognizes aCursorSdkError…Out of Scope Changes check ✅ Passed The diff changes only checkCursorProviderStatusand adds a focused test for issue#15075. Both changes directly support the requested status message. No unrelated changes appear in the diff.Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 2… ✨ Finishing Touches
🧪 Generate unit tests (beta)
- Create a new PR
- Autopilot · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Comment `@coderabbitai help` to get the list of available commands.Note
Written by
claude-opus-5-5on behalf of MariaHi! We are cleaning up open PRs, and this one does not say which model or harness was used to create it. If this change is really important, we recommend rebuilding the PR with a newer model and noting the model and harness in the PR description.
maria-rcks closed this
Sign in to join this conversation.
macroscopeapp[bot](GitHub profile, opens in a new tab) approved these changes