qoder 0.2.64 answers a model the account's listing has off, while its
usage says no credits are left, with 429 "usage limit reached: the
account's credits are used up (800 / 800 credits), …" instead of the
400 "unknown or disabled model" that a routing group on
/v1/chat/completions neither failed over on nor rested the account for
(yetone/magpie#5726). An id Qoder never served keeps the 400. Its
Windows check-in also finds the runtime qodercli 1.21.2 caches as one
file, runtime-info-win32-<arch>-<hash>.exe. Raising the min lets
keepMovedCurrent update every moved Qoder and Qoder CN user.
npm checked first: `npm view --prefer-online --registry
https://registry.npmjs.org @magpie-community/opencode-qoder-auth version`
gives 0.2.64. Plugins commit e2d15ba6.
Run on mote: `go test -count=1 -timeout 45m ./internal/provider` ok
(262s). `gofmt -l internal/provider` is clean.
Not tried: a real out-of-credit Qoder account; Windows itself.
Reported-by: zane668 (#880)
Reported-by: ArmedHelicopter (#879)
qoder 0.2.63 never sends a request's max_tokens above the model's
ceiling: Qoder CN's QoDuck (lmodel) refused anything above 131072 with
"Error in upstream response: Range of max_tokens should be [1, 131072]",
which the plugin read as the vendor's 502, so every lmodel request failed
and each qoder-cn account was rested in turn. A smaller max_tokens goes as
asked; a model with no known ceiling is asked again once at the one Qoder
names, and a refusal that holds is the request's 400 with Qoder's words.
Raising the min lets keepMovedCurrent update every moved Qoder and Qoder
CN user.
npm checked first: `npm view --prefer-online --registry
https://registry.npmjs.org @magpie-community/opencode-qoder-auth version`
gives 0.2.63 (latest). Plugins commit 978bb42b.
Run on mote: `go test -count=1 -run 'Moved|Mover|Qoder|Min|Retir|Plugin'
./internal/provider` ok. `gofmt -l internal/provider` is clean.
Not tried: a real qoder-cn account on lmodel.
Reported-by: Gruu6y
qoder 0.2.62 makes a streamed request that Qoder queues (10605) wait up
to Qoder's hour. The request is answered 200 at once and kept alive with
comments every 10s, where before it gave up at 4 minutes with a 503 and
Codex restarted the turn. Raising the min lets keepMovedCurrent update
every moved Qoder and Qoder CN user.
npm checked first: `npm view @magpie-community/opencode-qoder-auth version
--prefer-online --registry https://registry.npmjs.org` gives 0.2.62.
Run on mote: `go test -count=1 -run
'Moved|Mover|Qoder|Min|Retir|Plugin' ./internal/provider` ok. `gofmt -l`
is clean.
Not tried: a real queued Qoder account.
Reported-by: real-jacket
0.2.61 puts business.model_key in the request, as qodercli 1.1.82 does, so
Qoder and Qoder CN bill the model chosen, not Auto. 0.2.61 also holds 0.2.60's
429-message change (c1a625d is an ancestor of the 0.2.61 tree).
Run (mote): go test ./internal/provider -run 'TestQoderMovers|TestMovedBuiltinsSayTheirPlugin|Mover'
ok. With min put back to 0.2.60 the new TestQoderMoversNameTheModelInTheBusinessRecord
fails. npm view @magpie-community/opencode-qoder-auth@0.2.61 --prefer-online
--registry https://registry.npmjs.org prints 0.2.61. gofmt -l clean.
Not run before this push: the full suite (run after the tag). Not tried on a real
Qoder or Qoder CN account.
jzing.draw on Discord (#feedback, 2026-11-03): Qoder's own panel said
套餐内 Credits 1,817 / 2,000 (refreshing 2026-11-22) and 资源包
2,400 / 3,400, while magpie's Routing row said a bare "剩余 15%".
Plugin 0.2.59 (magpie-community/plugins 1984cf6) sends amount, limit
and unit on Total credits and on each pool, and the plan's Credits window
resets at expiresAt. The Routing row and the Usage card now say
"1,183 / 5,400 credits · 22% left", Qoder's 183 + 1,000. Raising the min
lets keepMovedCurrent bring every moved Qoder and Qoder CN user up to it.
0.2.58 (OpenCode 2.x loading, plugins #657) is named too.
npm has 0.2.59: npm view --prefer-online --registry
https://registry.npmjs.org @magpie-community/opencode-qoder-auth version
-> 0.2.59.
Run at the pushed head (mote): go test -run 'Mov|Migrat|Qoder|Plugin'
./internal/provider ok; GOOS=linux and GOOS=windows go vet
./internal/provider clean; gofmt -l clean. The plugin's own bun test
packages/qoder: 382 pass, 0 fail.
Not tried: no real Qoder account. The reporter's 15% (85% used) isn't
reproduced from their screenshot's numbers, which leave 22% together.
tnt1223 (Discord) signed in to QwenWork and got "QwenWork models: HTTP
403: {"code":"403","message":"User identity could not be verified"}" from
both the model list and Test models. Compared with QwenWorkCN.app 1.2.1,
@magpie-community/opencode-qoder-auth 0.2.57 (plugins d40a074) changes
three things:
- Its gateway calls carry User-Agent qoderwork/1.2.1, an X-Request-Id
and the X-QwenWork-* headers, as the client's openApiJsonRequest does.
These are the device poll, the account-context, wallets and the
refresh.
- A biz account's device token is refreshed for its team ({target:
"biz", team_id}), with client_id and redirect_uri. Before, it was
always refreshed as "c".
- That 403 now tells the user to sign in again.
Raising min makes keepMovedCurrent update every moved Qoder user.
npm view --prefer-online @magpie-community/opencode-qoder-auth version
returned 0.2.57 before this commit.
Run at this head (mote):
- gofmt -l internal/provider: clean.
- GOOS=linux and GOOS=windows go vet ./internal/provider: pass.
- go test -tags nogui ./internal/provider: ok (143.4s).
- In the plugin: packages/qoder bun test 381 pass, and scripts/check.mjs
ok.
Broken by hand (in the plugin): with the client headers dropped, the
refresh always "c", the identity not recorded, the enterprise
redirect_uri kept and the hint removed, 4 of the new tests failed.
Not tried:
- A real QwenWork account. None is at hand, so it isn't known whether
these differences caused the 403.
- The chat's Cosy-Organization-Id, -Organization-Tags and -Data-Policy
headers. The official wasm signer has them and the plugin doesn't send
them.
- A move with this min in a sandbox. Only the min changed.
Milktea (Discord) couldn't sign in to their Qoder CN IDE enterprise
dedicated domain (企业专属域). Their domain answers 404 at
/algo/api/v1/version, which makes it a Lingma 1.0 one, and 0.2.53 refused
those. In plugins a16adb3, @magpie-community/opencode-qoder-auth 0.2.56:
- signs in with the account Qoder CN IDE already holds on this computer
(SharedClientCache's cache/id and cache/user, the shapes from Milktea's
gist);
- chats on the domain itself, as the IDE's worker signs it;
- uses the IDE's three models, falling through when one gets "Model not
exist";
- reads the IDE's renewed token again when it is near its end or gets a 105.
Raising min makes keepMovedCurrent update every moved Qoder user.
npm view --prefer-online @magpie-community/opencode-qoder-auth version
returned 0.2.56 before this commit.
Run at this head (mote): gofmt -l internal/provider is clean. GOOS=linux
and GOOS=windows go vet ./internal/provider pass. go test -tags nogui
./internal/provider: ok (104.6s). In the plugin, packages/qoder bun test:
375 pass, and the 11 new Lingma tests are red on 0.2.55.
Broken by hand (in the plugin): keeping Cosy-Scene and Cosy-Business-*,
or reading past an error said in an OK frame, turns 2 of the 11 red.
Not tried:
- A real Lingma dedicated domain or a real Qoder CN IDE cache. No such
account is at hand, so Milktea is asked to try it.
- A move with this min in a sandbox (only the min changed).
0.2.55 has a request that names no effort and a max_tokens of 1024 or less
think at none (the lowest level for a model that always thinks) rather
than at the model's default. This is WorkBuddy's #643 rule applied to the
same default in qoderBody. npm --prefer-online had 0.2.55 when this
landed.
Run on mote at this head plus the next commits' one-line Qoder/ZCode mover mins: go test ./internal/provider ok, gofmt -l
clean, GOOS=linux and GOOS=windows go vet ./internal/provider clean
(TestQoderMoversSendTheClientsModelConfig still holds). The plugin's own
run record is in plugins 58adead.
square-235 (plugins#638): Qoder CN billed magpie's DeepSeek-Flash (dfmodel)
calls as Auto, at Auto's rate; Kimi-K3.1-Pro was billed as itself.
opencode-qoder-auth 0.2.54 (plugins fa144e4) stops sending the model's
whole model-list entry (minimal_version, strategies, prices,
thinking_config) as model_config and sends the trimmed object Qoder's own
client builds (CN CLI 1.1.81, desktop 0.4.3). A model with no key of its
own, or key auto, is refused with a 400, never sent. npm has 0.2.54
(npm view --prefer-online). This raises both Qoder movers' min, so moved
users get it.
Run (mote), at this tree on origin/main 95d0c97bf (rebased; run again at this head):
- go vet ./internal/provider, and with GOOS=linux and GOOS=windows: ok.
- go test -count=1 -timeout 45m ./internal/provider: ok (132.8s).
- gofmt -l internal/provider: clean.
- plugins: packages/qoder bun test 363 pass, 0 fail; bun scripts/check.mjs ok.
Broken by hand: with min back at 0.2.53, TestQoderMoversSendTheClientsModelConfig
went red ("the qoder mover installs opencode-qoder-auth 0.2.53").
Not tried: a real Qoder CN chat with dfmodel and its billing row; that the
listing entry caused the Auto billing is likely, not confirmed. QwenWork
was not tried.
Thanks to square-235 for the report and the billing screenshots.
Milktea (Discord) signs in to Qoder CN on a dedicated domain
(https://<corp>.rdc.aliyuncs.com) through the IDE's 「企业版专属域登录」;
the plugin's VPC sign-in failed for it. opencode-qoder-auth 0.2.53
(plugins 7312770) adds "Sign in with Qoder CN Enterprise dedicated
domain", read from Qoder IDE 1.38.0's bundle: it probes
<domain>/algo/api/v1/version (404 = Lingma 1.0, refused with what it
is; anything else = Qoder CN 2.0), then runs the VPC device flow
against the -openapi host with the dedicated client id, and chats on
the -gateway host (the origin when that host doesn't answer). npm
has 0.2.53. This raises the mover's min so moved users get it.
Run:
- plugins: bun test packages/qoder (355 pass, 0 fail, 10 new
dedicated tests on a fake server), bun scripts/check.mjs ok.
- magpie: go vet + go test -count=1 ./internal/provider on mote: ok
(125s). gofmt -l clean.
Broken by hand:
- TestQoderCNMoverHasTheDedicatedDomainSignIn red with min 0.2.52.
- plugin: disabling the dedicated branch, the 404 check and the origin
fallback turned 4 of the 10 dedicated tests red.
Not tried: any real dedicated-domain account; the chat host
(-gateway) is inferred from the IDE's experts-center rule, not seen
in a capture. The Lingma 1.0 dedicated path (cosy's login flow) is
not implemented.
Thanks to Milktea on Discord for the report.
star21321321124_93024 (Discord #general, 2026-11-01): a Qoder CN account
with all its credits left listed one model, the free Flash ("Qoder CN: 1
model"), and its agents saw only that one. Qoder CN's model list answers
a caller it doesn't take for the account with every paid model
enable:false and the free one on (captured from gateway.qoder.com.cn,
kept in the plugin's testdata). Up to 0.2.51 the plugin renewed the job
token for such a miss on a chat (plugins#484) but read the list magpie
shows as it came. 0.2.52 renews once from the list too, and doesn't
renew again for a renewed token that still lists only the free models.
keepMovedCurrent brings every moved user up to it.
TestQoderMoverHasTheFreeViewRenewal checks both the qoder and qoder-cn
movers; it fails at 0.2.51 (run).
npm: `npm view @magpie-community/opencode-qoder-auth version
--prefer-online` = 0.2.52 at this commit (registry.npmjs.org, from mote;
this machine's npmmirror still said 0.2.51).
Run at this tree (origin/main b1fc43540 + this change), on mote:
`go test -count=1 -timeout 45m ./internal/provider`: ok (103s).
`gofmt -l internal/provider`: nothing.
Not tried: a real Qoder CN account (none here); whether a renewal gives
the reporter's account its full list back is not confirmed.
qoder-cn/qfmodel now and then begins a native tool call and never names
it. Up to 0.2.50 the plugin ended the stream with "the model's native
tool call has no name", an error frame ZCode doesn't retry, and the whole
turn died with what had already streamed. 0.2.51 asks once more when
nothing was said before it (then a 502 before any byte, which the gateway
retries or fails over), and otherwise drops the call and ends tool_calls
or stop. keepMovedCurrent brings every moved user up to it.
npm: `npm view @magpie-community/opencode-qoder-auth version
--prefer-online` = 0.2.51 at this commit.
Run at this tree (be689b883 + this change), on mote:
`go test -count=1 -timeout 45m ./internal/provider`: ok (117s).
`gofmt -l internal/provider`: nothing.
magpie's gateway is unchanged: chatTidy already drops a call whose first
fragment has no name and ends stop (#1475).
qoder 0.2.50 (plugins 421cad6) names an account signed in with a phone
number by that phone, not its uuid. npm view --prefer-online gives 0.2.50.
Run (mote-run): gofmt -l internal/provider (clean); go vet
./internal/provider for darwin, linux -tags nogui and windows; go test
-tags nogui -timeout 45m ./internal/provider: ok (86s).
Not tried: a real phone-signed Qoder account (none here).
On an enterprise qoder.com account, qoder 0.2.48 answered 12 of 14 app
models with its own 400 "unknown or disabled model" while the free dfmodel
and qfmodel worked. 0.2.49 renews the job token once and reads the list
again before that 400, as it does for a refused chat (plugins#474).
npm view --prefer-online gives 0.2.49 (12:17 UTC).
Run (mote-run): gofmt -l internal/provider (clean); go vet
./internal/provider for darwin, linux -tags nogui and windows; go test
-timeout 45m ./internal/provider: ok (111s).
Not tried: a real enterprise Qoder account (none here).
npm view --prefer-online @magpie-community/opencode-qoder-auth: 0.2.48.
Run: go test -count=1 -run 'Mover|Moved|Migrat|Qoder' ./internal/provider/
on Windows (win-run) and Linux (wsl-run): ok. mote's ssh timed out.
coeo91: Qoder (and WorkBuddy) still serve free models once the paid
credits run out, but magpie treated such an account as spent for every
model. Qoder's docs say it: "When Credits run out, you can continue using
free basic models, subject to daily and monthly limits"
(docs.qoder.com/Credits; zh: "Credits 用尽后,仍可使用免费基础模型").
The cause was the plugin's usage: every credit window ("Total credits",
"Credits", "Add-on credits", and since 0.2.45 a free account's "0 credits
left") counted every model, so a window at 100% put the account last or
out for qfmodel / dfmodel too. The refusal side was already per model
(PaidBesideFree, 974aaf7e2). Plugins b7bbc9d (record in 1f015f1; the code
went out under a stale subject) makes each credit window name the free
models it doesn't count (notModels: the account's own listing, price_factor
0 and not a promotion's), as WorkBuddy's has since 0.1.23. magpie's
quotaOfPlugin already scopes a window by notModels. npm view --prefer-online
shows @magpie-community/opencode-qoder-auth 0.2.46.
WorkBuddy needs nothing: its usage already leaves free models out
(0.1.23, plugins#138), and its free-only switch (#430) shipped in 0.1.38.
Run at this tree on mote: gofmt -l clean; go vet ./internal/provider/ for
darwin, GOOS=linux and GOOS=windows ok; go test -timeout 45m
./internal/provider/ ok (91s). Plugin: HOME=$(mktemp -d) bun test in
packages/qoder ok, with spare-free.test.mjs (free account, spent plan +
add-on, unreadable listing, no free model, listing not asked twice).
Not broken by hand: no test reads the min itself; keepMovedCurrent updates
moved users to it.
Not tried: a real Qoder account with its credits used up (the owner's has
add-on credits left). Not changed: a free model's own daily or monthly
limit refusal still rests the whole account, as before; nothing from Qoder
says which codes that limit answers with.
Qoder plugin 0.2.45 (magpie-community/plugins@c0a0fd1): an international
free Qoder account (personal_standard) with no credits in any pool showed
no credits at all (Ariel on Discord), since every 0-total pool was dropped.
It now shows one "Credits" window, "0 credits left", as Qoder's client shows
the account 0/0 and out of credits. Raising min updates every moved user's
plugin (keepMovedCurrent).
npm view --prefer-online --registry=https://registry.npmjs.org/
@magpie-community/opencode-qoder-auth version: 0.2.45 before this commit.
Run: gofmt -l internal/provider (clean); go test -tags nogui ./internal/provider/
on mote via mote-run at this tree (ok, 124s). The plugin's own suite (bun
test, 299 pass) ran on mote, with its new test red on the old index.mjs.
Not run before the push: the full Go suite, as another session's ./... run
held mote; it runs after, one suite at a time.
0.2.44 counts the plan, add-on and shared pools Qoder spends in turn as
one "Total credits" window, so an account whose plan is spent but has
add-on credits left no longer reads 0% left in Routing (chansee97).
npm view --prefer-online shows 0.2.44 before this change.
Run on mote: go build -tags nogui ./..., go vet ./internal/provider,
go test ./internal/provider ./internal/plugin (ok). The plugin's own run
is in plugins 202ec68. Not run: the full suite (a one-line min).
npm view --prefer-online --registry=https://registry.npmjs.org/ @magpie-community/opencode-qoder-auth version: 0.2.43 at 10:02 CST, before this change.
0.2.43 answers auth.checkin's until (plugins fd40b20), which a05b37353 holds to. A real qoder account at 10:02:53 CST: today's campaign opened at 10:00:00 and was still CLAIMABLE (the 30-minute look hadn't reached it); 0.2.43 claimed 100 with until 2026-10-29T02:01Z.
Run (mote): go test -tags nogui -run 'Mover|Moved|Migrat|Qoder|Plugin.*Min|KeepMovedCurrent' ./internal/provider ./internal/plugin, ok; gofmt -l clean. The full suite ran on a05b37353, the parent's change; this one changes a string only.
Not tried: a moved user's keepMovedCurrent update to 0.2.43 end to end.
uk.jent on Discord: Qoder dropped the model's earlier thinking. Qoder.app's
own client sends reasoning_content on every earlier assistant turn, and the
Qoder plugin left it out from its first version on; 0.2.42 sends it.
An Anthropic- or Responses-speaking agent's thinking reached the plugin
only when chatReplaysReasoning held, so qoder and qoder-cn are added
beside Command Code's plugin; a tool turn with no thinking gets the same
" " DeepSeek gets, which 0.2.42 reads as none. The qoder mover min is
0.2.42 (npm view --prefer-online: 0.2.42).
Run (mote): go build ./..., go vet -tags nogui on gateway and provider,
go test -tags nogui -timeout 45m ./internal/gateway/ (ok, 535s) and
./internal/provider/, which crashes in TestUnreadLoginsWriteErrorsKeepCredentials
on "close of synctest channel from outside bubble", #3632, open and not
this change. TestPluginStreamsPastTheBudgetWait, run alone, was red 2 of
3 with this change and 3 of 4 on clean dc1af8231 (connection reset by
peer, #3946). Real account, plugin side: DeepSeek-V4-Pro on Qoder recalls
a codeword its thinking before a tool call named with 0.2.42, not 0.2.41.
Broken by hand: TestCommandCodePluginReasoning with qoder and qoder-cn
added is red on the old chatReplaysReasoning (no reasoning_content).
Not tried: a Claude Code session through magpie onto Qoder end to end;
Qoder CN.
unifilitence (plugins#443) saw a chat carry the machine UUID as
Cosy-ClientIp, -MachineId and -MachineToken. Checked against Qoder.app
0.4.3's worker and signer: its non-chat calls do send all three as the
machine id, and x86_64_win32 is its own Cosy-MachineOS, but its chat
sends no ClientIp, the native device identity's MachineToken and
MachineType or none, and a Cosy-MachineHostname. 0.2.41 (plugins
1a560ba) sends a chat so; npm shows 0.2.41 (npm view --prefer-online).
The min was 0.2.39, so this brings 0.2.40's queue change too.
Run: `go test -count=1 -timeout 45m ./internal/provider/` at this tree with
both min raises applied, skipping four reds that are red on origin/main
e54a7d50b without them (run there by name): TestUnreadLoginsWriteErrors
KeepCredentials crashes the package (#3632), and TestFetchAsksOneList
OnceForTwoBasesOfIt, TestFetchUnionsProtocolListsWithoutChat and
TestFetchAsksASharedBaseOnce (#3854); the rest ok (157s). gofmt -l
clean; go vet, GOOS=windows and GOOS=linux go vet of internal/provider
clean.
Broken by hand: nothing; a min is a version string no test pins.
Not tried in magpie itself: the plugin was driven from bun with a real
qoder.com account (qfmodel answered with the new headers).
qoder 0.2.39 (plugins a379c54) closes the stream Qoder holds open on a
queued call (10605 RESOURCE_LIMIT) before it waits, where 0.2.38 held it
until the request ended, and resends each try as a new request_id and
chat_record_id in the same request_set_id, as Qoder.app 0.4.3's worker
resends a queued ask.
npm view @magpie-community/opencode-qoder-auth version --prefer-online:
0.2.39 at landing.
Run: go test -count=1 -run 'Mover|Moved|Migrat|Qoder|Min'
./internal/provider ok; gofmt clean. The plugin change itself was run
against the owner's real qoder.com account (queued twice, answered at
71s, both refused streams closed at once) and its queue tests fail on
0.2.38's index.mjs.
Not tried: a moved user's update to 0.2.39 through keepMovedCurrent.
opencode-qoder-auth 0.2.38 (plugins c25201d, #413) reports the model-list
entry's display name in a reply's model, streaming and not, instead of
the slot id (kmodel_latest), so a request keeps the name it was sent
under when Qoder renames the slot. npm view --prefer-online: 0.2.38.
Raising the mover's min makes keepMovedCurrent update every moved user.
Run at this head: go test ./internal/provider/ crashes in
TestUnreadLoginsWriteErrorsKeepCredentials (close of synctest channel
from outside bubble), as it does on main (#3632, open); with -skip
TestUnreadLoginsWriteErrorsKeepCredentials the package is ok. gofmt clean.
Not tried: a real Qoder account through magpie.
opencode-qoder-auth 0.2.37 (npm view --prefer-online: 0.2.37) reads a
QwenWork personal account's account-context quota, whose total and used
are null, as a balance of the credits left, with the daily, monthly and
long-term pools from /api/v1/adapter/user/wallets, as QwenWorkCN.app
1.2.1's own client reads them. 0.2.36 called every such account "the
account reports no credits".
Run: go test ./internal/provider -count=1 ok (141.6s); go vet
./internal/provider for darwin, linux and windows; gofmt -l clean.
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.
Qoder's plugin 0.2.32 (magpie-community/plugins 74be632) says why no
check-in was offered: it asked with this machine's own device identity
and Qoder offered no campaign, and Qoder desktop can claim one it shows.
magpie dropped a hook's message for inactive and ineligible and showed
only "No check-in event now". Now:
- GUI: the Usage card's row reads "<label> · <message>", wrapped under
the label rather than cut off with "…" (data-why, as a failed row's
reason wraps, #821); Settings' check-in line under the plugin's switch
carries it too. A result without a message reads as before. No new
i18n keys: the message is the plugin's own text, as for failed rows.
- TUI: the Usage cell is too narrow, so it adds "c says why"; c's flash
carries the message (checkinWhy).
- CLI: `magpie accounts checkin` prints it after the label.
- The Qoder mover's min is 0.2.32 (npm view --prefer-online: 0.2.32).
- docs/subsystems/provider-plugins.md says how the message is shown.
Run at this tree (based on origin/main dd1e8822d):
- go test -timeout 45m ./... (tee'd, grepped): every package ok
but internal/handoff, whose TestTakeOnlyAFreshOfferForThisProgram
could not bind a unix socket under my long scratch TMPDIR (path over
104 bytes); with the default TMPDIR internal/handoff is ok.
- gofmt -l: clean; go vet ./..., GOOS=linux go vet -tags nogui ./...,
GOOS=windows go vet ./...: clean.
- GUI, chromium and webkit: checkin-reason (new: en, zh, zh-TW, ja, de;
900 and 440px), plugin-checkin, qoder-checkin-recheck, usage-checkin,
checkin-account, checkin-early-done, usage-quota-head, i18n-keys:
155/157. The 2 reds are usage-checkin's "webkit en/zh: Settings has a
Qoder check-in tab", red the same on a fresh origin/main a9a001a7a
(#2549, #3091).
- TestCoreScriptBudget: app.js 1,343,313 of 1,343,324, no raise.
Rebased on origin/main 4683a0382 (a9a001a7a's app.js line, 4683a0382's
provider change) and run again at this head: internal/gui (budget:
1,343,323 of 1,343,324), internal/cli, internal/tui and the whole
internal/provider ok; the same 8 GUI files in both engines, 155/157,
the same two #2549/#3091 reds.
Broken by hand: app.js's change reverted, checkin-reason goes red on the
reason; app.css's reverted, red on the wrap; checkinWhy returning "" in
internal/cli and internal/tui, TestCheckinSaysWhyNoneWasOffered red in
each.
Not tried: a real Qoder account offered no campaign (the fixture is the
plugin's own text); the real Linux app (WebKitGTK).
0.2.31 sends every call of one prompt's tool loop as one Qoder task: one
request_set_id, business.id and begin_at, with stage start and then
processing, as Qoder.app's client does, instead of a new task per call.
A 265-call DSH task hit "Billing daily count exceeded" (plugins #330).
keepMovedCurrent brings every moved user's plugin up to it.
npm view --prefer-online: @magpie-community/opencode-qoder-auth 0.2.31.
Run at this commit (parent e00fbdbbc): gofmt -l, go vet -tags nogui and
go test -tags nogui ./internal/provider, ok. Full suite not run: one
constant changed.
Not tried: a real Qoder account; whether Qoder's daily count is per task
or per request is unknown.
@magpie-community/opencode-qoder-auth 0.2.30 (magpie-community/plugins
929a8b3) sends Qoder CN's campaign and check-in requests the device
identity from Qoder CN's own runtime-info (environment 0, as Qoder CN
desktop 0.4.9 and qoderclicn do) when Qoder CN desktop or CLI is
installed, and says to install it when nothing is offered without one.
npm view --prefer-online showed 0.2.30 before this change.
Run at 6e32942a2 plus this change: gofmt -l internal/ clean; go vet
./... for darwin, linux -tags nogui and windows ok; set -o pipefail;
go test -tags nogui -timeout 45m ./... (tee'd to a log, no other Go
suite running): 69 packages ok, no FAIL.
Not tried: the plugin with a real Qoder CN account (none available).
Qoder 0.2.28 (magpie-community/plugins 26ddabe) answers a queued
request (10605) as Qoder.app 0.4.3's client does: it asks
/api/v2/service/ask/queue/status at the retryAfterSeconds Qoder gives
(0.5s to 30s), and sends the same request again once it is no longer
queued, for up to 4 minutes before the old 503. Raising the min brings
every moved user's plugin up to it.
Run: npm view @magpie-community/opencode-qoder-auth version
--prefer-online shows 0.2.28. gofmt -l clean; go vet on darwin, linux
(-tags nogui) and windows ok; go test ./internal/provider ok at this
tree on origin/main 46176fc14.
Not run before push: the full go test ./... (queued behind another
session's suite; owner asked not to hold commits behind it). Not tried:
a real Qoder account in the queue, so the status reply's shape and the
/algo prefix are read from the client's code, not seen on the wire.
qoder 0.2.27 (plugins 6219a71) answers a check-in on a computer that
has no Qoder runtime-info helper (no Qoder desktop, no signed-in Qoder
CLI, no QODER_RUNTIME_INFO) as ineligible, with what to install once.
Before, it came back failed, and magpie said "签到失败,magpie稍后重试"
and asked again all day with no chance of success. A helper that is
there but fails stays failed and is retried. Raising the mover's min
updates every moved user's plugin.
npm view --prefer-online --registry https://registry.npmjs.org shows
0.2.27 for @magpie-community/opencode-qoder-auth.
Run at this commit's tree (on origin/main 333438638): gofmt -l clean,
go vet ./internal/provider, go test ./internal/provider ok (86.2s).
Not run: the full suite. The machine has 3.7Gi free, under the 8Gi a
full run needs; the change is one string in the movers map, which only
internal/provider reads.
Not tried: a real Qoder account on a computer without Qoder. The
plugin's tests hide every install path instead.
0.2.26 (plugins dc59000): a request from Codex marks its prompt for
Qoder's cache the way Qoder's own client does, so the Ultimate model's
cache hits are no longer 0% (plugins #290); the international check-in
finds the runtime info of a machine-wide Windows install under Program
Files. keepMovedCurrent now updates every moved qoder and qoder-cn user.
npm view @magpie-community/opencode-qoder-auth version --prefer-online
--registry https://registry.npmjs.org printed 0.2.26 when the min was
raised, and @0.2.26 resolves.
No new test: the change is the mover's version string.
Not tried: a real moved Qoder account updating to 0.2.26.
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.
qoder 0.2.25 (plugins f5548bd5) stops sending redirect_uri=qoder-app:// on
the international sign-in. Only Qoder's desktop app handles that link, so on
a Mac with Qoder.app installed the end of sign-in was handed to the app
instead of finishing in the browser tab. The plugin polls for the token and
needs no redirect, as Qoder's own CLI and the CN site already do. Raising
the min lets keepMovedCurrent bring every moved user onto it.
npm view --prefer-online --registry https://registry.npmjs.org
@magpie-community/opencode-qoder-auth@0.2.25 version -> 0.2.25.
Run at 0f044e944 + this change: gofmt -l clean; go vet for darwin, linux
(-tags nogui) and windows clean; set -o pipefail; go test -timeout 45m ./...
exit 0, every package ok. Not tried with a real Qoder account here; the
reporter signed in three accounts with the same one-line change on 0.2.21.
SlouchyQuill507 (Discord, qoder-cn) found Qoder's failures of the model's
own vendor, "Error in upstream response", reaching magpie as a 400: the
client's fault, never asked again or of another account. That runs in
the plugin for moved users, so the fix is
@magpie-community/opencode-qoder-auth 0.2.24 (plugins 4af310c,
"qoder 0.2.24"), which answers it as a 502 and keeps genuine 400s (Qoder's
request codes, other invalid requests) as 400. Raising the mover's min
makes keepMovedCurrent update every moved user to it. tooLongUnsaid still
tells an overflow that fails this way apart by its size, at 502 as at 400.
npm view @magpie-community/opencode-qoder-auth@0.2.24 version
--prefer-online: 0.2.24.
The same plugins push has cline 0.1.10 (the plugin's side of d2c434b5a:
glm-5.3-flash pinned by OpenRouter's provider.only ["z-ai"]); Cline has no
mover, so nothing here names its version.
Run at 0fe039f14 plus this change: gofmt -l (none); go vet ./... on darwin,
GOOS=linux -tags nogui and GOOS=windows: clean.
set -o pipefail; GOMODCACHE=/Users/yetone/go/pkg/mod go test -timeout 45m ./...:
62 packages ok; internal/agent, internal/gateway and internal/library hit
the 45m timeout with load average near 100 from other sessions' suites
(the tests running at the timeout had run 0-7s, no hang in the stacks).
Rerun of those three alone at load ~30: ok (agent 1345s, gateway 1130s,
library 914s), exit 0.
Rebased onto 4ae6c06dc (Codex compaction, routing, GUI tests; nothing in
internal/provider/migrate_qoder.go): gofmt -l (none), the three vets of
internal/provider and go test ./internal/provider/ ok (216s).
0.2.20 keeps unnamed tool-call fragments out of the chat history; 0.2.21
adds Qoder CN personal-access-token sign-in and the daily check-in for
PAT accounts; 0.2.22 pairs a tool result whose call lost its id with
that call, where Qoder refused the whole request as an orphan tool turn
on long Codex sessions (plugins #277, #278); 0.2.23 sends the desktop
app's Cosy-Version 1.1.69 instead of the CLI's 1.1.49 beside the desktop
client type and machine identity it already sends (plugins #281).
npm view @magpie-community/opencode-qoder-auth@0.2.23 version
--prefer-online printed 0.2.23 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.
qoder 0.2.19 answers a model list it can't read with a 502, which the
gateway's passing() treats as the member's failure, so a routing group
moves to its next member instead of ending the request. Raising the
mover's min updates every moved user's plugin through keepMovedCurrent.
npm view @magpie-community/opencode-qoder-auth shows 0.2.19.
Run: gofmt clean; go vet ./internal/provider/ on darwin, linux and
windows ok; go test -tags nogui ./internal/provider/ ok (1152s). The
full suite was not run: only the min string changed (as 5b267fbd8).
qoder and qoder-cn join retiredBuiltins, as Zed did in c0605abc2.
@magpie-community/opencode-qoder-auth serves both, moved or not.
Removed (built-in only):
- gateway: the Qoder dispatch in gateway.go and gateway/qoder.go (the
translator), with its tests (qoder_test, qoder_busy_test, qoder_cn_test).
- provider: qoder_usage.go; the Accounts() loop, builtinLogins case and
loginQuota branch, the Logins/side-list/switch/forget cases, SetLoginOn
and alsoOn, the sign-in case, the subscription_usage fetch, and qoder
in asksOwnBackend; qoderLogins(); the built-in tests (qoder_test,
qoder_cn_test, qoder_free_test).
- internal/qoder: codec, cosy, models, oauth, usage, userinfo, ids, store
and their tests.
Kept, and why:
- migrate_qoder.go (the mover) and the legacy qoder.json migration it
reaches through qoderLoginsOf. It now reads a pair with qoderSaved.
- qoder_checkin.go: the check-in walks plugin accounts (heldPlugins).
- internal/qoder/endpoints.go: the provider keys, Site/SiteOf, the
Credential the mover reads and NewMachineID, with the notice.
- The PLUGIN-SERVED notice in provider/qoder.go and internal/qoder.
- gateway's relayStatus/retryAfterOn, which commandcode.go uses, moved to
relay_status.go; the tests' qoderRoundTrip is now roundTripFunc
(roundtrip_test.go), no change in meaning.
Tests changed in meaning:
- TestOwnStoreSignInAgainDropsTheReading lost its qoder case.
- New TestQoderLegacyFileMoves: a legacy qoder.json moves through the
mover and is removed. Red when migrateQoder is skipped (tried by hand).
Run (machine load ~300, so narrow by request):
- gofmt -l internal: empty
- go vet -tags nogui ./...; GOOS=linux and GOOS=windows the same: clean
- go test -tags nogui -count=1 -timeout 45m -run 'Qoder|qoder|Migrat|migrat|Mover|Moved|Retired|SignIn|AsksOwnBackend|Plugin|Afresh|Checkin' ./internal/provider ./internal/gateway ./internal/cli ./internal/gui ./internal/qoder
provider ok 114s, gateway ok 201s, cli ok 18s, gui ok 12s, qoder no tests
Not run: the whole packages, the full suite, the GUI node suite.
The qoder movers' min (shared by qoder and qoder-cn) goes from 0.2.16 to
0.2.18, so keepMovedCurrent updates every moved user's
opencode-qoder-auth:
- 0.2.17 (plugins#179): the daily check-in through auth.checkin.
- 0.2.18 (plugins#185): a trimmed or wrapped 10605 is the model's queue
busy, not a lapsed sign-in.
npm view @magpie-community/opencode-qoder-auth@0.2.18 version
--prefer-online printed 0.2.18 before the change.
The checks run on the pushed head, which holds this commit, are in the
DeepSeek search commit's body.
In 0.2.15 a <tool_call> block with bad JSON ({"path":}), or one the stream
ended inside, went out as the reply text with finish "stop" and a 200. The
call was lost and nothing could fail over. 0.2.16 (magpie-community/plugins
5d5d86e, on npm) ends that turn as an error, the same way trae does: an error
frame with no finish, or a 502 when not streamed. Raising the mover's min
makes keepMovedCurrent update every moved qoder and qoder-cn account to it.
The built-in internal/gateway/qoder.go still has the same two exits
for accounts that haven't moved. This commit doesn't change that.
Run at 5618ade1e plus this change (worktree off a freshly fetched origin/main):
- gofmt -l .: empty
- go vet ./... (darwin), GOOS=linux go vet -tags nogui ./...,
GOOS=windows go vet ./...: ok. go build ./...: ok
- set -o pipefail; go test -p 4 -timeout 40m ./...: rc=0, 55 packages ok,
none failed
- npm view @magpie-community/opencode-qoder-auth version --prefer-online:
0.2.16
What changed: the min of the "qoder" and "qoder-cn" movers (one
qoderMover for both) goes from 0.2.11 to 0.2.14, with the note of what
0.2.12 to 0.2.14 brought. keepMovedCurrent updates every moved user's
plugin to it.
Why: 0.2.14 reads Qoder's error code the way Qoder.app's own client does
(QoderErrorCode in its qoder-agent-sdk worker): 10605 (the model's queue)
is a 503 with Retry-After from retryAfterSeconds, the quota/credit codes
110, 112-119, 122 are 429, the request refusals 406, 416, 430, 80411,
80412, 100400, 100401, 100403 are 400, and only 105 or no code is the
"sign in again" 401. A real trial account had every chat answered
403 10605 and was told to sign in again. 0.2.13 lists models from
Qoder's app scene first, so its new default Fast 0.8x shows (plugins #97).
0.2.12 keeps Qoder's own reason in a refused chat's error.
Qoder's table has no 100402 (checked in Qoder.app's
qoder-worker-runtime.obf.mjs), so the note lists 100400, 100401, 100403
as the plugin does.
Run: npm view @magpie-community/opencode-qoder-auth version -> 0.2.14;
go test ./internal/provider -run 'Mov|Migrat|Plugin|HandOver|Adopt' ok;
gofmt -l clean; go vet ./internal/provider on darwin, linux, windows ok.
0.2.11 (magpie-community/plugins#40, AwadYoo) keys the plugin's model
listings and its "renewed" marks by deployment and uid instead of uid
alone. Raising min lets keepMovedCurrent update every moved Qoder user.
Run: plugins bun test 1000/0 under a temp HOME at the PR head, the two
new tests fail with the key reverted to cred.uid; npm view shows 0.2.11;
here go test -tags nogui ./internal/provider -run Moved|Migrat|Qoder|
Mover|KeepMoved ok, gofmt -l clean.
Without Qoder's native device identity (Cosy-MachineToken and
Cosy-MachineType from its own runtime-info helper), openapi.qoder.sh
answers the campaigns list with VIEW_DETAILS only, so check-in found
nothing to claim. qoder-auth 0.2.9 (magpie-community/plugins#49) sends
it the way Qoder.app 0.4.3 does. The mover's min names 0.2.9, so
keepMovedCurrent updates every moved user. That also brings them 0.2.8's
CN enterprise VPC sign-in.
Verified: the owner's real international account through 0.2.9's fetch
(GET only) lists CLAIM_BENEFIT/CLAIMABLE/100, and VIEW_DETAILS only
without the identity. npm view shows 0.2.9 as latest. go test -tags
nogui ./internal/provider under a temp HOME passes, and go vet passes
for darwin, linux and windows.