qoder 0.2.60: a 429 with no quota in it shows Qoder's status, code and own reply (QwenWork flash through dsh: "All models failed")

sherlock (Discord): the same QwenWork account works in ZCode, and dsh's
auto-review failed with "QwenWork: usage limit reached: All models failed".
"All models failed" is Qoder's own message: nothing in the plugin or magpie
builds it. The plugin only put "usage limit reached:" before it, which hid
the status, code and reply it came with. The failure now ends with
"(Qoder replied HTTP 429, code N: <reply>)" for a 429 or quota-worded reply
with no quota code; quota codes keep their short words.

The cause of the 429 itself is NOT found. dsh's reviewer sends a system
prompt, one user message, temperature 0, no tools and no max_tokens (read
from dsh-experimental-auto-review); the plugin sends no temperature and
32000 max_tokens for it. Nothing in qoderBody differs in a way known to
fail. This release makes the next report carry Qoder's reply.

Run on mote (bun): packages/qoder bun test 385 pass, 0 fail (raw-429.test.mjs
new); bun scripts/check.mjs qoder ok. Broken by hand (old failure()): 2 of the
3 new tests fail. Not tried: a real QwenWork account.
This commit is contained in:
yetone
2026-11-04 10:09:07 +08:00
parent 1865969e1f
commit c1a625d0d5
3 changed files with 36 additions and 2 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "@magpie-community/opencode-qoder-auth",
"version": "0.2.59",
"version": "0.2.60",
"description": "Qoder and QwenWork (千问办公) subscriptions in OpenCode and magpie: qoder.com, qoder.cn, gateway.qwenwork.cn and the enterprise flagship, VPC and dedicated domains",
"type": "module",
"main": "./opencode.mjs",