qoder, workbuddy: README on credit-model refusals while credits remain (#201)
README sections for WorkBuddy and Qoder on why a request can be refused while the account still shows credits. They cover: - the exact model id versus the display name; - WorkBuddy 5.6+'s encrypted desktop sign-in and the browser route around it; - 11140, the restricted account (magpie#1849); - Qoder's 10605, a queue answer, not a lapsed sign-in (#185, 0.2.18); - a CLAIMED check-in that is not a new grant (magpie#2696). This is docs only. Reviewed at 76cfb6d: two README files, +66 lines, no code. Checked each claim against the source: - packages/qoder/busy.test.mjs exists; - workbuddy usage.test.mjs covers sign-in, usage and chat against a sealed desktop file, and asserts the file is unchanged; - magpie's `plugin use` and `plugin list` exist (internal/cli/plugins_cli.go); - magpie#2696 is the open native-check-in cache issue. bun scripts/check.mjs qoder and workbuddy both pass. No version bump.
This commit is contained in:
@@ -247,6 +247,39 @@ International campaign discovery was checked with a real account on
|
|||||||
omitting either header hid them. This verification only queried the
|
omitting either header hid them. This verification only queried the
|
||||||
activity; a live claim was not performed.
|
activity; a live claim was not performed.
|
||||||
|
|
||||||
|
## Credits available, but a request is refused
|
||||||
|
|
||||||
|
A positive credit balance does not guarantee a queue slot or access to
|
||||||
|
every model. Use the model ids listed for that particular account and
|
||||||
|
region. Do not infer another account's permission from its balance.
|
||||||
|
|
||||||
|
Qoder code **10605**, including `RESOURCE_LIMIT`, `serviceAvailable` or
|
||||||
|
`isQueued` details, is a resource/queue answer. Keep its suggested retry
|
||||||
|
delay; repeatedly signing in does not free that queue. Since **0.2.18**
|
||||||
|
([#185](https://github.com/magpie-community/plugins/pull/185)), a 10605 led
|
||||||
|
by a BOM or wrapped in an outer message is read as busy too; see
|
||||||
|
[#167](https://github.com/magpie-community/plugins/issues/167) for the broader report.
|
||||||
|
That parser fix does not remove the provider's limit or prove that every
|
||||||
|
live 401 had the same cause. A timeout likewise does not establish an
|
||||||
|
empty wallet or an expired login.
|
||||||
|
|
||||||
|
For a bounded offline reproduction, run `packages/qoder/busy.test.mjs`
|
||||||
|
from #185 in an isolated temporary HOME. It compares plain queue JSON,
|
||||||
|
BOM-prefixed JSON and known message wrappers, keeping explicit login and
|
||||||
|
credit failures distinct. Extracting a JSON body from a translated log
|
||||||
|
cannot recover the original wire bytes; synthetic wrappers demonstrate
|
||||||
|
parser behavior, not which wrapper a historical request actually used.
|
||||||
|
After selecting a local fix with magpie's `plugin use`, confirm which spec
|
||||||
|
serves `qoder` in `plugin list`; a patched checkout alone does not change
|
||||||
|
the running provider.
|
||||||
|
|
||||||
|
|
||||||
|
For native check-in, an existing `CLAIMED` result is not a new credit grant.
|
||||||
|
The host's recheck/cache behavior is tracked in
|
||||||
|
[magpie#2696](https://github.com/yetone/magpie/issues/2696). Verify a new
|
||||||
|
claim against the vendor record; a successful activity query alone is not
|
||||||
|
proof that credits arrived.
|
||||||
|
|
||||||
## Not here
|
## Not here
|
||||||
|
|
||||||
- Qoder's usage and quota display.
|
- Qoder's usage and quota display.
|
||||||
|
|||||||
@@ -164,6 +164,39 @@ credits are read from the enterprise meter
|
|||||||
page reads: the cycle's credits used of its limit, and when the cycle
|
page reads: the cycle's credits used of its limit, and when the cycle
|
||||||
resets (magpie #1904).
|
resets (magpie #1904).
|
||||||
|
|
||||||
|
## When free models work but a credit model does not
|
||||||
|
|
||||||
|
Check the failing account and model separately before concluding that the
|
||||||
|
wallet is empty:
|
||||||
|
|
||||||
|
- Use the exact API id from the account's model list. For example,
|
||||||
|
`glm-5.3-flash` is the id; `GLM-5.3-Flash` is its display name. A route
|
||||||
|
copied from another provider need not be a valid WorkBuddy model id.
|
||||||
|
- The WorkBuddy 5.6+ encrypted-desktop message means this sign-in cannot
|
||||||
|
be read, not that the account has zero credits. Use **Account (browser)**
|
||||||
|
for the same build/region. Keep the old entry until the new identity and
|
||||||
|
model list are confirmed. The desktop file is not decrypted or changed.
|
||||||
|
- An account restricted by WorkBuddy is a different failure. Code 11140
|
||||||
|
with its unusual-activity message calls for **Submit feedback** in
|
||||||
|
WorkBuddy; signing in repeatedly or changing the model does not lift it.
|
||||||
|
See [magpie#1849](https://github.com/yetone/magpie/issues/1849).
|
||||||
|
- Inspect each attempted provider/account in magpie's routing details.
|
||||||
|
A ZCode trial quota failure, another provider's insufficient credits, or
|
||||||
|
one account's restriction is not the balance of every WorkBuddy account.
|
||||||
|
|
||||||
|
A model response confirms that the selected account can answer. It does
|
||||||
|
not, without a matching vendor usage record, prove how many credits that
|
||||||
|
request deducted. A usage-read error means the balance is unknown.
|
||||||
|
|
||||||
|
The encrypted-desktop result can be reproduced without an account using
|
||||||
|
`packages/workbuddy/usage.test.mjs` in an isolated temporary HOME (and
|
||||||
|
USERPROFILE on Windows). It covers sign-in, usage and chat against a
|
||||||
|
synthetic sealed desktop file, and checks that the file stays unchanged.
|
||||||
|
A successful browser authorization alone is not a migration: compare the
|
||||||
|
returned identity with the intended desktop account before replacing its
|
||||||
|
entry. An already signed-in browser can simply renew another saved account.
|
||||||
|
|
||||||
|
|
||||||
## Not here
|
## Not here
|
||||||
|
|
||||||
magpie's built-in WorkBuddy does more than this package:
|
magpie's built-in WorkBuddy does more than this package:
|
||||||
|
|||||||
Reference in New Issue
Block a user