zcode: a cap that outlasts the waits still rests the account, the README says

#395's README said busyAnswer lets magpie "move that request along
instead of resting the account". It doesn't: on magpie origin/main
e7173958e, failure(429, body) reads both ZCode's bare
{"code":3008,"msg":"user concurrency limit exceeded"} and busyAnswer's
rewording of it as "rate", so the account rests and the request falls
to the next group member, as before #395. The retry and the declared
maxConcurrency are what keep the cap from reaching magpie; the README
now says so. README only, no version change.

Run: the probe above (a throwaway test in magpie's internal/gateway,
removed); bun scripts/check.mjs zcode ok.
This commit is contained in:
yetone
2026-10-27 11:21:35 +08:00
parent 8b21033daa
commit 9c886c12f9
+4 -2
View File
@@ -145,8 +145,10 @@ declares — `maxConcurrency` on the auth hook, and `magpie.maxConcurrency`
in its `package.json`, both three. A request the vendor refuses anyway
waits a moment (a quarter of a second, then longer — about ten seconds of
waits in all) and asks again, the same request byte for byte. A cap that
outlasts the waits goes on as it came, ZCode's words followed by what it
is, so magpie can move that request along instead of resting the account.
outlasts the waits goes on as a 429, ZCode's words followed by what they
mean, so the agent reads why. magpie still reads it as a rate limit: the
account rests a minute and the request goes to the next member of its
routing group, as it did before.
Three is a default, not a cap the plugin enforces. A plan's real cap
follows its tier — Z.ai serves a Max plan more at once than a Pro, and a