Repository navigation
Description
Client or integration
Codex CLI
Provider or upstream service
cursor
OpenCodex version
2.32.1 (dev @ 98ed186)
Endpoint or capability
model discovery — /agent.v1.AgentService/GetUsableModels (Connect-unary) and the derived routed catalog
Current behaviour
The Cursor static catalog in discovery.ts has drifted from the account's live GetUsableModels roster. Its last lineup change was 831810c13 (2026-08-22, Opus Fast families); Cursor has moved since.
I dumped the live roster from my logged-in Cursor account today: 204 wire ids, which normalize to 34 base models. Comparing that against CURSOR_STATIC_MODELS (50 entries):
Live models missing from the static catalog (3):
| Base id | Live wire ids |
|---|---|
gemini-3.7-flash |
gemini-3.7-flash-low, -medium, -high |
gemini-3.6-flash |
gemini-3.6-flash-minimal, -low, -medium, -high |
default |
the auto-router wire id — already special-cased via CURSOR_AUTO_WIRE_MODEL_ID, not a real gap |
So two real Gemini models Cursor offers today are invisible in the routed catalog. Both also carry effort tiers that are absent from CURSOR_MODEL_EFFORT_TIERS in effort-map.ts, and gemini-3.6-flash exposes a minimal tier — a suffix that is not currently in CANONICAL_EFFORT_SUFFIXES (it is derived from CURSOR_MODEL_EFFORT_TIERS values, and no entry lists minimal).
Static entries absent from the live roster (13): claude-4-sonnet-1m, claude-4.5-haiku, composer-1, gemini-2.5-flash, gemini-3-pro, gemini-3-pro-image-preview, gpt-5-codex, gpt-5-fast, gpt-5.1-codex, gpt-5.1-codex-max, gpt-5.1-codex-mini, gpt-5.2-codex, glm-5.3.
These are handled gracefully at runtime — filterCursorConfiguredModelsByLiveDiscovery drops them when live discovery succeeds — but they are still the fallback catalog whenever discovery fails, and they are what the GUI shows when the user is logged out. glm-5.3 is a known preemptive seed (documented in the source comment) and may legitimately stay.
Effort tiers that drifted. The live roster shows tiers the effort map does not describe, and the mismatch is not uniform:
| Model | CURSOR_MODEL_EFFORT_TIERS |
Live wire ids |
|---|---|---|
claude-opus-5 |
low, medium, high, xhigh, max | low, medium, high (plus a separate -thinking-{low..max} family) |
claude-4.6-sonnet |
medium | claude-4.6-sonnet-medium, claude-4.6-sonnet-medium-thinking |
gemini-3.7-flash |
absent | low, medium, high |
gemini-3.6-flash |
absent | minimal, low, medium, high |
gpt-5.5 |
low, medium, high | none, low, medium, high (+ -fast) |
gpt-5.6-sol / -terra / -luna |
low, medium, high, xhigh, max | none, low, medium, high, xhigh, max |
There is also a whole naming axis the catalog does not model: a -thinking variant family (claude-opus-5-thinking-high, claude-opus-4-8-thinking-max-fast, claude-4.5-sonnet-thinking, claude-4-sonnet-thinking, claude-4.6-opus-high-thinking). Note the suffix ORDER differs by family: Opus 4.7/4.8/5 use {base}-thinking-{effort}, while 4.6-opus and 4.5-opus use {base}-{effort}-thinking. isCursorModelAvailableForAccount matches only {base}, {base}-{effort}, and {base-without-fast}-{effort}-fast, so none of the -thinking ids match any configured base — they simply do not exist as selectable models in OpenCodex.
Practical impact: the routed Cursor catalog under-reports what the account can actually use (34 live base models vs. what survives the filter), and reasoning-effort pickers show stale ladders for several families.
Expected behaviour
The static catalog and effort map should track Cursor's current GetUsableModels lineup:
- Add
gemini-3.7-flash(tiers low/medium/high) andgemini-3.6-flash(tiers minimal/low/medium/high), and admitminimalas a canonical effort suffix so live-id matching does not silently drop those variants. - Refresh the drifted effort ladders above so
cursorEffortSuffixemits a suffix the wire actually accepts, rather than a clamped guess against a stale tier set. - Decide explicitly on the
-thinkingfamilies: either expose them as first-class base models (as was done for the-fastfamilies in831810c13) or document that they are intentionally excluded. Today they are neither — they are invisible by omission. - Prune or re-justify the 13 static-only entries so the logged-out and discovery-failure fallback is not advertising models the account cannot reach.
Minimal redacted request or reproduction
# 1. Log in to Cursor
ocx login cursor
# 2. Dump the live account roster (Connect-unary GetUsableModels)
# A short Bun script using the repo's own fetchCursorUsableModels():
cat > /tmp/probe.ts <<'EOF'
import { fetchCursorUsableModels } from "<repo>/src/adapters/cursor/live-models";
import { resolveModelsAuthToken } from "<repo>/src/oauth";
import { loadConfig } from "<repo>/src/config";
const config = loadConfig();
const prov = config.providers["cursor"];
const key = await resolveModelsAuthToken("cursor", prov);
const res = await fetchCursorUsableModels({ apiKey: key ?? "", baseUrl: prov.baseUrl });
console.log(res.ok ? res.models.join("\n") : JSON.stringify(res));
EOF
bun /tmp/probe.ts
# 3. Compare with what the proxy exposes
ocx models live --provider cursorActual response or error
# Live roster: 204 wire ids -> 34 base models. Excerpt of ids with no catalog counterpart:
gemini-3.7-flash-low
gemini-3.7-flash-medium
gemini-3.7-flash-high
gemini-3.6-flash-minimal
gemini-3.6-flash-low
gemini-3.6-flash-medium
gemini-3.6-flash-high
claude-opus-5-thinking-low
claude-opus-5-thinking-high-fast
claude-opus-4-8-thinking-max-fast
claude-4.6-opus-high-thinking
claude-4.6-sonnet-medium-thinking
claude-4.5-sonnet-thinking
claude-4-sonnet-thinking
gpt-5.5-none
gpt-5.6-sol-none
# What the proxy exposes (41 rows, gemini-3.6/3.7 absent):
$ ocx models live --provider cursor
cursor/gemini-3-flash [routed, disabled]
cursor/gemini-3.1-pro [routed, disabled]
cursor/gemini-3.5-flash [routed, disabled]
# ...no gemini-3.6-flash, no gemini-3.7-flashUpstream documentation
Cursor publishes its lineup at https://cursor.com/docs/models and https://cursor.com/pricing. The authoritative source for what a specific account may use is the GetUsableModels RPC on api2.cursor.sh, which is unofficial and undocumented — this repository already treats it as the source of truth (live-models.ts). The roster above was captured from a live authenticated account on 2026-08-25, not from documentation.
Suggested mapping or implementation notes
The mechanical part is additive: new entries in CURSOR_STATIC_MODELS plus ladders in CURSOR_MODEL_EFFORT_TIERS, both in the Cursor adapter. minimal needs to enter CANONICAL_EFFORT_SUFFIXES, which is derived from the tier values, so listing it in gemini-3.6-flash's ladder is enough — but check codexEffortRank, which already folds minimal to low for clamping, so a literal minimal tier will pass through correctly only because cursorEffortSuffix is literal-first.
The -thinking axis is the design decision, not the typing. It is a second orthogonal suffix with family-dependent ordering ({base}-thinking-{effort} for Opus 4.7/4.8/5, {base}-{effort}-thinking for 4.6/4.5-opus and bare {base}-thinking for 4-sonnet/4.5-sonnet). cursorWireModelIdWithEffort currently understands one Fast-position rule; supporting thinking would mean either a second position rule or exposing each thinking variant as its own base id the way the Fast families were handled.
Vision classification also needs a pass: CURSOR_NO_VISION_MODELS lists composer-* and glm-5.*; the new Gemini entries are multimodal and should stay on the native path.
Additional context and attachments
Verified locally on macOS against a live Cursor login on 2026-08-25. Related: #2559 (Cursor ref-less checkpoint lookup), and the Opus Fast lineup work in 831810c13, which is the most recent catalog refresh and the baseline this drift is measured from.
Checks
- I searched existing provider and compatibility issues.
- The request and response were redacted.
- The expected behaviour is based on an upstream specification or a concrete client requirement.
Activity
lidge-jun commentedon Aug 25, 2026
리뷰 · 우선순위 62 / 80
설명: 이 이슈는 Cursor 정적 카탈로그와 노력 사다리가 살아 있는 GetUsableModels 명단과 어긋났다고 한다. 작성자는 lidge-jun 이다. 지금 열려 있다. 라벨은 provider-compatibility, provider, account-pool, catalog 다. 지금 CURRENT
devHEAD 는 516f566 이다. 이번 시간에 SHA 가 움직였다. origin/dev package.json 은 2.32.1-preview.20260825 다. 본문은 2.32.1 (dev @ 98ed186) 를 적는다. 그 SHA 는 지금 HEAD 보다 뒤다. 차량 풀은 아직 없다. 내가 구현하지 않고 머지하지 않는다.HEAD 에서 빠진 칸은 확인된다. src/adapters/cursor/discovery.ts 219-300줄 CURSOR_STATIC_MODELS 에 gemini-3.6-flash 와 gemini-3.7-flash 가 없다. 254-259줄은 gemini-2.5-flash 부터 gemini-3.5-flash 까지만 있다. src/adapters/cursor/effort-map.ts 19-64줄 CURSOR_MODEL_EFFORT_TIERS 에도 그 두 모델이 없다. 67-70줄 CANONICAL_EFFORT_SUFFIXES 는 그 사다리 값에서만 모아진다. 어디에도 minimal 이 없어서 gemini-3.6-flash-minimal 은 산 아이디로 안 붙는다.
본문이 적은 산 명단만 있는 정적 항목도 HEAD 에 있다. claude-4-sonnet-1m, claude-4.5-haiku, composer-1, gemini-2.5-flash, gemini-3-pro, gemini-3-pro-image-preview, gpt-5-codex, gpt-5-fast, gpt-5.1-codex, gpt-5.1-codex-max, gpt-5.1-codex-mini, gpt-5.2-codex, glm-5.3 이다. 210-215줄 filterCursorConfiguredModelsByLiveDiscovery 가 산 발견이 되면 이들을 버린다. 로그아웃과 발견 실패 때는 그대로 보인다. glm-5.3 은 37-39줄 주석대로 미리 심은 씨다. 함부로 지우지 말 것.
노력 사다리도 어긋난다. claude-opus-5 는 33줄에 low 부터 max 까지 있는데, 본문의 산 명단은 low medium high 다. claude-4.6-sonnet 은 22줄에 medium 만 있고 thinking 축은 없다. gpt-5.5 는 59줄에 none 이 없다. 76-87줄 isCursorModelAvailableForAccount 는 밑이름, 밑이름-노력, 빠른축 밑이름-노력-fast 만 맞춘다. thinking 아이디는 고를 수 없다. 빠른 가족을 따로 심은 831810c 과 같이, thinking 을 밑이름으로 둘지 빼 둘지를 골라야 한다. 지금은 둘 다 아니다.
2559 는 Cursor 체크포인트 주인이다. 이번 시간에 2563 이 착지해서 그 이슈는 leftover-close 한다. 이 이슈로 닫지 말 것. 다시 열지도 말 것. 2550 은 이번 시간에 착지했다. 2548 도 leftover-close 한다. 이 카탈로그 이슈로 다시 닫지 말 것. 2565 와 2566 은 쿼터 표시다. 닫지 말 것. src/runtime 은 없다. default-aliases.ts 와 model-presets.ts 도 없다. 2463 2464 2465 를 닫지 말 것. 프리뷰 배포가 아니다. 태그하지 말 것. 배포하지 말 것. 내가 이 이슈를 닫지 않는다.
라인 219 - src/adapters/cursor/discovery.ts CURSOR_STATIC_MODELS 에 gemini-3.6-flash 와 gemini-3.7-flash 가 없다
라인 67 - src/adapters/cursor/effort-map.ts CANONICAL_EFFORT_SUFFIXES 에 minimal 이 없다
라인 33 - src/adapters/cursor/effort-map.ts claude-opus-5 사다리가 산 명단보다 넓다
라인 76 - src/adapters/cursor/discovery.ts isCursorModelAvailableForAccount 가 thinking 축을 안 맞춘다
라인 135 - src/adapters/cursor/effort-map.ts cursorWireModelIdWithEffort 는 빠른 위치 규칙만 안다
라인 288 - glm-5.3 은 미리 심은 씨다. 산 명단에 없다고 바로 지우지 말 것
2559 - 이번 시간 2563 착지로 leftover-close 한다. 이 이슈로 닫지 말 것
2548 - 이번 시간 2550 착지로 leftover-close 한다. 이 이슈로 닫지 말 것
메인테이너의 판단이 필요한 지점
너의 추천
카탈로그 드리프트로 받는다. gemini-3.6-flash (minimal/low/medium/high) 와 gemini-3.7-flash (low/medium/high) 를 정적 목록과 노력 사다리에 더한다. thinking 축은 이번 덧셈과 묶지 말 것. 메인테이너가 밑이름인지 제외인지 고른다. glm-5.3 은 남긴다. 내가 구현하지 않는다. 2559 2548 2565 2566 은 이 이슈로 닫지 말 것. 라벨은 그대로 둔다. 프리뷰 배포가 아니다.
이 댓글은 grok-bot이 작성했습니다
lidge-jun commentedon Aug 25, 2026
Fixed on
devacross two PRs.#2584 catalogued
gemini-3.6-flashandgemini-3.7-flashand fixed a second bug it surfaced:minimalis the only rung outside the canonical five, socursorModelEffortLadderfiltered it out of the picker even thoughcursorEffortSuffixwould have sent it — declared but unreachable.#2585 exposed the 13
-thinkingfamilies. The suffix position is family-dependent and the wrong order is rejectedERROR_BAD_MODEL_NAME, so all three shapes are now modelled: thinking-then-effort, effort-then-thinking, and bare. I verified this by composing every catalogued id/tier pair and checking each against a liveGetUsableModelsroster — 46 matched, 0 mismatched. Visible models went 41 to 52.The 13 static-only entries stay for now: they are the logged-out and discovery-failure fallback, and
filterCursorConfiguredModelsByLiveDiscoveryalready drops them whenever live discovery succeeds. Pruning them is a separate judgement about what an unauthenticated dashboard should show, so I did not fold it into a catalog-drift fix.