Reported by ysm119 (magpie Discord): on a Cursor Team account, `magpie claude cursor/claude-opus-5-5@1m` waited and then failed with "AI Model Not Found", and `cursor/claude-opus-5-5` the same, while `cursor-agent models` lists claude-opus-5-5-low, -medium, -high, -xhigh, -max (and -fast of each), and `cursor/claude-opus-5-5-low` works. Cause: when the account's AvailableModels picker lacks a model (or a picker model has no variant the account can use), the plugin sent the family id or the literal `@<size>` id upstream, which Cursor doesn't know. Now: - A family GetUsableModels lists and the picker doesn't is listed once under its family id with its efforts, and a request goes as the usable id the effort and fast pick (claude-opus-5-5 + low -> claude-opus-5-5-low). - A picker model whose chosen variant isn't usable goes as its family's nearest usable id. - An `@<size>` id the list no longer has runs at the model's nearest size, in Max Mode past the model's window. An account whose picker covers every usable id lists and sends as before. Run: - bun test packages/cursor: 307 pass, 0 fail; bun scripts/check.mjs cursor ok. - Four new tests in context.test.mjs built on the reporter's literal ids (claude-opus-5-5-low ... -max-fast, "Claude Opus 5.5 1M Low"). - Broken by hand: the three tests for the new behaviour fail on 0.2.23's index.mjs; the "covered picker lists as before" test passes on both. - Real account (owner's, read-only token): with claude-opus-5-5 dropped from the real AvailableModels reply, 0.2.23 sends "claude-opus-5-5@1m" and "claude-opus-5-5" and gets Cursor's 502 "AI Model Not Found: Model name is not valid", the reporter's error. 0.2.24 sends a usable id and Cursor takes the model (429 weekly limit on this account for Opus 5.5). Dropping grok-4.7 the same way: grok-4.7@500k, grok-4.7 and grok-4.7-low answer 200 on 0.2.24; grok-4.7@500k is 502 Not Found on 0.2.23. With the real, unmodified picker: grok-4.7@256k and composer-2.5 answer 200. Not tried: a Team account (the reporter's), an Opus 5.5 reply that succeeds (this account's weekly quota is spent), magpie end to end.
13 lines
557 B
JSON
13 lines
557 B
JSON
{
|
|
"name": "@magpie-community/opencode-cursor-auth",
|
|
"version": "0.2.24",
|
|
"description": "Cursor subscriptions (Pro, Pro+, Ultra, Teams) in OpenCode and magpie, through the API cursor-agent talks to",
|
|
"type": "module",
|
|
"main": "./index.mjs",
|
|
"exports": "./index.mjs",
|
|
"files": ["index.mjs", "native-session.mjs", "README.md"],
|
|
"keywords": ["opencode", "opencode-plugin", "magpie", "cursor"],
|
|
"license": "MIT",
|
|
"repository": { "type": "git", "url": "git+https://github.com/magpie-community/plugins.git", "directory": "packages/cursor" }
|
|
}
|