Files
plugins/packages/qoder/package.json
T
yetone a379c54b17 qoder 0.2.39: a queued call's stream is closed, and its resend is a new request in the same set (#427)
Peterpig (#427, qoder.com, personal_standard, magpie 0.1.1709, plugin
0.2.38): both free models, qfmodel and dfmodel, fail every test with
"context deadline exceeded". Reproduced with the owner's real qoder.com
account and the plugin driven straight from bun (sandbox HOME, its live
token unrenewed): the free models are queued intermittently with
10605 {"isQueued":true,"queueType":"p3","subCode":"RESOURCE_LIMIT",
"serviceAvailable":false,"retryAfterSeconds":30,"waitTime":30}. A
status ask 30s later says isQueued false, the resend is sometimes queued
again, and the answer comes 38s to 71s after the request. magpie's test
waits 20s, so a queued free model is "context deadline exceeded" there
whatever the plugin does; that is Qoder's queue, not the network.

Two things the plugin did differently from Qoder's client
(qoder-agent-sdk worker in Qoder.app 0.4.3, the [ModelQueue] path):

- Qoder keeps a 10605 stream open after its one event. The plugin read
  that event and left the stream open through the wait and the resend
  (seen held to the 170s abort on the real account). The refused call's
  fetch now has its own AbortController, aborted once the call is read
  as refused.
- The client gives every resend a new request_id and chat_record_id
  (o4i) under the same request_set_id, and asks the queue with the
  latest request_id. The plugin sent the same request_id again. It now
  does as the client does. Not shown to matter: with the old code a
  resend was answered once and queued again in other runs, as with the
  new code, so the queue looks load-driven either way.

Run at this tree (base c25201d):
- bun test in packages/qoder: 267 pass, 0 fail.
- queue.test.mjs against the old index.mjs: the two changed/new tests
  fail (resend's request_id, refused stream not aborted); 9 others pass.
- HOME=$(mktemp -d) bun test at the repo root: 2841 pass, 3 skip,
  1 fail: layerfs "item 3: an import over the file limit is refused"
  timed out (73s against its 30s bar, also alone, load 15-45 on this
  box); this change touches no layerfs file. Not filed.
- bun scripts/check.mjs: ok.
- Real qoder.com account, qfmodel, stream: new code queued twice, then
  answered at 71s, both refused streams aborted at once. Old code:
  queued, answered on the first resend at 38s, its refused stream held
  open until the 170s abort; in two other old runs the resend was
  queued again until the 60s abort.

Not tried: #389's Windows Clash Verge system proxy (ECONNRESET); this
does not touch it. Qoder CN, QwenWork: same code path, not run live.
2026-10-27 17:25:28 +08:00

13 lines
633 B
JSON

{
"name": "@magpie-community/opencode-qoder-auth",
"version": "0.2.39",
"description": "Qoder and QwenWork (千问办公) subscriptions in OpenCode and magpie: qoder.com, qoder.cn, gateway.qwenwork.cn and the enterprise flagship (VPC)",
"type": "module",
"main": "./index.mjs",
"exports": "./index.mjs",
"files": ["index.mjs", "README.md", "LICENSE-CLIProxyAPI"],
"keywords": ["opencode", "opencode-plugin", "magpie", "qoder", "qoder-cn", "qwenwork", "千问办公"],
"license": "MIT",
"repository": { "type": "git", "url": "git+https://github.com/magpie-community/plugins.git", "directory": "packages/qoder" }
}