t3code icon indicating copy to clipboard operation
t3code copied to clipboard

[Bug]: Cursor Grok 4.7 selection does not actually run Grok 4.7

Open j0nsh1n opened this issue 1 month ago • 3 comments

Before submitting

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

Area

apps/server

Steps to reproduce

  1. On T3 Code desktop, start or continue a thread on the Cursor provider.
  2. Select Grok 4.7 in the model picker (Cursor instance).
  3. Send a message.
  4. Inspect the running harness / t3_thread_configuration / the turn's runtime identity.

Related observation from an existing Cursor thread (2bb515bb-32da-496b-9cc6-17103c0b1c70):

  • orchestrator_capabilities lists Cursor model grok-4.7 (label "Grok 4.7") with options contextWindow (256k/500k), fastMode, and reasoning_effort.
  • The same catalog lists Cursor grok-4.6 with a different option schema: effort and fastMode only (no contextWindow, no reasoning_effort).
  • At the start of the turn, t3_thread_configuration was instanceId=cursor, model=grok-4.6, options effort=high, fastMode=false.
  • The in-flight Cursor harness identified itself as grok-4.6.
  • t3_thread_configure to {instanceId: cursor, model: grok-4.7, options: reasoning_effort=high, fastMode=false, contextWindow=500k} returned success (sequence: 997535) and a later t3_thread_configuration read showed grok-4.7.
  • That same turn still continued as grok-4.6.

Selection was restored to grok-4.6 afterward so this thread was not left on the broken choice.

Expected behavior

Choosing Cursor Grok 4.7 should persist and run Grok 4.7 on the next turn. The stored model, the composer, and the Cursor harness identity should match.

Actual behavior

Grok 4.7 appears in the Cursor catalog and can be written into thread configuration, but the Cursor harness still runs Grok 4.6. The option schemas also differ (reasoning_effort + contextWindow on 4.7 vs effort on 4.6), which looks like a mapping / adapter mismatch rather than the model missing from the picker.

I did not find an existing issue specifically about Cursor Grok 4.7 selection falling back to 4.6. Nearby Cursor option bugs: #15788 (1M/500K context tiers ignored), #16149 (default Cursor options not sent).

Impact

Major degradation or frequent failure

Version or commit

T3 Code server 0.1.1-nightly.20261019.3373

Environment

Linux x64 desktop (Nobara), T3 Code environment jonathannobara (8ab08f29-97ba-4e84-b718-b31fc478dc3e), Cursor provider (driverKind=cursor, providerInstanceId=cursor), model grok-4.7 vs running grok-4.6, runtime mode full-access.

Logs or stack traces

t3_thread_configuration (before):
{"threadId":"2bb515bb-32da-496b-9cc6-17103c0b1c70","modelSelection":{"instanceId":"cursor","model":"grok-4.6","options":[{"id":"effort","value":"high"},{"id":"fastMode","value":false}]},"runtimeMode":"full-access","interactionMode":"default"}

t3_thread_configure to grok-4.7:
{"sequence":997535}

t3_thread_configuration (after):
{"threadId":"2bb515bb-32da-496b-9cc6-17103c0b1c70","modelSelection":{"instanceId":"cursor","model":"grok-4.7","options":[{"id":"reasoning_effort","value":"high"},{"id":"fastMode","value":false},{"id":"contextWindow","value":"500k"}]},"runtimeMode":"full-access","interactionMode":"default"}

Cursor catalog snippets:
grok-4.7 options: contextWindow (256k/500k, default 500k), fastMode, reasoning_effort (low/medium/high/xhigh)
grok-4.6 options: effort (low/medium/high/xhigh), fastMode

Screenshots, recordings, or supporting files

No response

Workaround

Stay on Cursor Grok 4.6, or use the native Grok provider instance (driverKind=grok, model grok-4.7) if that path works on the same machine.

j0nsh1n avatar Oct 19 '26 23:10 j0nsh1n

[!NOTE] Grok responding on behalf of Julius.

Thanks for the report. On current main I can't reproduce a fallback from Grok 4.7 to 4.6.

The Cursor adapter sends the thread's model with every turn (packages/provider-cursor/src/server/adapter.ts:2254-2259), so a change made with t3_thread_configure applies from the next turn. A turn that's already running keeps the model it started with, which is what you saw. The mapping passes the model id through unchanged, with no fallback except auto becoming Cursor's default (packages/provider-cursor/src/server/sdkModel.ts:58-69). Each option is sent under the id Cursor's catalog gives it: contextWindow becomes context, fastMode becomes fast, and reasoning_effort and effort are sent as they are. The two models having different option sets comes from Cursor's catalog, not from a mismatch in our mapping.

A model naming itself isn't a reliable signal either. The harness instructions include the selected model's name, and a model's own answer about what it is often doesn't match what's running.

To look into this further, could you:

  1. Select Grok 4.7, then start a fresh turn (not one already running).
  2. Check which model Cursor's own usage records show for that request.
  3. Share the server log lines for that turn, and whether any error about the model or its options came back.

juliusmarminge avatar Oct 19 '26 23:10 juliusmarminge

Follow-up from a fresh Cursor turn, not the in-flight one.

T3 Code 0.1.1-nightly.20261019.3373, Linux x64, Cursor provider. I launched a new thread with t3_thread_launch:

  • stored selection: instanceId=cursor, model=grok-4.7, options reasoning_effort=high, fastMode=false, contextWindow=500k
  • prompt: Do not use tools. Reply with exactly GROK47PROBE-ACK and nothing else.
  • thread: mcp:d280ce41-f839-4ba6-a6de-cb8d23a0f720
  • run: started 2026-10-20T00:17:04.255Z, completed 2026-10-20T00:17:06.157Z, status failed

What Cursor returned

The turn did not fall back to 4.6. Cursor rejected the model/options:

AI Model Not Found Invalid parameters for registry model: "grok-4.7"

T3 showed that as a provider error. Duration 1887 ms. No assistant text.

What T3 sent on the Cursor SDK

From ~/.t3/userdata/logs/provider/events.mcp-d280ce41-f839-4ba6-a6de-cb8d23a0f720.log:

[2026-10-20T00:17:03.628Z] agent.open create
  model: {id:"grok-4.7", params:[{id:"reasoning_effort",value:"high"},{id:"fast",value:"false"},{id:"context",value:"500k"}]}

[2026-10-20T00:17:04.253Z] agent.opened agent-30f1ff83-ff67-40cf-a9b8-6aa6f79d89eb

[2026-10-20T00:17:04.265Z] run.start
  model: {id:"grok-4.7", params:[{id:"reasoning_effort",value:"high"},{id:"fast",value:"false"},{id:"context",value:"500k"}]}

[2026-10-20T00:17:05.671Z] run.started run-8b34fc2a-c0fc-4e13-97e6-5b6aae9aab32

[2026-10-20T00:17:06.152Z] run.completed status=error
  error.message: AI Model Not Found Invalid parameters for registry model: "grok-4.7"
  model: {id:"grok-4.7", params:[{id:"reasoning_effort",value:"high"},{id:"fast",value:"false"},{id:"context",value:"500k"}]}
  durationMs: 1887

Working Cursor Grok 4.6 turns on this machine send {id:"grok-4.6", params:[{id:"effort",value:"high"},{id:"fast",value:"false"}]} only. This 4.7 turn sent reasoning_effort (not effort) and context as well.

server.trace.ndjson has the dispatch spans for this thread but does not contain the error string. The error is only in the provider protocol log above.

Cursor usage records

Queried https://api2.cursor.sh/aiserver.v1.DashboardService/GetFilteredUsageEvents at 2026-10-20T00:19Z.

No usage event for this request. Newest events on the account were from 2026-10-19T14:57Z (grok-bot-*). The latest Cursor-provider Grok row in the first several pages was cursor-grok-4.6-high at 2026-10-19T14:25:18Z. No grok-4.7 or cursor-grok-4.7 rows. That matches a failed registry-model request that never ran.

Correction to the original report

The earlier observation that an in-flight turn kept naming itself 4.6 after t3_thread_configure is explained by the already-running turn keeping its start model. The actual defect on a new turn is: T3 offers Cursor grok-4.7 with reasoning_effort + contextWindow, Cursor's registry rejects those parameters, and the turn fails.

j0nsh1n avatar Oct 20 '26 01:10 j0nsh1n

This is the same problem as #15788, so I'm closing it in favour of that one. If it is different, say how and it will be reopened.

juliusmarminge avatar Nov 12 '26 07:11 juliusmarminge