Skip to content
Source
Sign inSign up
pingdotgg/t3code

[Bug]: Cursor SDK API requirements are strict #16224

ClosedAshishSardana(GitHub profile, opens in a new tab) opened this issue 3 comments

Before submitting

  • I searched existing issues and did not find a duplicate.
  • I included enough detail to reproduce or investigate the problem.

Area

apps/web

Steps to reproduce

T3 code uses Cursor SDK for adding Cursor as a provider. Cursor is used by Enterprise and they typically turn off some API Endpoints. Some API Endpoints that T3 code use can be made optional to enable developers to use their Enterprise account. Here's a list

SDK callEndpointResultPlease make it optional
Agent.prompt local run (composer-2.5)local runtimeWorks: status finished, reply "pong"obviously required
Cursor.models.listGET /v1/modelsWorks: 30 models, including composer-2.5, claude-opus-5-5, gpt-5.6-solobviously required
Cursor.meGET /v1/me403 feature_unavailableyes
Cursor.repositories.listGET /v1/repositories403 feature_unavailableyes
Agent.list (cloud agents)GET /v1/agents403 feature_unavailableyes

Expected behavior

T3 code authenticates with Cursor SDK API without requiring /v1/me

Actual behavior

Image

Impact

Blocks work completely

Version or commit

No response

Environment

No response

Logs or stack traces

Screenshots, recordings, or supporting files

No response

Workaround

No response

  1. AshishSardana(GitHub profile, opens in a new tab) added labelsneeds-triage

  2. Note

    Grok responding on behalf of Julius.

    Triage

    Thanks for the detailed endpoint table, @AshishSardana! On current main (24238fee32), a 403 from GET /v1/me fails the whole Cursor catalog probe even when model discovery and a local run already succeed.

    What I found

    • CursorSdkCatalog.read in apps/server/src/provider/Layers/CursorSdkCatalog.ts waits on both Cursor.me (GET /v1/me) and Cursor.models.list (GET /v1/models), so either failure fails the probe.
    • checkCursorProviderStatus then reports status error. A 403 isn't treated as an authentication failure (only AuthenticationError or HTTP 401 are), so the message is "Cursor SDK catalog request failed. Check server logs for details." and auth stays unknown. Discovered models are dropped and only custom models remain.
    • The model picker treats a non-ready instance as unavailable (isProviderInstancePickerReady), and browser sign-in is rejected unless that probe comes back authenticated (CursorDriver's onChanged). The fields from Cursor.me are only used for the settings label and email (cursorSdkAuth), not to create a local agent.
    • T3 Code doesn't call Cursor.repositories.list (GET /v1/repositories) or Agent.list (GET /v1/agents). Local runs go through Agent.create / agent.send, so those two 403s shouldn't affect local work.
    • This is separate from #15075 (and its PR #15569), where both /v1/me and /v1/models return 403 plan_required on a free plan. Here only the identity endpoint fails.

    Likely fix area

    • One option is letting model discovery succeed when Cursor.me returns feature_unavailable or another non-401 failure, treating the key that listed models as authenticated and falling back to a generic API-key label when the email and key name are missing.
    • A real 401 could stay an authentication failure, and cloud repository and agent listing wouldn't need changes for this.

    A maintainer will decide on the fix direction.

  3. juliusmarminge removed labelsneeds-triage

  4. juliusmarminge added labelsvia-triage

  5. Will this change introduce any risks? Hoping this will be a quick change

  6. Inspected current main at b5a226e49c. The Cursor catalog still requires both Cursor.me and model discovery to succeed; a /v1/me failure makes the provider status an error in packages/provider-cursor/src/server/status.ts. This is source inspection, not a runtime reproduction: this environment has no configured CURSOR_API_KEY, and the enterprise endpoint restrictions were not exercised. Making the identity probe optional changes provider authentication-status handling, so this needs maintainer review. Leaving the issue open.

  7. maria-rcks closed this

Sign in to join this conversation.