dd8caac45b4e60a132513f3da919907e0caaa467
424
Commits
| Author | SHA1 | Message | Date | |
|---|---|---|---|---|
|
|
dd8caac45b |
autoclaw 0.2.5: a banned account keeps its sign-in and says the ban, not 登录已失效
小八 (Discord, 2026-10-23): a banned AutoClaw account answers
HTTP 403 {"code":410004,"message":"The account has been banned"}.
The plugin read every 401/403 as an expired sign-in, so magpie dropped
the token from plugin-auth.json and the user never saw why. Signing in
again gets the same account and the same refusal.
A body whose code field is 410004, or whose code/message field (message,
msg, error.message) names a ban or account restriction (banned, 封禁,
封号, 账号异常, account suspended/frozen/disabled/blocked/restricted,
账号被冻结/停用/禁用), is now the account's refusal, not the sign-in.
Only those fields are read, never the whole body. A true token expiry
(401/403 with any other code or message) is still expired.
Every route that mapped 401/403 to expired:
- overseas loader: 403 permission_error with the vendor's words and
X-Magpie-Sign-In: kept; the second host isn't asked (a ban is the
account's on every host, as a spent quota already was).
- CN managed loader: the same.
- refresh: an envelope ban throws "AutoClaw: <message>" with signIn
"kept"; a non-envelope 401/403 naming a ban does too, every other one
stays expired.
- usage: the wallets read said "积分接口无数据" for a ban; it now returns
the vendor's words with signIn "kept".
- check-in: taskList threw 登录已失效 for any 403; a ban now says the ban
and stops the host rotation.
- models: provider.models makes no request, nothing to change.
Siblings with "every 401/403 is expired" and no vendor-shaped ban
evidence, listed and left alone: qoder (refreshJob, patSignIn),
codearts (withSignInMark, 403 on chat), cline (clineApi default lapsed),
minimax (accountCall), kiro (refresh 400/401/403), opendesign (usage
preflight, models), trae (refresh 400/401/403).
Run at this head (worktree from origin/main
|
||
|
|
929a8b3adf |
qoder 0.2.30: Qoder CN's check-in sends Qoder CN's own device identity, as its desktop and CLI do (yetone/magpie#2911, #304)
witt-bit (yetone/magpie#2911, 10-22): after Qoder CN's update moved its
daily 100 Credits into the desktop's 权益中心, magpie's Qoder CN check-in
stopped working; Andrew0767 (#304) sees the same with Qoder desktop
installed. The plugin sent Qoder CN's campaigns pages no device identity
at all ("Qoder CN does not need this local helper").
What Qoder CN's clients do, read from their own packages:
- Qoder CN desktop 0.4.9 (the .deb's out/main): its requests carry
Cosy-ClientType 10 and, through createAuthorizedHeaders, the identity
from <resources>/umid/runtime-info run with environment
`regionCode === "global" ? 3 : 0`, i.e. 0 for Qoder CN, the uid on
stdin (--account-stdin) on macOS and Windows. Campaigns are found
through GET /sash/api/v1/me/notifications (hasClaimableCampaign,
campaignPopupUrl). When the identity can't be read it sends the
request without it (resolveMachineIdentity's catch returns null).
- qoderclicn (@qodercn-ai/qoderclicn 1.1.64, 1.1.70, 1.1.73):
campaigns.list is GET /sash/api/v1/me/campaigns, needing the UMID from
1.1.64 and requireMachineIdentity() from 1.1.70, UMID environment
ONLINE = 0; its config dir is QODERCN_CONFIG_DIR, else QODERCN_CLI_HOME
(or home) + QODERCN_CONFIG_DIR_NAME (or .qoder-cn), and it caches the
helper in <config>/.bin/runtime-info-<platform>-<arch>-<hash>.
- Install places: Qoder CN.app/Contents/Resources/umid/runtime-info
(seen inside Qoder-CN-Installer-mac-arm64.zip's payload, 0.4.9),
/opt/Qoder-CN/resources/umid/runtime-info (the .deb), and on Windows
umid/runtime-info.exe among Qoder-CN-win-x64-user.exe's owned files,
with "Uninstall Qoder CN.exe" (electron-builder's
%LOCALAPPDATA%\Programs\<productName>; the folder itself not seen).
The plugin now keeps a runtime per site (RUNTIMES): Qoder CN reads its own
helper (those paths, its CLI's folders, QODERCN_RUNTIME_INFO, never the
international Qoder's) with environment 0, and sends Cosy-MachineToken and
Cosy-MachineType on the list, the claim and the campaigns proxy. As the
desktop does, a Qoder CN request without a readable identity still goes
out, so an account that was claiming without Qoder CN installed (0.2.21's
live PAT claim) keeps doing so. When such a list offers no daily claim,
the check-in is ineligible for the day, saying to install Qoder CN desktop
or sign in to its CLI (no helper), or failed and asked again (a helper that
didn't answer), instead of "inactive". International Qoder is unchanged.
Run: in packages/qoder, TMPDIR=$H HOME=$H/home bun test: 195 pass, 0 fail.
On the old index.mjs the new tests are 9 red (checkin.test.mjs 5 lookup
tests and the env-0 proxy test, native-checkin.test.mjs the env-0 claim,
the ineligible and the failed cases). Repo root at this commit
(rebased on
|
||
|
|
26e3e5f91a |
trae 0.2.19: Qwen's <function=…> and Anthropic's <function_calls><invoke> calls written as text are read as calls
01huadalang (magpie's Discord, trae 0.2.18, dsh, Kimi K3 and MiMo 2.6
Pro, sometimes): tool calls came back as the reply's text. The two
screenshots show the shapes:
<function=compress><parameter=content>[{"endId": "m03680", …
<function_calls><invoke name="mcp__magpie-image__generation_result">
<parameter name="id">image-6636-24</parameter> </invoke> … </function_calls>
Root cause: TextTools only knew <tool_call> blocks (JSON, GLM's
arg_key/arg_value, name-attribute + <parameter>) and DeepSeek's DSML.
Neither shape opens with <tool_call>, so both went through as text; a
Qwen <function=…> inside <tool_call> lost the opener and leaked too.
- TextTools.xmlCall reads <function_calls> around one or more
<invoke name="…"><parameter name="k">v</parameter></invoke> (each
invoke a call; closes left off between invokes still split them), and
Qwen's <function=name><parameter=k>v</parameter></function>, bare or
in <tool_call>. Values go through paramArgs: text where the tool's
schema says string, else JSON (compress's content array is an array).
- Only for a tool the request declared (toolNamed's match); an
undeclared name, no tools at all, a tag in backticks or a code fence,
or a tag with no parameter and no close stays text. This is stricter
than <tool_call>, whose block is a call under any name: these tags
are common in prose about the formats.
- Held back while streaming (MARKS, XML_HOLD), so a tag split across
chunks never reaches the text; the closes and the wrapper are dropped
as leftovers after a call. A parameter left open when the stream ends
is cut short: the turn ends with the error plugins#38 gives, never text.
- README says so.
Sibling: qoder has its own Splitter that reads <function=…> only inside
<tool_call> and neither shape bare; not changed here, filed as
plugins#323. No other package parses text-written calls.
Run at this commit (base origin/main
|
||
|
|
1b06308fad |
raccoon 0.1.3: a desktop seat keeps its own account after the app switches (#320, moxuanchen)
A desktop seat keeps the token it was signed in with, saved on its own record through client.auth.set. It reads the app only to pick up a newer token for the same account. sameAccount requires the read token to carry the seat's uid, so a token without a uid, or with another account's uid, is never used for the seat. Before this, a seat could be billed to the app's current account, and report that account's credits, without anything saying so (#166). The README says what the change guarantees, and that the vendor revokes the previous account's session when the app signs in to another (#166's measurement). The registry summary is back to main's text. Version 0.1.3.
Run at the reviewed head 639da69 (origin/main
|
||
|
|
532e738857 |
minimax: a check-in turned away with 401 is renewed and asked again, as MiniMax Code does (0.1.5)
Magic_zero (Discord, MiniMax Code international) saw "check-in: the sign-in was refused (HTTP 401)" on every try while chats worked; signing in again, reinstalling and a proxy didn't change it. 0.1.4 ( |
||
|
|
7ee60f8253 | zen-free 0.1.14: keyless single-identity sign-in (#205, LoKi) | ||
|
|
52968f2d34 |
zen-free: declare keyless single-identity access (#205, LoKi)
Marks Zen Free's api method keyless and its auth single, so magpie's host (yetone/magpie#2695, 5871f02dd) signs it in with no key field and Sign in again instead of another account. authorize is unchanged; older hosts and OpenCode keep the public-key flow. Run at the PR head 29f0e9b38: bun test in packages/zen-free under a sandbox HOME, 175 pass, 0 fail. Checked against magpie main: host.js reads m.keyless (api method with authorize) and auth.single, the two fields this sets. Co-authored-by: LoKi <317300729+lokic7123-star@users.noreply.github.com> |
||
|
|
20396784c7 |
kiro 0.1.15: an API key is used as kiro-cli uses it, with or without a profile GetProfile finds (Hollowhere on Discord)
Hollowhere (magpie 0.1.1319, kiro-cli 2.33.1, macOS) signed in to Kiro in
magpie with a Kiro API key. /v1/models listed kiro/auto alone, and every
request failed with "Kiro: Kiro didn't take the API key: 400 Bad Request",
while kiro-cli listed claude-opus-5.5 and claude-sonnet-5.5 and chatted
with the same key.
Cause: the plugin asked GetProfile in us-east-1 only and threw on any
answer but a profile, so a key GetProfile has no profile for never got
further: the model list fell back to Auto and every request failed with
that 400. kiro-cli 2.32.0 (installed here), traced with KIRO_API_KEY set
to a made-up key in a sandbox HOME, every host behind a local proxy that
refused all of them (nothing left the machine), and then with
api.cps.service/api.krs.service/api.codewhisperer.service pointed at a
local recorder:
- asks GetProfile (POST management/, X-Amz-Target
AmazonCodeWhispererService.GetProfile, body {}) in us-east-1, then
eu-central-1, then GovCloud and ISO, and with every one refused goes on
to list models and chat in us-east-1 all the same;
- lists models with the control plane's ListAvailableModels (POST
management/?origin=KIRO_CLI, X-Amz-Target
KiroControlPlaneBearerService.ListAvailableModels, body
{"origin":"KIRO_CLI"}, paged with nextToken), not the REST
List-Available-Models with a profileArn;
- reads credits with GetUsageLimits (same shape, body {"origin":"KIRO_CLI"});
- names no profileArn in generateAssistantResponse, ListAvailableModels
or GetUsageLimits, even when GetProfile gave one;
- sends each with Content-Type application/x-amz-json-1.0,
Authorization: Bearer <key>, tokentype: API_KEY (as the plugin did).
The plugin now does the same for an API key: GetProfile in us-east-1 then
eu-central-1, once per key; a found profile only picks the region; none
found means us-east-1. Its models are ListAvailableModels as above, its
credits GetUsageLimits as above, and its chat names no profile. Sign-ins
other than an API key are unchanged.
Run, in packages/kiro, H=$(mktemp -d); HOME="$H" bun test: 55 pass at
this head (rebased on origin/main
|
||
|
|
4d73d22010 |
minimax 0.1.4: the check-in is asked as the account (its user id), as MiniMax Code's own /checkin asks it (Magic_zero on Discord)
Magic_zero's international (minimax-code-global) account failed the daily
check-in with "check-in: the sign-in was refused (HTTP 401)" while the same
account chatted through magpie and checked in by hand on agent.minimax.io.
Cause, from MiniMax Code's own bundle (@minimax-ai/code 0.6.12, read from
npm): its /checkin client (signin/status and signin/claim, chunk-5ADYFF2U)
signs the request as the account, with user_id = the account's
realUserID, and refuses to ask at all without one ("MiniMax Code sign-in
is required"). Every other minimax-cloud call it makes (desktop error
reports, feedback, connectors, plugin cloud) names the user too; the error
report sends nothing but user_id beside the Bearer token. The plugin's
check-in went through signed() with no userID, so user_id=0. The chat path
(/mavis) and user/info don't go through minimax-cloud, which is why the
token works there. The same client also sends device_platform web,
is_desktop 1 and desktop_version, where the plugin's account API sends
device_platform mcode. The host and signature already matched
(agent.minimax.io; x-signature/yy as before).
This is read from the client's source; the server's rule (a check-in as
user 0 is a 401 on the international site) is inferred, not observed. The
web page (agent.minimax.io, prod-web-va-0.1.220) sends its own web
token in a `token` header, so it isn't the reference for this token kind.
What changed:
- signed() takes query overrides; the check-in passes user_id (the
saved realUserID, or user/info's answer when the sign-in didn't keep
it) and MiniMax Code's device_platform web, is_desktop 1,
desktop_version 0.6.12. A user id that can't be read fails the
check-in without asking the panel.
- The China site gets the same request (MiniMax Code sends it on both).
Its host stays agent.minimax.cn.
- README says how the check-in is asked. 0.1.3 -> 0.1.4.
Tests (checkin.test.mjs):
- "the international check-in is asked as the account, not as user 0":
a fake that 401s any user_id but the account's. On origin/main's
index.mjs it fails with the reporter's exact message, "check-in: the
sign-in was refused (HTTP 401)".
- an account saved without its user id has it looked up first; one
whose id can't be read fails without a check-in.
- the signing test now checks user_id, device_platform web, is_desktop
and desktop_version.
Against origin/main 7fdc07f's index.mjs: 4 of 21 check-in tests fail.
(origin/main has since moved to
|
||
|
|
26ddabe4de |
qoder 0.2.28: a queued request waits its turn in Qoder's queue and is sent again, as Qoder's client does (wallance on Discord)
wallance (Discord, magpie latest, qoder 0.2.27): Qoder's free deepseek
flash (dfmodel) through magpie ended in 503 "Qoder queued the request for
dfmodel (this plan's queue: p3); try again in 30s" after 27s, while Qoder's
own client answered the same model, slowly. magpie's gateway retries a
Retry-After of 8s at most, so the 30s was the agent's error.
What Qoder's client does, read from Qoder.app 0.4.3's
qoder-agent-sdk/dist/_worker/qoder-worker-runtime.obf.mjs ("[ModelQueue]"):
on a 10605 or a queue state it asks
GET <api>/algo/api/v2/service/ask/queue/status?requestSetId=&modelKey=&queueType=
(signed as any GET, X-Request-ID and X-Session-ID), at once and then every
retryAfterSeconds held to 0.5..30s (30s unsaid), while isQueued is true or
serviceAvailable false. Once isQueued is false it waits that state's
retryAfterSeconds and sends the same chatAsk again (same request_set_id),
up to 10 times; 3 failed status asks in a row, a 404 or a state with
neither field end it. It waits up to an hour (QODER_MODEL_QUEUE_MAX_WAIT_MS),
and tells /api/v2/service/ask/finish at the end of its turn, best effort
("server TTL will release the lease").
The plugin now does that, under a 4-minute budget from the request's
start: nothing reaches the agent meanwhile, and magpie keeps a stream's
agent alive with SSE comments for 5 minutes of silence (keepQuiet,
keepaliveLongest). Past it, the 503 with Retry-After as before, so magpie
may ask another account. A cancelled request stops the wait and sends
nothing more. The status path's /algo prefix follows the client's other
paths (it signs "/api/v2/model/list", the plugin calls
"/algo/api/v2/model/list").
Run: HOME=$(mktemp -d) bun test in packages/qoder, 185 pass; at the repo
root, 2114 pass, 0 fail, at
|
||
|
|
7fdc07f150 |
kiro 0.1.14: an account is named by its email and the way it was signed in to, "email (Google)", "email (GitHub)" (#309)
magpie names a plugin's account by its accountId (host.js whoOf) and,
when two read the same, adds the slot: molvqingtai's Google and GitHub
accounts of one email read "email (uid-slot)". The accountId is now the
email and the way, as Kiro's sign-in page names it: Google, GitHub,
Builder ID, IAM Identity Center, Internal. A way not known (kiro-cli's
or the Kiro IDE's sign-in, which carry no loginProvider) keeps the bare
email, and magpie's slot stays the fallback.
- browserSignIn's success names the account so.
- An account kept by its bare email, with a known loginProvider, is
given the name the way the uid was in 0.1.13: by the save after a
request, model listing or usage read (once per token), and in
auth.refresh's result (host.js renew merges it over the old).
- Sibling: usage's user is the same name for a sign-in kept here
(magpie's quota card shows it); kiro-cli's and the IDE's stay bare.
The window: magpie's settle (internal/plugin/host.js) replaces an account
only when whoOf (the accountId) is equal and the uids don't differ. An
old account still named "email", signed in again the same way before
its first use on 0.1.14, has "email (Google)" against "email" and is
kept beside it as a second account. The plugin can't close it: its
client.auth has set/remove for the account in scope only, and a sign-in
result is matched by name alone. Any use (magpie's usage read, a
request, a renewal) renames it first, after which the sign-in replaces
it. Said in the README.
Run at
|
||
|
|
d767d1c8e6 |
kiro 0.1.13: a Google and a GitHub sign-in of one email are two accounts, not one replacing the other (#309)
molvqingtai: Kiro keeps a GitHub and a Google sign-in that share an
email as two accounts, but only one could be added; the second replaced
the first. The plugin named each sign-in by its email alone, and magpie's
host.js settle (internal/plugin/host.js:1022) replaces an account whose
accountId is the new sign-in's, unless both carry a uid and the two
differ (the rule WorkBuddy's uid uses, #413).
Each browser sign-in now carries uid = its way in, lowercased (google,
github, builderid, enterprise, internal). accountId stays the email, so:
- Google and GitHub (or Builder ID) of one email are kept side by side;
magpie labels the two rows apart by their slot.
- A sign-in again the same way still replaces its own account.
- An account saved before 0.1.13 (bare email, loginProvider kept, as the
built-in's mover also saved it) still matches a sign-in again, so no
duplicate appears. It is given its uid from loginProvider on its first
request, model listing or usage read (one save per token), and on
magpie's renewal (auth.refresh returns uid with the token). Until then,
a sign-in the other way of the same email would still replace it, as
before; magpie lists each account's models when its host starts, so
that window is the time to the first listing.
Not changed: kiro-cli's and the IDE's sign-in (a pointer to whatever they
are signed in to; kiro-cli's social token doesn't say Google or GitHub)
keeps no uid and matches by email as before. Two Identity Center orgs
with one email are still one (both "enterprise"). Kiro's userInfo gives
no per-account id this plugin reads; none was assumed.
Run at this tree (origin/main
|
||
|
|
6219a7115a |
qoder 0.2.27: no Qoder on the machine is an ineligible check-in that says what to do once (#304)
On a machine that never had Qoder desktop or Qoder CLI, the international
daily check-in failed with "device identity runtime not found" and magpie
showed "签到失败,magpie 稍后重试", asking again every 30 minutes all day.
It can't succeed: Qoder lists the daily CLAIM_BENEFIT only on a request
carrying Cosy-MachineToken/Cosy-MachineType, and those come from Qoder's
own signed runtime-info helper (#49 showed the list without them has no
claim). The plugin never computes or invents that identity, so without
the helper there is nothing to send.
What changed:
- campaignRuntime throws RuntimeMissing when no helper is found anywhere;
auth.checkin answers it with outcome "ineligible" (settled for the
Beijing day by magpie, asked again the next day) and a message that says
to install Qoder desktop, or install Qoder CLI and sign in once, or set
QODER_RUNTIME_INFO. "ineligible" is the plugin hook word Trae's 9074
already uses for "check in in the vendor's app"; own-app is not a hook
outcome (magpie's provider-plugins.md).
- A helper that exists but fails or gives an invalid identity is still
"failed" and retried. The fetch path (campaign) keeps its 502, now with
the clearer message. Qoder CN is unchanged (it needs no helper).
- README: the daily check-in section says the above.
What was run (at
|
||
|
|
bb020ce804 |
factory 0.1.37: a billing header joined with instructions loses only its own line, not the instructions after it (#302)
poer2023 (#302): anthropicBody() dropped every top-level system text
block, and a string system, that starts with
"x-anthropic-billing-header: cc_version=". When the header and the
instructions after it arrive joined in one block or one string (Claude
Code's auto-mode classifier policy, for one), the instructions went with
it and Factory got only the Droid identity.
Fix: only the header's first line goes. The rest of the text stays, and
the block keeps its other fields (cache_control and the rest); the rest
then goes through promptText like any other system block, so an identity
line after the header is still made Droid's. A block, or string, holding
only the header (or the header and blank lines) is still dropped.
Siblings: grep -rn "x-anthropic-billing-header" packages/ finds only one
other plugin that strips it, workbuddy (FLAGGED), which already removes
just the line with /x-anthropic-billing-header:[^\n]*\n?/gi and keeps the
rest (unflag.test.mjs covers "header\nhello" -> "hello"). kiro and
antigravity-cloak only carry it in fixtures or escape it. No other
plugin has the bug.
Test: request.test.mjs "a billing header joined with instructions loses
only its own line (#302)" takes the reporter's literal inputs (billing
"cc_version=2.1.300; cc_entrypoint=cli;" + "Preserve this task
instruction. SYSTEM_POLICY_SENTINEL"): joined block with cache_control,
joined string, separate blocks, billing only, billing plus blank lines,
on /v1/messages and /count_tokens, checks the exact system sent, that
messages and max_tokens are unchanged, and that a second pass of the
sent body is byte-for-byte; plus a header followed by Claude Code's
identity line.
Run:
- packages/factory: H=$(mktemp -d); HOME="$H" bun test (bun 1.4.2):
172 pass, 0 fail across 16 files.
- Broken by hand: with index.mjs at origin/main
|
||
|
|
3d355d349d |
zed 0.1.11: a {role: "system"} message inside an Anthropic request reaches Zed as user text where it was said, not as a role Zed refuses
Roy on Discord, Claude Code through magpie on a Zed subscription:
"API Error: 400 Zed: failed to parse Anthropic request: unknown variant
system, expected user or assistant".
Cause: Claude Code (2.1.288 on) writes {role: "system"} messages inside
messages[]: an empty one carrying a turn's effort as output_config, and
(2.1.296) one after tool results with its hooks' notices, <total_tokens>
and what the user typed while a tool ran. Anthropic's API takes them in
place. magpie's gateway passes them on as written (anthropic_shapes.go
mends only after a refusal matching `messages.N.role`, which Zed's serde
message doesn't), and the plugin's providerRequest "anthropic" case
forwarded them to Zed, whose Anthropic Role is user | assistant only.
Fix: providerRequest's anthropic case runs withoutSystemTurns. Each
system message's text goes, as text blocks (cache_control kept), into a
user turn at the same place: appended to the user message before it;
else after the leading tool_result blocks of the user message after it
(tool results must stay first); else a user message of its own. One with
no text (an effort alone) is left out; the request's top-level
output_config still carries the effort.
Why in place and not folded into the top-level system: the prompt cache's
prefix is tools, then system, then messages. Text appended to system on
each turn that has a notice changes the prefix ahead of every message, so
the whole conversation misses the cache from then on, while merging in
place changes only bytes at the conversation's tail, which the next
request repeats unchanged (the transform is deterministic per message).
It also keeps the meaning Anthropic's API gives the message: said at that
point in the turn, not standing instructions for the whole conversation.
magpie's own withSystemOnTop folds to the top for Command Code, which
refuses the role by name; that path never fires for Zed's wording.
Siblings, not changed: responses (OpenAI Responses) and chat (xAI Chat
Completions) both have system/developer roles in their own message
schemas, so a system message there is not this error; gemini has no
system role in contents (the AI SDK sends systemInstruction). None was
tried against Zed's cloud with a mid-conversation system message, and
there is no report of one.
Tests (system-role.test.mjs, built from Claude Code's shapes and
checking the provider_request the plugin hands Zed's /completions):
a hook notice after tool results joins their user turn after the
results and system stays as sent; an empty effort-only system message
is left out; system text before a tool-result user turn goes after the
results, and one after an assistant turn becomes a user turn. With
index.mjs reverted to
|
||
|
|
43ffb46018 |
agent: PiG (Pi in Go), with Magpie's endpoint and model catalog (#264)
New package @magpie-community/agent-pig 0.1.0, a connect-only Agent:
it manages the whole providers.magpie object in ~/.pig/agent/models.json
(name, baseUrl, apiKey, api openai-completions, models) and nothing else.
settings.json and auth.json are not touched; disconnect restores a prior
same-name provider or removes the provider whole. Models keep their ids,
names, image input, positive limits (output capped at the window), and
map Pi's seven thinking levels onto the model's efforts (off -> none,
unsupported -> null).
Re-review of head 7134b1038: both points of the 10-21 review are fixed.
The package README no longer names e2e scripts that aren't shipped, and
installs with `magpie plugin add @magpie-community/agent-pig`. Code is
unchanged from the reviewed 43fb5d927.
Run at this tree (PR squashed onto origin/main
|
||
|
|
397a890df5 |
devin 0.1.23: a reply with only usage or metadata is refused before the stream starts, not passed on as an empty success (#297)
By mameikagou. Reviewed at 0966b4b (comment on #297); squashed onto
origin/main
|
||
|
|
dc59000b1b |
qoder 0.2.26: mark the prompt for Qoder's cache as its client does (#290), and find a machine-wide Windows install's runtime-info
#290 (Codex side session on Ultimate read 0% from cache). Qoder's own
client (qoder-agent-sdk in Qoder.app 0.4.3, qodercli 1.1.75) sends, on
every agent_chat_generation request:
- cache_control {type: ephemeral} on the last non-thinking, non-tool
block of the last message when it is a user turn (none when the last
turn is tool results);
- each user turn's blocks as `contents` beside `content`;
- request_id / chat_record_id / request_set_id per request and a stable
session_id per conversation.
The plugin sent none of that, and gave a tool call without an id a new
random id on each request, so the prefix changed every turn. Now:
- cacheMarked() marks as above, without touching the caller's turns;
- session_id is a UUID-shaped sha256 of prompt_cache_key (Codex's
thread, which magpie forwards) or else of the system text and first
user turn; the key itself never goes out;
- an id-less call's id is sha256(turn, place, name, arguments).
Check-in (accomplish on Discord, 10-21: Qoder intl can't check in, CN
can). Only the international site needs Qoder's runtime-info helper;
on Windows only %LOCALAPPDATA%\Programs\Qoder was searched. A
machine-wide install under %ProgramFiles%\Qoder is now found too. This
is one possible cause, not a confirmed one: the reporter's error text
and OS are unknown.
Run at this tree (rebased on
|
||
|
|
15d536a3d0 |
minimax 0.1.3: the M3 family's real context and output limits (#250)
MiniMax Code's model list says 512K context / 128K output for MiniMax-M3, M3.1-Flash and M3.1-Flash-Preview (confirmed: GET /mavis/api/v1/models on agent.minimax.io and agent.minimax.cn answers that with no token). The author measured 1,048,576 input / 524,288 output on a live account on both sites. VERIFIED_LIMITS gives those three ids the measured pair in both the built-in list and the live list; M2.7 keeps what the list says. minimax 0.1.3. Run at head 20662230ca45eca72dab2d77f28631ef6e670718 (review, 10-22): - packages/minimax, sandbox HOME: 51 pass, 0 fail. - The two new/changed tests with origin/main's index.mjs: 2 fail (red without the change). - Head merged onto origin/main: full bun test 2076 pass, 0 fail; bun scripts/check.mjs ok. - Diff read in full: no new hosts, headers or credential handling. Not tried: the live limits were not re-measured here (no real account used). The output cap matches models.dev's minimax-cn entry (524,288). Whether input + max_tokens is checked against the window was not measured; any request that fit under the old 512K/128K still fits. The override wins over the live list, so a later vendor change to these ids needs a plugin release. |
||
|
|
515d94e3a2 |
codearts 0.2.1: signs only for its two hosts and follows no redirect, a callback without a code fails at once, fixes since #284 (#286)
The follow-ups from #284's merge review and fixes since: credentials are
signed only for snap-access.cn-north-4.myhuaweicloud.com and
opengw.developer.huaweicloud.com (one signFor every signed call passes),
and no signed or token request follows a redirect (redirect: "error" set
after the caller's init); a callback without a code fails at once and the
callback path is matched as sent; one renewal per refresh token per
account, and a transient renewal failure keeps the sign-in (503, kept);
the free model's TPM limit inside a 200 is a 429, not an empty reply;
benefit claims across Beijing midnight; Content-Length dropped from a
reshaped body; bounded queue polls that leave the queue after failed
polls; a busy callback port is retried. A check-in re-confirms only a claim
this plugin made and failed to confirm (kept for its Beijing day in the
account's state and the ledger's _unconfirmed key); a claim answering
id: null is never confirmed, as the IDE does.
Earlier review at cb14faf asked for three changes (re-confirm of id:null
claims, redirects carrying the security token, a test for leaving the
queue); 1c04a71 and 2447c5f answer them.
Run at the reviewed head 2447c5f9a118098e05439f96b1ff87a9bedc8d83, on
macOS, bun 1.4.2, node 24:
- packages/codearts: bun test 108 pass, node --test 108 pass.
- Whole repo at the head: 2033 pass, 0 fail; merged onto main
|
||
|
|
d324a96e1a |
kimi-work 0.1.5: tool schemas Kimi's moonshot check refuses go in a shape it takes (#287)
chai-j: every Codex message on Kimi Work failed, 400 "tools.function.
parameters is not a valid moonshot flavored json schema, details: <At
path '$defs.__schema20': when using $ref, type should be defined in the
referenced schema instead of the parent schema>". The plugin passed the
body through as sent. Codex's MCP and app tools are zod's toJSONSchema
with reused schemas as $defs, and zod 4 writes a schema derived from a
reused one as a $ref beside what it changed: z.number().min(0) reused,
then .int() and reused itself, is $defs.__schema1 =
{"type":"integer","maximum":…,"$ref":"#/$defs/__schema0"}. Reproduced
with zod 4.6.7; the fixture is its output.
magpie's own Kimi rewrites (kimiToolEnumTypes, kimiToolRefTypes) are
scoped to api.kimi.com/moonshot hosts and presets, so a plugin's
agent-gw.kimi.com requests never got them. moonshotTools does the class
in the plugin, on tools[].function.parameters only:
- $ref beside a type: a target with no $ref of its own is written in its
place with the parent's keywords over it (what zod's derived schema
means: .int() of min(0) is {type:integer,minimum:0,maximum}); otherwise
the parent's type is left out.
- type beside anyOf is left out (Kimi: "type should be defined in anyOf
items instead of the parent schema", measured in magpie 129d8b08a).
- enum/const with no type gets its values' type, [T,"null"] with a null
(magpie #886).
- an untyped $ref target gets the type its keywords or branches say
(magpie 129d8b08a). Unlike magpie's kimiToolRefTypes, a target that is
itself a $ref with keywords beside it (Codex App's
{"format":"uuid","$ref":…}) is left alone, so no type is put beside a
$ref.
A body with none of these goes byte for byte; a rewrite is deterministic,
so a cached prefix stays one. A Request or byte body is read as text.
Tests: tests/schema.test.mjs, with the zod fixture and Codex App's
automation_update parameters (magpie testdata) checked against the
refusal rules; 4 of its 7 tests fail on 0.1.4's index.mjs (the other
three guard the fixtures and pass-through). Package: 25 pass. Whole repo
the way CI runs it, HOME=$(mktemp -d) bun test at this head: 2056 pass,
0 fail. bun scripts/check.mjs kimi-work: ok.
Not tried: a real Kimi Work account (none here), so the rewritten tools
were never sent to agent-gw.kimi.com's validator, and the reporter's
literal __schema20 wasn't captured; the shape comes from zod's output
and the error text.
|
||
|
|
a20c1b9d54 |
devin 0.1.22: organizations under one email are kept apart, each with its own quota (#296)
Two Devin organizations under one email both answered GetUserStatus with
the same email, so the plugin saved both sign-ins as the same
metadata.email and magpie's host (settle, which matches on it) put the
second over the first. The account is now named "email · <organization>"
when Devin names an organization (devinInfo.accountDisplayName) that isn't
the email, with orgId and teamId in its metadata. The usage hook brings an
older sign-in's name and ids up to date through client.auth.set, which the
host scopes to that account. `devin auth status`'s Team ID must match
before the CLI is taken to answer for a key. An account with no
organization in its status is left as it was and nothing is written.
Existing users: on the next usage poll, a sign-in whose status names an
organization is renamed "email · <org>" once; its slot, key and plan stay.
metadata.orgId and teamId aren't read by magpie's host today; the slot
split comes from the distinct name. The magpie side (a CLI account's label
overwritten by `devin auth status`) is yetone/magpie#3198.
Run at the reviewed head 7d589ab45323ee46a03af0f4b496c2dc94e67ba4
(base
|
||
|
|
af360a529d |
workbuddy 0.1.29: a system prompt refused as an unapproved channel goes again as the user's instructions
Wing on Discord (10-21) got 400 11128 "Illegal API invocation from an
unapproved channel" from an agent we couldn't name, and so did others
(miaopasi; itsuki with dsh). FLAGGED rewords the lines we've met, so any
agent with a line not met yet is refused.
What WorkBuddy checks (real accounts on both builds, 2026-10-21, CN
glm-5.3 / deepseek-v4.1-flash, AI gpt-5.5 / glm-5.3):
- Only system and assistant messages are checked. Each refused line
(Claude Code's identity line, "Main branch (you will usually use this
for PRs): main", DeepSeek Harness's opening) was served as a user
message, as a user message's parts and as a tool result, and refused
again in the system message or an assistant message.
- An identity line is refused only at the start of a message (a leading
space or "Hi.\n" passes; the line at the end of omp's 10.5K prompt
passes). It is matched case-insensitively. "Main branch ..." is refused
anywhere. Whitespace must match exactly: a double space or a ZWSP
passes.
- With no system message, the AI build answers 11128 "first message is
not system prompt".
The change: on that refusal, the chat is sent once more with its system
prompt moved into the first user message, inside <instructions> tags,
and "You are a helpful assistant." as the system message. A later system
message becomes a user message where it stands. The refused system prompt
is remembered (up to 256), so that agent's next chats go moved without a
refusal first. FLAGGED stays, so lines we know still go as system. A
refusal that stands after the move still ends in REFUSED_HINT with
X-Magpie-Sign-In: kept, so no account is rested. The added text names no
one.
Run, with FLAGGED emptied in a copy so that only the move could pass:
- probe, the plugin's fetch with real accounts: the CC, Main-branch and
DeepSeek Harness lines each went 400 then 200 on CN glm-5.3, CN
deepseek-v4.1-flash, AI gpt-5.5 and AI glm-5.3. The second chat with
the same prompt was 200 at once.
- OpenCode 2.0.25 on workbuddy-ai glm-5.3 with an agent prompt opening
with Claude Code's line. Bridge log:
upstream 400 sys: "You are Claude Code, Anthropic's offici
upstream 200 sys: "You are a helpful assistant." next: user <instructions>...
It added power() to calc.py with tool calls.
- omp 18.9.1 on workbuddy deepseek-v4.1-flash with --system-prompt
opening "You are an AI agent powered by DeepSeek Harness" and holding
the Main-branch line: one 400, then four 200s moved. It added divide()
with a zero guard and ran it.
- HOME=$(mktemp -d) bun test in packages/workbuddy: 111 pass, 0 fail.
bun scripts/check.mjs: ok.
- systemasuser.test.mjs uses WorkBuddy's literal 11128 body. Run against
the 0.1.28 index.mjs, 7 of its 9 tests fail; the other two are guards
that nothing is sent again.
Not tried: Wing's own agent (unknown; "omp" by the name is a Discord
server tag), dsh on the CN build through the move, and how well each
model follows instructions from the user turn over a long session. They
followed them in the runs above.
|
||
|
|
1ea9223e83 |
grok 0.2.0: opt-in native X search (#263)
An option on the grok provider, "Native X search" (auth.options key
x_search, off by default), read through magpie.option on each fetch.
When on, a Responses request whose tool_choice is auto, or absent with
tools declared, is offered Grok's native {"type":"x_search"}. none,
required, a named tool, allowed_tools and an x_search choice add nothing;
an x_search already declared keeps its filters and isn't duplicated; a
request with neither tools nor a tool_choice is left alone.
Reviewed at 99e602006 (vectorisvector). Run at that head:
- HOME and TMPDIR in a scratch dir, bun test: 2040 pass, 0 fail;
bun scripts/check.mjs: ok; PR CI run 39532960081 green (attempt 1 was
only awaiting approval)
- broken by hand, each red: on by default 4 fail, option ignored 2, every
path 1, tool_choice ignored 5, duplicate x_search 1, inject after
tools filtered 1, both no-tools guards removed 1, non-array tools 1,
wrong provider id 1, no injection 10
- magpie gateway at ba319a758 with this plugin loaded (BASE pointed at a
fake upstream), option off/on/off: Chat, Anthropic and Gemini (whole and
streamed) with a function get x_search; their tools-off "none" and
Chat/Anthropic required, named and no-tools requests don't; Responses
auto (whole and streamed) gets it, none doesn't, an existing x_search
is kept once; no upstream body names magpie; an x_search_call item in
the reply doesn't reach Chat/Anthropic/Gemini clients
- one gap on magpie's side: an allowed_tools choice is dropped by the
gateway before the plugin can read it, so it gets x_search; filed as
yetone/magpie#3153
Not tried: a real Grok account.
|
||
|
|
aee6b9de5e |
grok 0.1.18: a tool_choice with no tools beside it is left out before Grok (yetone/magpie#3110)
magpie now hands a request that turned tools off with none declared
(Chat's tool_choice "none", Anthropic's {"type":"none"}, Gemini's
functionCallingConfig NONE) to a Responses plugin as tool_choice "none"
with no tools, so a plugin that adds a server-side tool (x_search, #263)
can tell it from no choice. Grok's backend refuses a tool_choice with no
tools ("A tool_choice was set on the request but no tools were
specified", yetone/magpie#378), which magpie's grokBody used to leave out
for the plugin. rewrite now leaves out any tool_choice with no tools, or
none left after the dropped types, as the built-in's grokBody does.
What was run:
- TMPDIR=<scratch> HOME=<scratch>/home bun test: 2018 pass, 0 fail.
(HOME outside os.tmpdir() trips zcode's isolated-home guard: 19 fail,
2 errors, all that guard; not this change.)
- bun scripts/check.mjs: passes.
- tool-choice.test.mjs against origin/main's index.mjs: 1 pass, 1 fail
(the lone-tool_choice case), green with this change.
Not tried against Grok's live backend.
|
||
|
|
d87dd8f3f9 |
zcode 0.1.20: a team's GLM Coding Plan signs in beside the account's own (#285)
An account with a GLM Coding Plan of its own and a seat on a team's plan could only reach its own plan: signedIn took the own plan whenever there was one and looked for a team seat only when there wasn't. ZCode itself defaults the same way but lets the user switch its plan picker to the team's plan (a "team-coding-plan" selection with the team's organization and project, read from ZCode.app's bundle). New sign-in method "ZCode: a team's GLM Coding Plan" (asks Z.ai or BigModel, as the key method does) signs in through the same ZCode flow and takes the team seat alone: the team project's zcode-team-api-key, as the existing team-only route already does. It is saved under "<email> (team)" so magpie's host keeps it as a second account instead of replacing the own-plan account of the same email. With no seat it fails with the reason and never falls back to the own plan. Existing sign-ins are unchanged. Run: TMPDIR=<scratch> HOME=<scratch>/h1 bun test (2016 pass, 0 fail); bun scripts/check.mjs (all ok). team.test.mjs goes red (2 of 4) with the onTeam argument dropped from the callback. Not tried against a real account with both plans (none at hand). |
||
|
|
3fd9625ae3 |
workbuddy 0.1.28: the "unapproved channel" hint names no one client, not only Codex and Claude Code (#279)
WorkBuddy's 11128 "Illegal API invocation from an unapproved channel" ended in "WorkBuddy refuses chats from Codex and Claude Code (their system prompt); ...". DeepSeek Harness's and Claude Desktop's chats are refused the same way (#279, #170), and Codex's and Claude Code's words are already reworded by FLAGGED, so the hint blamed the wrong clients. It now reads: WorkBuddy refused words in this client's prompt (most often its system prompt); use it from Hermes, OpenCode or Pi, or add another provider to this group "Prompt" rather than only "system prompt", as WorkBuddy reads every message (Claude Code's main-branch line was in its first user message). magpie's Routing page (WB_REFUSED in its routing client.js) has the same text word for word in the same change, so it still says the hint apart from WorkBuddy's own words. Run: HOME=$(mktemp -d) bun test from the repo root: 2012 pass, 0 fail. bun scripts/check.mjs: exit 0. With index.mjs put back to HEAD's, refused.test.mjs's "the hint is magpie's word for word, and blames no one client" fails (Expected the new text, received the old); restored, 14 pass. |
||
|
|
6579f0682a |
codearts 0.2.0: Huawei Cloud CodeArts (码道) coding plans, with Huawei Cloud OAuth sign-in (#284)
New package @magpie-community/opencode-codearts-auth 0.2.0 (Sakura-Natsu): Huawei Cloud CodeArts (码道) coding plans, with Huawei Cloud OAuth sign-in, request signing (SDK-HMAC-SHA256), a per-account cap of 3 in-flight sessions, per-account free/regular model lists, and requests signed only for https Huawei Cloud hosts. Reviewed head 31099104 (two rounds; the first asked for changes at a793ca5, all fixed here). Run at the reviewed head, macOS, bun 1.4.2, with a preload that allows only loopback network: - HOME=$(mktemp -d) bun test packages/codearts: 91 pass, 0 fail - HOME=$(mktemp -d) bun test (whole repo): 2011 pass, 0 fail - bun scripts/check.mjs: 21 ok - 10 parallel bun test --rerun-each 40 in packages/codearts: 0 fail - 22 hand breaks (signature, DPoP proof, 403 expired mark, session clamp, host check, per-account lists, callback server, refresh mark); 21 went red. The one green is the callback's prefix-path match (follow-up). Not tried against Huawei's real API (no credentials); sign-in, signature acceptance, session counting and metering rest on the author's use on two accounts. Follow-ups: list the exact Huawei hosts instead of *.myhuaweicloud.com / *.huaweicloud.com; fail at once on a callback with no code; drop the unused ticketId; exact callback path match. This is a new npm name, so its first publish needs an owner. |
||
|
|
b3afe11631 |
trae: stream.test breaks the connection by stopping its server, not by erroring the body (#268)
Cause: "a stream that breaks off" errored the fake's response body with
ctl.error(new Error("connection reset")). Bun prints a response body's
error on every run, even with an error handler on the server, so every
run of the file printed "error: connection reset" at that line while the
test passed. #268 read that print as a red. It was never a failure: 40
of 40 printed it and passed under load on origin/main.
The fake now stops its server mid-body, a real broken connection: the
plugin still ends with Trae CN's error and [DONE], and nothing is printed.
Run on macOS arm64, bun 1.4.2:
- origin/main: 8 parallel `bun test --rerun-each 40 -t "breaks off"`:
every run printed the error, 0 fail.
- This change: 6 parallel `bun test --rerun-each 30
packages/trae/stream.test.mjs` at load average ~55: 6 x 420 pass,
0 fail, 0 printed.
- `HOME=$(mktemp -d) bun test` from the root: 1920 pass, 0 fail.
`bun scripts/check.mjs`: ok.
Test-only, no version bump.
|
||
|
|
82afc36ad3 |
devin: identity.test waits for macOS's first-run check of its fake CLI before the tests (#268)
Cause: the fake devin CLI is a shell script written when the file loads,
and macOS checks a new executable the first time it runs (com.apple.
provenance; ~0.3s on an idle machine, measured, the second run 0.01s).
The first test that runs the CLI ("when Devin can't tell, ...") paid that
check inside its 30s bound, and on a loaded machine the check took longer.
Its CLI then outlived it and wrote "auth status" into the one shared
cli.log, which the next tests read as their own call list.
Now beforeAll runs the fake once and waits for it to exit (the state, not
a duration; a 10-minute hook bound only so a broken exec can't hang the
run), so no test's time holds the check. Each test's runs go to a log of
its own (FAKE_LOG), so a run a test left behind can't land in the next
test's list.
Run on macOS arm64, bun 1.4.2:
- Injected: the fake slept 35s on its first run only (a slow first-run
check). origin/main's test: red, "when Devin can't tell" timed out after
30000ms, as in the issue. With this change: 11 pass, 0 fail (35.6s).
- Loaded: 6 parallel loops of 10 fresh `bun test
packages/devin/identity.test.mjs` (each a new script, so each pays the
check) at load average ~55: 0 of 60 runs failed; earlier 8 x 15: 0 of 120.
(--rerun-each doesn't apply: the plugin's per-key caches outlive a rerun,
red on origin/main too.)
- `HOME=$(mktemp -d) bun test` from the root: 1920 pass, 0 fail.
`bun scripts/check.mjs`: ok.
Test-only, no version bump.
|
||
|
|
c845b17e9c |
cursor: http1.test counts a Run when its first message comes, not when its stream is read (#272)
Cause: the fake agent counted runs++ when the server's "stream" event fired. In the region test the first Run stalls (mode "stall"), the plugin gives up at H2.wait and goes on over HTTP/1.1, and the test then sets mode "answer". On a loaded machine the server can read the stalled Run's HEADERS only after that switch, so the stale stream was taken as a second Run: ag.runs 2, expected 1. "Runs kept on HTTP/1.1 try HTTP/2 again once H2.retryAfter has passed" has the same stall-then-answer shape. The plugin is right; the fake miscounted. A Run now counts once its first message arrives (the plugin writes it only after the head, so a stream whose client gave up never brings one), and a stream already destroyed when it is read isn't answered. Run on macOS arm64, bun 1.4.2: - Injected: the fake held the first stream and emitted it the moment the test set mode "answer". origin/main's test: red, Expected 1 Received 2, the issue's output. With this change: green. The retryAfter test under the same injection: red on origin/main, green now. - Loaded: 8 parallel `bun test --rerun-each 15 packages/cursor/http1.test.mjs` at load average ~50: 8 x 240 pass, 0 fail. - `HOME=$(mktemp -d) bun test` from the root: 1920 pass, 0 fail. `bun scripts/check.mjs`: ok. Test-only, no version bump. |
||
|
|
f5548bd5ca |
qoder 0.2.25: qoder.com's sign-in sends no redirect_uri, so Qoder.app isn't handed the page (#276)
SITES.qoder asked qoder.com's device page for redirect_uri=qoder-app://, the desktop app's own scheme (Qoder.app's Info.plist registers qoder and qoder-app). On a Mac with Qoder.app installed the page's last hop opened the desktop app instead of staying in the tab, while the plugin polls openapi.qoder.sh for the device token and needs no callback at all. Qoder's own clients treat the parameter as optional: Qoder.app's app.asar adds redirect_uri only when its config has one (authRedirectUris: stable qoder-app://, canary qoder-canary://), and Qoder's CLI (@qoder-ai/qodercli 1.1.75, bundle/qodercli.js) builds /device/selectAccounts from challenge, challenge_method, nonce, machine_id and client_id alone, then polls /api/v1/deviceToken/poll. qoder.com now gets the same: no redirect_uri, as qoder-cn already does. cn.test.mjs's "qoder.com's sign-in is as it was" pinned the bug (redirect_uri == qoder-app://); it now checks there is none. Run: - packages/qoder: HOME=<scratch> bun test: 167 pass, 0 fail. - Broke it by hand (redirect back to "qoder-app://"): the #276 test in cn.test.mjs fails (Expected false, Received true), 11 pass 1 fail. - Repo root, as CI: TMPDIR=<scratch> HOME=<scratch>/home2 bun test: 1919 pass, 1 skip, 0 fail across 173 files; bun scripts/check.mjs ok. Not tried against a real Qoder account here. The reporter (asuan-dev) says the same one-line change on 0.2.21 signed in three accounts and left the page on "Sign in success". |
||
|
|
7a74416a4d |
cline 0.1.10: pinUpstream pins glm-5.3-flash through OpenRouter's provider.only (sdytman on Discord)
The plugin's side of magpie d2c434b5a. Cline sends glm-5.3-flash through
OpenRouter directly, not Vercel's AI Gateway, and OpenRouter ignores
providerOptions.gateway.only, so pinned() gave it ["zai"] where nothing
reads it. OpenRouter reads a top-level provider.only with its own slug,
"z-ai" for Z.AI. MAKERS is now magpie's clineMakers table: glm-5.3-flash
by exact name -> provider.only ["z-ai"]; deepseek* -> providerOptions
["deepseek"] (deepseek-v4.1-flash and -1017 go through Vercel); glm* ->
providerOptions ["zai"] (glm-5.3-flashx, glm-5.3 stay there). pinned()
returns {upstream, openRouter} or null. pinBody appends the field at the
body's end so the cached prefix is unchanged, and leaves a body naming
provider or providerOptions itself as sent.
Tests: "pinBody pins glm-5.3-flash by OpenRouter's provider.only" and the
loader test now sending glm-5.3-flash; both red on the old index.mjs
(providerOptions zai, no provider), green with the change. Not tried with
a real ClinePass request: no account here.
Run on origin/main
|
||
|
|
4af310cc57 |
qoder 0.2.24: Qoder's 400 "Error in upstream response" is a 502, so magpie retries or falls back (SlouchyQuill507 on Discord)
SlouchyQuill507 (Discord, qoder-cn) reported Qoder failures of the model's
own vendor, "Error in upstream response", reaching magpie as a 400 invalid
request: the client's fault, never asked again or of another account.
failure() now maps a message saying "Error in upstream response" to a 502
(no X-Magpie-Sign-In, the account untouched), after the queue, quota and
request codes, so a 400 with one of Qoder's request codes (406, 416, ...)
and any other 400 stay 400. It covers an HTTP 400 and a 400 in the
stream's statusCodeValue envelope, JSON or plain text. magpie still tells
an overflow that fails this way apart by its size (tooLongUnsaid takes 502
as well as 400).
Test: usage.test.mjs "Qoder's 400 \"Error in upstream response\" is a
502" - fixtures from the reported literal text, four shapes through the
loader's fetch, plus genuine 400s kept. Red on the old index.mjs (400 for
each), green with the change.
Run on origin/main
|
||
|
|
6fd976abae |
workbuddy 0.1.27: DeepSeek Harness's identity line is reworded, not refused as 11128 (#279, #280)
Run on origin/main
|
||
|
|
d41a074ba3 |
qoder 0.2.23: Cosy-Version claims the desktop app's worker runtime, 1.1.69 (#281)
Run on origin/main
|
||
|
|
82452c58d8 |
workbuddy: reword DeepSeek Harness's identity line WorkBuddy refuses (11128) (#280)
DeepSeek Harness (dsh) opens every system prompt with "You are an AI agent powered by DeepSeek Harness." WorkBuddy refuses such chats as 11128, "Illegal API invocation from an unapproved channel". A FLAGGED rule now rewords that line to "You are an AI agent that helps the user with programming tasks." The new wording names neither magpie nor WorkBuddy. Fixes #279. The issue stays open until the reporter confirms. Verified at the reviewed head 3d275794edfccaf4fdafa75729c61cdb7015b5a5: - The fixture is DSH's own line. The installed @deepseek-ai/dsh 0.2.0-rc.2 package dsh-system-prompt documents it as the fixed first-party opener at order -1000 (includeHarnessIdentity, default true), and its text is exactly "You are an AI agent powered by DeepSeek Harness." - The new unflag.test.mjs lines fail against main e2c3a35's index.mjs (Received: "You are an AI agent powered by DeepSeek Harness. Be brief.") and pass with the change. - packages/workbuddy `HOME=$(mktemp -d) bun test` with the change on main: 101 pass, 0 fail. - Not tried: a live WorkBuddy request from DSH. The reporter's account and smart-open/TraeWorkAssistant#125 tie the refusal to this line. |
||
|
|
d87950e1d7 |
qoder: claim the desktop app's Cosy-Version 1.1.69, not the CLI's 1.1.49 (#281)
Cosy-ClientType 10 says the desktop app, so Cosy-Version (and the signature's cosyVersion and the session's business.version, which share the constant) now carry the version that app's worker runtime sends: 1.1.69, not the CLI's 1.1.49.
Verified at the reviewed head 62c3f162ba06100383f765c601044cbcbc725364:
- Qoder's update feed (download.qoder.com.cn/qoder-app/releases/latest-mac.yml) names 0.4.8, build 79743374, released 2026-10-14. Range-read app.asar out of that release's Qoder-mac-arm64.zip: its transport config says "qoderCliVersion": "1.1.69", "sdkVersion": "1.0.52". The locally installed 0.4.3 says 1.1.64, so the number does follow the app.
- The 1.1.69 worker runtime (download.qoder.com/qodercli/releases/1.1.69/qodercli-worker-runtime-darwin-arm64.tgz, runtime-info.json version 1.1.69) sets "Cosy-Version" from its own version constant ("1.1.69") in its header middleware, so the desktop app's requests carry 1.1.69.
- packages/qoder `bun test` at the PR head: 157 pass, 0 fail; with the change applied on main
|
||
|
|
e2c3a35447 |
devin 0.1.21: a request past 8 KiB goes gzipped, as the devin CLI sends it (#275)
Run on origin/main
|
||
|
|
a900bab104 |
qoder 0.2.22: a tool result whose call lost its id answers that call, not an orphan (#277, #278)
Run on origin/main
|
||
|
|
4fd68ba046 |
devin: gzip a Connect request frame past 8 KiB, as the devin CLI does (#275, BGMYE)
Devin's nginx turns a GetChatMessage body past 10 MiB away with 413, so a
long turn failed. A Connect frame's message is now gzipped (flag 1,
Connect-Content-Encoding: gzip) past 8 KiB, as the devin CLI sends it.
Review commit da6c664 on top of 05d8a65, from the official client: the
devin CLI 3000.11.92, run in a sandbox through a logging proxy, sends 8,083
bytes plain and 8,333 gzipped, names the encoding only on a gzipped frame,
and sends no Connect-Accept-Encoding. The PR's 64 KiB threshold, header on
every request and Connect-Accept-Encoding were changed to match.
Run at da6c664fa917ee995a10a457a10fb94ad743e8ab: bun test in packages/devin,
98 pass 0 fail; bun scripts/check.mjs devin ok. The new tests are red on
main
|
||
|
|
9c34e006c5 |
qoder: a tool result whose call lost its id answers that call, not an orphan (#278, Alarak-Alex)
Qoder refuses a whole request when a tool turn answers no call of the turn
before it ("Messages with role 'tool' must be a response to a preceding
message with 'tool_calls'"). qoderMessages gave an id-less call a fresh id
while its result kept the client's, so the pair never matched (#277).
Now a call without an id gets one, a result naming a call of its turn
answers it, a result whose id was lost answers the earliest open call that
no other result of the turn names, and a result with no call left (or one
after the assistant's own words) is carried as text in the user's turn.
A well-formed history is unchanged.
Review commit d2a8652 on top of 76bb20b: a lost id no longer takes a call
another result names (calls a, b; results "lost", "a" swapped the outputs),
and a result after an assistant text turn is text, not a tool turn.
Run at d2a865272c6cd01c9bd9cf54d2b399d5b08102fc: bun test in packages/qoder,
166 pass 0 fail; bun scripts/check.mjs qoder ok. The PR's four pairing tests
are red on main
|
||
|
|
f906a22600 |
autoclaw 0.2.4: a 403 for a spent quota is a 429 with the gateway's words, not 登录已失效 (#274)
The CN managed gateway answers an exhausted free quota with
403 {"code":810000,"message":"GLM-5.3 免费额度已用完,开通连续包月会员继续使用"};
the reporter's same token got as far as "400 非法模型" with an unknown model,
so the sign-in is good. Both chat paths read every 401/403 as a dead
sign-in, so magpie showed 登录已失效 and sent the user to sign in again.
A 403 whose JSON body carries code 810000, or a message saying the quota or
balance is spent (额度, 余额不足, 用完, 用尽, quota, exhausted), now goes on as
a 429 with "AutoClaw: <the gateway's message>" and X-Magpie-Sign-In: kept. On
the overseas path such a 403 isn't asked of the second host. A 401, and any
other 403 (no body, another code), is still the sign-in, as before.
Run at this commit on origin/main
|
||
|
|
5ec8377093 |
trae 0.2.18: native tool turns (#257), a result with no output isn't empty (#251), no tools keeps the text form
Releases #257 (WuJian1421), #260 and #273 (moxuanchen), with three fixes on
top of #257's native tool turns:
- A tool result with no text went out as an empty text part. wangjianjq
measured on live Trae CN (#251) that Trae then refuses the whole request
with 4027 ("insufficient tool messages following tool_calls message"),
for either of two parallel results; " " or "0" passes. An empty result
now goes as "(no output)", or "(the result's image follows)" when its
image rides the user turn after the run. Credit wangjianjq (#251).
- A request whose body names no tools (none sent, or tool_choice "none",
such as a summary) still sends past calls and results as text, as 0.2.17
did: every live run of the native turns carried the tools in the body.
- A tool result answering no call the history sends goes back as a user
text turn ("Result of ... (call id)"), not as a tool turn naming no call.
- A Windows APPDATA spelled with other case, separators or a trailing
separator is the same root as the home's AppData\Roaming (test for #273's
fix; it fails on 0.2.17's clientStoragePaths).
Run at this commit on origin/main
|
||
|
|
c7a7379733 |
trae: the two Windows roots of the client's storage.json are one when they name the same folder (#273, moxuanchen)
clientStoragePaths compares its two Windows roots (APPDATA and the home's
AppData\Roaming) ignoring separator, trailing separator and case, so the same
storage.json isn't read twice; the path test compares with this system's
separator, so it passes on Windows.
Run at the reviewed head 08b52ad, merged with #257 and #260 on main
|
||
|
|
40d7c528fb |
trae: a claim's extra_credits alone, the reasoning an empty field hid, a name that grows, the realm in an error (#260, moxuanchen)
A check-in claim answering extra_credits alone is credited (NaN before); an
empty reasoning_content no longer hides the event's reasoning; a native call's
name snapshot that grows takes the place of its first piece; a Global reply's
error names Trae Global.
Run at the reviewed head 2a0a835, merged with #257 and #273 on main
|
||
|
|
0b82ab8f6c |
trae: a tool call history goes back as the turns Trae made, not as text (#257, WuJian1421)
Trae accepts an assistant tool_calls turn and a role:"tool" result turn on
llm_utils_chat, and answers such a history with native calls; the text-form
bridge prompt is dropped. Assistant text folds into the calls turn after it,
consecutive calls turns join one list, a nameless call is dropped with its
result, and a tool result's images ride a user turn after the run of results
(Doubao-Seed doesn't read an image_url in a tool turn). Refs #38.
Run at the reviewed head d5d755a, merged with #260 and #273 on main
|
||
|
|
68170b3ebe |
workbuddy 0.1.26: a model that says only supportsReasoning and a default effort lists low, high, max and that default (#255)
kylesean (#255): fast-model, balanced-model, primary-model, deepseek-v4.1-flash(-sg), gemini-3.5-flash, kimi-k3 and kimi-k2.6 carry supportsReasoning: true and reasoning.effort in /v3/config, but no reasoning.supportedEfforts, so they were listed with no levels and as not reasoning. effortsOf gives such a model low, high and max plus its own default, in order. All eight are onlyReasoning, so none gets "none". Models that list their efforts are unchanged. The fixture is WorkBuddy AI's own /v3/config read today (descriptions left out). Under a real WorkBuddy AI account, low, high and max were answered 200 with reasoning on fast-model, deepseek-v4.1-flash-sg, kimi-k3 and gemini-3.5-flash; the other four weren't tried. Run (sandbox HOME): - HOME=$(mktemp -d) bun test packages/workbuddy: 101 pass, 0 fail - bun scripts/check.mjs workbuddy: ok; git diff --check clean - Broken by hand (effortsOf back to supportedEfforts only): efforts.test goes red. |
||
|
|
4564e890b2 |
factory 0.1.36: a content_policy_rejected 403 says Factory's check reads the whole conversation, and isn't sent again
doubl4door (Discord, factory 0.1.34): Claude Code on Factory's Opus got 403 "This request was blocked by Factory's usage policy check" (code content_policy_rejected), and the plugin's hint pointed at the org's model policy and plan. droid 0.245.0 tells this refusal apart by that code, only when Factory sent no x-factory-upstream-error header, and says the check covers the whole conversation. contentRefused does the same: explain() says to start a new session or remove the quoted text, and mendOrg's whoami-and-resend is skipped, since the same conversation is refused again under any org. Other 403s are handled as before. Run (sandbox HOME): - HOME=$(mktemp -d) bun test packages/factory: 171 pass, 0 fail - bun scripts/check.mjs factory: ok; git diff --check clean - Broken by hand: without the mendOrg skip 2 of content-policy's 4 tests fail; without explain's branch 3 fail. Not tried against Factory's server (no Factory account here); the body shapes tested are code at the top level and under error. |
||
|
|
97aea1739a |
factory 0.1.35: escape client phrases Factory's proxy gate refuses, in every body (#258, RoacherM)
Factory's proxy gate refuses a request whose body carries certain client phrases (pi's opening and compaction sentence anywhere; Claude Code's identity, env line, billing header, compaction opening and GLOBAL_INSTRUCTIONS inside tool output). The phrases now live in client-phrases.json; sanitizeBody escapes each phrase's first character as \uXXXX in every request body (only re-stringified when something changed), and the Gemini path escapes them too. Version 0.1.35. Run at the reviewed head f0e78b4 (sandbox HOME): - HOME=$(mktemp -d) bun test packages/factory: 167 pass, 0 fail - bun scripts/check.mjs factory: ok; git diff --check clean - npm pack lists client-phrases.json - Broken by hand: without sanitizeBody 5 new tests fail; without the Gemini escapeDeep 1 fails. Not tried against Factory's server (no Factory account here); the author's real-account A/B is in the PR. |