From 9c886c12f92d0da504b9c54cf2dd9df623a61617 Mon Sep 17 00:00:00 2001 From: yetone Date: Tue, 27 Oct 2026 11:21:35 +0800 Subject: [PATCH] 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. --- packages/zcode/README.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/packages/zcode/README.md b/packages/zcode/README.md index 2ad27e6..d84327f 100644 --- a/packages/zcode/README.md +++ b/packages/zcode/README.md @@ -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