opencode-grok-auth 0.2.6 (plugins ae5188363, lxyer) asks Grok again
when a Responses stream is cut before its first byte. It tries up to
three times, before the answer is returned, so a 429 or 401 on a retry
comes back as itself. Once a byte has arrived, the stream goes on as it
comes, reasoning included. A later cut just ends the stream, and magpie
closes it as a whole response.failed (29bfd5dc8, v0.1.3298). The
plugin no longer writes a response.created or response.failed of its
own: those frames had no sequence_number, and Grok Build failed the
turn on them. An upstream response.failed or error goes on as it came.
npm has 0.2.6: `npm view --prefer-online
@magpie-community/opencode-grok-auth time` gives
2026-11-08T04:50:00Z. The publish run's npm job is red only for
middleware-think-tags 0.1.2 (E404, plugins#180). grok 0.2.6 was
published in that run.
Run on mote at this tree: gofmt -l is clean; go vet
./internal/provider on darwin, linux nogui and windows; go test
./internal/provider: ok (119s).
The plugin's side was run at 463afb79 on mote. Its package tests: 107
pass. The repo-root bun test: 6878 pass, 0 fail. check.mjs grok: ok.
Breaking the retry by hand turned the tests red. The real chain was
Grok Build 1.0.67 and 1.0.77, then magpie eef99e4bb, then the plugin,
then a fake upstream that cuts before the first byte, after
response.created and after text. Every cut was read and retried, with
no "missing field". A retry's 429 reached magpie as a 429, and a vendor
response.failed showed its own message. The plugins merge body has the
details.
Not tried: a live Grok stream cut by the real vendor.
opencode-grok-auth 0.2.5 (plugins 5bbdb826) stops telling a user to add
the account again when xAI answers 401 "Authentication required" on a
token Grok Build left as it was and that hasn't expired. That refusal
isn't xAI's verdict on the token (which reads "Invalid or expired
credentials (... upstream=...)"), and it passed by itself within minutes
in the report. The plugin now answers it as a 503 with Retry-After: 60
and X-Magpie-Sign-In: kept, so the gateway rests the account briefly and
fails over (failOther, as for any kept 401 or 503); a real verdict is
still 401 "sign in again". A 401's wait on `grok models` is capped at
15s (was the 30s exec timeout).
npm has 0.2.5: `npm view --prefer-online
@magpie-community/opencode-grok-auth time` gives 2026-11-07T01:58:19Z.
The publish run's npm job is red only for middleware-think-tags 0.1.2
(E404, not its trusted publisher); grok 0.2.5 published in it.
Run: go test ./internal/provider/ on mote, ok (125s); gofmt -l clean.
The plugin side ran its package tests (mote), the repo bun test (Linux
VM, 6571 pass) and check.mjs grok; its body has the hand-breaks.
Not tried: a real "Authentication required" 401 (could not provoke
one), a revoked real token, a Grok Build renewal slower than 15s.
Reported-by: zane668
cursor 0.2.43 asks Cursor for each model call's usage
(emit_model_call_usage). A multi-step native turn's final step then
reports that call's exact counts (ModelCallCompletedUpdate) instead of
an estimated share. Without the update the counts are as before. npm
has 0.2.43 (npm view --prefer-online, registry time 12:58Z).
Run: go test ./internal/provider/ on mote, ok (137s), gofmt clean.
The plugin change was reviewed in plugins#796 (cursor tests 406 pass on
mote, each new reading broken by hand). Not tried: a real Cursor account.
cursor 0.2.42 no longer seals a parallel tool batch on a mid-batch
checkpoint after an upfront tool count. npm has 0.2.42
(npm view --prefer-online, registry time 11:05Z).
Run: go test ./internal/provider/ on mote, ok (173s), gofmt clean.
cursor 0.2.41 (plugins#706, ooboqoo): a short session whose parent Run
waits on tool results no longer loses that step's usage. The later Run
of the conversation collects it, and it is counted once. Raising the
min makes keepMovedCurrent bring every moved Cursor user to it.
npm view --prefer-online @magpie-community/opencode-cursor-auth version
gave 0.2.41 before the change and again right before this commit.
Run on mote at this change on 294768599 (origin/main, unchanged at
push): go build ./... ok; GOOS=linux and GOOS=windows go vet
./internal/provider ok; go test -timeout 45m ./internal/provider ok
(139.9s). gofmt -l internal/provider is empty.
Not broken by hand: the change is a version string and its note.
Not tried: a real Cursor account through magpie on 0.2.41.
devin 0.1.36 (plugins 1a342edf) sends swe-2 and the other models that
aren't Claude their earlier turns' reasoning back as unsigned thinking
(field 11), from chat's reasoning_content, OpenCode 2's reasoning parts
and Messages thinking blocks. Claude still gets only signed thinking
(#665). keepMovedCurrent brings every moved Devin user up to it.
npm view --prefer-online showed 0.1.36 before this change.
Run: gofmt -l internal/provider (clean); on mote, go vet
./internal/provider and go test -timeout 30m ./internal/provider (ok,
229s) at 83bdfe70d plus this change. The plugin's own tests are in the
plugins commit: 208 pass in packages/devin, 7 red with the old index.mjs.
Not tried: a real Devin account through the plugin.
cursor 0.2.40 (plugins#672, ooboqoo) gives a new user turn whose earlier
native calls all have their results a retained Run of its own, with those
calls as imported history. Before, every tool step after the first user
turn rebuilt the whole history on a fresh stateless Run. Raising the min
makes keepMovedCurrent bring every moved Cursor user to it.
npm view --prefer-online @magpie-community/opencode-cursor-auth version
gave 0.2.40 before this commit.
Run on mote at this change on 6c201095d (rebased onto 22f5cf69e, which touches only internal/agent and internal/library, neither imported by internal/provider): go build ./..., GOOS=linux and GOOS=windows
go vet ./internal/provider, go test -timeout 45m ./internal/provider:
ok (169.8s); vet ok on both. gofmt -l internal/provider is empty.
Plugin side (at the merged head 5b4dcf1): packages/cursor bun test 394
pass; with main's native-session.mjs the PR's two new tests fail.
Not tried: a real Cursor account through magpie on 0.2.40.
@magpie-community/opencode-cursor-auth 0.2.39 (plugins b8ec827 by
jiaohanying, released in 0236317) asks Cursor's full catalog
(AvailableModels scope 3) alongside the picker. An account Cursor blocks
Claude for, whose picker has no Claude while cursor-agent's usable list
does, now gets those models as the picker's are listed: once per context
size (claude-opus-5-5@300k and @1m, 1m in Max Mode), the efforts the
account is served, and only the parameters the model defines (the
catalog's Opus 4.7 to 5.5 variants carry cyber=false, which is not
sent). Before, each such family was one fallback entry with a 200K
window. 0.2.39 also carries 0.2.38 (OpenCode 2.x entry, plugins#657).
Raising the min lets keepMovedCurrent bring every moved Cursor user up
to it.
npm view --prefer-online @magpie-community/opencode-cursor-auth version:
0.2.39 (latest) before this commit.
Run on mote at this head: go test -count=1 -run
'Mov|Migrat|Retir|HandOver|Adopt|Plugin|Cursor' ./internal/provider ok;
GOOS=linux and GOOS=windows go vet ./internal/provider ok; gofmt -l
clean. Plugin side (reviewed head f4cb8ed and the squash on main):
bun test packages/cursor 393 pass, whole bun test 0 fail, check.mjs ok;
the cyber test goes red with the parameter filter taken out.
Not tried: a real Cursor account (none for this run); the author ran a
real request at 300k and 1m on a blocked account.
@magpie-community/opencode-devin-auth 0.1.35 (plugins a064cf1, Vigilans'
report) reads delta_signature (10) and delta_signature_type (21), puts
the signature on a Messages reply's thinking block (signature_delta when
streamed), and sends signed thinking back on the next request's
assistant prompt with signature and signature_type. Raising the min lets
keepMovedCurrent bring every moved Devin user up to it.
npm view --prefer-online @magpie-community/opencode-devin-auth version:
0.1.35 (latest) before this commit.
Run on mote at this head: go test -run
'Mov|Migrat|Retir|HandOver|Adopt|Plugin' ./internal/provider ok;
GOOS=linux and GOOS=windows go vet ./internal/provider ok; gofmt -l
clean.
Not tried: a real Devin account (none in a sandbox).
0.1.22 sends reflection/beam each earlier assistant message's reasoning
back as reasoning_content, "." where the history has none, so Beam's
second turn is no longer turned away with 400 "Missing required
parameter: 'messages[N].reasoning_content'" (EDwinpzy on Discord,
#feedback, magpie 0.1.2717). A model the Provider API asks the same of
is asked once more with it and filled from then on; other models'
requests go as they came. keepMovedCurrent updates every moved user.
npm view --prefer-online --registry https://registry.npmjs.org
@magpie-community/opencode-commandcode-auth version: 0.1.22 (plugins
38ef050; publish run 41498900393 is red only for think-tags, plugins#180).
Run on mote: go test -count=1 ./internal/provider ok.
Not tried: a real Beam request; the Command Code key here answers 401.
The plugin's bun tests cover the reporter's two-turn shape as the
chat-completions and responses routes hand it to the plugin.
devin 0.1.34 (plugins 4c801e5, on npm) times each cache keepalive ping
from when the request before it was sent, not from when its reply ended,
so a slow reply's first ping no longer lands past the 5-minute cache
(#626), and keys a permission check by the session and subagent magpie
now tells it (#620). Both reported by zelong77. keepMovedCurrent brings
every moved user's plugin up to it.
Run at origin/main 1829cd52f plus these three commits (mote, macOS):
- gofmt -l internal/gateway internal/provider internal/plugin: clean.
- GOOS=linux and GOOS=windows go vet of the three: ok.
- go test -count=1 -timeout 45m ./internal/plugin ./internal/provider
./internal/gateway: plugin ok, provider ok; gateway one red,
TestCodexPoolSaysTheClientsVersion, which passes alone (-count=3)
and is another test's Codex identity leaking into it, filed as #4807,
untouched by this change.
- -v: TestPluginToldTheSession and TestMovedBuiltinsSayTheirPlugin pass.
- Rebased onto origin/main 52195b6b0 (it brings #3388's provider
change): gofmt clean, linux and windows vet ok,
internal/provider and internal/plugin ok, internal/gateway -run
'TestPlugin|TestMoved|Devin|WorkBuddy' ok. Pushed on 9f641daea,
whose Codex app-server change (codex_app_server.go, codex_daemon.go,
login_usage.go) touches none of these files; not run again on it. Not tried: a real Devin account.
devin 0.1.33 (plugins 581ca13) fixes the cache keepalive for Claude Code
Auto's permission check. The check grows its first user message with the
history, so every check got a new keepalive key, and its old pings
kept running beside the new ones. zelong77 reported it with an offline
repro. The key is now the session, the agent, the instructions and the
tools. A request that names no session is still told apart by its first
message, and a first message that grew from an earlier one keeps the
earlier key. keepMovedCurrent now updates every moved Devin user to it.
npm has 0.1.33: npm view --prefer-online --registry https://registry.npmjs.org
@magpie-community/opencode-devin-auth version.
Run on mote at this tree (on aab48dea9): gofmt clean; go vet ./internal/provider
on darwin, linux (nogui) and windows; go test -count=1 ./internal/provider ok.
In the plugins repo at 581ca13: bun test packages/devin 186 pass, and the
4 new keepalive tests fail on the old index.mjs; whole repo bun test 4741
pass, 0 fail; bun scripts/check.mjs exit 0.
Not tried: a real Devin account or a real Claude Code Auto session.
Okxdd123 (#4419): a Pi turn on cursor/grok-4.7@500k went on in a
retained native Run with 494 s of its 15-minute lifetime left, and the
deadline cut the answer with "native Run lifetime expired", words Pi
doesn't retry on. ggbdpq found the cause and wrote a gateway-side patch
and repro; the plugin owns both the deadline and the words, so the fix
is there (magpie-community/plugins#616, 3f615ea):
- a step with under 10 minutes of the lifetime left goes on a fresh Run
from the history instead of the old Run (was: the last minute);
- a Run the deadline still cuts says "native Run lifetime expired: the
Run timed out; retry your request", which Pi's retry list and
magpie's passingSaid both take.
This raises the mover's min to 0.2.37, so keepMovedCurrent updates every
moved user's plugin. npm view --prefer-online shows 0.2.37.
Run (mote, temp HOME): go test ./internal/provider ok (103.9s); go vet
./internal/provider for darwin, GOOS=linux -tags nogui and GOOS=windows
clean; gofmt -l internal/provider prints nothing.
Not tried: a real Cursor account reaching the deadline, or a real moved
user's plugin update to 0.2.37.
Co-authored-by: ggbdpq <ggbdpq@gmail.com>
Cursor plugin 0.2.36 (magpie-community/plugins@24cd0b9, on npm, checked
with npm view --prefer-online): a stateless Run whose step sent its calls
and then only heartbeats, with no tool count, hands the calls that came
to the caller 60 s after Cursor's last non-heartbeat frame instead of
waiting 240 s to go quiet. Windsland52's fifth wire trace: a native
stall pushed the retry onto the stateless path, where two calls and no
count cost another 4 minutes. keepMovedCurrent updates moved users.
Run at this head (mote): go test ./internal/provider -run
"Mover|Moved|Migrat|Retir|Plugin|Min": ok. GOOS=linux and GOOS=windows
go vet ./internal/provider: ok. gofmt -l: clean. The plugin's own run is
in its commit (bun test packages/cursor: 380 pass).
Not tried: a real Cursor account on the plugin.
devin 0.1.32 (plugins 17525a7, leosocy) sends a role:"system" notice
that comes partway through a conversation as a user prompt, in its
place and with its cache mark. Before, the notice was lost. A notice
that arrives while tool calls are still waiting for results goes after
those results. keepMovedCurrent now updates every moved Devin user to it.
npm has 0.1.32: npm view --prefer-online @magpie-community/opencode-devin-auth version.
Run on mote at this tree: gofmt clean; go vet ./internal/provider on
darwin, linux (nogui) and windows; go test -count=1 ./internal/provider ok.
In the plugins repo, at 647039a merged with main: bun test packages/devin
182 pass, and 4 of the new tests fail on the old index.mjs.
Not tried: a real Devin account.
zelong77 asked for two things once Devin 0.1.30's cache keep-alive
worked: its pings were invisible in magpie, and the interval and ping
count could only be edited in plugins.json. The owner decided pings are
shown as counted usage and the two numbers are edited in the GUI.
- host.js gives plugins input.magpie.usage(provider, call) and
input.magpie.account(provider). usage validates the call (kind
[a-z0-9_-]{1,40}, a model id, whole-number tokens from 0, status at
most 999, error clipped to 500) and sends an unasked "usage" event;
host.go hands it to plugin.OnUsage in the background.
- internal/usage/plugin_calls.go writes each one as a row of agent
magpie on the plugin's provider (provider.PluginID) and account
(provider.PluginAccountUser), with its kind. It is counted, priced
and in every total, not a probe. Kind cache_keepalive is in the
purpose catalog as "Cache keep-alive" (five languages), so the
request log names and filters it. The ping itself still goes straight
to Devin, never through the gateway, which would break the cache.
- /api/plugins reads every plugin's package options example, not only a
middleware's or request hook's, and the Installed row offers the same
Options JSON editor for a provider or agent plugin that suggests or
has options (not while it is off). Clear's confirm no longer calls
them a middleware's options.
- The Devin mover's min is 0.1.31, which reports each ping and gives
its two settings' defaults (285 s, 6) to the editor. npm has 0.1.31
(published 10:03Z); the plugins publish run is red only for
think-tags' known E404 (plugins#180).
- docs: provider-plugins.md (the API, the options editor),
gateway-sessions.md (the counted row beside probes).
Run at this tree (rebased on origin/main 85e37162e):
- mote (mote-run): go test -count=1 -timeout 45m ./internal/plugin
./internal/usage ./internal/gui ./internal/provider: plugin, usage,
provider ok; gui red only in TestMainWindowCorners/macOS_26_SDK, the
macOS 27 red already filed as #3949 (not this change's code).
- mote: GOOS=linux and GOOS=windows go vet of plugin, usage, provider ok;
gofmt -l clean.
- mote: plugin-provider-options.test.cjs (new, 5 languages, 980/420px,
Chromium + WebKit), plugin-gateway.test.cjs and i18n-keys.test.cjs:
28 of 28 pass.
- The whole GUI suite (make test-ui) on WSL magpie-desktop (mote was at
load ~100 with other sessions' suites, #4125), at the 8f804396f base:
cut off after 498 test entries, when the session's background jobs
were killed; 495 ok, 3 red, none on a page this change touches. Run
again alone at origin/main 85e37162e, the same files are red there
too: account-eye webkit (#4244), agent-expand-steady webkit 980px
(#2935), add-button zh's 3000ms waitForFunction (filed #4792). The
rest of the suite was not run.
Broken by hand (each red, then put back):
- host.go dropping the "usage" event: TestPluginReportsOwnUsage fails.
- plugins.go reading optionsExample for middleware/hooks only:
TestProviderPluginOptionsExample fails.
- purpose.go without the Cache keep-alive kind:
TestPluginKeepaliveIsCounted fails (purpose {}).
- plugins.js without ownOpts: plugin-provider-options.test.cjs times
out waiting for the Options button in every language.
Not tried: a real Devin account's keep-alive ping reported into a real
magpie (needs a live Devin conversation idle for 285 s); a plugin can
report a row for any provider id, as magpie.load can.
0.1.30 adds "Keep the cache warm", off by default: after a reply that
used the cache, the same GetChatMessage goes again every 285 s with
"continue" and max_tokens 1, as the devin CLI does, until the
conversation's next request, a 401/402/429, two misses or 6 pings.
A real ping 287 s after an 11k-token write read all 10,984 from the
cache (plugins b797476 has the record).
npm view @magpie-community/opencode-devin-auth version --prefer-online
on mote: 0.1.30.
Run: go test -timeout 45m ./internal/provider on mote (mote-run): ok;
gofmt -l internal/provider: clean.
Not run: the rest of the suite (a one-string change to a mover's min).
grokShaped dropped a tool_choice object whose type isn't among grokTools
on the plugin's path too, the same as for the built-in: a Responses
request relayed to the Grok plugin in its own protocol reached the
plugin's fetch with no tool_choice, so with the X search option on (grok
0.2.0) the plugin added x_search over a client's allowed_tools and a
tool outside the allowed list went out. The plugin reads the choice and
leaves an unsupported one out before Grok itself (every version since
the TOOLS filter, the mover's min 0.1.18 among them), so grokPluginBody
now keeps such an object, as it keeps the lone "none" (#3110);
grokShaped's keepNone is forPlugin, since keeping is no longer only
about "none". The built-in, which is Grok's last stop, still drops it.
Run:
- gofmt -l on the changed files: clean
- go vet ./...: darwin and GOOS=windows clean; GOOS=linux vet needs
-tags nogui (the GUI's wails doesn't vet without it), clean with it
- go build: darwin, GOOS=linux -tags nogui and GOOS=windows: ok
- go test -tags nogui ./internal/provider: ok 167.3s, no FAIL
- go test ./internal/gateway -run 'TestToolsOffWithoutTools|TestGrok': ok
- TestGrokPluginBodyKeepsUnsupportedToolChoice fails without the change
("plugin: tool_choice {Type: Mode: Tools:[]}"), passes with it; broken
by hand, each way red then green on restore: deleting the choice
whatever the path (plugin red), deleting only a supported type
(built-in red)
Landed (yetone): the next commit adds the end-to-end test through the
gateway to the fake Grok plugin. Run at the pushed head on mote:
go test ./... -timeout 45m on mote with this branch on 41b5c0f19: 83 packages ok. internal/gui is red on TestSettingsSaveKeepsWhatItDoesNotSend (#4514) and TestMainWindowCorners (#3949), both red alone at 41b5c0f19 too, and on TestColdTurnsTaken (#4510). internal/update is red on TestRelaunchOpenTriedAgain (#3881). The last two pass alone at 41b5c0f19 and here. Rebased on f856d381a: agent, gateway, plugin, provider and sessions ok, gui red on #4514 and #3949 only, gofmt -l clean, go vet ok for linux (nogui), windows and darwin. Rebased on bb478f0e5: agent and gateway ok, gui the same. The last rebase, onto 573b21f4b, brings in only internal/gui/providers*.go and internal/provider/models.go, which this branch doesn't touch.
Generated-by: GLM-5.3-Flash (ZCode)
Devin 0.1.28 asks its Claude models on Anthropic's Messages API and sends
each of the client's blocks as a prompt of its own, with Devin's cache
mark (prompt_cache_options EPHEMERAL) where the client put cache_control.
A grown Claude Code classifier history read 558 tokens from the cache
and wrote ~7.3k again; on a real account it now reads 7,318 and writes
the 560 it grew by (haiku-5-5 and opus-5-5). 0.1.29 says a failed tool
result in its text, "Error: " first, as the chat path does.
npm view @magpie-community/opencode-devin-auth version --prefer-online:
0.1.29 when this landed.
Run: mote-run go test -timeout 45m ./internal/provider/... ok (102.8s).
Not tried: a magpie gateway with Claude Code end to end on the new
plugin.
kthink on Discord: dsh on Gemini 3.8 Flash through Command Code was
refused 400 "Google schema conversion only supports references to direct
children of root-level $defs or definitions ... #/properties/func/properties/triggers/items".
commandcode 0.1.21 (magpie-community/plugins d05f55e) writes such refs out
for Google models only; npm view --prefer-online shows 0.1.21.
Run on mote at this tree: go test -timeout 45m ./internal/provider/ ok.
gofmt -l clean. Not tried: a real Command Code request (both keys here
answer 401); other plugins' Gemini models are plugins#557.
opencode-commandcode-auth 0.1.20 (npm view --prefer-online: 0.1.20,
plugins 622f950): a Go, GOAT or Pro account's Credits window says the
month in credits, the usage-value units Command Code counts those plans
in ("0.20 / 70.00 credits"; GOAT's 70 credits are its "up to $100"),
with bought and free credits said beside it, and a Provider account,
pay as you go, shows its balance instead of a $15 month. Raising the
min makes keepMovedCurrent update every moved Command Code user.
Run (mote, at this tree on 1e15a7a3b): go test -timeout 45m ./internal/provider:
ok (158.7s). gofmt -l: clean.
Not tried: a live Command Code account (both keys here are answered 401).
0.2.35 ends a step on the calls Cursor completed itself, which its tool
count includes but never reach the plugin, or on a checkpoint whose
pending calls are the ones the plugin holds. 0.2.34 waited out
Cursor's heartbeats and failed "went quiet" (Windsland52's wire trace).
npm view @magpie-community/opencode-cursor-auth version --prefer-online
says 0.2.35 at landing. Run on mote at this head: go test
./internal/provider ok.
Windsland52 (plugins #550) got "Cursor went quiet: 24 heartbeats and
nothing else for 240 s, its last message checkpoint" and asked for more
about that checkpoint and for a way to capture a failed Run. The plugin
(magpie-community/plugins 1a5b184, @magpie-community/opencode-cursor-auth
0.2.34, on registry.npmjs.org) now:
- names the checkpoint in the quiet error: its number in the Run, which
of its step's (native path), how many in a row, and the frame kinds
before it;
- has a plugin option, Wire trace (wire_trace, off by default), that
writes a failed (not cancelled) Run's frames as shape only (direction,
ms, size, kind, field numbers, wire types, sizes one level deep; no
text, tokens, headers, blob or account ids; the error scrubbed) to
<magpie folder>/cursor-traces, newest 20 kept, mode 0600.
The quiet budget and retry are unchanged. This commit raises
keepMovedCurrent's min so moved users get it.
Run:
- plugins: bun test packages/cursor on mote, 165 pass 0 fail, and on
Windows (win-run) 165 pass; the full plugins suite on mote with a temp
HOME, 4186 pass 9 skip 0 fail; bun scripts/check.mjs cursor ok.
- here: gofmt -l internal/provider (clean), and
mote-run go test ./internal/provider/ -timeout 45m: ok (101.1s) at
base 027360021, which is origin/main at push.
Broken by hand (plugins, on mote): the new tests on the old code, 5 red;
raw bytes added to each trace entry, both e2e trace tests red; cancelled
Runs traced, the cancel test red; the option ignored, the off-by-default
test red.
Not tried: a real Cursor account or the reporter's stall (the tests feed
heartbeats after a checkpoint through a fake agent, not a captured Run);
the Wire trace toggle in the GUI.
CryptoSarom on X: magpie didn't read Cursor's bonus credit or the limits
on spending it. The plugin (magpie-community/plugins 00de68a,
@magpie-community/opencode-cursor-auth 0.2.33, on npm) now shows two
things on the Usage card, both aside so they never stop routing:
- the plan's bonus, from GetCurrentPeriodUsage planUsage.bonusSpend and
remainingBonus, as "+$X on us" (the IDE's "free usage on us" line);
- each active credit grant, from DashboardService/
GetUsageLimitStatusAndActiveGrants activeGrants: spent / total, its
expiry, and the models (allowed_model_ids, tags, selections) or
clients (allowed_client_types) it covers.
A pool spent while a grant that cursor-agent ("cli") can use still has
money left no longer stops the models that grant covers. The field
names come from Cursor's own schemas, in the IDE's workbench bundle and
cursor-agent 2026.10.01, and from real replies on the owner's account.
This commit raises keepMovedCurrent's min so moved users get it.
Run:
- plugins: bun test packages/cursor on mote, 79 pass 0 fail
(credit/usage/included-only), and the full suite before that;
bun scripts/check.mjs cursor.
- the real account's card through 0.2.33, in a sandbox HOME, read only.
- here: gofmt -l internal/provider (clean), and
mote-run go test ./internal/provider/ -timeout 45m: ok (98.5s) at base 9d4a4bfd3.
Broken by hand: credit.test.mjs is red 9 of 9 on the old index.mjs.
Not tried: a real account that has a grant or remainingBonus true (the
owner's has neither: activeGrants is empty and remainingBonus is false),
so the grant fixtures come from the schema, not from real bytes. Also
not tried: whether Cursor really serves past a spent pool on a grant.
GetCreditGrantsBalance and GetClientVisibleCreditGrants (both {} here)
are not read.
zws13579 (Discord #general): a Devin Free plan account couldn't use
SWE-2 through the plugin. devin 0.1.27 (plugins eee889a): SWE-2 asked
with no effort goes as a free variant, never a paid -lightning one listed
first; a family the account's list leaves out goes as SNAPSHOT's variant
(swe-2-high), not the bare family id; and a GetCliModelConfigs failure is
logged and shown in usage as a "Free models: unknown" row instead of
swallowed. What needs a real Free plan account is plugins #533.
npm view @magpie-community/opencode-devin-auth version (registry, at
landing): 0.1.27.
Run (mote): go vet ./internal/provider/ and go test -timeout 45m
./internal/provider/: ok. Plugins side: its full bun suite and
check.mjs green; its new tests red on the old plugin (3 of 9).
Not tried: the full Go suite (a one-line min); a real Free plan account.
Grok answered Codex 400 'Argument not supported:
"output.encrypted_content" in "include" field'. opencode-grok-auth
0.2.3 (plugins 254c3e7) drops that include value before Grok and keeps
reasoning.encrypted_content; keepMovedCurrent brings moved users up to
it.
Checked: npm view --prefer-online @magpie-community/opencode-grok-auth
version is 0.2.3. Run on mote at this tree: go test -timeout 45m
./internal/provider (ok, 157.9s). The plugin's own tests were red on
its old code and are listed in its commit.
Not tried: a real Grok account, a real Codex turn through Grok, or the
full ./... suite (one-line min change).
Grok Build sends x-grok-doom-loop-check: 1024 and
x-grok-exact-repetition-check: 64 on every Responses request; the
plugin sent neither, so cli-chat-proxy let a looping reply run (~4K
tokens for an exact loop, to max output for a looser one). Plugin
0.2.2 (magpie-community/plugins 9608d03) sends them. npm has 0.2.2
(npm view --prefer-online --registry https://registry.npmjs.org/).
Run:
- gofmt -l internal/provider: clean; go vet ./internal/provider and
go test -timeout 45m ./internal/provider on mote: ok.
- Real account, sandbox magpie at origin/main with plugin 0.2.2's
code: a "* " x3000 prompt over /v1/responses, /v1/chat/completions
and /v1/messages each carried both headers upstream and stopped after
~1K tokens instead of ~4.3K.
Not tried: a full go test ./... (a one-line min change); a mover run
updating an installed 0.2.1 to 0.2.2 (keepMovedCurrent, unchanged).
majiang_ai on X: Cursor's newer plans have no third-party-model pool,
but magpie's Cursor card still showed Cursor Models, Other Models and
Total. Cursor's GetPlanInfo answers isMerged true and
includedUsagePeriod WEEKLY for such a plan, and its dashboard
(cursor.com/v2/usage) draws one "Weekly usage limit" meter from the
period's totalPercentUsed. @magpie-community/opencode-cursor-auth 0.2.32
(plugins 060722e) shows that plan's included usage as one Weekly window
counting every model; an unmerged plan keeps its two pools.
This commit raises the Cursor mover's min to 0.2.32, so keepMovedCurrent
installs it for every moved user.
Run (on mote, at this tree):
- gofmt -l internal/provider/migrate_side.go: nothing
- go vet ./...; GOOS=linux go vet -tags nogui ./...; GOOS=windows go
vet ./...: ok
- go test -timeout 45m ./internal/provider: ok (253s)
- npm view @magpie-community/opencode-cursor-auth version --prefer-online:
0.2.32; the published tarball's index.mjs reads isMerged.
Plugin side (recorded in plugins 060722e): whole plugins repo bun test
3229 pass, 0 fail; 5 new tests red with the merged branch turned off;
the owner's real Cursor account (a merged Premium plan) read with the
plugin directly: 0.2.31 showed Cursor Models 7% / Other Models 0% /
Total 7%, 0.2.32 shows Weekly 7% (resets 11-03), Grok Bot, On-demand.
Not run: the full go test ./... (only the mover's min changed); a move
in a sandbox magpie with the real account; an old unmerged plan's real
account (none at hand).
blue12345655 (Discord #help): a Command Code account signed in through
the plugin was signed out, and magpie showed no 重新登录 (v0.1.1844, still
v0.1.2021). The plugin said signIn "kept" on every usage read and
X-Magpie-Sign-In "kept" on every answer, so magpie never marked the
account lapsed: its card said "Unauthorized", the gateway kept routing
to it, and neither its row nor the list offered Sign in again. Devin's
and Kiro's usage reads did the same with words that said to sign in
again.
plugins 9410e2a: Command Code confirms a 401/403 with /alpha/whoami and
says "expired" on the usage read and on the request's answer; Devin's
usage 401 and Kiro's refused refresh say "expired"; a clean read says
"renewed". This raises the three movers' min so every moved user gets
them (keepMovedCurrent). npm view --prefer-online at landing:
opencode-commandcode-auth 0.1.19, opencode-devin-auth 0.1.26,
opencode-kiro-auth 0.1.19.
Run:
- The real npm plugins against the real api.commandcode.ai with a key
it never issued (bun, WSL, sandbox HOME): 0.1.18 usage
{"error":"Unauthorized","signIn":"kept"} and request 401 "kept";
0.1.19 usage {"error":"Command Code's sign-in has expired; sign in
again","signIn":"expired"} and request 401 "expired", body unchanged.
- Plugins: bun test commandcode 82/0, devin 142/0, kiro 67/0; bun
scripts/check.mjs ok.
- go test -timeout 45m ./internal/provider/... ./internal/gui/... on
mote (macOS 27), rebased on origin/main 96a703a59: provider ok; gui
red only in TestMainWindowCorners/macOS_26_SDK, the AppKit title-bar
test that is red on macOS 27 already (#3949), not reached by this.
- gofmt -l: clean.
Broken by hand: commandcode signed-out.test.mjs against 0.1.18's
index.mjs, 4 of 9 red; kiro and devin usage tests against their old
index.mjs, red.
Not tried: a real revoked Command Code, Devin or Kiro account, and a
full magpie sandbox with the plugin host (magpie's handling of
"expired", notePluginLapseSince and the row's Sign in again, is the
existing path that plugin-signed-out-account.test.cjs covers).
0.2.31 declares included_only ("Included usage only", off by default) in
auth.options, which magpie's provider editor shows under Plugin options
with no other step. On, Cursor Models and Other Models (an Enterprise
account's allowance) keep an account in routing, and On-demand and Total
are shown only; read at each usage reading, so no restart. Off, usage is
as 0.2.30 gives it.
npm view --prefer-online @magpie-community/opencode-cursor-auth version:
0.2.31 at landing. The publish run for plugins 6a86762 is red on Factory
0.1.39's E409 (already on npm) and think-tags (plugins#180); cursor's
step printed "+ @magpie-community/opencode-cursor-auth@0.2.31".
Run on mote at this tree: gofmt -l internal/provider (empty), go vet
./internal/provider, go test -timeout 45m ./internal/provider: ok 204s.
Not run: the full suite (a one-string change to the min); a real Cursor
Team account with the switch on.
0.1.18 (joeliu96872540 on X: magpie couldn't get Command Code's
typesafe/jev): Command Code's model list doesn't name Jev, TypeSafe's
System One. The plugin now says the provider decides, lists Jev for
every plan marked as a decision model (not offered to agents for chat),
and sends magpie's System One questions to /provider/v1/systemone with
the headers command-code 1.88.2 sends. So Jev can be a routing group's
classifier, or answer POST /v1/systemone as
commandcode-plan/typesafe/jev. Plugin commit: magpie-community/plugins
dec9217.
npm view @magpie-community/opencode-commandcode-auth version
--prefer-online: 0.1.18 when this landed.
Run at this tree: go test -timeout 45m ./internal/provider ok (175s,
on the WSL Linux box; mote was unreachable); gofmt -l clean. Plugin:
bun test packages/commandcode 72 pass, 1 skip, 0 fail on mote; turning
off the /systemone route, decide or the listing turned 6 of the 8 new
jev tests red. Not tried: a real Command Code account (none in a
sandbox HOME).
0.2.30 (lexleizou, #3288, plugins #391): an Enterprise account's
GetCurrentPeriodUsage has no plan pools, so its card was empty; the
plugin now reads the website's usage-summary and shows the overall
allowance as an Enterprise window in USD, aside while team on-demand is
unlimited or a measured budget has room.
npm view @magpie-community/opencode-cursor-auth version --prefer-online:
0.2.30 when this landed.
Run on mote at this tree: go test -timeout 45m ./internal/provider ok
(139s); gofmt -l clean. Not tried: a real Enterprise account.
ysm119 on Discord: Cursor 30 s+ to first token, 1-4 min a turn. 0.2.28's
16-at-once BidiAppends reached only the plugin's stateless fallback;
every real request goes through its native session, which still sent
each history message's blob one round trip at a time when the Run fell
back to HTTP/1.1 (a proxy or network that blocks h2). 0.2.29 (plugins
8f81a8a) sends them 16 at a time there too.
Real Cursor account, sandbox HOME, plugin driven directly, h2 forced to
fail: a 30-step agent history went from 37-39 s to first token to
4.4-9.1 s; 100 steps from 117-130 s to 9.0-13.2 s, answers correct.
Over HTTP/2 nothing changed and nothing was slow (2.9-7.3 s).
Run: gofmt -l clean; go test -tags nogui ./internal/provider/ on mote,
ok. npm view --prefer-online shows 0.2.29 as latest.
Not tried: a sandbox magpie installing 0.2.29 through the mover; the
reporter's network, so whether he is on HTTP/1.1 is not confirmed.
ysm119 on Discord: claude-opus-5-5 through the Cursor plugin takes 33-36 s
to its first token and 83-253 s in all. Two waits on our side, both fixed
in the plugin (magpie-community/plugins fc14571, d9c858c, 944610f):
- A chat request picked its variant from AvailableModels (up to 30 s)
before its Run, and a list Cursor couldn't give was asked again, and
waited for, by every request. Now a stale list is used while a new one
is asked for, requests at once share one ask, and after a failed ask
requests go without it for 5 minutes.
- Over HTTP/1.1 each history message's BidiAppend waited for the one
before it. Now up to 16 go at once, as cursor-agent 2026.10.01 sends
them; a native session's Run stays one at a time.
0.2.28 is on npm (npm view --prefer-online). 0.2.27 never reached npm on
its own: its publish run went red on a test token collision, fixed in
944610f.
Run: gofmt -l (clean); on mote go build -tags nogui ./... and
go test -tags nogui ./internal/provider/ (ok). Plugin side: bun test
packages/cursor 314 pass on mote and on Linux; the whole plugins suite
2997 pass; the publish run's test job green.
Broken by hand (plugin): the old index.mjs turns all three
listwait.test.mjs tests red; openH1 back to one at a time turns the new
http1 test red.
Not tried: a real Cursor account (its token is in the Keychain), so
whether these are the time ysm119 sees, or Cursor's own, is not measured;
not the full go suite (a one-string min change).
Kimi Code's Read (line_offset: anyOf of two integers) made every
devin/gemini-4-argon request 400. The gateway's geminiToolTypes writes
the type the branches agree on beside an untyped anyOf, and Devin's
Gemini models refuse {type, anyOf} below a tool's root. The plugin's
geminiSchema now merges such an anyOf or sends it as a oneOf
(magpie-community/plugins 2c30818). npm view --prefer-online shows
0.1.25.
Run (mote): go build -tags nogui ./..., go vet ./internal/provider,
go test -run "Mover|Moved|Migrat|Min" ./internal/provider: ok. gofmt -l
clean. The plugin change was checked against a real Devin account
(gemini-4-argon: the typed shapes 400 on 0.1.24, all 17 probe shapes 200
on 0.1.25).
Not run: full suite.
Not changed: geminiToolTypes itself still writes a type beside an anyOf;
Devin's plugin is the only server seen refusing it.
ysm119 on Discord, after 0.2.25: claude-haiku-5-5-thinking still failed.
A Team account's picker has Claude Haiku 5.5 with thinking as its
default while cursor-agent lists only claude-haiku-5-5; 0.2.26
(plugins df4dfcd) sends each Haiku id as the id the account lists.
npm view --prefer-online says 0.2.26 at landing.
Run on origin/main a312bf3e3 (since rebased onto 14e4d8040, no shared files;
vet, budget and this change's tests ok again there),
set -o pipefail, -timeout 45m, logs tee'd: internal/plugin,
internal/probelog and internal/gui ok; internal/provider ok but for
TestFetchAsksASharedBaseOnce and its two siblings, red 4 of 4 on
origin/main 14e4d8040 too (#3854), and with
TestUnreadLoginsWriteErrorsKeepCredentials skipped (synctest crash,
#3632). GUI: model-test-one, model-test-why, models-works-only,
provider-typed, extra-body and i18n-keys, 44 pass in both engines.
Not tried: a real Team account of that shape, or a real failing Test
viewed on the Requests page.
ysm119 on Discord (Cursor Team account, after v0.1.1696): the Cursor
editor listed "Claude Opus 5 1M Medium Thinking", "Claude Opus 4.7 1M
Medium Thinking" and the like, read as one fixed tier each ("没法设置模型
档位"), and the picked claude-haiku-5-5-thinking failed Test models.
The mover's min is 0.2.25 (npm view --prefer-online: 0.2.25,
magpie-community/plugins cb776e2):
- a family only cursor-agent lists is named without the effort, Fast
and 1M wherever Cursor's name has them (Claude Opus 5 Thinking); its
tiers were already its reasoning levels, low to max;
- an id for a model with thinking that the account lists only without
it (claude-haiku-5-5-thinking, listed by plugin 0.1.x), or the other
way round, runs on the model the account has instead of going to
Cursor as named ("AI Model Not Found").
Run at origin/main 32ea16c5a + this change:
- gofmt -l internal/provider clean; go vet -tags nogui ./internal/provider
on darwin, GOOS=linux, GOOS=windows clean.
- go test -tags nogui ./internal/provider: ok but for
TestUnreadLoginsWriteErrorsKeepCredentials (synctest crash on main,
#3632; skipped) and TestFetchAsksOneListOnceForTwoBasesOfIt,
TestFetchUnionsProtocolListsWithoutChat, TestFetchAsksASharedBaseOnce
(red on main, #3854).
- Plugin side: bun test packages/cursor 310 pass; its three new tests
fail on 0.2.24.
Not run: the full suite (a one-line min); a real Cursor account or the
reporter's Team list (the plugin tests use the reporter's names with
Cursor's id pattern); magpie end to end.
ysm119 on Discord (Cursor Team account, Claude Code): claude-opus-5-5@1m
and claude-opus-5-5 failed with Cursor's "AI Model Not Found", and a
picked claude-opus-5-5-low was shown and sent as claude-opus-5-5.
- cursorPicks, CursorBase and CursorVariants folded Cursor's ids into
families by the list the retired built-in left in the cache
(catalog.Live("cursor"), a stale `cursor-agent models` dump), so a
pick of claude-opus-5-5-low became claude-opus-5-5, which the plugin
then sent as is. While the plugin serves Cursor (always, since the
built-in is retired) they now read no list: a pick stays the id picked,
and the start-up MoveCursorEfforts leaves agents' ids alone.
- The mover's min is 0.2.24 (npm view --prefer-online: 0.2.24), which
lists a family the account's picker lacks once with its efforts and
sends the usable id the effort picks, and runs a stale @size id at the
nearest size (magpie-community/plugins fc2866f).
Run at 353519f55 + this change:
- gofmt -l internal clean; go vet -tags nogui provider and agent on
darwin, GOOS=linux, GOOS=windows clean; go build -tags nogui ./... on
all three.
- go test -tags nogui ./internal/catalog ok; ./internal/provider ok but
for TestUnreadLoginsWriteErrorsKeepCredentials (skipped, synctest
crash on main, #3632) and three TestFetch* tests red on main since
6eb510f78 without this change (#3854); -run 'Cursor|Effort|Legacy' in
internal/agent and internal/gateway ok.
- Broken by hand: with the guard turned off,
TestCursorPicksKeptWhenPluginServes fails exactly as reported
(picks = [claude-opus-5-5], CursorBase "claude-opus-5-5" "low").
Not run: the full suite (two other sessions' suites were running on the
machine, one per machine); a real Team account; magpie end to end with
Claude Code. The plugin side was run against a real Cursor account (see
plugins fc2866f).
The Devin plugin 0.1.24 (plugins #396) stores the CLI sign-in's
metadata.cli as "true", the string OpenCode 1 keeps, because OpenCode
dropped a boolean there and with it the account. The mover now writes
"true", and the back checks (Devin, Command Code) and pluginOwn accept
both true and "true" through cliMarked, so accounts moved before keep
working.
Run at this head:
- go test ./internal/provider -count=1 (skipping
TestUnreadLoginsWriteErrorsKeepCredentials, #3632's crash): ok 101.9s
- GOOS=linux and GOOS=windows go vet ./internal/provider: ok; gofmt -l clean
- npm view @magpie-community/opencode-devin-auth version --prefer-online: 0.1.24
Broken by hand: the Devin back check put back to md["cli"] == true
makes TestMoveDevin fail; restored.
Not tried: a real Devin account move through OpenCode 1.
01huadalang said the Command Code card has no bar for the total quota
left. The Providers account line (quotaLine) and the menu bar
(trayusage) show a provider's first two windows. A plan account's
plugin reported [5 hours, Weekly, Credits], so the dollars were only
in the tooltip. Plugin 0.1.17 (plugins 8531ccc) puts Credits second,
after the 5 hours. The min goes to 0.1.17 so keepMovedCurrent updates
every moved user.
npm view @magpie-community/opencode-commandcode-auth --prefer-online:
latest 0.1.17, published by publish.yml run 40186792179 with provenance
(its npm job is red only on think-tags 0.1.1's known E404, plugins#180).
The plugin's bun test: 65 pass. The plugin's auth.usage, against the
owner's real GOAT account: 5 hours 0.93%, Credits $0.63 / $70.00,
Weekly 1.20% (before: 5 hours, Weekly, Credits). Plugins PR #303 was
reviewed and not merged (it loses the $ on today's magpie and adds no
bar); see its comment.
At the pushed head (this and the provider commit, rebased on
origin/main 758be6d14): go test -tags nogui -count=1 ./internal/gui
./internal/provider in a sandbox HOME: ok (67.5s, 133.5s); gofmt -l
clean; go vet ./internal/gui ./internal/provider ok; go build ./...
(mac) ok; heatmap-scrollbar, usage-heatmap, view-scrollbar and
view-wheel-unheard .test.cjs at 7ad6df865: 38 pass, 0 fail. Before the rebase, at
30bd722ef on d2e0ea393: the same two packages ok (84.9s, 157.1s), and
go vet ./... for mac, GOOS=linux -tags nogui and GOOS=windows ok, with
linux nogui and windows go build ok.
Not run: the full suite (the disk was full). Not tried: a sandbox magpie
showing the bar on the account line. No test fails without a min
bump; the plugin's usage test holds the order.
npm view --prefer-online @magpie-community/opencode-cursor-auth: 0.2.23.
Ran: go test ./internal/provider -run 'Mover|Moved|Min|Cursor' (ok), gofmt -l clean.
Not run: the full suite (a one-line min change). The plugin change itself
was reviewed and run against a real Cursor account in plugins#231.
Mover mins raised to the versions npm has at landing (npm view
--prefer-online): zcode 0.1.28 (plugins #369, #379), cursor 0.2.22
(#377), workbuddy/workbuddy-ai 0.1.34 (#337, #378, #346), qoder/qoder-cn
0.2.36 (#323, #378, QwenWork #319). keepMovedCurrent updates every moved
user's plugin to them.
Run: go test ./internal/provider/ ok (152s); gofmt -l clean.
Not tried: a real move or upgrade on a real account; the plugin fixes
themselves were reviewed and tested in the plugins repo, not against
the vendors' APIs.
commandcode 0.1.16 sends the Go catalog with Node fetch's own User-Agent
and /alpha/generate with the working folder's slug, as command-code
1.88.0 does, where both said "magpie". qoder 0.2.33 names a task with
the prompt's first ten characters, as Qoder.app 0.4.3 does, not "magpie
session". keepMovedCurrent brings every moved user up to them.
Both versions checked with npm view --prefer-online at landing:
opencode-commandcode-auth 0.1.16, opencode-qoder-auth 0.2.33.
Run at this tree (base origin/main ef37b6fb7):
- gofmt -l internal/provider/: nothing
- GOOS=darwin|linux|windows go vet ./internal/provider/: ok
- go test -timeout 45m ./internal/provider/: ok (106s), log kept whole
Live (in the plugins repo, sandbox HOME): commandcode against the owner's
GOAT key and qoder against the owner's Qoder account, 0 recorded
requests naming magpie.
opencode-cursor-auth 0.2.20 (magpie-community/plugins a41a8d3) serves the
caller's tools to Cursor as the MCP server "tools", where 0.2.19 named it
"magpie" in the system prompt's tool catalog, each CallDynamicTool call,
each tool definition's provider_identifier and the mcp_state answer. Text
added to a vendor's prompt names neither magpie nor the vendor's limits
(LESSONS.md, 5d33f060b / 3c4f8f9ae). Calls under the old name are still
read back. keepMovedCurrent brings every moved user up to it.
npm: https://registry.npmjs.org/@magpie-community/opencode-cursor-auth/latest
says 0.2.20 at landing (publish run 40079878280 is red only for
middleware-think-tags, plugins#180; cursor-auth@0.2.20 was published).
Run at this tree (origin/main 9d6436311 + this change):
- gofmt -l internal/provider/: nothing
- go vet ./internal/provider/ on darwin, GOOS=linux and GOOS=windows: ok
- go test -timeout 45m ./internal/provider/: ok (106s)
The plugin side's record (279 bun tests, a red-then-green upstream-words
test, live tool calls on the owner's Cursor account from a sandbox HOME)
is in a41a8d3's body.
Not run: the full go test ./... suite; the change is the min string only.
0.1.15 (plugins 652f06d) offers an off level on DeepSeek V4 Pro, V4
Flash, V4 Flash Vision (exp), V4.1 Flash and V4.1 Flash Fast and sends
it to the Provider API as reasoning_effort "off", Command Code's own
word for it. V4 Flash Fast, Kimi K3 and Go's /alpha/generate are sent no
level for off. keepMovedCurrent brings every moved user up to it.
No other magpie change: a plugin model's variants are its levels
(pluginCatalog), and a plugin model listing none is sent none
(TestPluginThinkingOff), so /v1/models lists none for these models
once the plugin is 0.1.15.
npm view --prefer-online: 0.1.15 at 16:01 CST, before this commit.
Run at da6fd87ed plus this change (origin/main fetched before the
commit; rebased onto it with no conflict):
- gofmt -l internal/provider: clean.
- go vet ./internal/provider (darwin), GOOS=linux -tags nogui,
GOOS=windows: ok.
- go test -tags nogui -timeout 45m ./internal/provider/...
./internal/catalog/... ./internal/gateway/...: ok (provider 98s,
catalog 3s, gateway 370s), one suite on the machine.
Not tried: no real Command Code account. The plugin's off behaviour
rests on the reporter's measurements.
plugins 92d5557 (grok 0.2.1, on npm: npm view --prefer-online answers
0.2.1) renews a sign-in once through Grok Build when a request, the
model list or usage gets a 401, and retries once. A renewal that leaves
the same token now says Grok Build couldn't renew it, with the CLI's
last line, not that the sign-in expired; a half-written auth.json is
read again and then falls back to the last good read. Maxwelltoo's
report: 716 failed silent refreshes over a day, each surfaced as
"sign-in has expired; run grok login".
min 0.1.18 -> 0.2.1, so keepMovedCurrent brings every moved user up.
The note drops "a token Grok refuses early reads as expired", which
0.2.1 no longer does.
Run at 79856727f plus this change: go test -tags nogui ./internal/provider/
ok (92s), gofmt clean. Only this string changed, so no full suite.
Not tried: a real Grok Build sign-in on 0.2.1; the plugin's own tests
use a fake CLI.
The Devin mover's min is now 0.1.23, so keepMovedCurrent updates every
moved Devin user to it:
- 0.1.22 (plugins a20c1b9, #296 by whofly2016): an account in more than
one Devin organisation under the same email is signed in once per
organisation, named "<email> · <org>" and keyed by its orgId/teamId,
each with its own Coding Plan quota; before, signing in to the second
organisation overwrote the first.
- 0.1.23 (plugins 397a890, #297 by mameikagou): a reply with only usage
or metadata is refused before the stream starts, not passed on as an
empty success.
npm view @magpie-community/opencode-devin-auth version --prefer-online
--registry https://registry.npmjs.org printed 0.1.22 at 18:25 UTC and
0.1.23 when this landed; @0.1.23 resolves (sha512-cHVTcK6q…).
No new test: the change is the mover's version string. The host-side
half of #296 (uidOf reading orgId/teamId, the own account's label) is
yetone/magpie#3198, still open and not in this commit.
Not tried: a real moved Devin account updating to 0.1.23.
Run for this batch of seven commits (devin, routing zh, qoder, masked words
any case, Long conversations, Claude subagents, user-select), in a worktree,
sandbox HOME, never against live configs:
- At e352cc823 (tree ea497c9f5, on origin/main 7dd965ed2): go test
-timeout 45m ./... with pipefail, tee'd: 68 packages ok, exit 0, no
ENOSPC. gofmt -l clean; go vet ./... for darwin, GOOS=linux -tags nogui
and GOOS=windows: clean.
- The whole GUI suite at e352cc823 (node --test --test-concurrency=3
internal/gui/tests/*.test.cjs, Chromium and WebKit, every language):
11725 tests, 11679 pass, 46 fail, none ENOSPC. Each red file run alone at
both 7dd965ed2 and e352cc823 gives the same counts on both, so none is
from this batch: usage-agents-hide 5/16 (#2276), usage-ledger 28/34
(#3104), usage-fold, quota-count-wrap, quota-name-translated (#2399),
usage-checkin 26/28 (#2549), plugin-github 14/18 (#3218), s3-sync 3/4
(#2448), modal-morph (#3179), fonts (filed as #3227, 1 in 9 alone on
main). tray-usages (#2453), plugin-card-update (#3079) and
proto-menu-overflow (filed as #3229) were red only under the full run
and pass alone on both.
- Rebased onto origin/main 4a87c4476 (only Zed's mover min changed), tree
8944b5dbb: go test ./internal/provider ./internal/gui (TestCoreScriptBudget
and the app.js budget) ./internal/redact ./internal/settings
./internal/agent: all five ok; gofmt -l clean.
Cause: buildResponses wrote tool_choice only inside its tools block, so a
Chat "none", Anthropic {"type":"none"} or Gemini NONE with no tools was
dropped on the way to Responses. A provider plugin that adds a
server-side tool (Grok's x_search, plugins PR #263) couldn't tell
"tools off" from "no choice". The other builders (Chat, Anthropic,
Gemini, Code Assist) send no tool choice without tools, which is what
their vendors accept (OpenAI Chat refuses a lone tool_choice), so they
are unchanged.
Fix:
- buildResponses keeps a lone "none" (only "none"; "" and "auto"
still go unsaid).
- forwardTranslated strips it again for every non-plugin upstream, and
for a plugin on api.x.ai or Copilot (refusesLoneToolChoice, the #378
rule now shared with passthrough). A vendor never sees it.
- The grok plugin's body shaping (grokPluginBody) keeps a lone "none";
the built-in's grokBody still drops it. grok plugin 0.1.18
(magpie-community/plugins aee6b9d, on npm) drops any lone tool_choice
itself before Grok, so the mover's min goes 0.1.17 -> 0.1.18.
Run at this commit (worktree on efd1b697e):
- gofmt -l: clean
- go vet ./...: darwin, GOOS=linux -tags nogui, GOOS=windows: clean
- set -o pipefail; go test -timeout 45m ./...: exit 0, 68 packages ok
(gateway 660.6s, provider 270.9s), no FAIL
- broken by hand, each went red then green on restore: removing the
"none" emit (ReachesPlugin, PerBuilder/responses); grokPluginBody with
keepNone=false (TestGrokPluginBodyKeepsLoneNone, ReachesPlugin);
dropping the !p.IsPlugin() check (NotSentToVendor)
- plugins: bun test 2018 pass, 0 fail; the new tool-choice test is red
against the old index.mjs
Not tried: live Grok, xAI or OpenAI with a lone "none". Other Responses
plugins (commandcode, factory, opendesign, zed) now get a lone "none" in
this case; their vendors take Codex's lone "auto", but this is untested.
0.1.21 (plugins e2c3a35, 4fd68ba): a Connect request frame past 8 KiB is
gzipped, with the frame's compressed flag and Connect-Content-Encoding:
gzip, as the devin CLI sends it; an uncompressed large chat request
could be refused 413 upstream (plugins #275, BGMYE).
npm view @magpie-community/opencode-devin-auth@0.1.21 version
--prefer-online printed 0.1.21 before the raise.
Run: gofmt -l (none); go vet ./... on darwin, GOOS=linux -tags nogui and
GOOS=windows: clean. `set -o pipefail; go test -timeout 45m ./...` at
1ebda9026 (this batch on 318697dce, movers then at qoder 0.2.21,
workbuddy 0.1.26, no devin raise): 65 packages ok, exit 0. Rebased onto
a9304efe0 (codex images, codex list tag, sessions decoders): gofmt, the
three vets and go test of internal/gateway, internal/provider,
internal/plugin and internal/sessions ok. Then the mover mins were raised
to qoder 0.2.23, workbuddy 0.1.27 and devin 0.1.21 (the only change
since, three strings): gofmt, the three vets of internal/provider and
go test ./internal/provider/ ok at the head of this batch.
Raises the commandcode-plan mover's min from 0.1.13 to 0.1.14 so
keepMovedCurrent updates every moved user. 0.1.14 (plugins 5f101a5)
adds a "Zero Data Retention" switch (auth.options), off by default, and
honours CMD_ZDR=1. While it is on, the Provider API and Go's
/alpha/generate requests carry x-cmd-zdr: 1, as the CLI sends it. A
model with no ZDR upstream reaches the agent as Command Code refused it:
a 422 cmd_zdr_no_providers on the Provider API, a 400 typed
cmd_zdr_no_providers on /alpha/generate.
0.1.14 is on npm: npm view --prefer-online
@magpie-community/opencode-commandcode-auth version says 0.1.14. The
publish run 39237235562 published it. That run is red only for
middleware-think-tags's trusted publisher (plugins #180).
Run: gofmt -l internal/provider (clean); go vet ./internal/provider/ on
darwin, GOOS=linux and GOOS=windows (ok); go test -timeout 45m
./internal/provider/ (ok, 431s). The full suite was not run: only the
mover's min string changed. Not tried: the switch in a running magpie's
editor.