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.