Commit Graph
86 Commits
Author SHA1 Message Date
yetone acdc85ac89 provider: Devin's mover min is 0.1.27, which keeps SWE-2 on its free variants and says when Devin's model list can't be 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.
2026-10-30 22:17:05 +08:00
yetone d609729cff provider: Grok's mover min is 0.2.3, Codex's include without output.encrypted_content (plugins#524)
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).
2026-10-30 18:52:37 +08:00
yetone cdf8151a2e provider: Grok's mover installs plugin 0.2.2, which asks for Grok Build's loop checks (#3594)
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).
2026-10-30 06:58:57 +08:00
yetone 9f25de56c7 provider: Cursor's mover installs plugin 0.2.32, where a newer (merged) plan shows one Weekly window, not Other Models (majiang_ai on X)
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).
2026-10-29 18:07:21 +08:00
yetone b17a495dfa provider: Command Code 0.1.19, Devin 0.1.26 and Kiro 0.1.19 mark a refused sign-in signed out (blue12345655)
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).
2026-10-29 17:59:51 +08:00
yetone 92c96407e6 provider: Cursor's mover min is 0.2.31, Included usage only as a plugin option (plugins #485)
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.
2026-10-29 16:45:09 +08:00
yetone bfe1f9a2bd provider: Command Code's plugin min is 0.1.18, Jev (typesafe/jev) as a decision model
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).
2026-10-29 15:06:30 +08:00
yetone 298bfce59e provider: Cursor's plugin min is 0.2.30, an Enterprise account's overall allowance (plugins #391)
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.
2026-10-28 23:58:55 +08:00
yetone b01193ef97 provider: Cursor's plugin min is 0.2.29, whose HTTP/1.1 Run sends blobs 16 at once
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.
2026-10-28 16:03:46 +08:00
yetone a57ec01683 provider: Cursor's plugin min is 0.2.28, which doesn't wait on a failed model list or send HTTP/1.1 appends one at a time
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).
2026-10-28 15:06:23 +08:00
yetone e9dd8e83ac provider: Devin's mover min is 0.1.25, a typed anyOf goes to its Gemini models in a shape they take (plugins#458)
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.
2026-10-28 13:26:17 +08:00
yetone c49c14d7fd cursor: the mover's min is 0.2.26 (Haiku listed without thinking)
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.
2026-10-27 18:45:14 +08:00
yetone 8bd300399d provider: Cursor's plugin is at least 0.2.25, its tiered models named without the tier
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.
2026-10-27 16:35:37 +08:00
yetone c37bcdbfc8 cursor: picks keep Cursor's own ids, and the plugin's min is 0.2.24
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).
2026-10-27 14:57:16 +08:00
yetone 2921471de1 provider: Devin's mover min is 0.1.24 and its "cli" mark is the string OpenCode keeps
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.
2026-10-26 16:27:06 +08:00
yetone 83571db8ed provider: Command Code's plugin is at least 0.1.17, its Credits bar second where magpie shows two windows (01huadalang on Discord)
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.
2026-10-25 19:40:37 +08:00
yetone 11907448e3 provider: the Cursor mover's min is 0.2.23, which sends a Team account's x-cursor-team-id (plugins#231)
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.
2026-10-25 18:01:37 +08:00
yetone 492847818b provider: moved ZCode, Cursor, WorkBuddy and Qoder users get the plugins' latest fixes
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.
2026-10-25 15:47:26 +08:00
yetone 56b90893f7 provider: Command Code's mover asks for commandcode 0.1.16 and Qoder's for qoder 0.2.33, so no request names magpie (plugins #352, #354)
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.
2026-10-24 17:47:21 +08:00
yetone 616c87256a provider: Cursor's mover min is 0.2.20, whose requests to Cursor never name 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.
2026-10-24 17:02:02 +08:00
yetone 68fb6b6d82 provider: Command Code's mover min is 0.1.15, DeepSeek's off level (plugins#334)
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.
2026-10-23 16:06:17 +08:00
yetone 45593cc1d6 provider: Grok's mover min is 0.2.1, which renews once on a 401 (plugins#324)
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.
2026-10-23 03:15:12 +08:00
yetone fc2810e1a6 devin: moved users get plugin 0.1.23, which keeps organisations under one email apart (plugins #296, #297)
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.
2026-10-22 10:52:03 +08:00
yetone 19527ca8dd gateway: tools turned off with none declared reach a plugin as tool_choice none (#3110)
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.
2026-10-21 10:14:07 +08:00
yetone a2f8fd86a0 devin: moved users get plugin 0.1.21, where a large chat request goes gzipped as the devin CLI sends it
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.
2026-10-21 01:11:05 +08:00
yetone 5b267fbd8e provider: moved Command Code accounts take plugin 0.1.14, which can ask for Zero Data Retention (plugins #246)
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.
2026-10-19 18:39:35 +08:00
yetone f76201a84a plugins: a sign-in page the plugin's CLI opened isn't opened again, Grok's opened twice on macOS (andyfmyth on X)
"magpie里的grok 登录验证 在mac下 似乎每次都会弹两次验证, 在浏览器窗口里".
Grok's plugin signs in through `grok login --device-auth`, and Grok Build
(1.0.50, the webbrowser crate) opens the device page itself, through
NSWorkspace on macOS and ShellExecuteW on Windows. Neither reads $BROWSER;
the macOS binary has no "BROWSER" string. magpie then opened the same URL
from /api/plugin-signin (desktop), startPluginSignIn/followSignIn (a
browser tab) or `magpie plugin login`. Reproduced in a sandbox
HOME/GROK_HOME: grok's device-code tab appeared in Chrome with magpie not
involved, with and without SSH_CONNECTION. Built-in grok is retired
(2927a161e), so the plugin's path is the only one.

- The plugin's authorize result can say `opened: true` (not OpenCode's).
  host.js passes it on as Authorization.Opened, then SignInState.Opened,
  and the desktop handler, the CLI and app.js (both open points) open
  nothing then; the link is still shown.
- opencode-grok-auth 0.1.17 (magpie-community/plugins 47fbf63, on npm per
  `npm view --prefer-online`) says opened on darwin/win32, and elsewhere
  gives grok BROWSER=true, a no-op, so magpie stays the one opener there.
  The grok mover min is raised to 0.1.17.
- No other plugin's CLI opens a page: devin, cursor, kiro and qoder run
  status/refresh commands only.
- docs/subsystems/provider-plugins.md says so.

Tests:
- TestPluginSignInPageOpensOnce: the fake plugin signs in through
  /api/plugin-signin. "cli-opened" opens 0 pages; otherwise 1. Red with
  the old gui/plugins.go ("opened 1 more times").
- plugin-signin-opened.test.cjs: in a browser tab, right away and after
  an install, 5 languages, Chromium and WebKit. Every "opened" case is
  red on HEAD's app.js (23 fail); 42/42 with the change.

Run at the change (base origin/main 2ceff7370):
- gofmt -l: clean. go vet ./..., GOOS=linux go vet -tags nogui ./... and
  GOOS=windows go vet ./...: clean.
- go test -p 4 -count=1 ./... -timeout 45m (load 150-380): every package
  ok except two.
  - gateway: TestVisionWaitIsntTheDescribersTime. It passes alone; filed
    as #2901.
  - gui: TestDockReopenKeepsTheWindowsSpace, TestMainWindowCorners,
    TestMainWindowRightToLeft, TestTrayCellClickReleasedPanel and
    TestCoveredWindowStaysUp, killed at their deadlines. All pass alone
    with TestPluginSignInPageOpensOnce; filed as #2645/#1936.
- GUI, both engines, at most 2 workers: plugin-signin-opened,
  plugin-signin, plugin-signin-no-url, plugin-moved-signin,
  signin-paste-plugin, signin-browser-down, signin-link,
  plugin-password-prompt and plugin-replaced. The run went 126 pass,
  10 fail, all launch or 5s timeouts at load ~380. Alone,
  plugin-signin-opened passes in both engines and password-prompt
  passes. signin-browser-down was red in one case per run, a different
  one each time. plugin-moved-signin (Chromium) is red alone at HEAD's
  app.js too. Both are filed as #2900.
- plugins: bun test packages/grok 49 pass; scripts/check.mjs ok. Its
  publish run is red only for middleware-think-tags's npm trust
  (plugins#180); grok 0.1.17 was published.
2026-10-19 12:42:48 +08:00
yetone cc8e8e3bda provider: moved Grok users get plugin 0.1.16, which keeps a sign-in with no email (llllleo9 on X)
llllleo9 couldn't add Grok: grok login --device-auth exited 0, and the
sign-in failed with "grok login finished without an account".

Grok Build 1.0.62 was run in a sandbox against a stand-in auth.x.ai. When
the id_token has no email claim (an account signed in through X), the CLI
writes "email": null, and plugin 0.1.15 refused a sign-in made beside an
already signed-in Grok Build. With GROK_AUTH_PATH set, the CLI kept the
sign-in elsewhere.

Plugin 0.1.16 (magpie-community/plugins 8cdf2d2) fixes both:
- the account is told by its email, else its xAI user id, else the
  token's sub;
- GROK_AUTH_PATH is left out of the login;
- a login that leaves nothing says which file it read and what was there.

npm view @magpie-community/opencode-grok-auth@0.1.16 --prefer-online
shows 0.1.16, which is latest, and its integrity matches the publish
run's. This commit raises the mover's min to 0.1.16, so keepMovedCurrent
updates moved users. The built-in's own Grok sign-in (runCLISignIn) has
no caller left, so the built-in is unchanged.

Run at this change, on origin/main ccb2eea15 plus this diff, macOS:
- gofmt -l: clean. go vet ./..., GOOS=linux go vet -tags nogui ./...,
  GOOS=windows go vet ./... and go build: clean.
- go test ./... -timeout 45m: internal/provider ok (1205s),
  internal/plugin ok (1244s), and 60 packages ok.
- Four packages were red with the machine at load average 195-235, while
  six other sessions ran benchmarks:
  - internal/agent timed out at 45m in TestCodexAgentsV1WarnsWhenCodexOwnV2IsOn;
  - internal/gateway timed out at 45m in TestPluginStreamLargeReplies
    (#2551);
  - internal/library timed out at 45m in TestSkillHow;
  - internal/gui failed TestSetAnswersWhileDevinAndProvidersHang
    (15.7s, #1375).
  None of the four reads the mover's min.
- A rerun of those four, at load average 420, had not finished a
  package after 30 minutes. It isn't a record of green.
- go test -count=1 -run 'Moved|Mover|Grok' ./internal/provider: ok.

Not tried with a real xAI account: whether xAI's token for llllleo9's
account lacks the email claim, and whether their Grok Build was already
signed in.
2026-10-19 02:43:48 +08:00
yetone c4aeaec740 provider: moved Cursor users get opencode-cursor-auth 0.2.19 (plugins #207)
The cursor mover's min goes from 0.2.18 to 0.2.19 (plugins 0a2496b,
nicegui's #207): when one step sends two different native tool counts
before any output and before a result was submitted, the plugin
rebuilds once from the history instead of failing the turn as
"inconsistent native tool count". keepMovedCurrent updates every moved
Cursor user to it.

npm view @magpie-community/opencode-cursor-auth version --prefer-online
shows 0.2.19.

Run at 72ed518bc plus this change, with a sandbox HOME and TMPDIR:
gofmt -l internal/provider (empty); go vet ./internal/provider on
darwin, GOOS=linux and GOOS=windows ok; go test ./internal/provider
-count=1 -timeout 45m ok (400s), with the mover tests
(-run 'Mov|Plugin|Migrat|Adopt|HandOver|Retir') ok first in 64s.
The full ./... suite was not run; the change is one string in the
movers map, and only internal/provider reads it.
2026-10-17 22:00:59 +08:00
yetone f9ceac1628 provider: a move onto the plugin takes every account, and no model holds it back
The built-ins are retired (the owner, 10-16: 一定要下线完毕), so a move
can't be held back by something only the built-in could fix. Before, a
move failed when every account was lapsed, when one account's check
failed (the vendor unreachable through the plugin), when the vendor
refused every account, or when a model in use wasn't in the plugin's
list. Each of those left the user on a built-in that is going away.

Now Move installs the plugin and imports every account:
- one the vendor refuses goes along marked lapsed, as before;
- one already lapsed, or whose check fails otherwise, goes along untried
  and unmarked, for the plugin's own reads to judge, and is logged;
- no model is checked against the plugin's list.

Only an install failure, the plugin not serving the id, or a sign-in the
plugin won't import fails the move, which puts everything back and is
tried again after moveRetry. The movers' served (Devin, Cursor) and
builtin (ZCode) hooks, modelsInUse, modelNames, lapsedAll and devinBase
had no other use and are gone, with the tests of the hooks. The page still
translates an older magpie's lapsed, unserved and account whys, which
migrations.json can hold.

Tests:
- TestMoveEveryAccountLapsed and TestMoveTriesEachAccount are new, and
  TestMoveToPlugin's first case is now a refused account that moves.
  importAuth is a seam: the fake mover's "r-noimport" sign-in fails part
  way, so TestMoveToPlugin, TestMoveTidiesItsPlugin and TestMoveCutShort
  still test putting back.
- TestMoveCutShort's cut-short record now carries the sent sign-in's
  hash, as a real move writes it. Without it putBack took the built-in's
  sign-in as renewed. The old test passed only because the check renewed
  the token a second time.
- Broken by hand: with a failed check or a refusal returning an error
  again, TestMoveToPlugin and TestMoveTriesEachAccount go red.

What was run:
- go test -tags nogui ./internal/provider -run
  'Move|HandOver|Lapse|PutBack|Retir|Adopt|KeepMoved|ReleasePlugin|
  ZCodeStartPlan|Devin|Cursor' passes.
- go vet passes and gofmt -l is clean.
- At ab7b28510 on ba132d68b: go test -tags nogui ./... -count=1
  -timeout 90m, 66 packages ok, no FAIL; GOOS=linux and windows go vet
  of provider, gui and cli pass.
- Rebased onto origin/main with the next commit; the suite at that head
  is in its body.
2026-10-16 22:58:41 +08:00
yetone 53009f81a4 provider: every mover's min is the plugin that closes its gap with the built-in
Moved users are kept on these versions by keepMovedCurrent, each on npm
(npm view --prefer-online):
- devin 0.1.20: JSON output when asked; tool result images on the tool message
- commandcode 0.1.13: Credits reset at the subscription's end (#2454)
- cursor 0.2.18: a failed tool result read as isError; keychain backoff
- zed 0.1.8: "No plan" for a free account
- zcode 0.1.19: personal and team resets; Start Plan hint
- kiro 0.1.12: JSON output (output_config.format)

Run at 63be47717 with this batch: go test -tags nogui ./... -count=1 -timeout 90m, 66 packages ok, no FAIL (load ~250). gofmt -l clean; GOOS=linux and GOOS=windows go vet of provider, gateway and plugin pass. (devin's min rose after the run: go test ./internal/provider -run 'Mover|Moved' ok.)
2026-10-16 19:38:06 +08:00
yetone 19e9fc47f0 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.
2026-10-16 18:38:32 +08:00
yetone d867712eab cursor: calls answered here count toward Cursor's tool count, built-in and plugin 0.2.15 for moved users (plugins #142, Evopower)
Cursor sends a step's tool count (field 27) before or after its execs.
Execs magpie answers itself (get_mcp_tools, a tool of Cursor's own that
is refused) were not counted, so a step holding one never reached its
count and the next step's count ended it early: "inconsistent native
tool count" 502. The built-in now counts them; request_context_args is
not a call. Moved Cursor users get @magpie-community/opencode-cursor-auth
0.2.15 (on npm), the same fix in the plugin plus KV replies that wait for
a slow link.

Run: gofmt; go vet -tags nogui for darwin, linux, windows on
internal/gateway and internal/provider; go test -run 'Cursor|Moved'
./internal/gateway ./internal/provider ok. TestCursorCountTakesAnsweredExecs
fails with the old cursor.go restored by hand, passes with the fix.
Not tried against a real Cursor account.

Full suite: SUITE_LINE
2026-10-15 23:08:04 +08:00
yetone 4c07442d29 provider: a model no catalog prices is at the price its plugin lists, or $0 when the plugin says it is free; devin's mover needs 0.1.18 (太陽と向日葵 on Discord)
太陽と向日葵 on Discord: Usage no longer showed what calls through Devin
cost. Devin's own models (SWE-2, SWE-1.7 Lightning) are in no catalog,
and ListPrice read only catalogs. In the owner's ledger on origin/main,
devin claude-opus-5-5 and deepseek-v4-1-flash rows are priced and the
swe-1.7-lightning row is blank. Devin lists its own price for each paid
model in GetCliModelConfigs, and devin 0.1.18 (plugins 43d93b0) now gives
it as the model's cost. 0.1.18 also makes swe-2 free again: Devin's new
-lightning variants under SWE-2 had taken that away on 0.1.17.

After every catalog, ListPrice now takes the plugin's price
(pluginListPrice, an input or output above 0, read with plugin.Cost,
which now carries cache read and write). If there is none, a model the
plugin marks free (plugin.Model.Free) costs $0 (pluginFree). A catalog's
price is still kept over the plugin's, and a plugin model with neither
stays unpriced. The devin mover's min is raised to 0.1.18 (npm view
--prefer-online on registry.npmjs.org: 0.1.18). A row is added to
providers-accounts.md.

Run: TestPluginFreeModelCostsNothing (new) and
TestPluginCatalogPriceAndImages, -p 1: ok. Broke it by hand:
pluginListPrice off turns swe-1.7-lightning red; pluginFree off turns
swe-2 red. gofmt -l clean. go vet -tags nogui ./... for darwin, linux and
windows: ok.
Real use: a sandbox HOME with only the owner's Devin key, plugin 0.1.18
and this build.
- `magpie plugin list --json` on Devin's live answer: swe-2 free;
  swe-1.7-lightning 2.5/12.5 (cache 1); swe-2-high-lightning 1/5;
  claude-opus-5-5 4/20.
- `magpie usage --csv`: the 10-03 swe-1.7-lightning row is $0.000819,
  where origin/main gave none.
Not done: Cursor auto, Qoder's and WorkBuddy's own models have no USD
price from their plugins (they list credit multipliers), so they stay
unpriced unless marked free.

Full suite: SUITE_LINE
2026-10-15 23:08:04 +08:00
yetone f85213b555 provider: moved Cursor users get plugin 0.2.14, so a Run tool call stays on one Cursor session and a long tool resumes stateless, not as a failed turn (plugins #135, nicegui)
Raises the cursor mover's min from 0.2.13 to 0.2.14, which npm has
(npm view --registry https://registry.npmjs.org: 0.2.14). keepMovedCurrent
updates every moved user's plugin. Version bump only on magpie's side.

Run: gofmt -l internal/provider (clean); go vet -tags nogui ./internal/provider
for GOOS=darwin, linux, windows (ok); go test -p 1 -count=1 ./internal/provider (ok, 123.6s).
Full suite: SUITE_LINE
2026-10-15 23:08:01 +08:00
yetone 93707326eb provider: a user moved onto the Devin plugin gets 0.1.17, whose Gemini models take a tool schema with a list type or an array with no items (7eleven on Discord)
The Devin mover's min goes from 0.1.16 to 0.1.17. With that, keepMovedCurrent
updates every moved user's plugin to the version that rewrites such tool
schemas for Gemini uids. Moved users' requests go through the plugin, so
the gateway fix in the commit before this one doesn't reach them.

Checked: npm view --prefer-online @magpie-community/opencode-devin-auth
version shows 0.1.17. The publish run went red only on zed and
zen-free, which have no trusted publisher; devin was published.

What was run: go test -run 'Mover|Move|Migrat|Plugin' ./internal/provider
passed, and the full suite ran in the batch:
Full suite: SUITE_LINE
2026-10-15 23:08:00 +08:00
yetone aae49d0866 provider: moved Cursor users get plugin 0.2.13, where a Run cancelled while it opens is closed upstream and dashboard usage is collected per account (plugins #130, #131)
0.2.13 (magpie-community/plugins 3351e47) carries two community fixes by
nicegui. #130: a cancel landing between the HTTP/2 head and runOnce's abort
listener was never seen, so the Run kept streaming upstream with its
heartbeat for nobody; it is now closed at each hand-off. #131: the usage
ledger's claimed/owed/flights were keyed by conversation alone, so a
conversation moved to a second Cursor account had that account's own
dashboard event taken as the first account's debt; they are now keyed by
account and conversation. The built-in doesn't share this code, so
un-moved users are unchanged. The cursor mover's min goes to 0.2.13 so
keepMovedCurrent updates every moved user.

Run: npm view @magpie-community/opencode-cursor-auth@0.2.13 version
--prefer-online gives 0.2.13. Plugin: full bun test 1292 pass, 0 fail;
own repros fail on 0.2.12 and pass on 0.2.13. Here: gofmt -l; go vet
./internal/provider for darwin, GOOS=linux -tags nogui, GOOS=windows;
go test -timeout 40m ./... in a sandbox HOME: exit 0. Not run: a real
Cursor account, nor GUI tests (no GUI change).
2026-10-15 04:46:15 +08:00
yetone af27b70b42 provider: moved Grok users get plugin 0.1.15, whose sign-in without Grok Build names GROK_BIN_DIR, not only the curl installer (#2223, evier12345)
npm view @magpie-community/opencode-grok-auth@0.1.15 --prefer-online answers 0.1.15 (magpie-community/plugins 9cfc18a). Run: gofmt -l (nothing); go test ./internal/provider -run 'Mover|Moved|Migrat|Grok' in a sandbox HOME (ok).
2026-10-15 01:04:49 +08:00
yetone c524bc0186 provider: moved Cursor users get plugin 0.2.12, where Grok Bot is among the panel's three rings ahead of an On-demand with no limit (#2213, Morganwan90)
The plugin's windows went Cursor Models, Other Models, On-demand, Grok
Bot, Total, and the tray panel draws an account's first three. On an
account that may spend on-demand with no limit, On-demand (a ring that
never fills, only a dollar figure) pushed Grok Bot out. 0.2.12
(magpie-community/plugins f2f4ff4) puts such an On-demand after Bot;
one with a limit keeps its place, since it is what can stop the
account. The built-in has no Grok Bot window, so un-moved users are
unchanged. The cursor mover's min goes to 0.2.12 so keepMovedCurrent
updates every moved user.

Run: npm view @magpie-community/opencode-cursor-auth@0.2.12 version
--prefer-online gives 0.2.12. Plugin: bun test in packages/cursor (89
pass; the new test fails on 0.2.11). Here: gofmt -l; go vet darwin,
GOOS=linux -tags nogui, GOOS=windows; go test -tags nogui ./... in a
sandbox HOME: all green but internal/sessions (TestCursorEditorCopied-
OncePerChange, fixed in the commit before) and internal/provider, which
hit the 10-minute default timeout at load average ~200 and passed alone
with -timeout 40m (545s). Not run: a real Cursor account with Grok Bot
and on-demand, nor the panel itself.
2026-10-15 00:03:25 +08:00
yetone 50929661fe provider: a moved Devin gets plugin 0.1.16, where SWE-2 isn't held by a used-up quota
太陽と向日葵 on magpie's Discord: SWE-2 is free, but with the Devin
account's quota used up magpie said so and didn't route SWE-2 to it,
while a model test worked. The plugin's "1 day" and "7 days" windows
named no models, so a full window held the account for every model.
@magpie-community/opencode-devin-auth 0.1.16 (plugins cff78b3) reads
Devin's model_cost_tier from GetCliModelConfigs: SWE-2's variants are its
Free tier, the only ones of 262. It gives the day and week windows
notModels with their ids (quotaOfPlugin's idSet then leaves them out) and
lists them free: true (catalog Free, so PaidBesideFree rests only a paid
model on a quota refusal). Raising the mover's min updates moved users.

Run: gofmt -l; go vet for darwin, GOOS=linux -tags nogui and
GOOS=windows on internal/provider; go test -timeout 30m ./internal/provider
in a sandbox HOME, ok in 691s (the default 10m timed out at load average
~300, other sessions' test binaries running). npm view
@magpie-community/opencode-devin-auth@0.1.16 --registry
https://registry.npmjs.org --prefer-online returns 0.1.16. Not tried: an
account with its quota really used up, nor the moved plugin end to end
through a gateway.
2026-10-14 17:40:07 +08:00
yetone 2810a7154d 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.
2026-10-13 15:01:32 +08:00
yetone a069f224c0 provider: moved Grok users get grok-auth 0.1.14, which asks for a window offered without a k as that window (#1679)
#1679's fix (df4ea0ff6) reaches only the built-in. A moved Grok user's
requests go through @magpie-community/opencode-grok-auth, whose modelOf
read only <id>@<N>k, so grok-4.7@131072 went to Grok as a model of that
name. plugins f980265 (grok 0.1.14) reads the bare-digit window as the
built-in now does; this raises the mover's min so keepMovedCurrent
updates every moved user to it.

Run: plugin bun test 41 pass, the new modelOf test FAILs with modelOf
put back; scripts/check.mjs grok ok; npm view
@magpie-community/opencode-grok-auth@0.1.14 version on
registry.npmjs.org gives 0.1.14. Here: gofmt -l clean; go test
-tags nogui -count=1 ./internal/provider -run
'Mover|Moved|Migrat|Grok|Adopt|HandOver|KeepMoved' ok.
2026-10-13 10:40:36 +08:00
yetone 751e05d824 provider: moved Cursor users get plugin 0.2.10, which counts a Team's org-wide on-demand pool as the limit (#1868)
@magpie-community/opencode-cursor-auth 0.2.10 (magpie-community/plugins
a885a16) gives a team member with no limit of their own a fixed
On-demand window on the team's pool (pooledUsed / pooledLimit, the
member's own spend beside it) instead of unlimited, the same change as
the built-in's in the previous commit. keepMovedCurrent updates every
moved user's plugin to it.

Run: 0.2.10 checked on registry.npmjs.org (latest, its tarball holds the
fix); go test -tags nogui ./internal/provider/ under a sandbox HOME (ok,
TestMovedBuiltinsSayTheirPlugin included); gofmt -l and go vet on darwin,
linux (nogui) and windows clean.
2026-10-13 06:07:06 +08:00
yetone aa1b04c324 provider: moved Cursor users get plugin 0.2.9 and WorkBuddy users 0.1.18 (magpie-community/plugins#55, #18)
Cursor 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.
WorkBuddy 0.1.18: WorkBuddy 5.6+ keeps its desktop sign-in encrypted; the
plugin now says so and points to the browser sign-in, instead of
"isn't signed in" and a 502.

Both versions checked on registry.npmjs.org (dist-tags latest).
Run: gofmt -l, go vet (darwin, linux -tags nogui, windows) and
go test ./internal/provider -run 'Mov|Plugin|Migrat|Hand'.
2026-10-13 04:54:51 +08:00
yetone d9bb0fbc84 provider: moved Command Code users get plugin 0.1.12, whose model list follows the account's plan (01huadalang on Discord)
Command Code 0.1.12 (magpie-community/plugins 49e9d89): Command Code's model
list is the same for every plan, and the plugin filtered only Go's, by the
CLI 1.73.0 table, which lacked Claude Haiku 5.5. So a Go account was shown a
model only GOAT and above may use, and GOAT, Pro and Provider accounts every
model, those their plan refuses included. Each plan's list now leaves out
what the CLI 1.79.2's table refuses it; a plan that can't be read, or an
account with bought or free credits, keeps the whole list, and a refused
model still reaches the agent as Command Code's MODEL_NOT_IN_PLAN.

Only the mover's min string and its note change. 0.1.12 was checked on npm
with npm view.

Ran: gofmt -l internal/provider, go vet ./internal/provider on darwin, linux
and windows, and go test ./internal/provider -run 'Mov|Migrat' (ok, 8.6s).
The full suite was not run, as this is a one-string change.
2026-10-13 00:50:17 +08:00
yetone d56da7e896 provider: moved WorkBuddy users get plugin 0.1.15 and Command Code users 0.1.11 (magpie-community/plugins#96, #91)
WorkBuddy 0.1.15 (wowyuarm's plugins#96): a system prompt sent as a developer message no longer fails the channel check with 400, an object tool_choice is sent the way WorkBuddy takes it, and max_completion_tokens goes as max_tokens so the output cap holds. Command Code 0.1.11 (plugins#91): a streamed Go reply the upstream cuts off after it has said something ends cut short with a note instead of losing the turn.

Only the movers' min strings and their notes change. Both versions were checked on npm with npm view. The plugins session ran #96 against the real WorkBuddy AI endpoint before and after the change.

Ran: gofmt -l, and go vet ./internal/provider on darwin and windows. go test ./internal/provider -run 'Mov|Migrat|Plugin|HandOver|Adopt' passed in 129s. The full suite was not run, because this is a two-string change.
2026-10-12 20:39:45 +08:00
yetone 17c12621bb provider: moved Cursor users get plugin 0.2.8, whose empty-reply error says what Cursor's Run sent before it (magpie-community/plugins#60, congee949)
Raises the cursor mover's min from 0.2.7 to 0.2.8 (published, npm view shows 0.2.8), so keepMovedCurrent updates moved users. 0.2.8 adds the thinking length, tokens, refused built-in tools, unknown messages and last frame to the empty-reply 502, for the next report on plugins #60. Ran gofmt -l, go vet (darwin, windows) and go test ./internal/provider (ok, 525s).
2026-10-12 18:43:22 +08:00
yetone 3f6db48f50 provider: moving Cursor onto its plugin no longer fails "unserved" on the built-in's model ids the plugin still runs (#1656, delete-cloud)
The Cursor plugin lists Cursor's picker since 0.2.0 (plugins #51): a model
once per context size (grok-4.7@256k), effort and fast as the request's
parameters. The built-in ticks 0.1.x-style ids (grok-4.7-fast,
claude-opus-5-thinking, cursor-grok-4.5, a stale grok-4.7-low), which the
plugin's named() runs as the variants they stood for, but move() only
counted an id served when the plugin's list had it literally, and the
cursor mover had no served hook. A move failed for most ticked models.

The cursor mover now has served (cursorServed): an id is served when its
family, taken apart by splitCursorID and without -thinking/-fast, is a
model the plugin lists (its id before "@"), with or without Cursor's
"cursor-" prefix; default/auto when the plugin lists Auto. A family the
picker hasn't got (claude-fable-5-thinking-no-zdr, codex-5.3-fast) is
still refused. Known limit, as the report says: the list is flat, so a
-fast id of a listed family counts as served though the account may lack
fast; the plugin runs it as the nearest variant.

Siblings checked: Devin already has served, ZCode builtin; Grok's plugin
keeps the plain id for the default window (grok-4.7, grok-4.7@500k
beside it); the other plugins list the vendor's ids as the built-in did.

Run:
- TestCursorMoverServesBuiltinIDs, with the ids plugin 0.2.7 lists for
  its own context.test.mjs PICKER (got by running the plugin under bun;
  request() resolves each id the test calls served to a Cursor variant).
  Failed with the hook removed ("the Cursor mover has no served hook")
  and with the "@" cut removed (claude-opus-5-5 ... not served).
- go test -tags nogui ./internal/provider/ in a sandbox HOME: ok.
- gofmt -l; GOOS=linux and GOOS=windows go vet -tags nogui
  ./internal/provider/: clean.
Not run: a real move with a real Cursor account (the reporter ran the same
approach end to end on their account: 17 unserved down to the 2 above).
2026-10-12 01:15:46 +08:00
yetone c763d4fe1d provider: a moved ZCode or Command Code account is brought to plugin 0.1.15 / 0.1.10, which say the agent's folder (plugins #86, Hipple)
Raises the movers' min so keepMovedCurrent updates every moved user:
- @magpie-community/opencode-zcode-auth 0.1.15 (plugins baa788b): the
  Start Plan's environment section says the folder and git repository
  magpie tells it, never magpie's own folder, and leaves out what it
  isn't told and the shell.
- @magpie-community/opencode-commandcode-auth 0.1.10 (plugins 7e67b98): a
  Go request's workingDir and isGitRepo are the agent's.
Both were published by the plugins repo's publish workflow and are the
registry's latest. Run: go test internal/provider.
2026-10-11 21:51:34 +08:00
yetone 3bc9ab152d provider: moved Cursor users get cursor plugin 0.2.7, which keeps an assistant turn's reasoning across a tool continuation (plugins #82, nicegui)
The cursor mover's min goes from 0.2.6 to 0.2.7 so keepMovedCurrent
updates every moved user's plugin. 0.2.7 (magpie-community/plugins
126b105, bump 379ec96) sends an assistant turn's reasoning_content back
to Cursor as a reasoning part, the shape cursor-agent 2026.10.01 sends,
when a tool result continues the turn. npm view shows 0.2.7.

Run: go test ./internal/provider -run 'Moved|Mover|Migrat|KeepMoved|HandOver'
(TestMovedBuiltinsSayTheirPlugin included), then the whole package and
the full suite.
2026-10-11 20:56:21 +08:00