Plugin 0.1.39 (magpie-community/plugins 2e580cf) reads the ZCode app's
claim banners from GET /api/v1/marketing/touch as well as
billing/preview. A banner plan (ZCODE WEEKEND BUILD, 10-30) is in
neither billing list while the app shows it, so the daily check-in said
there was nothing to claim (kongbai01203's capture on plugins#503). The
claim itself is the same POST /billing/claim; a list that doesn't read
is a failed check-in, asked again later. keepMovedCurrent brings every
moved ZCode user to it.
Run on mote, worktree at origin/main ec5571d6f + this change:
gofmt -l clean; `go vet`, GOOS=linux and GOOS=windows `go vet` of
./internal/provider/ ok; `go test -timeout 45m ./...`: every package ok
except internal/gui, whose ten real-window AppKit tests (TestPanelCloseHidesIt,
TestDockJoinLeadsCommandTab, TestMainWindowCorners, ...) were killed at
their 20-80s deadlines on mote, filed as #4125 and #2645; this change
touches only a string in internal/provider. Rebased onto 5bb252c8f
before the push; `go test ./internal/provider/` at the pushed tree: one
red, TestQuotaSpanCarriesEveryWindowField ("trayKind" isn't on
QuotaSpan), from 7d4a63148 on main, filed as #4457. `npm view
@magpie-community/opencode-zcode-auth version --prefer-online
--registry=https://registry.npmjs.org/` says 0.1.39. The plugin's own
record (zcode 178 pass, 3 red on the old code, dedupe and unread-list
returns broken by hand) is in 2e580cf.
Not tried: a real banner claim through the plugin; its feed fixture is
built from the capture's description of the fields.
Plugin 0.1.38 (magpie-community/plugins 5a9c776, jinpy666's #505) adds
freeFirst, an option off by default (Plugins › Options, or
provider.zcode.options): a plain model request on an account with a GLM
Coding Plan and a live gift spends the gift first, under the name the
gift lists, and any gift failure (spent, block page, 4xx/5xx, its busy
cap waited out, a network throw) is replayed on the coding plan in the
same request; a caller's abort stays an abort. keepMovedCurrent brings
every moved ZCode user to it.
Run (on mote, worktree at origin/main + this change): `go test -timeout
45m ./internal/provider/` ok; `go vet`, GOOS=linux and GOOS=windows `go
vet` of ./internal/provider/ ok; gofmt -l clean. `npm view
@magpie-community/opencode-zcode-auth version --prefer-online
--registry=https://registry.npmjs.org/` says 0.1.38. The plugin's own
review (zcode tests 173 pass, check.mjs ok, abort guard broken by hand
red) is in #505.
Not tried: freeFirst against a real dual account; the plugin's tests run
against a fetch fake.
hykql (v0.1.2143) saw every ZCode account's daily check-in say "签到失败,
magpie 稍后重试 · gift plans to claim: no plan list in the reply". ZCode's
billing/preview answers an account with nothing to claim with
{"code":0,"msg":"","logid":…}, no data at all, which 0.1.35/0.1.36 took
as unreadable. Plugin 0.1.37 (magpie-community/plugins 7673cd0) reads it
as a list of none, so the check-in is "inactive" (the Usage page says
"No check-in event now"). keepMovedCurrent brings every moved ZCode user
to it.
Run (on mote, worktree at origin/main + this change): `go test -timeout
45m ./internal/provider/` ok; `go vet`, GOOS=linux and GOOS=windows `go
vet` of ./internal/provider/ ok; gofmt -l clean. `npm view
@magpie-community/opencode-zcode-auth version --prefer-online
--registry=https://registry.npmjs.org/` says 0.1.37.
Not tried: a real claim of a plan (no account has one to claim now).
Danbuth's GLM Coding Max account held ZCode's Start Plan (ZCODE GLOBAL
BUILD) and read the card as having none: the plugin showed it as the
third ring, "ZCODE GLOBAL BUILD · GLM-5.3-Trial", which the ring cut to
"ZCODE GLOBAL BUI…". Plugin 0.1.36 (magpie-community/plugins 63748b9)
names a gift bucket by its model first, as ZCode's own "Today's balance"
lists it, then its plan. keepMovedCurrent brings every moved ZCode user
to it.
Run (on mote, worktree at origin/main + this change): `go test -timeout
45m ./internal/provider/` ok; `go vet`, GOOS=linux and GOOS=windows `go
vet` of ./internal/provider/ ok; gofmt -l clean. npm view --prefer-online
says 0.1.36.
Not changed: the tray panel shows at most three rings and the account
row two windows, so beside a Coding Plan's 5h and weekly only one gift
bucket is on the panel; the others are in its tooltip and on Usage.
zcode 0.1.35 (on npm, checked with `npm view --prefer-online`) adds
auth.checkin: magpie's daily check-in reads ZCode's billing/preview and
claims each listed plan, judged by the reply's code (0 claimed, 1003
claimed before, 3007 captcha: claimed in the ZCode app; anything
unreadable failed, never claimed). It runs only once the user turns
ZCode on in Settings -> Daily check-in: PluginCheckinOn has no inherited
default for zcode, so it is off for everyone until then.
keepMovedCurrent brings every moved user's plugin to it.
Run: `go test ./internal/provider/` on mote, ok (90.98s), at this tree
(origin/main cdf8151a2 plus this one line).
Not tried: a real claim answering code 0; no account has a plan to
claim now (plugins 8ebbaa5's body has the rest).
windy (Discord): with a GLM Coding Plan, ZCode's card didn't tell the
Coding Plan's allowance from the Start Plan's, and a Start Plan taking
effect at 23:00 today wasn't shown. Fixed in the plugin
(@magpie-community/opencode-zcode-auth 0.1.34, plugins 3b3209e): a plan
whose starts_at is still to come is named in an aside line "ZCode gift
plan not started yet" with its start, and gets no requests before it;
beside a Coding Plan every gift bucket is prefixed with its plan's name.
- migrate_zcode.go: min 0.1.34, so keepMovedCurrent updates moved users.
npm view --prefer-online served 0.1.34 before this commit.
- i18n.js: the new line's name in zh, zh-TW, ja and de.
- quota-name-translated.test.cjs: the not-started line is checked like
the claim line, every language at 440/560/1000px in both engines.
Run on mote at this tree: gofmt -l clean; go vet ./internal/provider/
for darwin, linux (-tags nogui) and windows ok; go test -timeout 45m
./internal/provider/ ok; node --test quota-name-translated, i18n-keys,
quota-name-wrap and gui-ja, 29 pass 0 fail (chromium and webkit).
Not tried: a real account with a plan not started yet; which status
ZCode gives such a plan is unknown, the plugin goes by starts_at.
dinghao-8 (plugins#439): a ZCode 3.16 sign-in that keeps only a
project-key-location record listed the Start Plan's models, without
GLM-5.3, since the plugin's models() read the sign-in without fetching
its key. 0.1.33 (plugins 2ef8b8b) reads the key first; npm shows 0.1.33
(npm view --prefer-online).
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: a real ZCode 3.16 account (its key is in the Keychain).
zcode 0.1.32 (plugins 8b21033, ANDY-JK) asks a 429 that is the plan's
in-flight cap (3008/3009) again, the same bytes, for about ten seconds,
no longer counts it as a spent gift, and declares maxConcurrency 3 as a
default magpie's per-account queue applies. keepMovedCurrent brings
every moved user up to it.
Run at this tree (origin/main 9fed5dc8c + this line):
- npm view @magpie-community/opencode-zcode-auth version --prefer-online:
0.1.32.
- gofmt -l internal/provider clean; go vet ./internal/provider ok.
- go test ./internal/provider -run 'Mover|Moved|Migrat|ZCode|Min' ok.
- go test ./internal/provider: crashes in
TestUnreadLoginsWriteErrorsKeepCredentials, "close of synctest channel
from outside bubble" in filememo.Forget, which is #3632, open on main.
Not tried: a moved ZCode account updating to 0.1.32 in a running magpie.
kiro 0.1.17: the Free trial and Credits windows carry their credits used
and the limit, so the card's Left shows what is left (plugins#408).
zcode 0.1.31: ZCode 3.16's sign-in that keeps only a
project-key-location record reads that key, so its GLM Coding Plan is
found, not only the gift (plugins#410); also the bare-UUID x-session-id
(plugins#388).
npm view --prefer-online: opencode-kiro-auth 0.1.17,
opencode-zcode-auth 0.1.31.
Run: go test -tags nogui -count=1 ./internal/provider (with the #3632
test skipped) ok; gofmt.
zcode 0.1.30 (plugins 57598ad) puts metadata.user_id
{"device_id":<sign-in's device>,"account_uuid":"","session_id":""} on a
GLM Coding Plan or team Messages request when the agent sent none, as
ZCode 3.14.3's client does on every Anthropic-format request
(glm/zcode.cjs Pst/MLs, vWr); before, only the Start Plan's dressed body
carried it. A key-only account's device is hashed from the key, the same
on every start. keepMovedCurrent brings every moved user up to it.
npm view --prefer-online @magpie-community/opencode-zcode-auth version:
0.1.30 when this landed.
Run at this tree: go test ./internal/provider/ -run
'Mover|Move|Moved|Migrat|ZCode|Retir|Adopt|HandOver' -count=1 -> ok.
Not run: the full suite (a one-line min change).
zcode 0.1.29 (plugins 5c9b7a4) gives each sign-in uid: ZCode's user_id,
so the plugin host tells two ZCode accounts of one name apart (wakkana
on Discord reported it for WorkBuddy), and the app's entry follows ZCode
only while it is signed in to that user id. keepMovedCurrent brings moved
users up to it.
npm view --prefer-online @magpie-community/opencode-zcode-auth version:
0.1.29 at landing. go test -run 'Mover|Movers|Notice|Migrat'
./internal/provider: ok.
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.
Since 10-24 many ZCode Start Plan accounts get 405 {"code":3012,"msg":
"request has been blocked due to unusual activity."} on every request.
On several of them ZCode's own app (3.16.3) gets the same 405, and
ZCode's support bot calls 3012 risk control on the account. magpie said
"though magpie sends it as the ZCode app does; it can be a network block
of this IP", rested the account as an unknown failure, and asked it again
soon after.
- provider.ZCodeRestrictedHint: the words @magpie-community/opencode-
zcode-auth 0.1.27 puts after ZCode's own ("ZCode's risk control blocked
this account for unusual activity (code 3012); it rests, and the
group's other providers are used. If the ZCode app fails on this
account too, only ZCode support can lift the block").
- gateway: restrictedSaid reads those words as failRestricted, as
WorkBuddy's 11140: the account rests restrictedRest (2h), the next
member is asked, and the Routing page's lift button brings it back.
- Routing page: the hint replaces the old one, in zh, zh-TW, ja and de.
- zcode mover min 0.1.27 (npm view --prefer-online: 0.1.27).
Not proven: why ZCode flags these accounts. Diffed against ZCode 3.16.3's
glm/zcode.cjs: the Start Plan goes unsigned there too (client request
signing is off for zhipu-account start-plan), and the headers match the
plugin's. Not tried with a real blocked account.
Run (sandbox HOME, at this tree): go test ./internal/provider ok;
go test -tags nogui ./internal/gui/... ok; go test ./internal/gateway
-run 'ZCode|Restricted|Blocked|EdgeBlocked|Moved' ok, and the new
TestZCodeStartPlanBlockRestsRestricted is red with routing.go reverted;
go vet darwin, linux, windows on provider and gateway ok; gofmt clean.
GUI (Playwright 1.62.0, chromium + webkit): routing-zcode-blocked,
i18n-keys, routing-blocked, routing-wb-restricted, gui-de, gui-ja,
gui-zh-tw: 41 pass, 0 fail. Not run: the full ./... suite (the machine
had a queue of full suites at load ~120).
bigsteven (Discord #feedback, 10-24) saw no GLM-5.3-Trial on the latest
ZCode plugin. plugins cc0bd90 (0.1.26) fixes three ways the -Trial
entries went missing:
- ZCode's config out of reach marked the list fellBack, so magpie's host
kept the last good list and dropped a gift's fresh -Trial entries;
- one failed gift-balance read hid them for 10 minutes (now 1);
- an API-key account, or a sign-in whose ZCode session expired, listed no
-Trial models and the card said nothing. The card now says the gift
plans need ZCode's sign-in.
Run: go test ./internal/provider (ok, 129s) at this head, on
origin/main b855cfee9. npm view --prefer-online gives 0.1.26.
In the plugins repo: bun test packages/zcode (102 pass) and
bun scripts/check.mjs zcode; each of the three fixes reverted by hand
turns its own tests red.
Not tried: a real account with a gift plan through the moved plugin.
rtbeilin's account is on ZCode 1024 Dev Day with no GLM Coding Plan.
ZCode's sign-in worked, an API key did not. zcode.z.ai serves gift
plans only to ZCode's session JWT, so a key can never spend one; 0.1.24
showed such a key an empty card and passed its requests' 1113 through
bare. zcode-auth 0.1.25 (plugins 71021b8) says why and what to use, on
the card and on the refusal. keepMovedCurrent brings every moved user
up to it.
npm: npm view --prefer-online @magpie-community/opencode-zcode-auth
version = 0.1.25; registry latest shasum 86033cf1 matches the publish
run 40078784618 (the run is red only for think-tags, plugins#180).
Run at this head (origin/main 6db5e9d59 + this change): gofmt -l and
go vet ./internal/provider/ clean; go test -count=1 ./internal/provider/
ok (97s), TestMovedBuiltinsSayTheirPlugin included.
Not tried: a moved account's plugin update from 0.1.24 in a real app.
小八 on Discord (10-24): through magpie's ZCode plugin (glm-5.3, glm-5.3-flash)
a Claude Code subagent's tool list held only deferred MCP tools; Bash, Read
and Write were gone, the main conversation was fine. api.z.ai's Anthropic
endpoint, given a tool named exactly ToolSearch, shows the model no tool
but the ones a tool_reference loaded (input tokens 2886 with ToolSearch,
2439 with no tools, 6346 with it renamed). zcode-auth 0.1.24 (plugins
d1b6500) sends the search as ToolSearchTool, without defer_loading or the
placeholder, and renames the model's calls back. The Zhipu/Z.ai presets on
the gateway's Anthropic route are the same upstream; the cause is on #3253.
npm view @magpie-community/opencode-zcode-auth version --prefer-online:
0.1.24 at 23:44 UTC. The plugins publish run is red only for think-tags'
known E404 (plugins#180); zcode's line is "+ ...@0.1.24".
Run at this tree: gofmt -l internal/provider (clean); GOOS=linux, windows,
darwin go vet ./internal/provider (clean); go test -count=1 -timeout 45m
-ldflags='-s -w' ./internal/provider ok 86s (the disk had 250MB free, and
the unstripped test binary failed to link: no space left on device).
Not run: the full suite (same disk).
01huadalang's ZCode account has two gift plans, the 1024 Dev Day plan and
the new-user plan. Once the new-user plan's GLM-5.3 was used up the card
showed GLM-5.3 at 0 and never the 1024 plan's GLM-5.3. The plugin named
every bucket by its show_name alone and sent them in the balance's
order, so the account row's first two windows were the spent plan's and
the live plan's allowance sat in the tooltip under the same name.
Plugin 0.1.23 (magpie-community/plugins 1f8d38b) names each bucket after
its plan when there are several ("ZCode 1024 Dev Day · GLM-5.3") and puts
the buckets a request spends before those set aside. `npm view
@magpie-community/opencode-zcode-auth version --prefer-online` gives
0.1.23.
Run at this tree (origin/main a93190ae1 + this line): gofmt -l
internal/provider clean; GOOS=darwin, linux and windows go vet
./internal/provider ok; go build ./... ok; go test -timeout 45m
./internal/provider ok (89.7s). Plugin side: package tests 92 pass,
whole plugins repo 2375 pass, check.mjs ok; the new tests are red on
0.1.22's index.mjs.
Not tried: a real account with two active gift plans; the reporter's
own balance wasn't read.
01huadalang got the Start Plan's 405 again on plugin 0.1.21. A plugin
provider has no account of its own in the gateway, so Claude Code's own
headers (anthropic-beta, x-app, x-stainless-*,
anthropic-dangerous-direct-browser-access, x-claude-code-session-id)
and ?beta=true reached the plugin. 0.1.21 passed them on to zcode.z.ai.
The retired built-in never sent them.
Plugin 0.1.22 (magpie-community/plugins 57ec655) builds a Start Plan
request's headers from scratch, as ZCode.app 3.16.3 sends them: the new
x-zcode-query-source: main_turn, X-Os-Version as os.release(), and app
version 3.16.3. It also drops the URL's query. `npm view
@magpie-community/opencode-zcode-auth version --prefer-online` gives
0.1.22.
Run: go build ./..., go vet ./internal/provider, and go test -run
'Mover|Moved|Migrat|ZCode|Zcode|Min' ./internal/provider ok. Plugin
bun test (temp HOME): 90 pass.
Not tried: a real Start Plan account. Whether zcode.z.ai keys on these
headers is not established, and an IP block is still possible.
zcode.z.ai answers a Start Plan request whose system has a fourth block
with 405/3012 "request has been blocked due to unusual activity", and the
plugin up to 0.1.20 sent the agent's system prompt as that fourth block,
so every agent was turned away on a Start Plan account (fordlyn). 0.1.21
(plugins 44036e2) joins it to the end of ZCode's third block, as ZCode
3.14.3's ContextBuilder joins every dynamic system section.
keepMovedCurrent brings every moved user's plugin up to it.
npm view @magpie-community/opencode-zcode-auth version --prefer-online:
0.1.21 (its tarball carries the #343 change).
Run: gofmt -l internal/provider (clean); GOOS=darwin|linux|windows go vet
./internal/provider/ (ok); go test -timeout 45m ./internal/provider/ (ok,
98.9s). Not tried against the real API: no Start Plan account at hand.
An account with a GLM Coding Plan of its own and a seat on a team's could
only reach its own plan through the plugin. zcode 0.1.20 (plugins
d87dd8f, on npm) adds "ZCode: a team's GLM Coding Plan", which signs in
to the team seat as an account of its own, "<email> (team)". Raising the
min lets keepMovedCurrent bring every moved user to it.
Run at the parent 5fadf6ace: gofmt -l (clean); go vet ./... on darwin,
GOOS=linux -tags nogui and GOOS=windows (ok); set -o pipefail;
GOMODCACHE=/Users/yetone/go/pkg/mod go test -timeout 45m ./... (exit 0).
npm view @magpie-community/opencode-zcode-auth version --prefer-online:
0.1.20.
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.
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.)
Plugin zcode 0.1.18 (magpie-community/plugins 5c0aebc, on npm) gives moved
users the built-in's 1d8e83a79 fix. ZCode 3.15 keeps the GLM Coding Plan
key only in config.json's provider options.apiKey, so a valid plan read
as "no plan, Start Plan ended". keepMovedCurrent now updates every moved
ZCode user to it.
Run: npm view @magpie-community/opencode-zcode-auth@0.1.18 resolves;
gofmt -l; go vet for darwin, linux (nogui) and windows;
go test ./internal/provider/ -run 'Move|Migrat|Plugin|ZCode' passes.
What changed: the zcode mover's min goes from 0.1.16 to 0.1.17, so
keepMovedCurrent updates every moved user's @magpie-community/opencode-zcode-auth.
41972b25f made the built-in follow ZCode 3.14's 数据存储路径 (dataBaseDir in the
home folder's .zcode/v2/setting.json); the plugin, which is what runs for a
moved ZCode subscription, still read ~/.zcode/v2/credentials.json and
runtime/provider only, so "ZCode app's sign-in" read the stale copy ZCode
left at home. plugins 65a7676 (0.1.17) reads dataBaseDir as ZCodeDataIn does
(trimmed, ignored when empty or not absolute) for credentials.json and the
zcode-builtin.json walk, and keeps reading setting.json from the home folder,
where ZCode keeps it (getSettingsFile; copyDataDirectory leaves it out).
ZCode's CLI session database (~/.zcode/cli/db/db.sqlite, internal/sessions)
does not move with dataBaseDir: the CLI (glm/zcode.cjs, 3.14.3) takes it
from storage.sessionDbPath, default "~/.zcode/cli/db/db.sqlite" expanded
with os.homedir(), and the host sets neither ZCODE_SESSION_DB_PATH nor
ZCODE_STORAGE_DIR; copyDataDirectory copies .zcode/v2 only. So the session
reader is unchanged.
What was run:
- npm view @magpie-community/opencode-zcode-auth@0.1.17: published (publish
run 38370080577; that run is red only for zed-auth and zen-free-auth,
E404 Trusted Publisher).
- Plugin: HOME=$(mktemp -d) bun test at the repo root, 1185 pass; its new
moved.test.mjs fails with the old path.
- gofmt -l; go vet ./internal/provider (darwin), GOOS=linux and
GOOS=windows go vet -tags nogui; go test -tags nogui ./internal/provider
under a sandbox HOME: ok.
- Not run: a real ZCode with a moved folder, Windows.
Raises the zcode mover's min so keepMovedCurrent updates every moved user
to @magpie-community/opencode-zcode-auth 0.1.16 (plugins d2be892). With
the "ZCode app's sign-in" added for account A and again after ZCode
switched to B, A's entry read ZCode's current credentials on every
request, so it sent B's requests and its usage card showed B. 0.1.16
follows ZCode only while ZCode's user is the entry's account; otherwise
it uses what was saved at sign-in, and asks for sign-in again when that
session has run out. Published by the plugins repo's publish workflow;
npm view says 0.1.16 is latest.
Run: go test ./internal/provider/ (ok, 99s); gofmt -l internal/provider
(clean); go vet ./internal/provider/ on darwin, GOOS=linux, GOOS=windows.
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.
sun1090's ZCode account has no GLM Coding Plan, only the Start Plan, whose
buckets serve GLM-5.3 and GLM-5.3-Flash. The card counted GLM-5.3, but the
plugin listed the Start Plan's config models (GLM-5.3-Flash, GLM-5.2,
GLM-5-Turbo) and GLM-5.3 only as GLM-5.3-Trial. ZCode itself lists a Start
Plan account's models as its balance's buckets name them, so 0.1.14
(magpie-community/plugins aca7c59) lists them by their own names too, and
keeps the -Trial entries. keepMovedCurrent updates every moved ZCode user.
The builtin check's note says the plugin now lists GLM-5.3 while a gift
bucket serves it; the check itself is unchanged.
0.1.14 resolves with npm view and its publish run passed. The plugin's
bun test (75) passes and its new test fails on 0.1.13. go test -tags nogui
./internal/provider under a temp HOME passes; GOOS=linux and GOOS=windows
go vet pass. Not tried with a real Start Plan account here.