28ba3639436cc116a9d7700de3ec3b6ef69a8921
8
Commits
| Author | SHA1 | Message | Date | |
|---|---|---|---|---|
|
|
944610f8c8 |
cursor: each test file mints sign-in tokens of its own
The publish run for
|
||
|
|
df4dfcd8f7 |
cursor 0.2.26: a picker model whose usable id is its other family goes as that id
ysm119 on Discord, after 0.2.25: claude-haiku-5-5-thinking still failed its Test with no answer. A Team account's picker can have Claude Haiku 5.5 with thinking as its default, while cursor-agent models lists Haiku only as claude-haiku-5-5 (no thinking). modelsOf looked up the usable ids of the default's family alone, found none, and every Haiku id went out as a picker variant (claude-haiku-5-5-thinking-high, -low, ...) the account doesn't have. modelsOf now falls back to the same model's family with thinking or without it, so each variant id goes as the id the account lists. Run: bun test packages/cursor (311 pass, 0 fail) and bun scripts/check.mjs cursor (ok), in a sandbox HOME. Broken by hand: with the fam lookup back to the default's family only, the new context.test.mjs test is red (17 pass, 1 fail). Not tried: a real Team account whose list has Haiku without thinking; the owner's Cursor account doesn't show this shape. The fixture is built from the report's ids, not captured bytes. |
||
|
|
cb776e2ebb |
cursor 0.2.25: a tiered family is named without its tier; a thinking id runs on the model without it
Reported by ysm119 (magpie Discord, 10-27, after 0.2.24): on the Team
account the Cursor list showed "Claude Opus 5 1M Medium Thinking",
"Claude Opus 4.7 1M Medium Thinking", "Claude Sonnet 4.6 1M Thinking",
"Claude Haiku 5.5" and so on, read as one fixed tier each ("没法设置模型
档位"), and the picked claude-haiku-5-5-thinking failed its test.
Cause:
- usableTitle (0.2.24) dropped effort words only at the end of Cursor's
name, so a name with "Thinking" or "(NO ZDR)" after the tier kept
"1M Medium". The entry already had the family's efforts as variants
(magpie's reasoning levels); only its name said Medium.
- claude-haiku-5-5-thinking is an id 0.1.x listed and is still in the
reporter's picks. When the account's list has no Haiku 5.5 with
thinking, named() found no family and the id went to Cursor as it was:
"AI Model Not Found".
Now:
- A usable-only family's name drops its default id's effort phrase, Fast
and 1M wherever Cursor puts them, and keeps words of the model's name
(GPT-5.1 Codex Max stays Max).
- An id with no family of its own runs on the same model with thinking
toggled (usable-only family or picker variants), at the id's effort,
before it would be sent as named.
Run:
- bun test packages/cursor: 310 pass, 0 fail; bun scripts/check.mjs
cursor ok.
- Three new tests in context.test.mjs, built on the reporter's literal
names; all three fail on 0.2.24's index.mjs (names kept "1M Medium",
claude-haiku-5-5-thinking sent as is, a picker thinking-only Haiku
asked as claude-haiku-5-5-low).
Not tried: the reporter's real Team list (their ids weren't sent; the
tests use Cursor's id pattern, claude-opus-5-thinking-high, for their
names), any real Cursor request, magpie end to end. A family whose ids
carry a suffix after the effort (the "(NO ZDR)" Fable, id unknown) may
still list one entry per tier.
|
||
|
|
fc2866fc9e |
cursor 0.2.24: a family only cursor-agent lists runs as its usable ids
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. |
||
|
|
6579c01711 |
cursor 0.2.9: when the default's own branch stops short, an id of it asked past that goes as its nearest, not the default's id at the effort asked (#55)
With the default on the branch without thinking (thinking=false, low to high) and xhigh only with thinking, claude-opus-5-low asked at xhigh went as the default's slug with effort=xhigh: an id and parameters at odds. branch() returned early whenever what was asked differed from the default in the effort alone. Decided: that early return now holds only when no variant at all is named for the effort asked, so claude-opus-5-5-xhigh (no xhigh variant anywhere) still goes at xhigh as a listed model does, and an effort another branch has makes the default's branch go to its nearest. Run: the new test (the issue's picker, plus every id x effort x fast agreeing with its parameters) fails on the old index.mjs and passes here; HOME=$(mktemp -d) bun test for the repo, 1154 pass 0 fail; bun scripts/check.mjs green. Not seen on a real account (as the issue says). |
||
|
|
fb253f91d5 |
cursor 0.2.2: a model listed at a size Cursor has a fast variant of says fast: true (yetone/magpie#1360, loosheng)
0.2.0 stopped listing a model's -fast one and takes fast as the request's service_tier, so magpie, which offered its Fast switch (the agent picker's lightning, a group member's 标准速度/快速) for a model with a -fast one, offered it for none. The runtime model now says fast: true when a variant the account is served at that context size has fast=true (Opus 5.5 @ 300k, Composer 2.5, Grok 4.7), and nothing otherwise (a size with no fast variant, a model with no fast parameter, an account the usable list doesn't serve the fast variants). Requests are unchanged. Tested: new context.test.mjs case, which fails on 0.2.1 (no model says fast); the whole package (50 tests) and scripts/check.mjs pass. Not tried with a real Cursor account. |
||
|
|
cf0de01e2a |
cursor 0.2.1: an id 0.1.x listed, at an effort only its other branch has, goes as its own branch's nearest, not as the default's id with parameters that contradict it (review of #51) (#54)
An old id names a branch of a model's variants (claude-opus-5 is the Opus 5
without thinking). When the effort asked for exists only in the other branch,
no variant matched and the request went as the default's legacySlug with the
parameters it had been given: cursor/claude-opus-5 at xhigh went as
claude-opus-5-thinking-high with thinking=false, effort=xhigh. On this
account Opus 5 without thinking stops at high, so it happens today: 40 of
5040 old id × effort × fast combinations, all claude-opus-5. 0.1.11 sent
claude-opus-5-high there.
Now, for an old id, a request no variant matches goes as the variant of
its own branch (every parameter but the effort as asked) at the nearest
effort it has (branch()): claude-opus-5 at xhigh or max is claude-opus-5-high,
-fast at xhigh is claude-opus-5-high-fast, as 0.1.11 sent them. Where the
default differs from what is asked in the effort alone, the effort still goes
as asked. A listed id is not changed.
context.test.mjs adds a picker shaped like this account's Opus 5 and checks
those cases and that every id sent agrees with its parameters (which holds
where the default's branch is complete, as in this picker; see Not covered);
it fails on 8cd5a0f's index.mjs. HOME=$(mktemp -d) bun test packages/cursor:
49 pass, 0 fail; check.mjs cursor passes. Offline against this account's
picker and usable list: the contradicting requests go from 40 to 0.
With a real Cursor account, this version installed into magpie (packed from
this code plus one temporary line logging what request() returns):
cursor/claude-opus-5 at reasoning_effort xhigh (max_tokens 16) went as
claude-opus-5-high with thinking=false, context=300k, effort=high,
fast=false, maxMode=false, and answered 200 ("ok", 14 in / 4 out, 5.2s;
magpie's usage log: effort xhigh, status 200). On 0.2.0 the contradicting
request cursor/claude-opus-5-low at xhigh also answered 200, so it failed
silently.
Not covered. branch() steps aside when what is asked differs from the
default variant in the effort alone, so that an effort goes as asked, as
for a listed model (the existing claude-opus-5-5-xhigh test expects
effort=xhigh). So when the branch that stops short is the default's own,
the request still goes as the default's slug with the effort asked: with a
default of m-high (no thinking, low to high) and a thinking branch up to
max, m at xhigh goes as m-high with effort=xhigh. Dropping that early
return fixes it (effort=high) and changes that one assertion; left for the
maintainer to decide. On this account no model's default branch is the
shorter one (of 20 models with two or more branches, only non-default
branches stop short: claude-opus-5's without thinking, and gpt-5.4's fast
one after the usable list).
|
||
|
|
8cd5a0fad8 |
cursor 0.2.0: the list is Cursor's picker, a model once per context size with that window; effort and fast are the request's (#51)
* cursor 0.2.0: the list is Cursor's picker, a model once for each context size with that window (claude-opus-5-5@300k, @1m), and effort and fast are the request's, sent as the variant's parameters
The usable list (AgentService/GetUsableModels) names a model once for each effort and speed, and the window was read off the name: 1M when it said 1M, else 200K. The names say 1M of models Cursor serves at 300K outside Max Mode ("Claude Opus 5.5 1M"), and nothing of the 300K Sonnet and Haiku or the 256K Grok have, so on this account 110 of 153 names gave a wrong window: Opus too large, Sonnet, Haiku and Grok too small, and the agents compacted at the wrong point. The request carried no context parameter either, so the window Cursor ran at was its own choice, not the one magpie reported. The same id could go to a 300K and a 1M variant.
Now the list is Cursor's model picker alone (AiService/AvailableModels, asked as the CLI asks it: useModelParameters, doNotUseMarkdown), the way pi-cursor-sdk lists Cursor's catalog. A model with a context parameter is offered once for each size, as <model>@<size> named "<name> @ <size>", its window that many tokens; one without is offered once, its window Cursor's contextTokenLimit (Max Mode's for a model served only there), 200K when Cursor gives none. Effort is not a model of its own: the model's efforts (effort / reasoning_effort / reasoning; extra-high is xhigh) are its variants, the request's reasoning_effort is fitted to the nearest and sent as that parameter, and none turns a Claude's thinking off. Fast is not one either: a service_tier of priority or fast sends fast=true, anything else fast=false, so it is paid for only when asked. A request goes as the variant those parameters pick, by the variant's legacySlug (claude-opus-5-5-medium): the agent API refuses the picker's base name with 502 "AI Model Not Found: Model name is not valid". It goes in Max Mode when that variant is Max Mode's (a 1M size; Opus 300K with fast), or, with no variant for the size, when the size is over Cursor's limit outside it; the "Max Mode Required" retry stays. Hidden, Tab-only and chat-only models stay out, as in the CLI.
The ids change (cursor/claude-opus-5-5 is cursor/claude-opus-5-5@300k; the -fast, -low and -thinking models are gone), so 0.2.0: a model picked in magpie or an agent's config has to be picked again. An id the list doesn't have goes to Cursor as it is named, with the default window. poolBase and firstParty take the @size off, so usage pools as before (grok-4.7@256k Cursor Models, claude-opus-5-5@300k Other Models).
context.test.mjs (new) covers the list, the windows, the variants and the request's parameters and mode; maxmode.test.mjs (rewritten) checks what reaches a fake agent API; usage.test.mjs adds the sized ids. HOME=$(mktemp -d) bun test: 45 pass, 0 fail; check.mjs cursor passes. Tried with a real Cursor account: claude-opus-5-5@300k goes as claude-opus-5-5-medium with context=300k and answers, grok-4.6 as cursor-grok-4.6-high, and pi -p --model magpie/cursor/claude-opus-5-5@300k answers; the base name got the 502 above.
* cursor 0.2.0: an id 0.1.x listed still runs as the variant it stood for, and a variant the account hasn't got is neither offered nor asked for (review of #51)
An id the new list doesn't have went to Cursor as it was named. The ids 0.1.11 listed are families of the variants' own ids (claude-opus-5-5, claude-opus-5-5-fast, claude-haiku-5-5-thinking, cursor-grok-4.6), and they are saved in agents' configs, magpie's picks and routing groups: request(raw, "claude-opus-5-5", "high") was {id: "claude-opus-5-5", params: [], maxMode: false}, the bare name the agent API answers 502 "AI Model Not Found" for, with the effort dropped.
Now an id the list doesn't have is read as one of Cursor's own (named): a variant's legacySlug is that variant; a family of them, taken apart as 0.1.x's splitID did, is the family's variant nearest the default, fast for a -fast family, thinking as the family says, at the effort the id names when the request names none; the picker's name for a model, one of its legacySlugs or idAliases, is its default. Each is at the variant's context size, the default's when two sizes share the id. The request's reasoning_effort and service_tier count as for a listed model. The family is tried before the picker's name, so claude-haiku-5-5 stays the Claude without thinking it was in 0.1.11 where Cursor has variants named so; where it has none it is the model's default. Anything else still goes as it is named.
The usable list (AgentService/GetUsableModels) is read again, beside the picker: a variant whose legacySlug isn't in it is dropped, the model's efforts and sizes are the ones its remaining variants have, and a request no remaining variant matches goes as the nearest of them, not as the default's id with parameters the account hasn't got. A model the usable list has nothing of is the picker's alone (GLM-5.3, as 0.1.7 found) and is kept whole; a usable list Cursor can't give leaves the picker as it is.
answerOf's comment says what pick does with no service_tier (fast off). context.test.mjs checks the PICKER_SKIP names stay out (claude-4.5-haiku, claude-haiku-4-5), each id 0.1.11's offered() gives for the fixture's slugs, variant ids and a model's legacy slug, and the usable list's filter; maxmode.test.mjs checks claude-opus-5-5 reaches the fake agent API as claude-opus-5-5-medium. On b33ec2f's index.mjs the three new context tests and that maxmode test fail. HOME=$(mktemp -d) bun test: 48 pass, 0 fail; check.mjs cursor passes. Not tried with a real Cursor account, and not read against cursor-agent's source (neither is on this machine): the old-id rules follow the review's description and 0.1.11's splitID.
|