From 6a8b2c6831abcfd3bf9e24644b49bf06074acfe3 Mon Sep 17 00:00:00 2001 From: yetone Date: Mon, 12 Oct 2026 14:47:13 +0800 Subject: [PATCH] provider: a moved ZCode account is brought to plugin 0.1.16, whose app sign-in follows ZCode only while it is signed in to the same account (LingYi_Stu on X) 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. --- internal/provider/migrate_zcode.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/provider/migrate_zcode.go b/internal/provider/migrate_zcode.go index 3b8e630d9..992426c7d 100644 --- a/internal/provider/migrate_zcode.go +++ b/internal/provider/migrate_zcode.go @@ -21,7 +21,7 @@ import ( func init() { movers["zcode"] = &mover{ pkg: "@magpie-community/opencode-zcode-auth", - min: "0.1.15", // a Start Plan request says the agent's folder and git repository as magpie tells them, never magpie's own folder, and leaves out what it doesn't know (plugins #86); 0.1.14's gift-only account lists its gift's models by their own names, as ZCode does, so a Start Plan GLM-5.3 bucket's model is listed as GLM-5.3, not only GLM-5.3-Trial (#1261, plugins aca7c59); 0.1.13's claim line has one fixed name, which the GUI translates, so it no longer shares the "ZCode Trust Build" bucket window's name (plugins #43); 0.1.12's counted window carries its amount and limit, so the card's count follows used/left (#659, plugins #35); 0.1.11's gift plan ZCode holds but hasn't granted is named on the card, to claim in the ZCode app (plugins #30, #1001); 0.1.10's gift-only buckets and 0.1.9's trial entries (plugins #21) kept + min: "0.1.16", // the ZCode app's sign-in follows ZCode only while it is signed in to the same account, so an entry added for one account never sends with another's credentials after ZCode switched (LingYi_Stu on X); 0.1.15's Start Plan request says the agent's folder and git repository as magpie tells them, never magpie's own folder, and leaves out what it doesn't know (plugins #86); 0.1.14's gift-only account lists its gift's models by their own names, as ZCode does, so a Start Plan GLM-5.3 bucket's model is listed as GLM-5.3, not only GLM-5.3-Trial (#1261, plugins aca7c59); 0.1.13's claim line has one fixed name, which the GUI translates, so it no longer shares the "ZCode Trust Build" bucket window's name (plugins #43); 0.1.12's counted window carries its amount and limit, so the card's count follows used/left (#659, plugins #35); 0.1.11's gift plan ZCode holds but hasn't granted is named on the card, to claim in the ZCode app (plugins #30, #1001); 0.1.10's gift-only buckets and 0.1.9's trial entries (plugins #21) kept agents: []string{"zcode"}, // the built-in never served GLM-5.3 to a Start Plan account, so // its pick is no loss when the plugin doesn't list it (the plugin