zcode: the mover's min is 0.1.68, whose every account takes requests (mathfournity on X)

mathfournity on X: several ZCode accounts in magpie, and requests went to
two of them only. The plugin (0.1.40 to 0.1.67) declared maxAccounts 2,
so keepAtOnce held every account past the first two in reserve until one
rested. magpie's own handling of a plugin's accounts was right: on a
throwaway gateway test with the real plugin under bun and four accounts
on a fake Z.ai, 0.1.67 sent 12 requests at once 6/6 to two accounts and
none to the others, and 1302, 1308, 3008 and 500 on one account each
went to the next and rested the first.

plugins 36dc4007 (zcode 0.1.68) declares no maxAccounts and holds what
zcode.z.ai's firewall refuses an address for instead: six Start Plan
requests in flight from this computer over all accounts, besides each
account's three. On the same throwaway test, 0.1.68 sent the burst
3/3/3/3 over the four accounts, failover unchanged. Raising the min
updates moved users (keepMovedCurrent). gateway-routing.md's Accounts at
once row says the plugin no longer declares two.

npm: registry.npmjs.org has 0.1.68 as latest (npm view --prefer-online
--registry https://registry.npmjs.org). The plugins publish run is red
only for middleware-system-prompt and middleware-think-tags (trusted
publisher); its log shows "+ @magpie-community/opencode-zcode-auth@0.1.68".

Run:
- go test ./... -count=1 -timeout 45m on mica at 1c59acd36 plus this
  change: every package ok (102), exit 0.
- Rebased onto 4c6c3a453 (claudetui only): go test ./internal/provider
  ./internal/claudetui ./internal/plugin on mica: ok.
- Plugin: bun test in packages/zcode (HOME=$(mktemp -d), wsl-run):
  275 pass; the new tests red against 0.1.67's code (3 fail).

Not tried: a real ZCode account.
This commit is contained in:
yetone
2026-11-17 01:48:56 +08:00
parent 4c6c3a453e
commit cb4ad12bd1
2 changed files with 2 additions and 2 deletions
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long