From 2810a7154dd9f6cfb9cc376fa2c50d5e4bc2236d Mon Sep 17 00:00:00 2001 From: yetone Date: Tue, 13 Oct 2026 15:01:32 +0800 Subject: [PATCH] provider: a moved Cursor gets plugin 0.2.11, whose collected usage of earlier steps no longer inflates the step's prompt (#1053, plugins #101) The Cursor plugin collects a tool step's late usage event with the conversation's next step. Before 0.2.11 it added it to that step's prompt_tokens, so pi read its context as 366,940 tokens on a 300k window with 185,670 in use, and compacted early (geoqiao, #1053). 0.2.11 sends the collected part as usage.magpie_deferred, which the gateway bills with the step but never tells as its prompt (3a9d73c5c). The cursor mover's min goes to 0.2.11 so keepMovedCurrent updates every moved user. Run: npm view @magpie-community/opencode-cursor-auth@0.2.11 version on registry.npmjs.org gives 0.2.11 (published by the plugins repo's publish.yml from merge 4aae1ce7b). go test -tags nogui ./internal/provider (whole package, sandbox HOME, TestMovedBuiltinsSayTheirPlugin among them); gofmt -l; go vet darwin, GOOS=linux -tags nogui, GOOS=windows. Not run: the update on a real moved Cursor account. --- internal/provider/migrate_side.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/provider/migrate_side.go b/internal/provider/migrate_side.go index 885c17730..58007da8e 100644 --- a/internal/provider/migrate_side.go +++ b/internal/provider/migrate_side.go @@ -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.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.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) {