Skip to content

feat(cursor): expose the explicit-thinking model families - #2585

Merged
lidge-jun merged 1 commit into
devfrom
codex/cursor-thinking-2569
Aug 25, 2026
Merged

lidge-jun merged 1 commit into
devfrom
codex/cursor-thinking-2569

Conversation

@lidge-jun

Copy link
Copy Markdown
Owner

Summary

Second half of #2569: the -thinking families.

The live GetUsableModels roster carries 46 thinking wire ids across 13 families, and
isCursorModelAvailableForAccount matched none of them. It compares a configured base id
against {base}, {base}-{effort}, and the family's wire form; no -thinking id matches
any of those, so every variant was invisible in the routed catalog.

The awkward part is that the marker's position is family-dependent, and the wrong order is
rejected with ERROR_BAD_MODEL_NAME. All three shapes are live today: thinking-then-effort
(claude-opus-5-thinking-high, claude-opus-5-thinking-max-fast), effort-then-thinking
(claude-4.6-opus-max-thinking), and bare with no effort rung
(claude-4.5-sonnet-thinking). cursorWireModelIdWithEffort now owns that mapping, and
the variants are exposed as first-class Codex ids the same way the Opus Fast families were
in 831810c13.

Tiers are per-family and are not always the source model's set: claude-4.6-opus thinks
only at high/max, claude-4.5-opus only at high, claude-4.6-sonnet only at medium.

Verification

Composed every catalogued id/tier pair and checked each against the live roster:

wire ids matched: 46
MISMATCHES: none

Catalog coverage against the same roster:

static entries: 69
visible after live filter: 52     # was 41
thinking variants now visible: 13
$ bun test tests/cursor-effort-suffix.test.ts
 29 pass, 0 fail

$ bun test tests/cursor-effort-suffix.test.ts tests/cursor-discovery.test.ts tests/cursor-adapter.test.ts tests/cursor-request-builder.test.ts tests/codex-catalog.test.ts
 303 pass, 0 fail, 1340 expect() calls

$ bun x tsc --noEmit
(clean)

Checklist

  • Targets dev
  • Based on the current dev head
  • Every composed wire id verified against a live account roster
  • Regression pins all three suffix orders and the no-collapse rule
  • Typecheck clean
  • No secrets or account identifiers in the diff

The live roster carries 46 thinking wire ids across 13 families, and
isCursorModelAvailableForAccount matched none of them: it compares a base
id against {base}, {base}-{effort} and the family wire form, so every
-thinking variant was invisible in the routed catalog.

The marker's position is family-dependent and the wrong order is rejected
ERROR_BAD_MODEL_NAME, so cursorWireModelIdWithEffort now owns the mapping:
thinking-then-effort (claude-opus-5-thinking-high, ...-high-fast),
effort-then-thinking (claude-4.6-opus-max-thinking), and bare
(claude-4.5-sonnet-thinking, which has no effort rung).

Verified by composing every catalogued id/tier pair and checking it against
the live roster: 46 matched, 0 mismatched. Visible models rise 41 -> 52.
@lidge-jun
lidge-jun requested a review from Ingwannu as a code owner August 25, 2026 16:40
@coderabbitai

coderabbitai Bot commented Aug 25, 2026

Copy link
Copy Markdown
Contributor

Warning

Review limit reached

Next included review available in 6 minutes.

View limit details

Limit details: You’ve used all 10 included reviews currently available.

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Learn how review limits work.

Review configuration:

⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: ASSERTIVE

Plan: Pro Plus

Run ID: dcb3d331-f60b-40c6-8e8f-b5a5c68d8a44

📥 Commits

Reviewing files that changed from the base of the PR and between 6b1950f and bdc7150.

📒 Files selected for processing (3)
  • src/adapters/cursor/discovery.ts
  • src/adapters/cursor/effort-map.ts
  • tests/cursor-effort-suffix.test.ts

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.

@github-actions

Copy link
Copy Markdown
Contributor

✅ Deterministic PR hygiene checks passed.

@github-actions github-actions Bot added the enhancement New feature or request label Aug 25, 2026
@lidge-jun
lidge-jun merged commit 3838a52 into dev Aug 25, 2026
22 of 23 checks passed
@lidge-jun
lidge-jun deleted the codex/cursor-thinking-2569 branch August 25, 2026 16:40

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: bdc715020f

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines +272 to +275
...CURSOR_THINKING_MODEL_IDS.map(id => ({
id,
contextWindow: CONTEXT_200K,
supportsReasoningEffort: cursorModelHasEffortTiers(id),

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P1 Badge Classify text-only thinking variants before advertising images

For image-bearing requests to cursor/claude-4.6-opus-thinking—and likewise the 4.6 Sonnet, Opus 4.7, and Fable thinking families—these entries omit inputModalities, so normalizeCursorModels defaults them to ["text", "image"]; because they are also absent from CURSOR_NO_VISION_MODELS, the router bypasses the vision sidecar and sends SelectedImage directly. The canonical Cursor metadata classifies the corresponding wire models as text-only (for example, scripts/model-metadata.source.json:5829-5838 and 6266-6275), so classify each new family explicitly and route the text-only variants through the existing sidecar to avoid rejected or ignored image turns.

AGENTS.md reference: src/AGENTS.md:L18-L19

Useful? React with 👍 / 👎.

tarunravi pushed a commit to tarunravi/opencodex that referenced this pull request Sep 14, 2026
…2585)

The live roster carries 46 thinking wire ids across 13 families, and
isCursorModelAvailableForAccount matched none of them: it compares a base
id against {base}, {base}-{effort} and the family wire form, so every
-thinking variant was invisible in the routed catalog.

The marker's position is family-dependent and the wrong order is rejected
ERROR_BAD_MODEL_NAME, so cursorWireModelIdWithEffort now owns the mapping:
thinking-then-effort (claude-opus-5-thinking-high, ...-high-fast),
effort-then-thinking (claude-4.6-opus-max-thinking), and bare
(claude-4.5-sonnet-thinking, which has no effort rung).

Verified by composing every catalogued id/tier pair and checking it against
the live roster: 46 matched, 0 mismatched. Visible models rise 41 -> 52.
agentHits pushed a commit to agentHits/opencodex that referenced this pull request Sep 17, 2026
…2585)

The live roster carries 46 thinking wire ids across 13 families, and
isCursorModelAvailableForAccount matched none of them: it compares a base
id against {base}, {base}-{effort} and the family wire form, so every
-thinking variant was invisible in the routed catalog.

The marker's position is family-dependent and the wrong order is rejected
ERROR_BAD_MODEL_NAME, so cursorWireModelIdWithEffort now owns the mapping:
thinking-then-effort (claude-opus-5-thinking-high, ...-high-fast),
effort-then-thinking (claude-4.6-opus-max-thinking), and bare
(claude-4.5-sonnet-thinking, which has no effort rung).

Verified by composing every catalogued id/tier pair and checking it against
the live roster: 46 matched, 0 mismatched. Visible models rise 41 -> 52.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant