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.