takomitkm (plugins#438) hit two problems. The busy hold armed with one
account and one agent. A GLM Coding Plan model's weekly or monthly limit
(1310) also rested the whole account, so its -Trial models got the
cached 1310 without being asked. zcode 0.1.58 (ea3573bf in the plugins
repo, on npm) fixes the first in the plugin and lists the -Trial entries
free. magpie's PaidBesideFree then rests only the refused coding-plan
model. Raising the min brings every moved user up to 0.1.58.
TestZCodeCodingPlanLimitLeavesTrials holds both sides. With the trials
free, the 1310 rests GLM-5.3 alone and GLM-5.3-Trial is still sent. With
no free entries, or with another vendor, the same refusal still rests
the account. The fake plugin's $FAKE_ZCODE_FREE marks the trials free,
as 0.1.58 does.
Run (mote): go test ./internal/gateway -run 'TestZCode' -count=1, ok;
go test ./internal/provider ./internal/plugin -count=1, ok; go vet of
the three packages on mote, in WSL (magpie-desktop) and on Windows
(xiaomi-gpu), ok; gofmt -l is clean. All of this at this head, rebased
on origin/main. A whole-tree Linux vet in WSL stops at Wails' cgo
(webkitgtk-6.0 and gtk4 aren't installed there), so it doesn't cover
the GUI.
Broken by hand: with the fake's free mark dropped, the zcode 0.1.58
subtest fails, because the 1310 rests the account key.
Not tried: a real dual ZCode account that has reached its weekly limit.
Reported-by: takomitkm