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.