Commit Graph
1188 Commits
Author SHA1 Message Date
yetone 4e0cdabbba codearts 0.3.22: OfficeAce's first rates read is tried again, and its fallback lists only callable ids (#1197)
yukinomon measured it (#1197): when the billable list's first read after
a start failed, the listing fell back to OA_FALLBACK_MODELS, and 7 of its
10 ids are no longer in OfficeAce's catalog while 6 of the 9 callable ids
were missing from it. The in-process cache holds no table at start, so
one blip put the old list in front of the user until the next listing.

- fetchOfficeAceTokenRates reads once more (after 400ms) when it has no
  table to keep; a network error, a non-2xx, an unparseable or an empty
  answer each count as a failed read. With a table held it reads once,
  as before.
- OA_FALLBACK_MODELS is the 9 ids the reporter measured as callable
  (catalog ∩ rates on 2026-11-16).
- With no rates table at all, the listing is the account's catalog cut
  to those known ids, so an id the catalog has dropped is not listed;
  the static table only when that leaves nothing.

Run (mote, HOME=$(mktemp -d)):
- bun test packages/codearts/index.test.mjs: 215 pass, 0 fail.
- bun scripts/check.mjs codearts: ok.

Broken by hand: origin/main's index.mjs with the new tests: 3 fail (the
retry, the dropped ids, the catalog-cut fallback).

Not tried: a real OfficeAce account (none here); the ids come from the
reporter's measurement.
2026-11-16 11:25:10 +08:00
yetone 175dfd2555 agy-cli 0.1.70: say when Google refuses the account (#3501) instead of a fallback list
Three X reports (16 Nov): "You do not have a valid license of this product
(#3501)", "models can't be fetched", and "magpie's agy proxy stopped
working". agy 1.5.9 gets Google's 403 #3501 on its eligibility check and
fails every command with it (agy models, agy -p). The plugin hid it:
models() fell back to the static catalog as if the account had those
models, usage said only "not eligible", and a request got 400 "model ... is
unavailable to this agy account" because the ACP session offers none.

Now:
- usage.mjs: agyRefusal() reads Google's refusal out of agy's output
  (#3501 first, else the eligibility line), never from agy's own log
  lines or a network failure; usage reports the #3501 text with what to
  do (update agy and sign in again, personal Gmail, unset AGY_ADC_AUTH,
  VPN/region).
- index.mjs: a failed `agy models` records the refusal per agy home;
  models() throws it (magpie shows it as the list error) instead of the
  static catalog, and recovers when agy lists again. A request whose
  session offers no model, or whose turn ends on the refusal, answers 403
  permission_error with the reason (stream and JSON), not 400. After a
  sign-in, magpie shows "agy signed in, but" and the refusal.
- README (zh, en): a Troubleshooting entry for #3501.

Run (mote, HOME=$(mktemp -d)):
- bun test ./packages/agy-cli: 35 pass, 0 fail (110s); bun scripts/check.mjs ok.
- test/usage.mjs with cp-hook preload 6 more times: 0 fail. One earlier
  run had "a direct read that fails leaves the region refusal standing"
  red with "agy usage could not start the CLI" at load ~28; the same red
  shows on the base tree (b35d4b35) in the same run, so it is not this
  change.
- Red on the old code (mica, base b35d4b35 with the new tests): catalog's
  two #3501 tests fail, usage.mjs fails to import agyRefusal.
- Real agy 1.5.9 on WSL (magpie-desktop) against a fake Code Assist that
  answers 403 #3501: before, models() gave the fallback list, chat gave 400
  "unavailable"; after, models() throws the #3501 reason, usage carries
  it, chat answers 403 permission_error with it.

Not tried: a real Google account that gets #3501; macOS and Windows with
real agy; a live ACP turn whose agent error carries #3501 (covered by the
fake agy in catalog.mjs only).
2026-11-16 10:57:34 +08:00
yetone b35d4b35b2 agy-cli README: the plugin calls Google itself only for a region-refused quota read
0.1.69 (99b042de) reads the quota directly when agy refuses /usage for
eligibility, so "the plugin does not call Google's internal endpoints
directly" no longer held. README only; no code changed, nothing run.
2026-11-16 03:29:57 +08:00
yetone 99b042def4 agy-cli 0.1.69: a region agy refuses still has its quota read
01dadada on X: "额度读取有问题。绕过查额度前询问地区限制就可以查到". agy
1.5.9's print mode waits for its eligibility verdict before any command,
/usage too. Where loadCodeAssist names an ineligible tier
(UNSUPPORTED_LOCATION) and no current one, agy prints {"status":"ERROR",
"error":"Eligibility check failed: Your current account is not eligible
for Antigravity, because it is not currently available in your
location."} and exits 1, though its own retrieveUserQuotaSummary had
already answered 200. Recorded through CLOUD_CODE_URL and a proxy that
rewrote loadCodeAssist's reply that way.

When agy refuses /usage for eligibility (not "Eligibility check failed:
EOF", a network failure), usage.mjs now makes agy's two requests itself:
POST /v1internal:loadCodeAssist {"metadata":{"ideType":"ANTIGRAVITY"}},
then /v1internal:retrieveUserQuotaSummary {"project":<its
cloudaicompanionProject>}, with agy's stored sign-in (signin.mjs
storedToken, the keyring or the account's token file), agy's User-Agent
(antigravity/cli/<version> (aidev_client; os_type; arch; cl;
auth_method)), Content-Type and Accept-Encoding gzip, at CLOUD_CODE_URL or
daily-cloudcode-pa. An access token under two minutes from its end is
renewed in memory with agy's client and never written. Any failure of
that read leaves agy's refusal as the error, with no windows: unknown,
never 0 or full. Users whose check passes: unchanged path.

Run:
- packages/agy-cli test/usage.mjs on mica: 35 pass.
- the new tests on the old usage.mjs (stub exports added so it loads):
  the region test is red (result.error set, no windows), as are the UA
  and renewal tests; the two "stays unknown" tests pass on both.
- packages/agy-cli `HOME=$(mktemp -d) bun test` on mote: base 35/35,
  this change 35/35 (both on base 1260b2ba; the rebase onto 22529504
  brought in only a README line and the antigravity package).
- root `HOME=$(mktemp -d) bun test` on mote (load 20 to 50, mica 100):
  7831 pass, 436 fail, across kimi-desktop, zen-free, inkstone, qoder,
  zcode, kiro and others this change doesn't touch; agy-cli's
  install.test.mjs 6 red there ("no network in tests") but 35/35 in the
  package run at base and head. Not filed per test: a run under that
  load isn't a record of main.
- bun scripts/check.mjs: ok.
- real: my agy 1.5.9 sign-in, fetchUsage with CLOUD_CODE_URL at a
  local proxy that made loadCodeAssist say UNSUPPORTED_LOCATION with no
  tiers: agy refused, the direct read returned Gemini and Claude & GPT
  7-day windows. Its two requests matched agy's in path, body, UA,
  Authorization, Content-Type and Accept-Encoding; fetch also adds
  Accept, Accept-Language and Sec-Fetch-Mode.

Not tried: a real region-restricted account; Windows and Linux; agy
versions other than 1.5.9 (cl= is known for 1.5.9 only, others send it).
2026-11-16 02:57:56 +08:00
yetone 2252950463 agy-cli README: agy runs a model's parallel tool calls one at a time (#1193)
agy checks each bridged tool call with its own sir_flash_lite monitor
(about 1.3-2.6 s) and sends the next call only after the previous result
is back, so N calls reach the client as N replies with one tool_use each.
The plugin has no switch for it and won't rename tools to agy's own
names to get past the check; the README now says so.

Run: none; README only (bumped.mjs leaves README.md out).
2026-11-16 02:51:10 +08:00
yetone c0c625ac7d antigravity 0.2.1: serves again for whoever has it; magpie gives it to nobody new
The owner (11-15): "正在使用的继续正常,加个提示,新用户不让下载".
0.2.0 answered every request with a 410. 0.2.1 restores the plugin as
0.1.18 had it (git checkout df7d7ae0 -- packages/antigravity), so a user
who has it keeps working. It stays out of registry.json, and magpie's
plugin.Add turns it away for anyone who doesn't have it listed, with a
line on the Providers page telling its users that Google suspends accounts
it sees used this way and pointing to agy-cli. The READMEs say so.

Run on mote at this tree, HOME a temp dir: bun scripts/check.mjs all, and
bun test packages/antigravity packages/agy-cli scripts: 195 pass, 0 fail.
2026-11-16 02:43:44 +08:00
yetone 1260b2ba40 devin 0.1.44: a long conversation Devin refuses is sent so it can take it
a1pha1nthefog on X: a long session through Devin got "There is an issue
with this request, please try a different model" on every turn, quota
left, while a new session worked. On a real Devin account
(claude-haiku-5-5 and others), Devin answers invalid_argument with that
text to each of these, and each stays in the conversation:

- a picture whose bytes aren't the type it is said to be (a PNG labelled
  image/jpeg or image/webp): now sent as the type its bytes are;
- a user prompt of white space alone: no longer sent (both wires);
- a thinking signature Devin didn't give (a fake one, or one from another
  Claude provider): the request goes again once without signatures;
- a conversation past the window (2400KB of Go, ~1.01M tokens on a 1M
  window; 2350KB passed at 991,278): past half the window by a bytes/4
  estimate, the refusal is a 400 "input is too long for the model's
  context", which magpie's gateway turns into prompt-too-long so the
  agent compacts.

Not changed: up to 150 images, empty and image-only tool results,
documents, redacted_thinking and Devin's own signatures across six Claude
models all passed on the old code.

Run at 7a3d33c7 on mote: HOME=$(mktemp -d) bun test, 8818 pass, 20 skip,
0 fail; bun scripts/check.mjs ok. long-session.test.mjs on origin/main's
index.mjs: 5 of 7 red (the 2 green are the unchanged cases). Real account
on the new code: mislabelled JPEG and WebP, a fake signature, one in a
tool loop and a white-space user prompt all 200; 2400KB is 400
invalid_request_error "input is too long ... about 602459 tokens or
more, for claude-haiku-5-5-low's window of 1000000".

Not tried: the chat-completions path against the real account, models
other than Claude, and which of the four the reporter hit.
2026-11-16 01:55:28 +08:00
yetone 9907c187b2 agy-cli 0.1.68: bring in the retired Antigravity plugin's accounts
A user asked on X (@tongzhenbao) to move the accounts signed in on the
retired Antigravity plugin (provider "antigravity") into agy-cli in one
click. That plugin signed in with Antigravity's own Google OAuth client
(1071006060591-tmhssin2h21lcre235vtolojh4g403ep), and agy's own
`agy acp --login` link uses the same client id, so agy can take those
refresh tokens as its own: nothing is sent anywhere agy doesn't already
send its sign-in, and no other client is spoken for.

auth.import (magpie's "Import accounts from a file…") now takes:
- the old plugin's saved oauth entry, one, a list or plugin-auth.json's
  map of them (refresh "<token>|<project>", accountId = email);
- agy's own token file / keyring value (go-keyring-base64: prefix too).
A bare refresh token or another tool's export is refused, since it may be
another client's. Each account gets its own agy home with the token file
agy writes (0600), and is added only once `agy models` runs there; one agy
refuses leaves no home. An account already signed in (same email) gives
its existing key back.

Run:
- mote: packages/agy-cli `HOME=$(mktemp -d) bun test`: smoke, signin,
  cloak, install all pass; test/usage.mjs red (3 of 30, different each
  run) and red the same way on pristine origin/main e5cb9598 (8 and 9
  of 30, two runs on mote), green on ubuntu CI; filed separately.
- the new smoke checks are red on the old index.mjs ("plugin.auth.import
  is not a function").
- bun scripts/check.mjs: ok.
- real account, sandbox HOME: the owner's live old-plugin entry copied
  into a sandbox .gemini/antigravity-cli/antigravity-oauth-token;
  `SSH_CONNECTION=… agy models` listed the models and agy refreshed the
  file in the same shape (refresh token not rotated).

Not tried: the import through a running magpie with a real account
(magpie's Providers-page Move comes in a magpie release).
2026-11-16 01:29:08 +08:00
yetone e5cb9598c8 agy-cli 0.1.67: more than one Google account, each with its own usage
tongzhenbao on X wanted several accounts with their usage, as the old
built-in had. agy keeps one sign-in where it looks for it (the system
keyring's single "gemini"/"antigravity" entry), so the plugin was
single: true and its second sign-in way replaced the account.

Now the first account is agy's own, unchanged, and "Add another Google
account" signs another one in to an agy whose home is the account's
own (XDG_STATE_HOME/magpie-agy-bridge/accounts/<id>). Every agy run for
that account (sign-in, models, usage, requests) gets HOME (USERPROFILE
on Windows) there and SSH_CONNECTION set, which agy 1.5 reads as an SSH
session and so keeps the sign-in in .gemini/antigravity-cli/
antigravity-oauth-token under that home rather than the keyring. The
account's home is saved in its metadata (agyHome); the loader, usage and
models run its work in an AsyncLocalStorage scope that childEnv and the
stored sign-in read follow. Its conversations are keyed apart, and it
gets no --gemini-dir (its token is under its own .gemini). single: true
is gone, so each account has its own row and usage and rotates like
any other.

Checked by hand before writing it, with real agy and planted (expired)
tokens in sandbox homes: agy read the file token from the sandbox HOME
on macOS (mote) with SSH_CONNECTION set, on Windows (xiaomi-gpu) with
USERPROFILE set, and in WSL. The live keyring was never touched.

Run:
- packages/agy-cli `HOME=$(mktemp -d) bun test` on mote: 35 pass, 0 fail.
- bun scripts/check.mjs on mote: ok.
- test/smoke.mjs on Windows (win-run): ALL OK (369 checks).
- Broken by hand: the new smoke checks against the old index.mjs,
  signin.mjs and platform.mjs: 6 FAILURES (the method, single, the
  home, SSH_CONNECTION, the saved account, the failed home's cleanup).

Not tried: a real Google sign-in of a second account, so agy writing
the token file under SSH detection is known from file-mode users
(plugins#1165) rather than seen here. Signing an added account in
again makes a new home and leaves the old one (~800K). Every account
shares one model catalog.
2026-11-15 23:51:00 +08:00
cyanask 8059af3148 company-guard 0.4.6: custom rules, history and receipt recovery (#1173)
What changes:
- Custom rules: you can manage your own masking rules (aliases, checks for duplicates and limits, warnings before discarding edits) on their own subpage.
- History: rule-version and authorization history, up to 100 entries.
- Masking: tool schemas' enum, const, default and examples values are now masked.
- Receipts: a damaged receipt keeps the stages that are still valid.
- Dist check: `npm test` first checks that dist matches its source.

Version 0.4.3 to 0.4.6.

Run at 13ad10a8 on mica, which merges cleanly over 13a6f4c2:
- `bun test packages/company-guard`: 33 pass, 0 fail.
- `node --test`: 33 pass, 0 fail.
- `bun scripts/check.mjs company-guard`: ok.

What was read:
- The dist diff, line by line against src/protocols.js and src/session-authorization.js.
- The new rules.js fetch: it only calls the page's own receipt routes, the same as authorization.js.

Not run: `build.mjs --check`. esbuild isn't installed on the test box.

Co-authored-by: cyanask <44457432+cyanask@users.noreply.github.com>
2026-11-15 23:43:15 +08:00
aqiu817andaqiu817 fc0c5a882e atomcode 0.3.1: send x-atomcode-session-id (#1185)
AtomCode's glm5.3-flash group answers 403 "access disabled by request policy" when a request has no x-atomcode-session-id (#1186). The plugin now sends one:
- chat.headers fills it with the session id of the conversation the agent is in;
- the loader falls back to one random UUID per signed-in account when the hook didn't run or the session is empty.
Version 0.3.1.

Run at bbdbcc7a, with no atomcode changes on main since its base:
- `bun test packages/atomcode` on mote: 164 pass, 0 fail.
- `bun scripts/check.mjs atomcode`: ok.

Broken by hand: with main's index.mjs and the PR's tests, run on mica, 3 tests fail (header and signature, per-account stability, chat.headers). The other 161 pass.

Not tried: the live AtomCode gateway. The author's probes compare the same request with and without the header (200 against 403).

Co-authored-by: aqiu817 <19250671+aqiu817@users.noreply.github.com>
2026-11-15 23:16:33 +08:00
R227BOUT 735e83e621 raccoon 0.1.13: the daily pool is its own window (#1178)
The raccoon card shows the daily pool (`daily_points`: 300 credits a day, each lasting 7 days) as its own "Daily pool" window, read as used / limit with a limit of max(2,100, daily_points, the unexpired daily grants in bills), along with its next expiry. When the pool is shown, routing weighs it and the aggregate Credits window becomes display-only (`aside`). The `setting_info` fallback and accounts with a daily pool of 0 keep Credits as the only weighted window. Version 0.1.13.

Run at 7d2bbf94 on mote (rebased on d123d540):
- `bun test packages/raccoon`: 58 pass, 0 fail.
- `bun scripts/check.mjs raccoon`: ok.

Broken by hand: with main's index.mjs under the PR's tests, 3 fail (the daily pool's used / limit, a daily_points over 2,100, and Credits when the bills cover every grant). The other 47 pass.

Not tried: a real Raccoon account. The window values come from the author's account data.

Co-authored-by: R227BOUT <235274933+R227BOUT@users.noreply.github.com>
2026-11-15 22:43:54 +08:00
bluesmilery 2f8f061a2c devin 0.1.43: adjacent signed thoughts replay without an empty prompt (#1183)
After a gateway web search, one Claude assistant turn can hold two adjacent
signed thinking blocks before the answer. On replay the first went out as an
assistant prompt with no text and no call, and Devin answered the next
request 400 (yetone/magpie#6742). The last block of each adjacent run now
goes on the prompt that follows, with its own text and signature; the
earlier ones are dropped, as the API drops earlier thinking anyway.

Reviewed at 163f08fe0, merged onto main 0262214e6, on macOS (mote) with a
temp HOME: bun test packages/devin, 221 pass, 0 fail; bun scripts/check.mjs
devin passes. Broken by hand: with main's index.mjs the new test fails. The
author reports a live replay going from 400 to 200; not tried here against
a real Devin account.

Co-authored-by: bluesmilery <bluesmilery@users.noreply.github.com>
2026-11-15 22:01:28 +08:00
yetone d123d54005 raccoon 0.1.12: what was spent survives a restart (#1182)
When the balance is a little over every grant the bills list (#936,
#1030), the Credits window counts what was spent down from the highest
balance seen. That top was kept in memory only, so after every magpie
restart the card read 0 used again (#1182). It is now also kept in
~/.config/magpie/raccoon-top-balance.json (MAGPIE_CONFIG_DIR when set),
one entry per account with a hash of its grant set: a new or expired grant
still starts the count again. Written through a temp file and a rename;
an unreadable file starts from the balance read, as before.

Not taken from #1182: rebuilding the window from expense bills (FIFO
against each grant). That needs the whole expense history on every poll
(a busy account has thousands of bills), and #1178 is reworking the
windows around daily_points at the same time.

Run on macOS (mote), with a temp HOME: bun test packages/raccoon, 55 pass,
0 fail; nothing was written under the test HOME's .config. bun
scripts/check.mjs raccoon passes. Broken by hand: with main's index.mjs
the new restart test fails (54 pass, 1 fail). Not tried: a real Raccoon
account across a real restart.
2026-11-15 21:33:24 +08:00
yetone 0262214e67 agy-cli 0.1.66: a display name two families share names neither (#1180)
model-ids.mjs's nameIndex said "one name, two families: no match" but kept
whichever family came first: the check in its first loop read the index
before anything was in it. Names are now collected with every family that
claims them, and a name claimed by more than one maps to nothing, so a
usage window never names the wrong family's ids. Also drops the unused
groupNoDesc helper from test/usage.mjs. Both were noted in #1180's review.

Run on macOS (mote), CI-style with a temp HOME: bun test packages/agy-cli,
35 pass, 0 fail; bun scripts/check.mjs agy-cli passes. Broken by hand: with
#1180's model-ids.mjs and the new test, the test fails (34 pass, 1 fail).
Not tried: a real agy catalog with a shared name (none is known today).
2026-11-15 20:35:40 +08:00
Ruining YangandRuining Yang f4c2f2fb2b agy-cli 0.1.65: usage windows name the model ids they cover (#1180)
A usage window from `agy usage` now carries the model ids it covers, taken
from the catalog `agy models` listed: each display name in the group's
"Models within this group:" line (or the group's own name) maps to the
family id and every effort variant the catalog serves. With no catalog yet,
or a name the catalog doesn't have, a window has no ids. The windows stay
aside, so routing is unchanged; agy-cli 0.1.65.

Run at 8acf7ffb5 on macOS (mote), CI-style with a temp HOME:
bun test packages/agy-cli, 35 pass, 0 fail; bun scripts/check.mjs agy-cli
passes. Not tried: a real agy account (the local one answers 403).

Co-authored-by: Ruining Yang <ArmedHelicopter@users.noreply.github.com>
2026-11-15 20:31:27 +08:00
wuuliandXulin Wu 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 2ede7d53, on a Mac:
- HOME=$(mktemp -d) bun test packages/cursor: 431 pass, 0 fail.
- bun scripts/check.mjs cursor: ok.

Broken by hand: with the new line taken out, 5 tests go red (the content-refusal cases at 200/unauthenticated, 401 and 403/permission_denied, and RunSSE with stream off and on).

Not tried: a real Cursor refusal; the cases are fixtures of the reported wording.

Co-authored-by: Xulin Wu <wuxulin@bytedance.com>
2026-11-15 18:12:40 +08:00
yetone 2ede7d53c1 agy-cli 0.1.64: startup diagnostics aren't sign-in talk (#1177) 2026-11-15 16:50:10 +08:00
niceguiandnicegui 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 b40a853c stopped). A diagnostics-only timeout backs off and retries with the same sign-in.

Run at the reviewed head 9311076c merged onto origin/main, on mote:
- HOME=$(mktemp -d) bun test packages/agy-cli: 35 pass, 0 fail (test/usage.mjs runs with its mocks inside).
- bun scripts/check.mjs agy-cli: ok.

Broken by hand, each red on test/usage.mjs:
- the timeout branch removed (auth only on kind "auth"): "a hung sign-in with an ended token is never restarted until the credential changes" fails.
- SIGN_IN_TALK tested on the raw output: "a timeout with only OAuth diagnostics backs off and recovers with the same sign-in" fails.

Not tried: a real agy whose token has ended; the cases are the fake agy's.

Co-authored-by: nicegui <luolingpeng@lovart.ai>
2026-11-15 16:49:58 +08:00
yetone 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.
2026-11-15 16:15:09 +08:00
yetone 74998a9232 agy-cli 0.1.63: run_command's toolSummary no longer collides with agy's own (#1174)
Releases 491cea35 (andrew-zyf). Ran: bun scripts/check.mjs packages/agy-cli ok; the package's bun test was run at the PR head on mote (25/25).
2026-11-15 15:42:57 +08:00
𝘼𝙣𝙙𝙧𝙚𝙬 𝙕𝙮𝙛andandrew-zyf 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>
2026-11-15 15:42:32 +08:00
yetone 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.
2026-11-15 14:55:10 +08:00
yetone 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 13a6f4c2,
on Linux (wsl-run, magpie-desktop), covering the five commits above
and agy-cli 0.1.61: 8775 pass, 0 fail.
2026-11-15 14:10:25 +08:00
yetone 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.
2026-11-15 14:03:54 +08:00
yetone 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.
2026-11-15 14:03:54 +08:00
yetone 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.
2026-11-15 14:03:54 +08:00
yetone 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.
2026-11-15 14:03:54 +08:00
yetone 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.
2026-11-15 14:03:54 +08:00
stringke 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 baeb95a4): root bun test, 8771 pass,
  1 fail (reasoning-replay's fixture, above).
- Reviewed head 0b899428: root bun test, 8772 pass, 0 fail, 613 files.
  Main since gained only 2523b43a (packages/agy-cli/test/smoke.mjs).

Read for credential safety: no logging; errors carry no token; refresh
tokens and client secrets go only to Kiro's auth service and AWS OIDC;
an imported sign-in has no dbKey/idePath, so renewing it writes back to
no kiro-cli or IDE file. No .github, dependency or new host.

Not tried: a real Kiro account imported from a real export.
2026-11-15 13:58:11 +08:00
yetone 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 (baeb95a4) moves the client's prompt into
the first turn; this pins Claude Code's own head, the CLI's and the Agent
SDK's identity line with the billing line and the interactive-agent line:
nothing in agy's system instruction, and nothing turnsAway() matches in
the turn ("You're Claude Code, ...", billing line dropped).

Run on mica, HOME=$(mktemp -d), AGY_BRIDGE_STORED_SIGNIN=skip:
packages/agy-cli smoke ALL OK (357 checks). Broken by hand: systemAppend
forced on (0.1.59's route) makes all four new checks BAD.

Not tried: a real Antigravity request from Claude Code (no usable agy
account here), nor Windows.
2026-11-15 13:44:43 +08:00
yetone 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 (84c2a479) still applies when one gets through.

Cost, in both READMEs: the prompt now shares the 112 KiB first-prompt
budget, and agy's compaction can summarise it.

Run at this head (rebased on 84c2a479), on mica,
HOME=$(mktemp -d):
- packages/agy-cli smoke (AGY_BRIDGE_STORED_SIGNIN=skip): ALL OK (353 checks)
- packages/agy-cli bun test: 24 pass, 0 fail
- root bun test: 8753 pass, 0 fail (8773 tests, 611 files)
Red on the old code: origin/main's index.mjs with the new smoke.mjs,
8 FAILURES of 351 (the prompt appended, not in the turn; the four
"where client tools run" checks and the trailing-message cwd check, which
now read the first turn; a session parked with appended instructions
resumed).
Broken by hand: park() without instructionsInSession made three
conversation-key tests fail (the field must survive JSON).

Also asked on X (MndiLysses): agy compacting at ~256K for 1M models.
Not changed: agy 1.5.9 clamps the auto-compact threshold at 256,000 in
utils.GetCheckpointConfig (min(x, 0x3E800)), so
AGY_CLI_AUTO_COMPACT_OVERRIDE can't go above it, and the larger tiers are
held to Gemini 4 Argon. Waits on upstream #1432 (dup of #878, #1245).

Not tried: a real Antigravity request (the owner's agy account is
disabled for ToS; mote, mica and xiaomi-gpu have no agy), so neither
whether Google accepts the prompt in the user turn for every agent nor
whether compaction keeps it.
2026-11-15 13:33:22 +08:00
yetone 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.
2026-11-15 12:53:29 +08:00
yetone 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.
2026-11-15 12:10:56 +08:00
yetone 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.
2026-11-15 11:42:30 +08:00
yetone f91552564e agy-cli 0.1.56: cloak.mjs says it is the only copy now (comments only)
003a38ff changed cloak.mjs's header comment when antigravity 0.2.0 stopped
carrying the same lists; bumped.yml refuses a changed file with no version
raise. No code changed.
2026-11-15 11:11:11 +08:00
yetone 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).
2026-11-15 11:10:03 +08:00
yetone 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.
2026-11-15 09:46:03 +08:00
yetone 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 df7d7ae0 as with this change (plugins#1070).
Real agy 1.5.9 on macOS, with the user's account: `agy acp --gemini-dir
<empty folder>` initialised, session/new listed the account's six
models, and the session's .db was written under
<folder>/antigravity-cli/conversations, not ~/.gemini.
Broken by hand: with step usage left on ~/.gemini, the new usage test
reads the machine folder's count (9999 != 1800).
Not tried: a real turn on Windows or Linux with this build; the
Windows result is the reporter's, with their own patch of 0.1.52.
2026-11-15 07:45:56 +08:00
yetone 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.
2026-11-15 07:21:12 +08:00
yetone 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 (fb7bbebd) reword
them there, and fb7bbebd noted agy-cli as not tried. agy-cli reworded only
system text, so AGENTS.md text, a <system-reminder> and replayed history
in a user's turn went to agy as written.

- cloak.mjs: USER_TURNED_AWAY (the two Codex lines) and cloakUser().
- index.mjs: every text part of the prompt goes through cloakUser before
  agy gets it. Parked sessions carry userCloak: 1; one parked before this
  version (whose agy copy may hold the line as written) is not resumed.
- READMEs (zh, en) say so.

Run: HOME=$(mktemp -d) bun test packages/agy-cli on mica: 22 pass, 0 fail
(cloak.test 6, agy-cli.test 16 incl. conversation-key 36 cases);
bun scripts/check.mjs agy-cli: ok.
Broken by hand (on mote): the userTurnParts call and the userCloak check
removed, the two new conversation-key tests fail (34 pass, 2 fail);
restored, all pass.
Not tried: a real request. The one probe on the owner's account got
"This service has been disabled in this account for violation of Terms of
Service" as a 200 (#1163), so no 429 could be reproduced or cleared on a
real agy. The reporter's exact agent and prompt are not known.
2026-11-15 07:20:36 +08:00
yetone 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.
2026-11-15 06:43:07 +08:00
yetone 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 9126c46f (1 x 200, 3 x 503), green
  after.
- Broken by hand: with begin moved back outside the lock the new test is
  red again.
- packages/agy-cli bun test under a temp HOME on mote: 21/21, smoke
  included.
- Whole repo, HOME=$(mktemp -d) bun test and bun scripts/check.mjs on
  mica at this tree: 8849 pass, 0 fail (8869 tests, 617 files), check.mjs ok.
- Real agy 1.5.9 (agy acp), four models at once through the plugin:
  old code 1 x 200 + 3 x 503; this code 4 x 200 at 3.7, 6.0, 9.1 and
  11.2s, inside magpie's 20s test wait.

Not tried: the reporter's models (Gemini 4 Argon/Hydrogen, Claude 5.5).
The account used offers Gemini 3.8 Flash, Claude 4.6 and GPT-OSS only, so
the model id mapping wasn't checked against a list holding those ids.
2026-11-15 04:31:05 +08:00
yetone 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.
2026-11-15 03:26:52 +08:00
yetone 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).
2026-11-15 02:47:43 +08:00
Chanyeong Limandasp345 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>
2026-11-15 01:25:15 +08:00
yetone 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.
2026-11-15 01:22:56 +08:00
yetone 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.
2026-11-15 00:45:01 +08:00
yetone 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).
2026-11-15 00:41:54 +08:00
yetone 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.
2026-11-15 00:08:38 +08:00