6b5c19d50e70c5619f66cf10cdd7053202470bbf
1251
Commits
| Author | SHA1 | Message | Date | |
|---|---|---|---|---|
|
|
6b5c19d50e |
cursor: a content refusal is a request error, not a sign-in (#1179)
Cursor labels a refusal of the request's content as unauthenticated ("The provider refused to serve this request based on the content"). The plugin turned that into a 401 and asked the user to sign in again, though the account serves other requests. statusOf now matches that exact wording before the sign-in rule and answers 400 with Cursor's own message; the sign-in is kept. Every other unauthenticated error still asks for a sign-in. cursor 0.2.48.
Run at the reviewed head e43311357 merged onto origin/main
|
||
|
|
2ede7d53c1 | agy-cli 0.1.64: startup diagnostics aren't sign-in talk (#1177) | ||
|
|
d49ad432f4 |
agy-cli: startup diagnostics aren't sign-in talk; a hung ended sign-in still stops (#1177)
agy-cli's usage reader keeps the hung sign-in guard and stops reading agy's startup diagnostics as sign-in talk.
agy logs unauthenticated cache lookups (glog lines, "I1115 12:00:00.000 ...]") before it loads its keyring, so a timeout whose only output was those lines was marked as a dead sign-in. The reader now takes those lines out before testing for sign-in talk. A timeout with an ended token that prints nothing, or real sign-in talk (accounts.google.com, "Waiting for browser authentication"), still marks that stored sign-in dead, so a signed-out agy is never restarted in the background until the credential changes (the 235 browser opens a day that
|
||
|
|
a05a0ef85c |
workbuddy 0.2.35: a WorkBuddy AI chat is reported on /v2/report as its client reports one (#691)
xxhhlk found that the growth event alone (0.2.31+) didn't earn the daily
credit: the same day, the account that chatted in WorkBuddy AI's own client
got it and three accounts chatting through the plugin didn't. Their capture
of WorkBuddy AI 5.9.4 shows three POST /v2/report calls around one user
send (chat_message_send; chat_request_send, chat_message_response,
chat_message_status, chat_request_response; agent_task_completed,
chat_response_complete), each answered {"code":0,"msg":"OK"}.
The plugin now sends the same three reports for the user's own chats, built
from the redacted field list in the issue, once the reply has been read to
its end: token counts and finish reason come from the reply's last usage
chunk. A step ending in tool calls reports its message only; the request's
events go with the step that ends the turn; chat_request_send with the step
the user's message opened. Not for a reply cut off, a refusal, a key
account or the China build. Fire and forget: a failed report is dropped and
the answer never waits on it. No message of the plugin's own is sent.
Run (mote, HOME=$(mktemp -d)): bun test in packages/workbuddy, 383 pass;
bun scripts/check.mjs workbuddy ok. New report.test.mjs (5 tests): the
three bodies in order with ids, tokens and headers, tool-call steps, the
cases that send nothing, and the reply passing through byte for byte.
sent.test.mjs's recorder answers /v2/report itself, so 0.1.43's chat bytes
are still held.
Broken by hand: no send at the stream's end -> report.test.mjs 2 fail.
Not tried: a real WorkBuddy AI account (whether the credit follows needs a
day's comparison; asked the reporter). Not sent: the client's
POST /console/as/conversations/<id> activity update and /v1/traces; the
conversation may not exist on the console side for a plugin chat.
|
||
|
|
74998a9232 |
agy-cli 0.1.63: run_command's toolSummary no longer collides with agy's own (#1174)
Releases
|
||
|
|
491cea357d |
agy-cli: run_command's toolSummary no longer collides with agy's own (#1174)
agy-cli forwards a run_command tool that declares toolSummary when agy adds its own. agy adds a required toolSummary to the MCP tools it loads. When the client's own run_command already lists toolSummary as required, the duplicate makes the schema invalid and the toolbox fails to start. The bridge now drops toolSummary from run_command's required list when it lists the tool. On the way back it fills in "Run command" when agy kept the summary to itself and the client's schema declares the property. A summary the model sent is kept, and a schema without the property is left alone. Run at 52b77b78 on mote: packages/agy-cli `bun test` 25/25. Broken by hand: with main's index.mjs, the new tool-summary test goes red. The author checked a live agy client: run_command is the only tool that requires toolSummary, and an agy-to-magpie-to-agy session ran `pwd`. Not tried here: a live agy session, since the local agy account is disabled. Co-authored-by: andrew-zyf <andrew-zyf@users.noreply.github.com> |
||
|
|
b840915abc |
agy-cli 0.1.62: magpie's sign-in installs agy where there is none, and the plugin keeps that copy current (niuniu_8964 on X)
In magpie's Docker image there is no agy, so Sign in failed with "agy CLI not found". The plugin now declares auth.cli (magpie 0.1.4246's hook, engines.magpie raised to it): when agy isn't found, magpie's sign-in shows "Installing Antigravity CLI…" and the plugin installs it the way Google's install.sh does: the same manifest, the download checked against its sha512, the antigravity binary taken out of the tarball, tried with --version, then renamed into place. It goes into the data folder ($XDG_DATA_HOME/magpie-agy-cli/agy, ~/.local/share without it, %LOCALAPPDATA% on Windows), which in the container is on /config, and is searched last, so an agy the user installed wins. That copy is kept current a minute after start and every 6 hours, only while it is the one in use and not when AGY_CLI_DISABLE_AUTO_UPDATE is set. Also: findAgy handed out a cached path to an agy removed since, so the sign-in tried to spawn it (ENOENT) instead of installing it; and a write loop left an error listener per wait (MaxListenersExceededWarning on the 260MB download). Account code is unchanged. Run, on mica: bun scripts/check.mjs ok; agy-cli bun test 34/34 under a temp HOME (install.test.mjs: 10, against a local server). A6b red on the old findAgy, green now. Real use in magpie's Docker image (xiaomi-gpu, linux amd64), with magpie 0.1.4246's tree: `magpie plugin login agy-cli 1` and the browser UI's POST /api/plugin-signin both installed agy 1.5.9 into /config/data/magpie-agy-cli and went on to agy's Google link; it survived a restart; agy.version set back to 1.5.0 was updated a minute after start. Not tried: finishing the Google sign-in in the container, a real install on macOS, Windows or musl. |
||
|
|
b6a996478f |
cloudflare-workers-ai 0.0.6: provider.models keeps the fell-back mark of a list kept after a failed read
discovery.forDisplay marks the kept list, but the (Paid) renaming rebuilt it with Object.fromEntries and lost the mark.
Archivemylife on X (agy-cli): "配置后报存提示成功,再打开还是全部都启用".
The same class as agy-cli 0.1.61: a list that isn't the account's own,
handed back as if it were, makes magpie relist on it and drop the models
the user picked that aren't in it. Marked with
Symbol.for("magpie.fellBack"), magpie's plugin host keeps the last good
list (keepListed) and the picks.
Run (mote-run, HOME=mktemp -d): node --test 24 pass on this change: all pass.
Red on the old code with the new test: "provider.models after a failed read keeps the fell-back mark" fails.
Not tried: a real account.
Plugins root bun test (HOME=mktemp -d) at this head, rebased on
|
||
|
|
209afdbf68 |
loomy 0.1.10: a refusal in a 200, or a failed read, gives the given list marked fell back
A non-OK business code in a 200 answer (the host saw an OK fetch) returned the static table unmarked; so did a throw. fake.mjs can now answer the models read with a code.
Archivemylife on X (agy-cli): "配置后报存提示成功,再打开还是全部都启用".
The same class as agy-cli 0.1.61: a list that isn't the account's own,
handed back as if it were, makes magpie relist on it and drop the models
the user picked that aren't in it. Marked with
Symbol.for("magpie.fellBack"), magpie's plugin host keeps the last good
list (keepListed) and the picks.
Run (mote-run, HOME=mktemp -d): index.test.mjs 34 pass on this change: all pass.
Red on the old code with the new test: "a refusal in a 200 gives the static table marked" fails.
Not tried: a real account.
|
||
|
|
73d1f89822 |
inkstone 0.1.6: the declared models kept after a failed catalogue read are marked fell back
A failed /v1/models read returned the declared set; marked on a copy (non-enumerable, so the list itself is unchanged).
Archivemylife on X (agy-cli): "配置后报存提示成功,再打开还是全部都启用".
The same class as agy-cli 0.1.61: a list that isn't the account's own,
handed back as if it were, makes magpie relist on it and drop the models
the user picked that aren't in it. Marked with
Symbol.for("magpie.fellBack"), magpie's plugin host keeps the last good
list (keepListed) and the picks.
Run (mote-run, HOME=mktemp -d): api.test.mjs 15 pass on this change: all pass.
Red on the old code with the new test: "a catalogue read that fails keeps the declared models" fails.
Not tried: a real account.
|
||
|
|
42acd18435 |
doubao-work 0.1.13: the built-in models, before the menu is read, are marked fell back
With Doubao closed or the menu read failed, models() served the built-in three (or an older cache) unmarked.
Archivemylife on X (agy-cli): "配置后报存提示成功,再打开还是全部都启用".
The same class as agy-cli 0.1.61: a list that isn't the account's own,
handed back as if it were, makes magpie relist on it and drop the models
the user picked that aren't in it. Marked with
Symbol.for("magpie.fellBack"), magpie's plugin host keeps the last good
list (keepListed) and the picks.
Run (mote-run, HOME=mktemp -d): doubao-work.test.mjs 59 pass on this change: all pass.
Red on the old code with the new test: "models() and usage never start Doubao" fails.
Not tried: a real account.
|
||
|
|
6c6677d0f3 |
devin 0.1.42: the snapshot list, served when Devin can't be asked, is marked fell back
When neither GetCliModelConfigs nor the devin CLI named the account's models, the models hook served the snapshot list (with images) unmarked.
Archivemylife on X (agy-cli): "配置后报存提示成功,再打开还是全部都启用".
The same class as agy-cli 0.1.61: a list that isn't the account's own,
handed back as if it were, makes magpie relist on it and drop the models
the user picked that aren't in it. Marked with
Symbol.for("magpie.fellBack"), magpie's plugin host keeps the last good
list (keepListed) and the picks.
Run (mote-run, HOME=mktemp -d): images.test.mjs 5 pass on this change: all pass.
Red on the old code with the new test: "when Devin can't be asked" fails (fellBack undefined).
Not tried: a real account.
|
||
|
|
e4c825b554 |
agy-cli 0.1.61: picks stick, and a second Google account can be signed in
Archivemylife on X: "没法sign in第二个账号,点击sign in again后过一会就
恢复原状,没有任何报错" and "配置后报存提示成功,再打开还是全部都启用".
Picks: while agy's model list wasn't known yet (agy missing, signed out,
or the probe still running), the models hook served the static or
Gemini-only catalog as if it were the real list. magpie relisted on
that, dropped the user's picks that weren't in it, and the editor came
back with every model on. The hook now marks such a list with
Symbol.for("magpie.fellBack"), so the host keeps the last good list and
the picks.
Second account: "Sign in again" with agy already signed in succeeded at
once with the stored sign-in, so nothing changed and nothing said why.
agy holds one Google account in its keyring. A second method, "Switch to
another Google account (agy holds one)" / "换一个 Google 账号(agy 只能
登录一个)", always runs agy's Google login, which replaces the stored
account. The sign-in result carries the stored id_token_email, so the
account is named by its email instead of "API key", and a switch shows.
READMEs say agy keeps one account.
magpie needs no change: it already keeps the last good list for a list
marked fell back, and shows a method picker for two methods.
Run:
- packages/agy-cli bun test (HOME=mktemp -d): 24 pass, 0 fail.
- test/smoke.mjs (AGY_BRIDGE_STORED_SIGNIN=skip): all ok.
- Red on the old index.mjs/signin.mjs with the new tests: signin red
(emailOf missing), catalog 3 fail (the three new tests), smoke BAD on
the two-methods check.
- Plugins root bun test (HOME=mktemp -d) on Linux (wsl-run,
magpie-desktop) at this tree: 8754 pass, 19 skip, 0 fail.
- Real magpie GUI in a sandbox HOME with this plugin installed: picked
two models, deleted the plugin's models.json and killed the plugin
host, POST /api/provider/models: before, count 2 and the pick
dropped; after, count 5, the pick kept, nothing delisted. "重新登录"
shows both methods in en and zh, no page errors, and the account is
named by its gmail address.
Not tried: signing a real second Google account in (it would change the
live agy keyring), Windows and Linux agy.
|
||
|
|
13a6f4c226 |
kiro 0.1.40: Kiro sign-ins made elsewhere are imported from a JSON file or paste by their refresh token (#1132)
Accounts signed in to Kiro elsewhere (Kiro Account Manager lists and exports, kiro2api, the Kiro IDE's kiro-auth-token.json with its <clientIdHash>.json client, kiro-cli's tokens) are imported in magpie's "Import accounts from a file…" by their refresh token. Each is renewed where its kind is renewed (Google/GitHub at prod.us-east-1.auth.desktop.kiro.dev, Builder ID / Identity Center at oidc.<region>.amazonaws.com with its client) and named by the email Kiro has for it. Other providers' entries in a sign-in store are skipped, duplicates are renewed once, at most 100 a time. A region or profile ARN read from a file can't pick a host any more, on every route (import, the IDE's file, kiro-cli's DB, a saved sign-in): regionOf takes only Kiro's API regions (us-east-1, eu-central-1) from a profile, arnOf keeps only arn:aws:codewhisperer:<region>:<12 digits>:profile/<id> (else Kiro is asked for it), and oidc/runtime/management/refreshURL refuse a region that isn't an AWS region's shape. Version 0.1.40: #1156 published 0.1.39 first, so main was merged into the branch and the version raised (f8af341f). With arnOf, #1156's test fixture ARN (account "1") was dropped and its reasoning-replay test went red on the merge; every test fixture ARN now has a 12-digit account (0b899428). What was run, on mote with HOME=$(mktemp -d) as CI: - PR head 41938ff0, packages/kiro: bun test, 202 pass, 0 fail. - The earlier review's repro (imported Google sign-in, fresh access token, profileArn arn:aws:codewhisperer:attacker.example/#:1:profile/X): at 41938ff0 every request goes to *.kiro.dev, nothing saved with the crafted ARN. With 5dd9e682's index.mjs put back it and all five profile-host.test.mjs tests are red (hosts [management.attacker.example]). - Merged head f8af341f (main at |
||
|
|
2523b43a59 |
agy-cli: a test that Claude Code's prompt reaches agy with no turned-away line (#1151)
niyezaimenglima on X (Windows, Claude Code through agy-cli): a 429
RESOURCE_EXHAUSTED with quota left, while Grok Build on the same models
works. Same case as KevinXC5's #1151 run, which still matched Claude
Code's "You are an interactive agent ..." line in agy's system
instruction on 0.1.58. 0.1.60 (
|
||
|
|
baeb95a43e |
agy-cli 0.1.60: the client's system prompt goes in the first turn, not appended to agy's
bzs_1 on X (on 0.1.58): with an agent's system prompt the request is answered 429; with agy's own prompt alone it works. The bridge sent the client's system prompt as session _meta.antigravity.systemPrompt.append, which reaches Google inside the system instruction, and Antigravity turns away a growing set of identity lines there (#1151): reworded ones too ("You're an interactive agent ..."). The user-turn cloak's own record shows only Codex GPT-5 lines refused in a user turn. Now the prompt goes in the first user turn as <external_system_instructions>, through the same outgoing rewording and user cloak as the rest of that turn, and agy's system instruction stays its own. AGY_BRIDGE_SYSTEM_APPEND=1 brings the append back. A parked session records instructionsInSession, and one parked under the other route (or before this field) is not resumed, so a session never ends up with the prompt in both places or in neither. 0.1.59's 400 for a turned-away prompt ( |
||
|
|
84c2a47949 |
agy-cli 0.1.59: a turned-away system prompt fails as a 400, not a 429 the client retries (#1151)
KevinXC5's run on 0.1.58: the bridge called the refusal an invalid_request_error, but magpie logged it as a 429 and Claude Code answered with api_retry, rate_limit, every 60s up to 9 times. A stream's error event carried only type and message, and magpie's gateway takes a stream error's status from the error's own status field first and its words after (namedStatusOf); the message quotes Antigravity's "RESOURCE_EXHAUSTED (code 429)", so the words won. streamErrorOf now gives an invalid_request_error status 400, in the SSE error event and in a whole (stream: false) reply, which was a 502. A rate_limit_error and every other kind go as before. Run: bun test in packages/agy-cli on mote, 24 pass (the smoke test's new #1151 checks: the turned-away event has status 400, a whole reply is a 400, a plain quota 429 still has no status); bun scripts/check.mjs agy-cli ok. Broken by hand: without the status line both #1151 checks fail (the whole reply came back 502). Read: magpie origin/main's upstream.go and fallback.go take a numeric error.status before the words. Not tried: a real Antigravity request (the local agy account answers 403), nor a real Claude Code against the gateway. Kevin's 0.1.58 run also shows a second line of Claude Code's prompt still matched; that is not fixed here. |
||
|
|
f4498713fa |
agy-cli 0.1.58: Claude Code's identity line goes as "You're …" (#1151)
KevinXC5 bisected Claude Code 2.1.325's system prompt on a real
Antigravity account: "You are Claude Code, Anthropic's official CLI for
Claude." alone brings the bare 429 back, 3 of 3, while "You're Claude
Code, …" and "This agent is …" pass. It is now in TURNED_AWAY and
reworded with the same "You're" rule as the other agents' lines; the
prefix match covers the Agent SDK variant (", running within the Claude
Agent SDK.") too.
Left out: "You are an interactive agent that helps users with software
engineering tasks." It isn't in the Claude Code binary here (2.1.316) or,
by Kevin's reading, in 2.1.325, so it isn't the line Antigravity matches.
Run: bun test in packages/agy-cli on mica, 24 pass; bun
scripts/check.mjs agy-cli ok. Broken by hand: with the TURNED_AWAY line
removed, the new test fails (23 pass, 1 fail).
Not tried: a real Antigravity request. The local agy account answers 403
(disabled), so this rests on the reporter's bisect.
|
||
|
|
7e14fabef1 |
agy-cli 0.1.57: DeepSeek Harness's first line goes as "You're …" (#1171)
Antigravity answers a bare 429 to "You are an AI agent powered by DeepSeek Harness.", DeepSeek Harness's first system prompt line, whatever quota is left. The reporter (huangzhenhao90) bisected it on a real account through agy on gemini-4-hydrogen: the line failed, while "powered by DeepSeek." alone, "an agent" for "an AI agent" and "You're …" each went through. cloak.mjs now rewords it as "You're …" and hint() names DeepSeek Harness. Run: on mote, bun test in packages/agy-cli (23 pass) and bun scripts/check.mjs agy-cli (ok). Broken by hand: without the new TURNED_AWAY line, the new cloak test fails. Not tried: a real request myself. agy on this machine answers 403 (the account is disabled), so the evidence is the reporter's real-account table. |
||
|
|
f91552564e |
agy-cli 0.1.56: cloak.mjs says it is the only copy now (comments only)
|
||
|
|
003a38ff44 |
antigravity 0.2.0: retired, sends nothing and points to Antigravity (local agy CLI)
Google bans accounts it sees calling Code Assist the way this plugin did
(Antigravity's own OAuth client, straight to cloudcode-pa), and as the
plugin magpie offered for Antigravity it was the one everyone installed
(the owner, 11-15: 全部下线,改推 agy-cli). Antigravity is served by
@magpie-community/opencode-agy-cli-auth now, which drives the user's own
agy over ACP.
From 0.2.0 the package makes no request at all. Every request gets a 410
{"error":{"status":"ModelDeprecated","message":"Antigravity: this model
has been retired. …"}} naming Antigravity (local agy CLI) and its magpie
plugin add command; magpie's modelRetired reads that as a retired model,
so a routing group asks its next member. Signing in throws the same
words; there are no models, usage, options or web search. The provider id
stays, so magpie's mover (raised to 0.2.0 there) lands moved users here
and their account rows show the message.
registry.json drops the antigravity entry, so Discover no longer offers
it. agy-cli's cloak.mjs was a copy kept equal to antigravity's by
cloak.test.mjs; it is the only copy now, and the parity tests become
tests of cloak.mjs alone (the invisible-character and REWORDED cases are
kept). agy-cli's version is unchanged (comments and tests only).
What users lose: multi-account rotation, the in-plugin Google sign-in and
account import, AI-credit spending, Antigravity web search, and a
provider that works without agy installed.
Run (mote, temp HOME): bun scripts/check.mjs all ✓; bun test
packages/antigravity packages/agy-cli scripts: 79 pass, 0 fail.
retired.test.mjs replaces fetch with one that throws and checks nothing
was asked on any path. Not tried: a magpie with a moved account on 0.2.0
(done on the magpie side's commit).
|
||
|
|
f7fc6641c5 |
agy-cli 0.1.55: with agy's sign-in in a file (no keyring, Docker), agy stays on its own folder (#1165)
0.1.54 (#1166) started agy acp with --gemini-dir pointing at a folder of the bridge's own, which keeps the machine's skills out. That assumed agy's Google sign-in lives in the system keyring. Where there is none (a Docker container, Linux with no D-Bus session), agy keeps it in ~/.gemini/antigravity-cli/antigravity-oauth-token instead. The bridge's folder had no sign-in, and every request failed "session/new failed: Authentication required". shawn8888 reported it on #1165 from ghcr.io/yetone/magpie with agy 1.5.9. Now, when that file exists and AGY_BRIDGE_GEMINI_DIR names no folder, no --gemini-dir is passed, and agy uses its own folder and sign-in. --include-default-customizations=false is still passed. A folder the user names is still used. Run (mica, node --test test/repeat-batch.mjs test/usage-settlement.mjs, temp HOME): 83 pass, 0 fail. bun scripts/check.mjs agy-cli: ok. Broken by hand: without the file check, the new "#1165 … stays on that folder" test fails (1 pass, 1 fail). Not tried: a real Docker container with agy. The token file's path is the one the reporter saw. |
||
|
|
3238ab8518 |
agy-cli 0.1.54: agy runs in the bridge's own --gemini-dir, so the machine's skills stay out (#1166)
0.1.52 passed --include-default-customizations=false, but on Windows
(agy 1.5.9) agy still loaded all 120 of the reporter's skills: a 56,790 B
<skills> block in its gen_metadata, and task, shell and four more client
tools dropped over the 20,000-token budget. The reporter (kanzaki-chiya)
found that --gemini-dir pointed at an empty folder of the bridge's own
leaves the skills and global MCP servers out, with every client tool
listed and shell/task calls working end to end.
So when `agy acp --help` lists --gemini-dir, a turn's agy gets
<XDG_STATE_HOME or ~/.local/state>/magpie-agy-bridge/agy-home, made
before agy starts and kept across restarts so session/resume finds the
conversation. agy's Google sign-in is in the system keyring, not that
folder. Step usage reads the conversation DB from the same folder.
AGY_BRIDGE_GEMINI_DIR names another folder; "default" leaves agy on its
own ~/.gemini. The model probe and `agy models` are unchanged. One
`acp --help` per binary answers both flags.
What happens to old data: a session parked before this update was in
~/.gemini, so its resume fails once and falls back to session/new, as a
resume that fails does today.
Run on mote: node --test test/repeat-batch.mjs test/usage-settlement.mjs
(81 pass), bun test in packages/agy-cli (22 pass), bun scripts/check.mjs
agy-cli ok. test/smoke.mjs prints the same 29 BADs and crash at
origin/main
|
||
|
|
df7d7ae0a5 |
antigravity 0.1.18: a variant at xhigh is asked at xhigh (#1169)
feikeer27 asked gemini-4-hydrogen at xhigh. sentID picked the gemini-4-hydrogen-xhigh variant, but shape() set the inner thinkingConfig.thinkingLevel to "high": its level chain had no xhigh case and fell through to high, a rule from Gemini 3, which took nothing above high. Google lists LOW, MEDIUM, HIGH and XHIGH for Gemini 4 Hydrogen (magpie 15500d437). A variant whose own level is xhigh is now asked at "xhigh", lowercase like every other level this plugin sends. A model with no xhigh variant stays at high, so an xhigh asked of gemini-3.7-flash or gemini-4-hydrogen-high still goes at high. complete() also read a thinkingLevel from the body only in lowercase. Gemini's own clients write "XHIGH"/"LOW", so with no X-Magpie-Effort header the level was dropped. It is lowercased first now. Run: bun test packages/antigravity on mote (temp HOME): 133 pass, 0 fail; bun scripts/check.mjs antigravity ok. Broken by hand: both changes reverted, 3 of the new tests red (the two hydrogen-xhigh shape cases and the capitals request test). Not tried: a real gemini-4-hydrogen-xhigh request. No account here is served Gemini 4, so Code Assist taking "xhigh" is from Google's model page, not a reply; the reporter is asked to confirm. |
||
|
|
fc941f6e1c |
agy-cli: Codex's GPT-5 lines go reworded in a user's turn too (0.1.53)
pocoxliu on X (tweet 2121731813270077946) gets 429s from agy-cli under Codex and Claude Code and put it down to unslimmed system and MCP prompts. It is content, not size (#1151: a neutral system prompt of the same 66,622 characters went through). Since 11-14 Antigravity also turns away Codex's two GPT-5 lines ("You are Codex, (a coding) agent based on GPT-5") in a user's turn; magpie's cloak and the antigravity plugin ( |
||
|
|
57d1cc6a9f |
agy-cli: start agy without the machine's own skills when it can (#1166)
On Windows with agy 1.5.9, a session loaded 120 local skills from ~/.gemini/skills, ~/.gemini/config/skills and ~/.agents/skills although the bridge agent says inheritCustomizations: false. Skills and the client's MCP tools share agy's 20,000-token customization budget, so agy dropped the six largest client tools (task, shell, …) and three skills. agy 1.5.9's acp takes --include-default-customizations (default true). The bridge now passes --include-default-customizations=false when `agy acp --help` lists the flag. An agy without it exits on an unknown flag, so it is never passed blind. The answer is kept per binary (path, mtime, size); a probe that errors or times out is asked again. The bare `agy acp` model probe is unchanged. 0.1.52. Run: - bun test packages/agy-cli on mote (temp HOME): 21 pass, 0 fail; bun scripts/check.mjs agy-cli ok. - the same on Windows (win-run, xiaomi-gpu): 21 pass, 0 fail. - test/smoke.mjs alone with bun on mote: ALL OK (348 checks). - real agy 1.5.9 on macOS: `agy acp --help` prints the flag on stderr (exit 0); a session started with the flag set to false runs. Broken by hand: without the args.push in Proc.start, repeat-batch's "#1166 … asked once" test and smoke's #1166 check go red. Not tried: the reporter's Windows machine with its 120 skills. On this Mac the default run sent no user skills to the model either, so it is not shown here that the flag keeps them out; the reporter is asked to confirm. |
||
|
|
4a64252bd7 |
agy-cli 0.1.51: one opening sent to several models at once gets an agy each
swang20201 on X: Test models on an agy-cli account gave a check for the
first model and a cross for the other three. magpie's Test sends the same
"hi" opening to up to four models at once. agy-cli keys its agy process by
user, system and first message, not the model, so all four shared one key.
The first started a turn; the others found it unfinished and got 503
"agy bridge: this conversation still has an unfinished response". Not the
account's limits, and not the model ids.
Two changes:
- A fresh opening that finds the key's process busy with a turn for
another model gets a process of its own (key + request id). The same
model sent twice while the first runs is still refused as a resend, so
smoke's "simultaneous startup allows only one live response" holds.
- acquireProc starts the turn (begin) inside the same locks, so a request
waiting on them sees the earlier turn and is never handed a process
about to be busy. The turn records its model.
Run:
- New test in test/repeat-batch.mjs, magpie's exact probe body to four
models at once: red on origin/main
|
||
|
|
9126c46f97 |
agy-cli: no stub descriptions; a low level's room goes to tools and contracts (#1140)
tungloong's real run of agy-cli 0.1.49 with 131 tools: the schemas alone
took ~37 KB, the level stopped at 10, and 373 of 382 property texts went
as 9-10 byte stubs ("The fil…") that spent ~10 KB on their keys, while
the tools' own descriptions got 25 bytes and show_view's contract 110.
With more tools the level stopped at 1-6 and never reached the bare
branch, which would have zeroed the contracts too.
A cut description now goes whole or, cut, with at least MIN_TEXT (24)
bytes; anything shorter is dropped. When the highest level leaves an
ordinary property under that, ordinary properties keep only texts short
enough to go whole, and a second search gives the room to the tools'
own descriptions and the contracts' (the old bare(top) branch is gone).
Run (mote): packages/agy-cli bun test 21 pass (each test file in its
own bun process); bun scripts/check.mjs agy-cli ok. On a 131-tool
fixture shaped like the report (~285 B of schema per tool), 0.1.49
gave field "field…", tool "tool_0 does the t…"; now no field stubs, tool
"tool_0 does the thing it says.…" and a longer contract. Broken by
hand: the new tests on 0.1.49's tool-budget.mjs go red (field_0:
"field…" at 131 tools, stubs at 180).
Not tried: real agy with the reporter's 131 tools.
|
||
|
|
d859c3fb13 |
antigravity: a 429 with the model's quota left doesn't point at AI credits (#1148)
With Use AI credits off, an account holding credits got the credits note on every 429: "turn on the Use AI credits switch ... when the plan's quota is used up". The reporter's Gemini quota wasn't used up, and the note read as if it were. The plugin now reads fetchAvailableModels again on such a 429: when the model still has quota left, the note says so and that credits would not change it; when none is left, or the read fails or doesn't list the model, the credits note stays as before. Run (mote): packages/antigravity bun test, 102 pass; bun scripts/check.mjs antigravity ok. Broken by hand: always the credits note, and the quota-left test goes red (1 fail). Not tried: a real account's 429 with quota left (the reporter's case). |
||
|
|
a82a2e3558 |
kiro: preserve scoped reasoning across tool continuations (#1156)
Kiro keeps reasoning signatures across tool continuations, sealed as kiro:<scope>:<payload> where scope hashes the account, region and model, so a signature is replayed only to the account and model that made it. A 400 from Kiro is returned as is (no strip-and-retry). Effort levels come from a per-account model list read at request time, shared by concurrent requests and kept 10 minutes; a failed read is swallowed and the request still goes out. kiro 0.1.39. Reviewed at d60a5d001bd7f7b62574798885714d446eb48e9c (mica, temp HOME): bun test in packages/kiro 203 pass; bun scripts/check.mjs kiro ok. The two probes from the last review (a failed model list made the request a 502; an unlisted model was re-listed on every request) failed at 6af97c7 and pass at this head. Not tried: a real Kiro account. Co-authored-by: asp345 <10955734+asp345@users.noreply.github.com> |
||
|
|
f917240e24 |
registry: ShyPie Privacy Gate's icon (#1159)
Gives the ShyPie Privacy Gate entry in registry.json an icon: the SVG already in this repo at packages/privacy-gate/assets/shypie-icon.svg, by its raw.githubusercontent URL (the same host other entries use). Reviewed at 24ae3c57c5751d1d7451a74a7cbb1becca936ebc: the file exists on main, holds no script, href or event handler; bun scripts/check.mjs privacy-gate passes (mica). Co-authored-by: siml1169 <5939069+siml1169@users.noreply.github.com> |
||
|
|
122d945ea7 |
sensenova: a key-only account lists what its key serves (#1158)
A key-only sign-in keeps no console token, so planIds() could never read the plan, the listing threw "plan read failed" and fell back to the static bootstrap list, which has no glm-5.3. models() now skips the plan read for auth.type "api" and lists the key's own /models (still through catalogModels, so the 403 stray and image-output models stay out). OAuth and password accounts still intersect the catalogue with the plan. glm-5.3 is not added to the bootstrap list: testdata.test.mjs holds that list to the recorded free plan, which doesn't cover glm-5.3. Run (mica, temp HOME): bun test in packages/sensenova, 59 pass; bun scripts/check.mjs sensenova ok. Broken by hand: with the old `await coveredOrThrow()` the new test fails (plan read attempted, glm-5.3 missing). Not tried: a real SenseNova key-only account. |
||
|
|
1cc5a033f8 |
autoclaw 0.2.24: campaign credits that lapse show on the balance window (#1157)
AutoClaw's weekly campaign credits are swept at their wallet's end, but the routing saw only the 6400 total with no date, so smart never spent them first. gcq909893267 found the date: every ledger entry carries a top-level wallet_expires_at (epoch seconds); the wallets endpoint has none. campaignBreakdown keeps each instance's wallet_expires_at and gives the soonest end of an instance with credits left and not yet past, and what the instances ending then have left. usage() puts that on the 积分余额 window as runsOutAt / runsOut, capped at the total. The reporter suggested a separate 活动积分 window with its own balance; magpie counts every balance window as a pool, so that would have counted 5000 twice. What magpie does with it: routing takes runsOutAt as the window's reset when it is sooner (routing.go:618), so the account counts as renewing tonight. Allowance.Lapsing needs a limit (Of) and skips a balance-only window, so the lapse share sort doesn't apply here. Tests use the reporter's literal credit and expire entries: 5000 lapse at 2026-11-15 23:59:59 +08, a spent earlier instance doesn't count, two ending in one second add up, past the end or without the field nothing is reported, and the usage window carries it with one balance window. Run: on mote, packages/autoclaw bun test 119 pass, check.mjs autoclaw ok. With index.mjs at 0.2.23 both new tests fail. Not tried: a live AutoClaw account. |
||
|
|
d6efb4f7bc |
trae: the credits a pack loses at its end show as runsOut (#718)
A finite pack's credits are gone at its end_time whether or not another pack follows, so the Credits window now carries runsOutAt (the soonest live pack's end, as 0.2.37 reads it) and runsOut (what the packs ending at that instant have left). magpie's routing already takes runsOutAt before resetsAt and sorts by what lapses; WorkBuddy's plugin does the same. Test built from gcq909893267's account B packs on #718: the 11-18 sign-in reward with 4.1456 used gives 95.85 lapsing then, two rewards ending at one second add up, and past both the monthly 500 lapses. Run: on mote, packages/trae bun test 268 pass, check.mjs trae ok. With index.mjs back at 0.2.37 four tests fail (the new one and the three whose windows now carry runsOut). Not tried: a live Trae account (the reporter's numbers are the fixture). |
||
|
|
188c644f16 |
trae 0.2.37: the credits' date is the soonest end of a pack that still counts
credits() took the soonest end_time of every entitlement pack, spent or already ended. A TraeCode CN account with a daily pack and a monthly pack read "lapses today" every day, even once the daily pack was used up, so routing kept it ahead of accounts that really lose credits today (#718; #1157 measured an account whose date changed 15 times since 10-23). Only a pack with credits left (or unlimited) whose end is still ahead names the date now; none left, no date. The enterprise and usage fixtures' end_times move into the future: with the rule, 2026-09-21 already read as ended, and 2026-11-18 would three days from now. Run (mote): packages/trae `bun test` 267 pass; `bun scripts/check.mjs trae` ok. Broken by hand: the old credits() fails the new test. Not changed: a pack per window or runsOutAt (#718 items 1-3) need which packs lapse and which renew, which the pack list doesn't say; Trae Global still reads its first pack's end. #718 stays open for those. Not tried with a real account. |
||
|
|
09e5970996 |
loomy: the total names no reset while only permanent credits are left (#1153)
With the daily credits spent and permanent ones left, the 积分合计 window still said it reset at Beijing midnight. magpie's smart routing ranks the soonest reset first, so such an account went ahead of trae-cn's, Qoder's and WorkBuddy's day and month windows, whose credits are lost at their reset, while midnight loses nothing of Loomy's. The total now names a reset (and its span: magpie reads a span with no reset as renewing a span from now) only while daily credits are left, or when nothing is left at all, so a used-up account still says when it is back. The daily wallet beside it, set aside for routing, keeps showing midnight. loomy 0.1.9. Run on mica (Bun 1.4.2), sandbox HOME: bun test in packages/loomy 33 pass; scripts/check.mjs loomy clean. Broken by hand: with main's index.mjs the usage test fails (resetsAt 1794672000000, expected none). Checked in magpie origin/main: Smart puts a window with no known reset after those with one (internal/routes/strategies.go), and a window set aside never enters the allowance (provider/routing.go). Not tried: a real Loomy account in routing. |
||
|
|
9f02ad545f |
privacy-gate: middleware settings page (#1145)
The ShyPie plugin page gets a Middleware settings tab, so privacy-gate's ctx.options can be set from the page instead of the CLI only. Options are grouped as Protection, Advanced inspection and Diagnostics; the Agents view is unchanged and both share one Save. - Lists are validated (shape, count); a malformed allowModels blocks the save instead of turning into an allow-everything list. - Numbers are floored and clamped to the middleware's own numOpt ranges, so a save that only flips an agent keeps the limit that actually runs (maxDepth 500 stays 200, not the page default 40). - An unknown binaryPolicy is reported and blocks the save. - A save re-reads the options and reports a conflict when another surface changed a managed field; options outside the form are kept. - logEveryRows has one cap, 100000, in resolvedOptions and onUsage. - privacy-gate 0.4.1. Run at 9bb381bf on WSL (Ubuntu 24.04, Bun 1.4.2): bun test in packages/privacy-gate 77 pass, 0 fail; scripts/check.mjs privacy-gate clean. Broken by hand: page.test.mjs with 7c119f16's settings.js fails (maxDepth Expected 200, Received 40). The diff adds no network call. Not tried: the page in a running magpie. Co-authored-by: siml1169 <siml1169@users.noreply.github.com> |
||
|
|
1c3c58be56 |
agy-cli 0.1.49: a session opened before a line was reworded is not resumed (#1151)
A parked session was keyed on the client's instructions as written. agy keeps the instructions a session was opened with, so a Codex conversation parked under 0.1.47 (whose "You are a coding agent running in the Codex CLI" line went to agy as written, and was turned away) was resumed after 0.1.48 began rewording that line, and every turn on it went on getting 429 for up to the 6h resume window. jx407 found this on #1151. The parked hash is now taken over the instructions as agy is sent them (outgoing: the turned-away lines reworded), with the same clock and billing stripping as before. When the rewording changes, the parked session is not taken and a new one is opened; when it doesn't, it resumes as before. Run (WSL magpie-desktop, from the repo root, HOME a temp dir): - packages/agy-cli `bun test`: 21 pass, 0 fail. - node --test test/conversation-key.mjs: 34 pass, including the new "#1151: a parked session is keyed on the instructions as agy was sent them". Broken by hand: with park/takeParked hashing instructionsIdentity again, the new test fails (33 pass, 1 fail). Not tried: a real agy session parked under 0.1.47 and resumed under this version. |
||
|
|
a617ecfd42 |
antigravity 0.1.16, agy-cli 0.1.48, cloak 0.1.9: cloak the system prompts Google refuses since 11-14 evening; agy-cli fails a refused turn at once
Since about 18:43 on 11-14 Google's Antigravity backend answers 429
RESOURCE_EXHAUSTED to requests whose system instruction holds certain
agents' identity lines, though the account has quota and the same
request with another prompt passes. Tried on a real account
(gemini-3-flash), each line alone in the system instruction:
- refused now: "You are Hermes Agent", Hermes' earlier persona
"…an intelligent AI assistant created by Nous Research" (also as
"You're …"), "You are OpenCode" / "You are opencode", Codex CLI's
"You are a coding agent running in the Codex CLI", and pi's "You are
a coding assistant running inside pi".
- pass as written: Codex GPT-6's prompt, Claude Code, Gemini CLI, Qwen
Code, Cline, Kilo, goose, Amp, Droid, Kimi, Aider, Cursor.
The cloak in antigravity and agy-cli (and the antigravity-cloak
middleware) now rewords each refused line the smallest way that passes:
"You are" -> "You're" for Hermes, OpenCode and Codex CLI, "created by"
-> "built by" for Hermes' earlier persona, "running inside pi" ->
"running within pi". The hint shown with a refusal names the agent
(new pi, OpenCode and Codex CLI hints; Hermes' hint covers both
personas).
agy-cli (@Lmohn39, pi 1.5.0 via agy 1.5.9, hydrogen): when agy prints
its retry banner for a refused 429, agy-cli waited while agy retried
the same refused prompt without end, so pi hung. The turn now fails at
once with the 429 and the existing "this is not a quota" explanation,
the agy process is stopped and dropped from the pool. A 503 banner
still waits as before.
Run:
- root `bun test` with HOME=$(mktemp -d) on mica (mote was over its 18
cores): 8820 pass, 20 skip, 0 fail, exit 0.
- real account through the patched loader, gemini-3-flash 5/5 each:
pi 1.5.0's full default prompt (built from its dist/core/system-prompt.js),
Hermes current and earlier personas, both OpenCode first lines, Codex
CLI's prompt, Codex GPT-6's prompt. claude-sonnet-4-6: pi 5/5.
Broken by hand:
- the old agy-cli index.mjs makes the new Lmohn39 test red ("still
waiting after 5s").
- dropping the pi line from TURNED_AWAY turns 6 cloak tests red.
Not tried: a real agy 1.5.9 turn on hydrogen showing the banner (the
banner's wording is the one agy-cli already matched); pi itself end to
end through agy-cli.
|
||
|
|
b880da16aa |
antigravity 0.1.15: requests carry Antigravity 2.32.1's own fingerprint
Antigravity 2.32.1 (manifest, 2026-11-13) was run in a sandbox HOME behind
a recording proxy, and every Code Assist request it sent was diffed against
the plugin's. Stale in 0.1.14, now as the app sends them:
- User-Agent: `antigravity/hub/<v> <os>/<arch>` is now the language
server's `antigravity/hub/<v> (aidev_client; os_type=<os>; arch=<arch>;
cl=<changelist>)`. The changelist comes from a table (2.32.1 is
1021296516); a newer manifest version uses the newest known one.
- Envelope keys go in the app's order (project, requestId, request, model,
userAgent, requestType). requestId is
`agent/<cascade>/<ms>/<trajectory>/<step>` instead of `agent-<12 hex>`.
- request.labels is added as the app sends it: cascade and trajectory ids
(stable per conversation, from its session), the step, the model's enum
from fetchAvailableModels, and used_claude / used_non_gemini_model.
- onboardUser sends `{tierId, metadata: {ideType}}` with the plain UA. The
google-api-nodejs-client UA suffix, X-Goog-Api-Client, snake_case keys,
ide_version and ide_name are gone; the app sends none of them.
- No `Accept: text/event-stream`; the app sends no Accept.
- The sign-in asks the aicode scope too, as the app does.
- DEFAULT_VERSION is 2.32.1.
Already matching: loadCodeAssist's body and endpoint order, the
fetchAvailableModels body, the client id and the sessionId form.
Run:
- Root `bun test` with HOME=$(mktemp -d) on mote at
|
||
|
|
3db6dcfa85 |
agy-cli 0.1.47: agy 1.5.9's bare 429 ending fails the turn (#1151)
agy 1.5.9 ends a turn whose every retry got 429 with the upstream status
itself, "⚠ RESOURCE_EXHAUSTED (code 429): Resource has been exhausted
(e.g. check quota).", instead of "⚠ Agent execution terminated due to
error.". That line was not one of AGENT_ERROR_MARKERS, so the bridge sent
it to the client as the model's answer and ended the turn as a success
(jx407's Codex turns showed the error text as the reply).
It is now a marker like the others: held while it could still be one,
dropped when it ends the prompt, and the turn fails through #agentError
-> #formatAgentError as rate_limit_error ("Antigravity quota or rate limit
reached: RESOURCE_EXHAUSTED (code 429): ..."), or as the system-prompt
case when the cloak says the prompt turns away. Text after it, the model
quoting the line, keeps it as text, as for the other markers.
This fixes how the 429 is reported, not why Antigravity answered 429 to
the reporter's Codex requests; that is still open on #1151.
Run (WSL magpie-desktop, Node 22, Bun 1.4.2, HOME=$(mktemp -d)):
- packages/agy-cli `bun test`: 21 pass, 0 fail (agy-cli.test.mjs runs
repeat-batch.mjs and the rest).
- node --test --test-name-pattern="1151|1136" test/repeat-batch.mjs:
4/4 ok. With the new marker line deleted from index.mjs: the endings
test goes red (1 fail), the quoting test stays green.
- bun scripts/check.mjs agy-cli, scripts/bumped.mjs origin/main: ok.
Not tried: a real agy 1.5.9 turn that ends in 429.
|
||
|
|
a60667b570 |
codearts 0.3.21: the credit names iJetLi, who wrote the CodeArts channel (#1147)
The README (English and Chinese) and index.mjs credited the CodeArts channel to Ebony-Vinyl/dsh-our-free-model alone. That repo's own vendor/channel-pack/NOTICE.md (v2.5.7) says the channel is a copy of gitee.com/iJetLi/deepseek-harness-codearts at 345f0a07. The credit now names iJetLi first and OFM as the one that carried it. No code change. Run: bun scripts/check.mjs codearts and bun test in packages/codearts on mica (213 pass, 0 fail); bun scripts/bumped.mjs origin/main. |
||
|
|
87a8cf03c6 |
zcode 0.1.66: a gift-only account's model the gift doesn't name is not sent to be billed, and a failed plan read keeps it on the gift (bg5eau on X)
bg5eau on X (11-14): through magpie ZCode's gift quota stopped going down while the account's pay-as-you-go balance was charged. Two routes in the plugin let a key with no GLM Coding Plan spend money while its free Start Plan quota sat unspent: - A gift-only account sends every request to the Start Plan, whatever the model. ZCode's app offers such an account only the models its balance names (resolveStartPlanBalanceAvailability in 3.18.2); an agent left on another model (GLM-5.2 while the gift serves only GLM-5.3-Flash) spent none of the gift. Such a request is now answered 400 with the models the balance names and is not sent. The balance is the one the model list already reads (aloneSeen, ten minutes); only a model it doesn't name has it read again, so a gift claimed since is sent, and a request whose model it names reads nothing. A balance not read yet, one that fails, or one naming none leaves the request as it was (unknown is not a refusal). - plansOf's catch path: a plan-list read that failed sent every key account down the dual route, to api.z.ai / open.bigmodel.cn's /api/anthropic with its key, which bills a key with no plan pay-as-you-go. An account whose last read found no plan now stays on the Start Plan for the minute. A key with no earlier read still takes the dual route, as before. Not known: which of the two was bg5eau's (no request log from them). No 503 is made by the plugin (skykiahhub's 503 on X is the vendor's or one of magpie's own, each of which says why). Run (mote, load ~130-180, mica's disk was full; HOME=$(mktemp -d)): bun test packages/zcode 271 pass 0 fail; bun scripts/check.mjs zcode ok. Broken by hand: the guard off, "a gift-only account's model its balance doesn't name is not sent" fails; the catch-path change off, "a gift-only account stays on the Start Plan when its plan list stops reading" fails (it sent GLM-5.2 to api.z.ai). Not tried: a real gift-only account (the owner's has a coding plan and no gift), a real pay-as-you-go charge, Windows and Linux. |
||
|
|
6646797e15 |
agy-cli 0.1.46: a catalog over agy's tool budget keeps every tool (#1140)
Since #989 every client tool is listed always-loaded, so all of them go into agy's customization budget: 20,000 tokens counted as ceil(UTF-8 bytes / 3). Past it, agy drops whole tools, the largest first, and with tools: [] the model has no other way to reach them. tungloong's 131-tool catalog (~25,000 tokens) lost bash and 12 Paper tools. Proc.listTools() now hands agy the catalog through fitTools (tool-budget.mjs), aiming at 18,000 tokens to leave agy room for its name prefix and serialization: - within the budget, the catalog goes as it is (the same array); - else $schema, title and examples come out where they are keywords (a property named "title" is the client's and stays); - else every description is capped at the highest level L that fits, found by binary search: a property's at L bytes, a tool's own at 2.5L, a contract property's (an object with no properties, or tool-schema's Variants/Accepts anyOf text) at 11L. A cut drops a trailing Examples block first, ends on a sentence or a whole code point, and adds "…"; - at L = 0 the properties' descriptions go and the room left goes to the tools' own. Names, property names, types, enum, const, required, items, anyOf and bounds are never touched, and this.tools / toolsSignature stay as the client sent them. The trimmed list is kept per catalog. Run (WSL magpie-desktop, temp HOME; mote was at load 178 and mica's disk is full): bun test 21 pass; node --test conversation-key, step-usage, usage-settlement, repeat-batch, compat, tool-schema, catalog, tool-budget, steer-in-session, windows-nc: 198 pass, 0 fail; bun scripts/check.mjs agy-cli ok; npm pack --dry-run ships tool-budget.mjs. With main's index.mjs the new bridge test fails (31,690 tokens reach agy). Not tried with a real agy: the budget and its counting are the reporter's reading of agy 1.5.8, not checked here. |
||
|
|
2596d259a2 |
antigravity 0.1.14: Code Assist's bare INVALID_ARGUMENT line is asked again, and one that stays says it is not a region block (Lawson0112 on X)
Lawson0112 (magpie 0.1.4152, Windows, Codex) saw every request to
gemini-4-hydrogen end "400 · failed" after 20-38s and asked whether it
was a region block. A region refusal is a fast 400 FAILED_PRECONDITION
"User location is not supported..."; a 400 after 20s+ is Gemini 4's late
INVALID_ARGUMENT, which Code Assist writes after the thinking events as
a bare line with no "data:" (zRain's capture, magpie's sse_bare.go):
{"error":{"code":400,"message":"Request contains an invalid argument.","status":"INVALID_ARGUMENT"}}
holdThoughts read only "data:" lines, so it never saw that line: the
quiet retry 0.1.6 added never ran for the real reply, and the error went
to the client on the first ask. Its tests used an invented "data:" error
chunk. Now a bare JSON value (one line or pretty-printed over several)
is read too, and the stream is asked again as for a data event.
A Gemini 4 INVALID_ARGUMENT that still comes after the model ran (a
slow 400, or in the stream) is told as "<model> turned down a call it
built while thinking, asked N times (Google: ...). Not a region or
account refusal: Google names those". The words keep clear of what
magpie's gateway reads as another fault ("model ... invalid" reads as a
model not served). A fast 400 and other models keep Google's words.
Run: packages/antigravity bun test in WSL (magpie-desktop), 97 pass;
bun scripts/check.mjs exit 0. mote was at load ~150 and mica's disk
full, so the runs went to the Linux box.
Broken by hand: the old index.mjs with the new tests, 3 of the 4 new
tests red (the bare-line retry, the pretty-printed line, the wording);
"a fast 400 keeps Google's words" passes on both, as it should.
Real account (kumw95ya25, sandbox HOME): the real Codex 0.165 request
through magpie's buildGemini answers 200 on gemini-3.8-flash at high
with the new code.
Not tried: Gemini 4 itself. The account here has Gemini 4 only as
gemini-4-*-disabled (404), as does every other sign-in found, so
whether Hydrogen passes Codex's request on a second ask is not known.
A late 400 after the 10s hold has released the thinking still reaches
the client as before.
|
||
|
|
6e0cecb2a0 |
agy-cli 0.1.45: a tool result's image goes to agy as a prompt image, not an offloaded file (distinceeeee on X)
Report: on agy-cli 0.1.43 with agy 1.5.8, when OpenCode's read tool
returns a screenshot, agy writes the image to
.system_generated/steps/N/media_0.jpg. The model never sees the image and
keeps re-reading files.
Cause: the bridge answered agy's MCP tools/call with the image as MCP
image content. agy offloads MCP images to a file, and its model only gets
"Image read successfully [Resource offloaded to file://…]". There are no
image tokens, so it loops trying to get the image back.
Fix: when agy supports prompt images and a tool result carries an image,
the result takes the steer-in-session path. The MCP call is answered with
its text plus a line saying the image follows. The image goes in the next
session/prompt as an ACP image block, in the same session, so it reaches
the model as an image. withoutAnswered keeps an answered result's images
in the prompt and drops the rest. If steering fails, the existing replay
fallback already sends tool_result images as prompt images. An agy
without image support keeps the old MCP path.
Run:
- Real agy 1.5.8 (macOS), sandbox HOME and sandbox keychain,
gemini-3.8-flash-high, through a harness that drives the plugin's fetch
with an OpenCode-style read tool:
- origin/main: shot.jpg and term.png each looped through 8 reads
without an answer.
- This change: 1 read each. shot.jpg was answered correctly
("PLUM-7342 ORBIT", red circle, blue square, green triangle).
term.png was answered correctly twice (all five terminal lines,
including "TOKEN: ZEBRA-5519", and the yellow rectangle).
- WSL magpie-desktop (Ubuntu 24.04), bun 1.4.2, temp HOME:
- packages/agy-cli `bun test`: 21 pass, 0 fail.
- `node test/smoke.mjs`: ALL OK (347 checks).
- `bun scripts/check.mjs agy-cli`: ok.
- Broken by hand: smoke.mjs with origin/main's index.mjs fails exactly
the two image checks this change adds or rewrites (2 FAILURES of 347).
Not tried:
- Gemini 4 Carbon: not offered to the test account.
- Real agy on Linux, and a real OpenCode front end.
- stream:true against real agy (the harness is non-streaming; smoke
covers SSE).
|
||
|
|
1dbbc1fb48 |
zcode 0.1.65: a -Trial pick with no gift names the weekend plan ZCode holds unclaimed (heduian, bg5eau on X)
heduian and bg5eau on X (11-14, a Saturday): magpie no longer uses ZCode's weekend gift. GLM-5.3-Flash-Trial is not in the list, a manually added one answers "ZCode has no active limited quota", and free first spends the weekday gift but not the weekend's. Diffed against the official ZCode 3.18.2 (zai-org/ZCode fec975905, 11-13) and 3.17.2 (a9fe401ee): - The weekend plan (ZCODE WEEKEND BUILD, testdata/touch-1030-wk.json) is a gift ZCode holds until it is claimed from the app's banner. The claim (MarketingTouchProvider -> prepareRequestVerificationClaim -> claimManualPlan) carries the app's Aliyun captcha proof in 3.18.2 as in 3.17.2, and client/configs still says captcha.enabled true. The plugin has posted no claim since 0.1.55 (11-07), and claims without the proof were refused 3007 since 10-06. Until the plan is claimed in the ZCode app it has no balance bucket, so the plugin lists no -Trial entry for it and free first has nothing to spend. That is the report. The captcha is not got past. - The Start Plan request: 3.18.2's headers (buildCliZCodeSourceHeaders, zcode-source-headers.ts) are the plugin's startHeaders but for the version (3.17.2) in User-Agent and X-ZCode-App-Version; @ai-sdk/anthropic is 3.0.81 in both. Start's credential in 3.18 is the shared ZCode JWT, as the plugin sends. No header picks a plan or bucket: the server chooses which bucket a model spends. - The balance read (zaiStartPlanBilling.ts) is unchanged in 3.18, and on the owner's account the balance, the feed and client/configs answer the same for app_version 3.17.2 and 3.18.2. APP_VERSION stays. So the change is the refusal: a -Trial pick that finds no gift now reads the claim feed (toClaim; kept ten minutes per session, a failed read names none and is not kept) and, when ZCode holds a plan there, says "ZCode holds ZCODE WEEKEND BUILD for this account unclaimed: claim it in the ZCode app (its claim needs the app's security check), and GLM-5.3-Flash-Trial spends it". Nothing is claimed and no model is asked. The card's "Gift plans to claim in the ZCode app" line was already there. README says what happens until the claim. Run (mote, sandbox HOME): bun test in packages/zcode, 265 pass 0 fail; bun scripts/check.mjs zcode ok. Real account (owner's, sandbox HOME): unclaimed() read the live feed, [] (no weekend delivery on that account today). Broken by hand, each red, then restored: the refusal without the feed (2 fail), the ten-minute keep removed (1 fail). Not tried: a real account holding a weekend plan (the owner's has no delivery or balance plan today), and a claim in the ZCode app followed by a request; Windows and Linux. |
||
|
|
da17052c0c |
loomy 0.1.8: the vendor's vision, reasoning and tool calls reach the host (#1141)
The models hook gave each listed model in OpenCode's config shape (modalities, reasoning, tool_call), and replaced the entry it was given with it. The host (magpie's and OpenCode's) reads a listed model by its runtime shape: capabilities.input.image, capabilities.reasoning, capabilities.toolcall. So a model models.dev doesn't know, like deepseek-v4-flash-1017, went as one of no known vision, and its reasoning and tool calls were dropped too. listedModel now merges over the existing entry, keeps the config's fields, and sets capabilities from what the vendor says; what it doesn't say keeps what was known of the model. Run (mica, temp HOME): packages/loomy bun test 33 pass; bun scripts/check.mjs loomy ok. With main's index.mjs the new test fails (32 pass, 1 fail). Not tried against a real Loomy account. |
||
|
|
8e19b6a0e7 |
zcode 0.1.64: a Start Plan request refused beside the account's others waits its turn, not 429 (JJLIN070414 on X)
JJLIN070414 on X: with two or more sessions on ZCode's Start Plan through magpie, 429s keep showing; the same work in DeepSeek Harness runs on. Cause: ZCode answers 3008 when an account has more Start Plan requests in flight than it serves (some accounts one at a time, plugins#438). Since 0.1.58 such a cap with others of the account in flight narrows the gate to one for five minutes, but the request that was refused still went back to magpie as busyAnswer's 429 after its 1s and 2s re-asks. With one account magpie has no one else to ask, so the agent got the 429 (Claude Code shows it and retries; dsh retries silently), again each time the narrowing ran out. ZCode's own client (zcode-src docs/dynamic-workflow/concurrency.md, start-plan-provider-business-errors.md) cuts its per-key cap on 3008 and queues capped subagent requests with unbounded retries; only a main turn's first admission shows the busy banner. Now askBusy stops at the narrowing (onCap says true) and marks its answer `requeue`; the Start Plan path gives the slot back, waits at the head of the queue (startSlot front) until one of the account's other requests ends, and sends again. The waits share one startGate.wait, then the queue's own 429; REQUEUE_MAX (4) bounds the turns. A cap refused alone still counts toward the firewall hold and goes back as before; free first's gift still replays on the plan. Run (mica, Bun 1.4.2, HOME and TMPDIR in the run folder; mote's load was over its cores): packages/zcode bun test 262 pass, 0 fail, 18 files; bun scripts/check.mjs and check.mjs zcode exit 0. Broken by hand: REQUEUE_MAX = 0 (the old behaviour): the reporter's two-session test, the #438 test (now all pairs 200) and the wait-bound test fail; the other 15 in inflight.test pass. Not tried: a real ZCode Start Plan account with two sessions (a run of caps can get the home IP a 405 from ZCode's firewall for 1-2 hours); the queue-front order has no test of its own. Reported-by: JJLIN070414 (X) |
||
|
|
dac9726736 |
agy-cli 0.1.44: a turn keeps only its current request body, and tool-result images are hashed in the history key (#1137)
A Codex tool loop with view_image screenshots grew the plugin host to 0.5-1.5 GiB after GC, so magpie recycled it every ~10 minutes and the mid-turn conversation restarted without its tool outputs (tungloong's report). - Turn.registerResponse drops the previous step's body and contentSnapshot. Only the current step's are read again (a late prompt's estimate); the usage reducer reads settled/usage only. - historyKey keys a tool_result image by mimeType + sha256, as it already keys a user's image, instead of copying its base64 into the key on every comparison. Old data: a conversation parked before the update with an image inside a tool result has a history hash taken over the raw bytes, so it starts a new agy session once instead of resuming. Others are unchanged. Run (mote, sandbox HOME): node --test conversation-key, step-usage, usage-settlement, repeat-batch, compat: 128 pass. bun test: 21 pass. scripts/check.mjs ok. Broken by hand: with origin/main's index.mjs both new tests in conversation-key.mjs fail (2 of 33). Not tried: a real Codex Desktop screenshot loop; heap size not measured. |