provider: moved Cursor users get opencode-cursor-auth 0.2.17: a multi-step turn's last step reports its own prompt, a step of many long calls isn't failed as an incomplete batch, and a continuation in a Run's last minute rebuilds instead of a 502 (magpie-community/plugins#156, #155, #157)

Raises the cursor mover's min to 0.2.17. npm view --prefer-online
@magpie-community/opencode-cursor-auth@0.2.16 and @0.2.17 answer
their versions.

plugins c7c6498 (0.2.16 in 2dd4328):
- #156 (erzay): Codex read the final step's prompt_tokens, the whole
  turn's 1,105,934 over ~21 calls, as its context (~61K) and compacted
  at once. The last step now reports its own share, by its own prompt
  estimate and output, and the rest of the turn goes as
  usage.magpie_deferred, billed but never told as the prompt. Test
  with erzay's numbers: prompt < total/2, prompt+deferred, cache and
  completion add up.
- #155: the native batch wait ran once from the first call, so a step
  of 13 calls with long arguments, each sent after the model wrote
  it, was failed past 30s in total. The wait restarts from the latest
  call or text. Tests: calls 150ms apart under a 300ms wait seal; a
  stalled step still fails no earlier than the wait.
- All three new tests fail on 4e64f26's source.

plugins 0b82190 (#157, nicegui; 0.2.17 in 3dbaa0b): a tool-result
continuation with <= min(60s, lifetime/10) of the Run's 15 minutes
left rebuilds from the supplied history before writing results. Merged
at reviewed head 75e481a, which resolved the conflict with a7614aa's
expireIn (it now sets expiresAt too). Injected with an offset clock:
62s left kept the Run (1 Run, 1 result written); 59s and 0.5s left
rebuilt (2 Runs, 0 results); removing the check turns those red. bun
test 267 pass x3, check.mjs ok.

gofmt -l clean; go vet ./internal/library ./internal/provider
GOOS=darwin/linux/windows ok.
Full suite: set -o pipefail; go test -timeout 45m ./... at 63be47717
plus the min bump, sandbox HOME, load avg 240-297 from other sessions'
test binaries: 63 packages ok, internal/provider (changed) 1210s; red
were internal/library (TestSkillRelinkKeepsUnreadableCopy, fixed in
the library commit, package ok after in 1172s) and internal/agent and
internal/gateway, which hit the 45m timeout in that run and in two
reruns each, with no "--- FAIL" in any of them; each timeout's stack
shows one test a few seconds in (TestWSLTargets, TestReasonixEffortAndSync,
TestCodexSwitchOnlyKeepsCodexOffTheGateway; TestLoopGuardLeavesOrdinary-
RepliesAlone, TestReplyNamesMember), so slow under that load, not hung.
One gateway rerun didn't build: a shared GOCACHE entry was deleted
under it; the next used its own cache. Neither package imports the
changed test file; gateway imports provider for the string only. The
tag waits for CI's attempt-1 Test run.
This commit is contained in:
yetone
2026-10-16 18:38:32 +08:00
parent ea3babac89
commit 19e9fc47f0
+1 -1
View File
@@ -221,7 +221,7 @@ func init() {
// the plugin reads cursor-agent's token as the built-in does.
movers["cursor"] = &mover{
pkg: "@magpie-community/opencode-cursor-auth",
min: "0.2.15", // calls the plugin answers itself (a tool the request doesn't have, get_mcp_tools) count toward Cursor's tool count, so a step with one isn't failed as "inconsistent native tool count" or a batch never completed, and a long history's blob burst waits for a slow link instead of failing as "native outbound messages limit reached" (plugins #142); 0.2.14: a Run tool call stays on one native Cursor session across its result, and a tool that outlasts Cursor resumes stateless, not as a failed turn (plugins #135); 0.2.13: a Run cancelled while it opens is closed upstream, not left streaming for nobody (plugins #130), and dashboard usage is collected per account, so one account never takes another's event as its debt (plugins #131); 0.2.12: Grok Bot is among the panel's three rings ahead of an On-demand with no limit, which is only a dollar figure (#2213); 0.2.11: a step's usage is its own, and what it collected of earlier steps goes as usage.magpie_deferred, billed with it but never told as its prompt, so pi's context isn't inflated (#1053, plugins #101); 0.2.10: a Team member with no limit of their own spends the team's on-demand pool, which is shown and counted as the limit, not as unlimited (#1868); 0.2.9: a default model whose own branch stops short of the asked effort goes to its nearest effort, so the id and its parameters agree (plugins #55); 0.2.8: a failure's status and its sign-in mark as the built-in's; Max Mode models retried in Max Mode; glm-5.3 listed; catalog entries written as CallDynamicTool calls, an empty turn retried (plugins #11); a tool step's usage from the dashboard's usage event, cache included (#676); far from Cursor a step whose event shows late is counted by the conversation's next steps instead of guessed (#1053); a turn's parallel calls split over two assistant messages keep their results (#1275); the list is Cursor's picker, a model once per context size with that window, effort and fast sent as the variant's parameters, and an id 0.1.x listed still runs as the variant it stood for (plugins #51); an id 0.1.x listed, at an effort only its other branch has, goes as that branch's nearest effort, not as the default's id with parameters that contradict it (plugins #54); a model listed at a size Cursor has a fast variant of says fast, for magpie's Fast switch (#1360); a Run HTTP/2 can't open (a proxy or network that blocks it, "h2 is not supported") goes over HTTP/1.1 as RunSSE + BidiAppend on api2 (plugins #59); a model asked for by its bare name (grok-4.7) counts in the pool its sized ids (grok-4.7@256k) are in (Will on Discord); an account with a Grok Bot allowance shows it on its Usage card, aside, so a spent Bot never stops Cursor requests (plugins #64); an account that may spend on-demand (a team or enterprise that pays past the included usage) is not used up when its included pools are, its On-demand spend is (fottencity on Discord, #1476); an assistant turn's reasoning_content is kept across a tool continuation (plugins #82); an empty reply says what Cursor's Run sent before it, so the next report shows why (plugins #60)
min: "0.2.17", // a tool-result continuation in a Run's last minute rebuilds from the supplied history before writing results, not a 502 "native Run lifetime expired" (plugins #157); 0.2.16: a multi-step native turn's last step reports its own share of the turn's usage, the rest billed as usage.magpie_deferred, so Codex doesn't read 1.1M as a 61K context and compact at once (plugins #156); a step's calls get the batch wait from the latest one, so a step of many long calls isn't failed as "did not complete its declared native tool batch" (plugins #155); 0.2.15: calls the plugin answers itself (a tool the request doesn't have, get_mcp_tools) count toward Cursor's tool count, so a step with one isn't failed as "inconsistent native tool count" or a batch never completed, and a long history's blob burst waits for a slow link instead of failing as "native outbound messages limit reached" (plugins #142); 0.2.14: a Run tool call stays on one native Cursor session across its result, and a tool that outlasts Cursor resumes stateless, not as a failed turn (plugins #135); 0.2.13: a Run cancelled while it opens is closed upstream, not left streaming for nobody (plugins #130), and dashboard usage is collected per account, so one account never takes another's event as its debt (plugins #131); 0.2.12: Grok Bot is among the panel's three rings ahead of an On-demand with no limit, which is only a dollar figure (#2213); 0.2.11: a step's usage is its own, and what it collected of earlier steps goes as usage.magpie_deferred, billed with it but never told as its prompt, so pi's context isn't inflated (#1053, plugins #101); 0.2.10: a Team member with no limit of their own spends the team's on-demand pool, which is shown and counted as the limit, not as unlimited (#1868); 0.2.9: a default model whose own branch stops short of the asked effort goes to its nearest effort, so the id and its parameters agree (plugins #55); 0.2.8: a failure's status and its sign-in mark as the built-in's; Max Mode models retried in Max Mode; glm-5.3 listed; catalog entries written as CallDynamicTool calls, an empty turn retried (plugins #11); a tool step's usage from the dashboard's usage event, cache included (#676); far from Cursor a step whose event shows late is counted by the conversation's next steps instead of guessed (#1053); a turn's parallel calls split over two assistant messages keep their results (#1275); the list is Cursor's picker, a model once per context size with that window, effort and fast sent as the variant's parameters, and an id 0.1.x listed still runs as the variant it stood for (plugins #51); an id 0.1.x listed, at an effort only its other branch has, goes as that branch's nearest effort, not as the default's id with parameters that contradict it (plugins #54); a model listed at a size Cursor has a fast variant of says fast, for magpie's Fast switch (#1360); a Run HTTP/2 can't open (a proxy or network that blocks it, "h2 is not supported") goes over HTTP/1.1 as RunSSE + BidiAppend on api2 (plugins #59); a model asked for by its bare name (grok-4.7) counts in the pool its sized ids (grok-4.7@256k) are in (Will on Discord); an account with a Grok Bot allowance shows it on its Usage card, aside, so a spent Bot never stops Cursor requests (plugins #64); an account that may spend on-demand (a team or enterprise that pays past the included usage) is not used up when its included pools are, its On-demand spend is (fottencity on Discord, #1476); an assistant turn's reasoning_content is kept across a tool continuation (plugins #82); an empty reply says what Cursor's Run sent before it, so the next report shows why (plugins #60)
agents: []string{"cursor"},
served: cursorServed,
out: func() ([]Moving, error) {