main
1354
Commits
| Author | SHA1 | Message | Date | |
|---|---|---|---|---|
|
|
ea6c7606b7 |
kimi-work: record plan display verification
bumped / bumped (push) Failing after 8s
|
||
|
|
b72b6407c3 |
kimi-work: show plan names and recommended concurrency
Verification: npx --yes bun test packages/kimi-work (123 pass, 0 fail, 608 assertions) and npx --yes bun scripts/check.mjs kimi-work passed. The new plan/cache tests failed on the old implementation with 'I.planName is not a function' and 'p.auth.accountPlan is not a function'. Real NAS account, GUI and SSE verification are not yet run. |
||
|
|
46cf9bfbfb |
docs: record Kimi Work concurrency verification
bumped / bumped (push) Failing after 6m20s
|
||
|
|
ccde88de78 |
kimi-work: apply each account plan concurrency
Report each account Agent-task limit through auth.accountConcurrency, with five-minute caching, per-account credentials, failure retention and manual override documentation. Verification: node --check packages/kimi-work/index.mjs; npx --yes bun test packages/kimi-work (123 pass, 0 fail, 599 assertions); npx --yes bun scripts/check.mjs kimi-work. The six new concurrency tests fail on 0.1.19 because planConcurrency and the hook are absent. The repository-wide Bun run also completed but is not green on this Windows checkout because of unrelated CRLF, symlink permission, process cleanup and other package failures. |
||
|
|
631a8b6ee5 |
kimi-work: record 0.1.19 NAS verification
bumped / bumped (push) Successful in 3m35s
Archive the request-compatibility decision and record the successful short streaming request. This does not claim long-context cancellation is resolved. |
||
|
|
8430d83306 |
kimi-work 0.1.19: align requests with the official client
Match Kimi Code 0.5.1, daimon 1.0.14 and desktop 3.2.28 headers. Add standard context, Work tag, traceparent, stable account device IDs and model output caps. Verified: node --check packages/kimi-work/index.mjs; npx --yes bun test packages/kimi-work (117 pass); npx --yes bun scripts/check.mjs kimi-work. |
||
|
|
e7488730d7 | kimi-work: show the Windows credentials path when importing | ||
|
|
0b3b89ab03 | kimi-work: offer credential import in the sign-in menu | ||
|
|
c0100a29a3 | kimi-work 0.1.18: import desktop credentials from a file | ||
|
|
836f2e4e4c |
agy-cli 0.1.99: DSH's own notes beside a tool result no longer end the live session
seven_7cx on X (DSH + agy-cli on multi-step tool tasks): cache reads jumping between 10-20 and 0, drop_live (history_mismatch, interrupted) and session_new over and over, the history replayed each time, and the model looping on tool calls. Cause: DSH adds user-role notes of its own before a step (time-context's "Time sampled while preparing turn N, step M" clock, the runtime-context snapshot, the repeat-tool and plan-mode notes, tmux-context's location reading, a finished background job's notice, the model-changed note). Beside a live tool_result, inspectToolTurn took any such user text for the user steering, so the step was "interrupted": the live session was dropped and the whole history replayed in a new one, which put the cache at 0 and the model back at the start of its task. The same notes were already known as meta by isMetaOnlyUserText, but only for finding a prompt, not here. Fix: takeDshNotes lifts DSH's notes out of a user text in inspectToolTurn and hands them on as context notices with the result; isMetaOnlyUserText also knows the three newer ones. Test (repeat-batch.mjs): a 9-step tool turn with one DSH note per step, in the result's own message and in a message of its own. Red on 0.1.98 (the turn never ends; drop_live per step), green now; the session is opened once and no drop_live is logged. Run (mica/mote via mote-run, bun 1.4.2): repeat-batch.mjs 81 pass, steer-in-session, conversation-key, dropped-call 50 pass, compat 13 pass. Not tried: a real DSH session against a real agy account. history_mismatch was not reproduced from DSH's shape; it was seen after a replay, and the step notes were the only DSH-specific cause found by reading DSH's plugins (dsh-time-context, dsh-tmux-context, dsh-tool-jobs, dsh-agent). |
||
|
|
21c3f948f1 |
factory 0.1.52: "harness" reads runtime in a client's prompt and tool descriptions, and Claude Code's tool search goes as tools declared in full
@DennisYan4 on X (2026-11-19): Claude Code, Pi and Codex through Factory answer 400 content_policy_rejected since 11-17, and Claude Code's deferred tools fail. Factory's policy check refuses a client describing itself as an agent harness; Pi passed once its prompt said "runtime" for "harness". The word alone changes (names like harness_key and the user's own turns are left), in system prompts, system messages, the update-config entry and tool descriptions. Claude Code's tool search (defer_loading, the DeferredToolPlaceholder tool, tool_reference/tool_definition/tool_addition blocks) is turned into what its own no-tool-search path sends: every loaded tool declared in full, a reference answered as text so the pairing stays. Run: bun test packages/factory on mote (226 tests, green); the 5 new harness tests are red on the previous index.mjs. The root `bun test` was left to CI (a one-hour run on mote). |
||
|
|
9c5d284cf0 |
trae: an enterprise seat signs in on its console's own authorization page (#1328)
Since the 2026-11-18 Doubao/Feishu account upgrade, www.trae.cn/authorization
sends a signed-out browser to accounts.doubao.com ("登录豆包飞书账号 以继续使用
TRAE"), which has no enterprise entry: hide_saas_login is lost on the way,
and a legacy enterprise TRAE account (email/password) can't sign in there at
all (@yalifesign on X; #1328, Jinzhengxu, yjun123).
Each provider now has a second way, "Trae CN enterprise account (browser)" /
"Trae Global enterprise account (browser)". It opens
console.enterprise.trae.cn/authorization (console.enterprise.trae.ai for
Global) with the same parameters as the consumer page. That route is in the
consoles' own page code (CN index-Jt0RvTT_.js, Global index-Cd9NoAem.js): it
takes login_trace_id, device_id, auth_from (trae/solo/...) and an
auth_callback_url on 127.0.0.1, shows the console's login (TRAE account,
Doubao/Feishu, 企业 SSO) when signed out, then calls back with userJwt,
userInfo, refreshToken and host (its Api host) - the fields the plugin
already reads. A callback from the console that names no host takes its
consoleHost, so the seat is still enterprise. The personal way is unchanged.
Run (mote, through mote-run):
- packages/trae: bun test, 293 pass, 0 fail.
- root bun test with a temp HOME: 9101 pass, 0 fail (9121 tests, 638
files, 573s); bun scripts/check.mjs exit 0. Both at base 140c513b; rebased onto
|
||
|
|
e6c457112a |
factory 0.1.51: dsh's web_search goes out as WebSearch, and a tool set refused for a name not listed yet goes once more renamed in full
@a1pha1nthefog on X (2026-11-19): dsh (DeepSeek Harness) on Factory's
claude-opus-5-5 is still refused (content_policy_rejected) on magpie
v0.1.4532, whose Factory mover installs 0.1.50. 0.1.50 renamed the six dsh
tools on our list, but dsh also declares web_search, and two real accounts
saw Factory refuse web_search, read_file and execute_command the same day,
and every listed name behind leading underscores (_read, _web_search), while
omp_read and WebSearch pass (can1357/oh-my-pi#19553, single-tool probes with
a passing system block). 0.1.50's dsh test passed because its fake Factory
refused only the names the plugin itself listed.
- tool-names.mjs lists web_search, read_file and execute_command (as
WebSearch, Read and Execute, droid's own names) and refuses a listed
name behind leading underscores (refusedName).
- Factory adds names without notice, so one more missing name would refuse
every request again. A 403 content_policy_rejected for a request that
declares tools now goes once more with every tool renamed (droid's
names and mcp__ tools kept): if Factory takes it, that tool set goes
renamed in full for the rest of the process (at most 256 sets kept); if
it refuses again, the refusal is about the content and is the answer, as
before. A request with no tools is never sent twice.
- The tests' fake Factory now refuses what real accounts were seen
refusing (SEEN_REFUSED), apart from the plugin's own list, and dsh's
first request must be taken on the first try.
Only name fields change, as in 0.1.50: descriptions, schemas, arguments and
dsh's prompt go as written, and replies carry the caller's names back.
Run (mote, at origin/main
|
||
|
|
5f3202000c |
agy-cli 0.1.98: with Antigravity's app wired to magpie, the provider lists the Google account's models, not magpie's
@canlee886 on X: Antigravity was wired to magpie, and agy-cli as a
provider then listed magpie's own models (its routing groups, "GPT-6
Astra · routing group (Low…Max)"). That is a loop: magpie -> plugin ->
agy -> magpie.
Cause: magpie wires Antigravity's desktop app through the gateway block
in ~/.gemini/config/config.json, and agy 1.5.10 reads that same file. An
agy on ~/.gemini then lists and offers the gateway's models, whatever its
settings.json says. --settings '{"modelProvider":""}' doesn't help.
- The catalog's model probe ran `agy acp` with no --gemini-dir, so it was
offered magpie's models, and the catalog keeps to what a session offers.
- `agy models` (the listing, the sign-in check, refusalNow) can't be
given a --gemini-dir at all. It also answered from the gateway, and so
took magpie's listing for a Google sign-in.
- Turns already ran on the bridge's own folder, and agy reads no app
gateway there.
Fix:
- The probe runs on the folder a turn runs on (geminiDirArgs), so it is
offered what a turn is served.
- With the app's gateway on (appGatewayOn: gateway.enabled true, or a
file that isn't JSON), the listing and the sign-in check come from that
session instead of `agy models`. refusalNow doesn't read the gateway's
listing either.
- A gateway turned off, a missing file, an account home or no own
folder: `agy models` is used as before.
Run:
- Real agy 1.5.10 in a sandbox HOME, with the real Google sign-in and
the app's gateway pointing at a fake magpie on 127.0.0.1:
- old index.mjs listed rg/gpt-6-astra and rg/gpt-6-luna, with three
requests to the fake;
- new listed claude-sonnet-4-6, claude-opus-4-6-thinking, gemini-3.8-
flash and gpt-oss-120b, with no request to the fake.
- A real turn went to Google, with 0 requests to the fake. Google
answered 403: this test account is disabled for Antigravity.
- Four new tests in test/catalog.mjs. On the old index.mjs all 4 are red.
With only the probe's --gemini-dir taken out by hand, the two listing
tests are red ("magpie's own models were listed").
- On mote: bun scripts/check.mjs ok; agy-cli bun test 41 pass, 0 fail, in
a temp HOME.
Not tried: an agy with no keyring (fileSignIn) or AGY_BRIDGE_GEMINI_DIR=
default. Its turns run on ~/.gemini and still follow the app's gateway;
filed separately.
|
||
|
|
29547d4200 |
agy-cli 0.1.97: usage finds an agy installed since at once, and a sign-in is named by its Google account
@tmr11235 on X (magpie v0.1.4520):
1. "The model test works, but the account says there is no CLI."
Usage held its "agy CLI not found" error for the backoff, which grows
from 10 minutes to 6 hours. A read made before agy was installed kept
saying "not found" for hours after a sign-in installed agy, while
chats and model tests already ran through it. Now:
- no agy found is never held;
- a held failure belongs to the agy path it was held for, so an agy
found since is read on the next refresh;
- the message says how magpie gets agy (sign in again), in noAgy's
words.
2. "After removing it and signing out, 登录 restored the account with no
sign-in, shown as API key." magpie's remove/sign-out deletes only
magpie's record. agy on the computer stays signed in, so 登录 adopts
that sign-in again with no browser (method 0's "auto"). That part is
by design. The "API key" label came from a sign-in saved without an
email: agy's keyring value names its account in id_token_email, and
when it doesn't (or the read fails), the saved record had no
metadata.email. pluginLabels then falls back to the record's type,
"API key". signedInAs now asks Google's userinfo with agy's own
access token when the stored value names no account, so the account
is listed under its email. An account saved before this keeps its
label until its next sign-in (登录 on it), which saves the email.
Their later quota "as of 2026/11/15, couldn't be read just now" is not
this: "not found" isn't a passing error, so magpie shows it rather than
an old reading. The read behind it fails with a timeout, 429 or network
error that magpie stood an old reading in for; magpie now says which
beside the date (magpie, readError).
Run (at origin/main
|
||
|
|
bb849910ac |
factory 0.1.50: tools Factory refuses by name go out under droid's names, so dsh is not refused
@a1pha1nthefog on X (2026-11-19): dsh (DeepSeek Harness) through magpie on
Factory got "This request was blocked by Factory's usage policy check"
(content_policy_rejected) on its first turn, the user message "1". It reads
like dsh's prompt or skills are blocked, but they are not. Since 2026-11-18
Factory refuses any request that declares a tool under certain exact names,
on every route (#1291, #1306), and dsh 0.2.1 declares six of them: bash,
read, write, edit, glob and grep. It is the request's tool names, not the
account, the model, or dsh's prompt text.
This takes heggria's #1314 (closed unmerged) with credit: tool-names.mjs
declares such a tool under droid's own name for the job (Execute, Read,
Create, Edit, Glob, Grep, Task) or, when droid has none or the request
already declares that name, under its own name with a per-process suffix.
It renames earlier calls, tool_choice, allowed_tools and Gemini's function
names to match, and gives the caller its own names back in JSON and SSE
replies. Only name fields change: descriptions, schemas, arguments and the
prompt go as dsh wrote them. On top of #1314, agent, Shell and StrReplace,
which #1291 also saw refused on 11-18, are in the list, and
testdata/dsh-0.2.1-chat.json is dsh 0.2.1's real first request (captured
as it left dsh in a sandbox HOME, then sanitized), tested on chat
completions and on Messages.
Co-authored-by: heggria <34475327+heggria@users.noreply.github.com>
Run (mote, at
|
||
|
|
0ae116db1a |
kiro 0.1.41: a month used up with trial credits left goes on on credits, so magpie spends the other accounts' plan credits first (#1352)
Kiro spends an account's plan credits first, then its trial credits (kiro.dev/docs/billing: "Kiro uses your plan credits first, then your trial credits"; trial credits last 12 months, plan credits end at the month's reset). A month (or, with overage on, the overage) used up while a bonus has credits left now says `credits: true` beside `aside: true`, so magpie asks that account after the provider's accounts with plan credits left; an older magpie routes it as before. A bonus Kiro marks EXHAUSTED is shown at 100%. Identity Center per-region windows never carry `credits`. Review follow-up (d947cdc): only an ACTIVE bonus counts as credits left (an EXHAUSTED one whose count still said 499.5 / 500 made the account go on on credits Kiro won't spend), and a bonus left that lapses before the month's reset keeps the month set aside only, so that bonus isn't asked last and lost. Run at the reviewed head d947cdc48: HOME=$(mktemp -d) bun test in packages/kiro on mote, 225 pass, 0 fail; bun scripts/check.mjs kiro ok; PR CI (test, bumped, on-npm) green. Broken by hand: with the ACTIVE and lapse checks removed, the new usage test goes red (13 pass, 1 fail). Co-authored-by: yetone <yetoneful@gmail.com> |
||
|
|
140c513b81 |
registry: Antigravity (local agy CLI) says what it is to a newcomer
The Plugins page summary read, in zh, "驱动你自己安装并登录的 agy CLI…进程池、
历史体积预算、客户端工具桥接…". A user on X asking how to get Antigravity's
Gemini into Pi through magpie called the path "各种东西看不懂". The summary
said agy had to be installed and signed in to first, which is wrong: Sign in
in magpie installs agy when the computer has none (README "Requirements",
index.mjs installAgy). It also compared itself to Antigravity ACP, which the
registry doesn't list.
It now says what you get (Antigravity's models in any agent, on your Google
account), the two steps (Install, then Sign in with Google in magpie, agy
installed for you), and the ~2s that agy's own safety check adds to each
tool call (plugins#1193; README since
|
||
|
|
0a34ff8508 |
workbuddy 0.2.37: a kimi-k3.1-pro call-only turn carries a space
Gloria335056 on X: from dsh through magpie, WorkBuddy's kimi-k3.1-pro fails with 400 "Invalid request parameters" while every other model works. dsh (pi-ai openai-completions) records a call-only assistant turn as "content": null, captured at magpie's gateway, so every request after the model's first tool call carries one. The same model on QwenWork refused null and "" and served one space (nanfei892, #1213, measured), and kimi-k3 on www.workbuddy.ai took the null turn (measured today). systemOn now runs callText: for kimi-k3.1-pro and kimi-k3.1-pro-highspeed on both sites, an assistant turn with tool_calls and an empty content (null, "", or only empty text parts) goes with content " ". A turn with text, and every other model (kimi-k3, kimi-k3-1, kimi-k2.6, DeepSeek, GLM), go as they came. Test: kimi-call-text.test.mjs uses dsh 0.2.1's literal second request through the loader on both sites. Run (temp HOME, mica): bun test in packages/workbuddy 390 pass, 0 fail; bun scripts/check.mjs workbuddy ok. Broken by hand: with the callText call taken out of systemOn, the four null-turn cases fail (mica). Not tried: a real kimi-k3.1-pro request. Both owner accounts are free (WorkBuddy AI refuses the model for personal_free_user before reading the body), and the China account's refresh token is refused (12153). |
||
|
|
38594b5aee |
gemini-web 0.1.0: the Gemini web app, one streamed call to its own endpoint per request
@jtbbtnt54249 on X (11-18) asked for a Gemini web plugin: the community
@dorokuma/magpie-gemini-web is "太慢了根本用不了". The MCP in their
screenshot is a Gemini web "custom app" remote connector: Google's servers
call a public MCP URL, so it can't serve a local agent and is not a route.
Why the existing one is slow: it goes through a separate local Go backend
that fetches the XSRF token before every request, uploads prompts over
128KB as a file, sleeps 2s between retries, and holds replies behind a
tool-fence gate and a slot limiter.
This package calls gemini.google.com the way the app's page does:
- the page's tokens (SNlM0e, cfb2h, FdrFJe) are read from /app once and
kept 15 minutes;
- each request is one POST to StreamGenerate, the whole request inline in
a temporary chat (slot 45, nothing kept in history), read as it
streams and given back as SSE or a whole completion;
- tools are asked for as <tool_call> text (prompt.mjs and openai.mjs from
doubao-work) and given back as tool_calls;
- signed in: a Chrome profile of the plugin's own opens at Google's
sign-in, the user signs in themselves, the google.com cookies are read
with Storage.getCookies on the browser target (nothing attached to the
page) and the window closes. Set-Cookie renewals are saved back with
client.auth.set; RotateCookies every ten minutes; signed out, rotate,
then reopen the profile headless, then ask for a sign-in;
- a visitor (no account) gets Google's visitor model;
- models from the account's own picker (otAQ7b), fallback marked;
- prompts over 600K characters get 413 before they are sent (measured:
315K fine, 900K ignored the request, 1.8M refused with error 3); error 3
is named as a refusal with its likely causes.
Run:
- HOME=$(mktemp -d) bun test packages/gemini-web on mote: 28 pass. The
fixtures are real StreamGenerate replies (a signed-in "pong" served as
4 Hydrogen, a visitor's rivers text with its real chunks) and a real
otAQ7b list, with the location Google guessed scrubbed.
- Broken by hand: not sending `at` turns two tests red.
- Full suite on mote, HOME=$(mktemp -d) bun test at
|
||
|
|
ea805ecc92 |
trae 0.2.45: an enterprise chat names its limit where Trae's client does, and a cut reply says length
@liuyuexue2020 on X (0.2.44, Trae CN enterprise seat): their own request,
volc/deepseek-v4-1-flash with max_tokens 4096, temperature 0, stream
false, asking for 120 long lines. Four enterprise models
(AI/deekseek-v4.1-flash, volc/deepseek-v4-1-flash,
AI/deekseek-v4-flash-0731, AI/GLM-5.3-Flash) each answered exactly 2000
completion tokens, finish_reason "stop", mid-answer (24, 27 and 52 of
120 lines; deekseek-v4.1-flash no content at all).
What 0.2.44 sent: top-level max_tokens = min(4096, the detail's
max_tokens), so 4096 unless the list gives the model less. magpie's
gateway only lowers a limit (the user's Max output, withMaxOutput) and
fills one in on the Anthropic API only (askedOutput); it has no 2000.
The plugin passes Trae's completion_tokens and finish_reason through, and
reads the stream to Trae's done event; it doesn't cut it.
Cause (inferred, no enterprise seat to measure): Trae CN 3.4.22's own
client never sends llm_utils_chat a max_tokens (its request struct in
libharness has none), and its agent task carries an enterprise model's
limit as enterprise_custom_hyper_params {max_tokens, prompt_max_tokens,
multimodal} beside config_source and is_custom_model (AgentSpec,
CreateTaskRequest). So Trae most likely ignores the top-level max_tokens
for an enterprise model and gives it 2000, and says "stop" when it cuts.
The other reading, the list giving these models max_tokens 2000, would
show as 2000 output in /v1/models; the reporter is asked for it.
Now:
- an enterprise model's chat also sends enterprise_custom_hyper_params
(max_tokens as sent, the detail's prompt_max_tokens, multimodal from
the list) when a limit is known; the top-level max_tokens stays. A
preset gets nothing new.
- a reply Trae ends with "stop" or no reason, having used every token it
was let have (the max_tokens sent, or 2000 for an enterprise model),
finishes "length" in a body and in a stream, so the agent knows it was
cut. Tool calls, content_filter and shorter replies are unchanged; a
preset's 2000 isn't taken for a cut.
Tests (entmodels.test.mjs), from the reporter's request: a fake Trae
that reads the limit from enterprise_custom_hyper_params only and cuts
at 2000 with "stop". On 0.2.44's index.mjs all three new tests are red
(3100 expected, 2000 received; "length" expected, "stop" received).
Not tried: a real enterprise seat (none here). Whether Trae honours
enterprise_custom_hyper_params on llm_utils_chat is read from the
binary, not measured; if it doesn't, the reply is still cut at 2000 but
now says length.
Siblings: Trae CN and Trae international share chatBody and openai();
SOLO functions too.
Run (mica, HOME=$(mktemp -d), this tree on 67fb1258; mote was over its
cores):
packages/trae bun test: 290 pass, 0 fail (24 files);
bun scripts/check.mjs trae: ok;
root bun test: 9060 pass, 3 fail, 20 skip (636 files, 533s). The 3 reds
are in untouched packages and pass alone at once (agent-office jump.test
12/12, doubao-work 59/59): agent-office's jumpRequest is #642,
doubao-work's two are filed as #1350.
Broken by hand: 0.2.44's index.mjs with these tests, 3 of 13 red in
entmodels.test.mjs (above).
|
||
|
|
67fb12584a |
antigravity 0.2.4: a reply names the id it went out under (x-magpie-sent-model)
daoche_wuzui on X asked how to tell whether a request was routed to a model with a suffix. The plugin sends a family (gemini-3.7-flash) as the variant the effort picks from the account's list (gemini-3.7-flash-high), and nothing told magpie which. complete()'s replies now carry x-magpie-sent-model with that id, on the stream, the whole reply and a failed reply passed through. magpie keeps it in its ledger and shows it on Usage › Requests and the Routing page (yetone/magpie, same day), and takes the header off before the agent. OpenCode ignores it. Run (mote, HOME=$(mktemp -d)) at this tree: bun test packages/antigravity 136 pass, 0 fail; bun scripts/check.mjs ok. Broken by hand: 0.2.3's index.mjs with the new test: requests.test.mjs 31 pass, 1 fail (the new test). Not tried: a real account. The change adds one response header and sends Google nothing new. |
||
|
|
ec1c675f72 |
factory: a Gemini request opens with its model, as droid's does (0.1.49)
marovole on X, on 0.1.48 (magpie v0.1.4504, Droid BYOK, Factory API key
sign-in): three gemini-4-hydrogen requests came back 400 "Invalid model
ID in request body", each again on 2 or 3 retries, while the same setup
went through 83 times on hydrogen and 28 each on carbon and sonnet that
day. The failing bodies were 0.6 to 1.6 MB, long Droid sessions. 0.1.48's
per-conversation x-session-id did not change it.
What differs from droid, and grows with the body, is where the model
sits. droid 1.14.0 builds its Gemini request as {model, contents,
systemInstruction, tools, generationConfig} (testdata/droid-1.14.0-
gemini-body.txt, from the release binary). magpie's gateway marshals a
Gemini body from a Go map, so its keys come sorted: contents,
generationConfig, model, ... The plugin's geminiBody set m.model on that
object, which keeps the key where it was, after the contents; a body
from the AI SDK's Google package has no model, so it went last. Either
way the model came after the whole conversation. A route that
reads the model from the first part of a body would find droid's at
once and miss ours past some size, every retry alike, which is the
reported pattern.
geminiBody now writes the fields in droid's order (GEMINI_ORDER), the
model first, and any other field (toolConfig, safetySettings) after them
in its own order. Only the Gemini route changes; droid's Chat body puts
messages before model, so the other routes keep theirs.
Not proven: there is no Factory account here, so the 400 was not
reproduced against Factory, and Factory's server code is not readable.
The cause is the one byte-layout difference from droid that matches
"Gemini only, large only, every retry". The reporter is asked for the
raw lines to confirm.
Run (HOME a fresh folder; the focused runs on mote, the suite on the
Linux box, magpie-desktop, as mote and mica each had a full Go suite
running):
- bun test packages/factory/gemini.test.mjs size.test.mjs
session.test.mjs request.test.mjs: 86 pass, 0 fail.
- The new test on the old index.mjs: red (the body did not open with
{"model":"gemini-4-hydrogen","contents":), the other 5 Gemini tests
green.
- The root bun test (Bun 1.4.2): 9060 pass, 19 skip, 0 fail (9079
tests, 636 files); scripts/check.mjs ok.
|
||
|
|
8989cc1d92 |
trae 0.2.44: a chat is sent its model's max_tokens, so an enterprise reply isn't cut at 2000
@liuyuexue2020 on X (0.2.43, Trae CN enterprise seat, console.enterprise.trae.cn,
model AI/deekseek-v4.1-flash): in Trae the model writes past 2000 tokens;
through magpie every reply stopped at exactly 2,000 output tokens (their
Usage rows: 26,037 / 2,000, 24,870 / 2,000, 23,097 / 2,000, streamed).
Cause: chatBody sent max_tokens only when the agent named one, held to the
__dev detail's max_tokens (`most`). An enterprise model has no __dev
detail, so it had no `most`, its listed output limit was 0, and an agent
naming no limit sent llm_utils_chat none. Trae's own client always sends
one: the ai-agent's ModelConfig carries the detail's max_tokens with every
model ("[ModelConfig] Received config_name=, model_name=, max_turn=,
prompt_max_tokens=, max_tokens=" in Trae CN 3.4.20's ai-agent strings;
CloudModelDetailInfo has max_tokens beside model_name and provider). The
2000 is most likely what Trae gives a request naming none; that wasn't
measured, having no seat.
Now:
- an enterprise model's `most` and listed output come from its own detail
(enterpriseDetail: the __dev one, else the first naming a model);
- every chat whose model has a known `most` sends it when the agent names
no limit, and holds a larger ask to it, as Max mode already did. A
preset asked through the function naming its __dev detail now sends
that detail's max_tokens too, the value Trae's client sends; a function
that doesn't name it still sends nothing.
- a detail with no max_tokens sends the agent's limit or none, as before.
Siblings: Trae CN and Trae international are one plugin (both sites go
through chatBody); SOLO's functions (solo_agent, solo_coder, ...) too. No
other plugin in the repo sets a fixed max_tokens/max_output_tokens cap
(grep for 1000/1024/2000/2048/4000/4096 near those keys). magpie's gateway
sends no fixed 2000 (its fill-in, askedOutput, is Anthropic-only).
Run (mote, HOME=$(mktemp -d), this tree on
|
||
|
|
62645eceb7 |
agy-cli 0.1.96: a resumed session runs in its own folder again, so agy's cache still hits
@chet030714 on X: Hermes through agy-cli started near 70% cache hits and
fell all day. agy's prompt cache follows the folder its process runs in.
Every agy the bridge started had a new mkdtemp folder, so a session
resumed after the 10-minute idle reclaim, an LRU eviction or a restart
replayed its whole history uncached, and the longer a conversation got,
the more each resume cost.
Measured with real agy 1.5.10 over ACP in a sandbox HOME (one session,
~24K tokens a turn): every turn in one process hit (cachedReadTokens
19,682 to 197,710). A resume in the same folder: 213,520 cached. In
another folder: 0 cached, 219,198 uncached. Only the process's folder
counts, not session/resume's cwd. The same folder after 13 minutes
idle, or removed and made again at the same path, still hits.
Now a parked session records its workspace, and a resume starts agy in
that folder (made again if it was removed), never in a spare's. Only a
magpie-agy-bridge-XXXXXX folder directly in the temp folder is taken
from the state file. A stopped agy leaves its folder when another
already runs there, and a resume waits for a removal in progress.
Run (at
|
||
|
|
63c2ff93f4 |
factory: each conversation is a Factory session of its own (0.1.48)
marovole on X: on Factory, Gemini 4 Argon, Hydrogen and Carbon answer
400 "Factory: Invalid model ID in request body" now and then. Success
and failure take turns within one conversation (Droid, v0.1.4404).
The plugin sent one x-session-id, a random UUID made when the plugin
loaded, on every request of its process. So every conversation, every
model and every subagent shared one Factory session. droid makes its
x-session-id per conversation (createProxyHeaders' sessionId in droid
1.14), and a subagent's Task gets a session of its own. Gemini is the
one route where droid locks the provider itself (getNextProvider with
lockedProvider "google"). A session that a Claude or GPT request opened
and that a Gemini request then joins is a state droid never sends.
x-session-id is now a v4 UUID hashed from the conversation magpie
names. A chat.headers hook is told the conversation (its session, else
the hash of its first message). If no hook runs (OpenCode 2), the
x-magpie-session or x-opencode-session header names it. Each subagent
(x-magpie-subagent) gets its own id. A request that names no
conversation keeps the process's id, as before. The header that carries
the conversation, x-magpie-factory-conversation, is taken off before the
request leaves.
Not proven: there is no Factory account here, so the refusal was not
reproduced against Factory itself. session.test.mjs reproduces it with a
fake Factory that holds a session to the provider it was opened with.
That is the hypothesis, not Factory's code. The feature flags droid's
registry puts on exactly these three models (Gemini4Argon/Hydrogen/
Carbon) are the other candidate. Nothing on magpie's side can change
those.
Run (mica, HOME=$(mktemp -d)):
- bun test packages/factory/session.test.mjs gemini.test.mjs: green.
- With session.test.mjs on the old index.mjs: all red. The fake answers
the Gemini conversation's requests 400 and the ids are shared.
- The root bun test and scripts/check.mjs: 9055 pass, 20 skip, 0 fail (9075 tests, 636 files); check.mjs ok.
Not changed: commandcode keeps one x-session-id for each process ("as
one CLI session has"); filed as plugins#1313. minimax already names
its session per conversation.
|
||
|
|
c18d87f743 |
agy-cli 0.1.95: agy's high-traffic ending is a 503, and 1.5.10's ban wording a 403
When Google had no capacity for the model, agy ended the reply with "⚠ Our servers are experiencing high traffic right now, please try again in a minute. (UNAVAILABLE (code 503): No capacity available for model …)". The bridge passed it on as the whole reply, a 200, so nothing behind magpie tried again. ifccod found this and patched it in their fork (ifccod/opencode-agy-cli-auth, MIT, FORK.md "Busy ending"). Their code is ported here: the ending is held and matched by its start, the way the quota ending is, and it ends the turn as overloaded_error with status 503 (HTTP 503 without streaming). Retrying is allowed, and the account is not rested. agy 1.5.10 words a banned account's 403 without the "PERMISSION_DENIED (code 403):" that 1.5.9 put in front. A real banned account was probed over ACP on 11-18: the whole reply was that sentence, end_turn, a 200. The bare sentence is now a marker, answered with the same no-retry permission_error 403 as #1201. Not taken from the fork: its video path. That path has agy's server-side read_file open videos downloaded into a media folder added with --add-dir, and it lets any gateway caller have agy read paths on the host. It was not tried with a real account either, since the probe account is banned. Run (mica, HOME=$(mktemp -d), at 89df5a62+this diff): - packages/agy-cli/test repeat-batch.mjs: 79 pass, 0 fail. usage.mjs (cp-hook preload): 44 pass. - The new tests on the old index.mjs, by hand: 3 of the 4 fail (busy stream, busy non-stream 503, 1.5.10 ban). The quoting test passes on both, as it should. - Root bun test: 9070 tests, 0 fail, 20 skip (487s). Not tried: a real high-traffic ending; it is taken from ifccod's capture. Co-authored-by: ifccod <102718410+ifccod@users.noreply.github.com> |
||
|
|
89df5a62c5 |
pine 0.1.0: Pine (pmndre/pine) on magpie's Agents page (#1038)
Adds @magpie-community/agent-pine 0.1.0: Pine (github.com/pmndre/pine) on magpie's Agents page. connect writes providers.magpie as one object in ~/.pine/models.json (gateway /v1, openai-responses, magpie's catalog); startup writes defaults.model in ~/.pine/pine.json as magpie/<id>; Library skills go to ~/.pine/skills. Same shape as agent-pig. Review (at da80445557bc2de93857e49451587e2ac28aef08): - Harm check: only packages/pine, the README Agents row and registry.json. No dependencies, install scripts, workflow changes, credential reads or new network hosts (the icon is Pine's logo on raw.githubusercontent.com). - Checked against Pine's source (pmndre/pine next, 738013c7): home defaults to $PINE_HOME or ~/.pine (src/cli.ts), models.json and pine.json live in the home, resolveModel splits a reference at the first "/" (src/agents.ts), an agent's own model overrides cfg.defaults.model, and <home>/skills is read for all agents (src/skills.ts). compat.supportsStrictMode is a pi-ai 1.5.2 key for openai-responses. - magpie applies the descriptor's prefix to startup.model (internal/agent/plugged.go), so pine.json gets magpie/<provider>/<model>. Run at the reviewed head on mote, HOME=$(mktemp -d): - packages/pine: bun test, 7 pass, 0 fail. - bun scripts/check.mjs: pass. - PR CI (pr, bumped) green after approving the first-time contributor's runs. Not tried: a real Pine daemon here (the author reports one answered through the gateway). |
||
|
|
e38f4f39fe |
agy-cli 0.1.94: an ending with only thinking is asked again in the session, then is an error
fnckerpoi on X (magpie 0.1.4402, agy-cli 0.1.91, DSH 0.2.2-rc.3 through billion-context, provider concurrency 1): "acp-proxy: the turn degenerated again after the continuation nudge". The words are billion-context's. Its plugin pipe calls a turn "degenerate" when it ends cleanly (end_turn) with no tool call and no answer text but did carry thinking; it then resends the request once with a nudge appended, and when that comes back the same it ends the stream with this error. agy-cli handed such turns over. When a model call returns neither text nor tool calls, agy writes "⚠ Model produced invalid output." (dropped since 0.1.42, #1124) and calls the model again; when that call is empty too, agy ends the prompt on end_turn with only thinking, and the bridge sent it as a finished reply that said nothing. billion-context's nudge then arrived as a new request whose history (no empty assistant turn) no longer matched the session, so the bridge stopped agy and replayed the whole conversation in a new session: the same context, cold, and with concurrency 1 queued behind the other requests. It came back empty again. Concurrency 1 adds the wait; it doesn't cause the empty reply. - Turn tracks, since the turn began or its last tool call, whether the model said any non-blank text, thought, or hit agy's invalid-output retry. An end_turn (or no stop reason) with thinking or that retry and no text is an empty ending. - #runTurn asks such an ending once more in the same session, as one more session/prompt of the same response, with neutral words that name nobody ("Your last reply was empty. Continue: …"). The client sees only the answer. - Still empty, the turn ends with an AgentTurnError: "the model ended its reply twice with no text and no tool call (agy: Model produced invalid output); send the request again, or try another model". It is an error before any content, so magpie's gateway asks the next account, and agy's session is kept, so the same request sent again continues in it instead of a replay. - A bare empty ending (no thinking either) and a max_tokens ending are passed through as before. One more ask per tool call, not per turn. - README (zh, en): what happens to such a reply. Run (mote, bun 1.4.2, HOME=$(mktemp -d)): - test/repeat-batch.mjs: 75 pass. The four new tests against origin/main 11e7afe5's index.mjs (AGY_BRIDGE_TEST_INDEX): the ask-again and the error-and-session-kept tests fail, the bare-empty and max_tokens ones pass on both. The #1124 case that expected a banner-only reply to end as an empty end_turn is removed: that was this bug. - bun test ./packages/agy-cli (every suite and smoke.mjs): 41 pass, 0 fail. bun scripts/check.mjs agy-cli: ok. Not tried: a real Antigravity account. The owner's Google account is refused (403, ToS) on agy turns and no other signed-in agy account was found here, on mote or on mica. The empty ending was built from agy's own banner bytes and its end_turn, not captured from a real empty reply, and whether the model's empty call is Gemini's MALFORMED_FUNCTION_CALL is not known. Not run under billion-context itself. |
||
|
|
11e7afe584 |
trae 0.2.43: an enterprise model's chat sends its detail's model_name and provider (#1258)
On 0.2.42 the reporter's enterprise seat (@liuyuexue2020 on X, Trae CN,
console.enterprise.trae.cn) got past 4001: both of its enterprise models,
AI/deekseek-v4.1-flash and volc/deepseek-v4-1-flash, now got 502 with
Trae's 4023 "We're sorry, something went wrong. Please try again later or
contact our support team for assistance." on chat_v3, solo_work_lite,
solo_agent, solo_agent_lite and solo_coder (their two screenshots on
#1258). config_source 2 was accepted; what the server then needed was
missing.
Trae CN 3.4.20's list types (libharness, serde field order) are
CloudModelConfigInfo { usage, is_default, display_config, ...,
model_detail_list, config_source, ... } and CloudModelDetailInfo
{ model_name, provider, icon, prompt_max_tokens, max_tokens, ... }:
provider sits on each model_detail_list item, not on the config. 0.2.42
read entry.provider off the config (so sent none), and model_name comes
only from a __dev detail, which an enterprise model doesn't have (so
none was sent either). Trae's own llm_utils_chat sends config_name,
model_name, config_source, is_custom_model and provider.
chatBody now sends, for an enterprise model, the model_name and provider
of its detail (the __dev one if any, else the first naming a model),
the config's provider still first when present. A preset's body is
unchanged.
Run (mote, HOME=$(mktemp -d), at this tree on
|
||
|
|
50f1ec1882 |
agy-cli 0.1.93: a refused account with no project has its quota read under aicode-consumers
IcyLiqu1d on X: agy-cli's usage always failed with "this account is not
eligible for Antigravity" while the account's requests kept working.
agy -p /usage waits for agy's eligibility check; agy acp, which serves
requests, runs none, so a refused account keeps working and its usage
does not. 0.1.69's direct read covers a refusal where loadCodeAssist
names a project. Where it names none, agy itself asks
retrieveUserQuotaSummary with {} and Google answers 403 #3501, and the
plugin's direct read gave up with "names no project" and then showed
only the generic "not eligible" line, hiding why.
- readQuotaDirect: a personal (auth_method consumer, not gcpManaged)
account loadCodeAssist names no project for is asked under
aicode-consumers, the project Google serves every consumer account
under. A Workspace/Cloud account still fails, with Google's
ineligibleTiers reasonMessage when it gave one.
- fetchUsage: when the direct read fails too, the error keeps agy's
refusal and adds why the read failed.
Run (mica, bun 1.4.2, HOME=$(mktemp -d)):
- test/usage.mjs: 44 pass. With origin/main 207880e1's usage.mjs and
the new tests, 3 fail (the two new tests and the no-project case of
"a direct read that fails...").
- bun test ./packages/agy-cli: 41 pass, 0 fail. bun scripts/check.mjs:
exit 0, agy-cli ok.
- Real account (agy 1.5.10, CLOUD_CODE_URL through a recording proxy
that drops currentTier, paidTier and cloudaicompanionProject from
loadCodeAssist): agy's own retrieveUserQuotaSummary {} calls got 403,
onboardUser 403; the plugin's read with project aicode-consumers got
200 and fetchUsage returned both 7-day groups in 7.0s. On 0.1.92 the
same run returned the generic "not eligible" error.
Not tried: a real account Google refuses at the eligibility check (I
have none; the refusal was simulated), and Linux, where the stored
sign-in isn't read from a keyring, so the direct read can't run there.
|
||
|
|
207880e1d8 |
agy-cli 0.1.92: usage shows each group as a pool and lists its models again
tongzhenbao on X: since moving to agy-cli, the usage card shows only three
rings ("Gemini …", "Gemini …", "Claude …"), and they want each model's
usage as before.
Before: the retired antigravity plugin sent one window per model
(fetchAvailableModels' quotaInfo, with family and pool) and the pools
from retrieveUserQuotaSummary, so magpie's card showed the pools
("Gemini 5h", "Gemini 7d", two lines a ring) and "Every model (n)"
listed the models. agy-cli sent only "Gemini · 7 days"-named windows with
no pool and no model, so magpie drew plain rings with the name cut short
and had no models to list.
Google's per-model figure is the pool's: the owner's last antigravity
read (quotas.json, 2026-11-11) gave every Gemini model 1.58104% with the
Gemini pool's 7 days, and every Claude/GPT model 6.7575% with Claude &
GPT's, to the digit. So nothing new is asked of Google; from agy's own
/usage:
- each bucket goes as its pool's window: { pool: "Gemini", name: "7 days" }
(magpie's LineName is still "Gemini · 7 days", so quota history and a
cap the user set keep their names);
- each model family a group names (familiesInGroup, from the catalog agy
models listed) gets an aside window in that pool: its display name
without the effort word, model = the family id, models = every id of
it, family Gemini/Claude/GPT-OSS, reading the group's most used
measured bucket with that bucket's span and reset. A model two groups
name reads the one that stops it first. A group with no measured bucket
gives its models no window; no catalog yet gives no model windows.
Every window stays aside, so routing is as before (magpie's allowanceOf
skips aside windows, and a pool's window holds only members that aren't).
Run (mica, mote over 18 load): HOME=$(mktemp -d) bun test in
packages/agy-cli: 41 pass, 0 fail.
Broken by hand: a model reading its group's first bucket instead of the
most used one; "each model family a group names has its own window in
the pool, at the pool's most used bucket" went red (1 fail), green again
restored.
Not tried: a real agy /usage read (the parse is the captured live report
of 11-15 and its agy models rows); magpie's rendering is checked in
magpie's GUI tests with this shape.
|
||
|
|
677329db24 |
agy-cli: a saved or outdated model offer is asked again, so Ultra lists Gemini 4 (0.1.91)
shenggxhz (X, 11-17) moved from a Pro account to Ultra, and the agy
provider still listed no Gemini 4 Carbon. What agy acp offered the Pro
account was kept in models.json and loaded at start as the offer, and
probeOfferedOnce never asked agy again while an offer was known. Only a
request opening a session replaced it, so Ultra's fresh `agy models`
listing (Carbon in it) was filtered down to the Pro account's offer.
With main's index.mjs the new test lists exactly the reporter's
screenshot: claude-sonnet-4-6, gemini-3.8-flash, gpt-oss-120b.
Now an offer read from models.json, or one learnt before `agy models`
listed something else (the account or plan changed outside magpie), is
served while agy acp is asked again (offeredStale), and a session's
answer makes it current. Costs one short agy acp session per run after
a restart, and one per listing change.
Tests (test/catalog.mjs): a restart after the switch lists Carbon and
probes once; a listing change mid-run probes again, an unchanged one
doesn't; #1086's restart now also expects that one probe (its timeout
raised to 15s for the 1.5s slow session). With main's index.mjs the
three are red. Run on mica: root `HOME=$(mktemp -d) bun test` and
`bun scripts/check.mjs`, results below.
Not tried: a real Pro-to-Ultra switch (no Ultra account here).
mica, at this tree (parent
|
||
|
|
34edf938da |
agy-cli: a 429 to the reworded prompt in the user turn is a rate limit, not a 400 (0.1.90)
HadStash on X (11-17, Google AI Ultra trial, agy-cli) got "agy bridge: Antigravity answered 429 to this system prompt: RESOURCE_EXHAUSTED (code 429)" as an Anthropic invalid_request_error, while the same account works in the Antigravity client. #formatAgentError called any bare 429 a prompt rejection when the RAW client prompt has a line Antigravity turns away (turnsAway). Claude Code's identity line is always there, so every 429 in a Claude Code session was a 400 the client never retries and a gateway group doesn't treat as a limit, even though what was sent was reworded (cloak.mjs) and sits in the first user turn, the default since 11-15. Now that label is given only when the instructions went in agy's session instructions (AGY_BRIDGE_SYSTEM_APPEND=1), where the reworded prompt is still turned away; in the user turn the 429 is a rate_limit_error (with the existing "not a quota" note for the bare 429), so Claude Code retries it and a group asks the next member. The turn still ends at agy's first 429 banner (Lmohn39), so nothing waits. Real probes, account kumw95ya25, Code Assist direct (plug-raw), Claude Code 2.1.326's captured prompt (SDK and CLI identity), 2 tries each: - raw in system: refused 429 (gemini-3.8-flash) - outgoing() in system: 429 2/2 on gemini-3.8-flash and claude-sonnet-4-6 - outgoing() in the user turn: 200 2/2 on both models - user turn + Claude Code's 12 tools as function declarations: 200 2/2 Control prompt: 200 2/2. Tests: repeat-batch's Lmohn39 test now runs the session-instructions path (testkit's new `appendable`) for the 400 and the user-turn path for the rate limit, Claude Code's identity line included; smoke's #980 case sets AGY_BRIDGE_SYSTEM_APPEND=1 and a new HadStash case checks the user-turn 429. Broken by hand: against origin/main's index.mjs both are red (repeat-batch 1 fail, smoke "BAD - HadStash ..."). Run on mote at this tree (HOME=$(mktemp -d)): bun scripts/check.mjs ok; bun test 9040 pass, 1 fail: agy-cli test/usage.mjs "a hung sign-in with an ended token is never restarted ..." at its 6s deadline, which is #1191 (usage.mjs red on macOS under load, the failing tests change each run; alone it went 5 of 41 red, other tests). Not this change: usage.mjs doesn't reach #formatAgentError. Not tried: the reporter's own account or agent (they don't say which; the Anthropic-shaped error says a /v1/messages client). agy itself was not run end to end: the Mac's agy account is disabled by Google, so the probes went to Code Assist directly with agy-cli's cloak.mjs. |
||
|
|
4b3af4a565 |
agy-cli 0.1.89: a session whose agy never loads the client's tools fails and says why (#1239)
pi declared read, bash, edit and write through the gateway on Windows and the model saw only agy's own manage_task; `read` came back `unknown tool: "read"`. agy reads a client's tools from the bridge's ide-tools MCP server, which it starts by running `nc` from PATH. When that never answers, #waitForToolList gave up after 5s without a word and the turn ran with no client tool at all, for every client. On Windows agy 1.5 runs only nc.exe, never the nc.cmd the bridge falls back to. A failed nc.exe build was swallowed and cached for the whole host process, so every session after it had no tools until magpie restarted. - A session that declares tools and whose agy hasn't listed them after AGY_BRIDGE_TOOL_LIST_WAIT_MS (now 20s) fails with 502 tools_not_loaded, naming the cause: on Windows, the nc.exe build's own failure (not Bun, non-ASCII folder, bun build's exit code or "wrote no nc.exe" plus its last stderr lines); elsewhere, the `nc` MCP server that never answered. No session/prompt is sent. - A live agy that never listed the tools a follow-up declares (started with none) is replaced (session_new reason tools_unlisted), not reused. - On Windows a failed nc.exe build is tried again after 5 minutes, rather than never. Tests: test/tools-listed.mjs (new, in agy-cli.test.mjs). The testkit's fake agy can now not list tools (listTools), or not keep a watch (watchTools), and records each listing. Run at this tree: - mica-run, HOME=$(mktemp -d): cd packages/agy-cli && bun test: 41 pass 0 fail; bun scripts/check.mjs agy-cli: ok. (mote was at load 130.) An earlier run of the same suite had test/usage.mjs red twice on its 3s usage-query deadline at mica load 23; it passed 41/41 twice alone. That is #1191. - win-run on xiaomi-gpu (real Windows, Bun 1.4.2): tools-listed.mjs and windows-nc.mjs, 13 pass 0 fail. The first Windows run caught that the platform-neutral cases took the real win32 path; they now pin linux. Broken by hand: tools-listed.mjs against the old index.mjs (AGY_BRIDGE_TEST_INDEX = HEAD's copy): 3 of 5 red. The unlisted session ran its turn (200, end_turn after 5s), the follow-up ran on the agy that never listed Read, and the failed Windows build was never retried. The two cases that should hold either way pass. Earlier, on xiaomi-gpu: a real nc.exe built in ~335ms, and the shim answered tools/list in 137ms first and ~28ms after. Not tried: a real agy turn or a real Windows agy session. There is no usable account: the Mac one is banned, and Windows agy answers session/new with "Authentication required". So the reporter's exact trigger (which nc.exe build failure, or none) isn't confirmed. The error now names it on their machine. |
||
|
|
fd42292240 |
trae 0.2.42: an enterprise model's chat says its config_source at the top (#1258)
On 0.2.41 the reporter's enterprise seat (@liuyuexue2020 on X, Trae CN,
console.enterprise.trae.cn) now lists its enterprise built-in models, but
a chat with one, AI/deekseek-v4.1-flash, got 502 with Trae's 4001 "We're
sorry, the param is invalid. Please try with a valid param." on chat_v3,
solo_work_lite, solo_agent, solo_agent_lite and solo_coder (their
screenshot on #1258). The error also confirms the list entry carries
config_source 2, the first real-seat sight of that field.
0.2.41 sent config_source, is_preset, custom_model_id and provider under
user_message_context.model_info, which is the agent task's model info.
Trae CN 3.4.20's own llm_utils_chat request (libharness,
worktree/branch_name.rs, asked with the user's selected model) is
usage, function, messages, conversation_id, access_type, config_name,
model_name, config_source, is_custom_model, provider: those fields go at
the top of the body. chatBody now sends config_source 2, is_custom_model
true and the entry's provider there, and no model_info for it. A preset's
body is unchanged.
Run (mote, HOME=$(mktemp -d), at this tree on
|
||
|
|
324acd6007 |
agy-cli: test DeepSeek Harness 0.2.2-rc.3's whole Web GUI prompt (fnckerpoi on X)
fnckerpoi on X still saw Antigravity's 429 with DSH 0.2.2-rc.3 at 16:58, about an hour after agy-cli 0.1.88 / antigravity 0.2.2 cloaked its browser sentence. test/dsh-0.2.2-rc.3-web-system.txt is that release's Web GUI system prompt, captured from the real @deepseek-ai/dsh@0.2.2-rc.3 on mote (dsh web, Playwright typing "say hi", model "m1"). The new test holds that outgoing() leaves no turned-away line in it, rewords only the identity line, the browser sentence and the @-path paragraph, and keeps every other line as written. No code change: the cloak on main already passes it. Real account (sandbox HOME, kumw95ya25), 11-17: - raw prompt: 429 2/2 or 3/3 on gemini-3.8-flash, gemini-3.8-flash-high, claude-sonnet-4-6, claude-opus-4-6-thinking (direct Code Assist). - outgoing(prompt): 200 on each of them; with DSH's 31 tools and its user messages too (gemini-3.8-flash, -high, claude-sonnet-4-6). - through agy 1.5.10 and the agy-cli plugin, DSH's full request (system, 31 tools, user turns): 200 "pong" 2/2 on gemini-3.8-flash and claude-sonnet-4-6, with 0.1.88 and with 0.1.87 alike. - every string literal in DSH 0.2.2-rc.3's runtime packages (13,956, 1.7MB, 43 chunks, bisected when refused) as the system instruction through antigravity 0.2.3's outgoing: no refusal; raw, only the Web GUI paragraph. The same strings as the user turn agy-cli sends, with no cloak: no refusal. Run on mote, HOME=$(mktemp -d): bun test packages/agy-cli (40 pass), bun scripts/check.mjs (ok). Broken by hand: with "provides" left as written the new test goes red with the three it sits beside. Not tried: DSH's TUI profile; a reporter's own AGENTS.md, skills or a long history. |
||
|
|
cf5b0312e0 |
skills: magpie-sessions, an agent searches every agent's sessions and reads one (yansheng1003 on X)
An official skill that goes with magpie's new `magpie sessions search` and `magpie sessions show`: what was said in Claude Code's, Codex's and the other agents' sessions, found through magpie's index, each hit named agent:id, and the session read from where it was said. It tells the agent what to do when the user hasn't allowed magpie to read sessions (tell them; never turn it on itself). Checked against magpie's source (sess-cli-search): the commands' flags and usage, the not-asked line, the prefix match of each word (said index's "word"* terms). No skill test exists in this repo; skills are listed by magpie's featuredSkills (TestFeaturedSkills). |
||
|
|
4858e144a6 |
trae 0.2.41: an enterprise's built-in models are listed and say what failed (#1258)
A Trae CN enterprise seat (@liuyuexue2020 on X, magpie v0.1.4288,
0.2.40) didn't see the tenant's own built-in models in magpie's list. A
name typed in by hand got a bare 502.
Trae CN 3.4.20's client (ai-modules-chat) marks each entry's
config_source as Trae 1, Enterprise 2 or Personal 3, and shows the
Enterprise ones as "Enterprise-builtin". They aren't presets
(is_preset false), so they read as custom models, and chatModel dropped
them together with the personal ones (is_custom_model, custom_model*
ids).
- chatModel keeps config_source 2 entries unless status is false (the
IDE's "disabled by the administrator"). Personal custom models stay
out.
- A chat with one of them carries user_message_context.model_info as
the client builds it: config_name, config_source 2, is_preset false,
use_remote_service, display_model_name, custom_model_id, provider.
A preset's body is unchanged.
- A refused chat that isn't a lapse or a quota now names the model, the
functions tried and the host. When the account's list doesn't have
the model, it says that too; the list is read for this on the failing
path only.
Run (mica, HOME=$(mktemp -d), at this tree on
|
||
|
|
8c7e8f6621 |
antigravity 0.2.3: Claude Code's identity line goes as "You're …" (#1151)
Found while checking #1105: agy-cli's cloak.mjs has rewritten Claude Code's identity line since #1151 (11-15), but the antigravity plugin, which went back to serving existing users at 0.2.1, didn't. "You are Claude Code, Anthropic's official CLI for Claude." (Claude Code's CLI, and with ", running within the Claude Agent SDK" Claude Desktop's Code tab) now goes as "You're …", as agy-cli sends it. The existing test that pinned Claude Desktop's line as going through unchanged now expects "You're …", since that line is turned away too. Real account, 11-17, through the plugin, sandbox HOME, the owner's existing sign-in (no credentials entered), 3 runs each on gemini-3.8-flash and gemini-4-hydrogen-sonar: - 0.2.2: the CLI line and the SDK line each 429 3/3 on both models. - 0.2.3: both 200 3/3 on both models. Run (mote, HOME=$(mktemp -d)) at this tree: bun test packages/antigravity packages/agy-cli 174 pass, 0 fail; bun scripts/check.mjs ok. Broken by hand: 0.2.2's index.mjs with the new test: it fails (shape.test.mjs 31 pass, 1 fail). |
||
|
|
8c3397d3ff |
agy-cli 0.1.88, antigravity 0.2.2: DeepSeek Harness's browser sentence goes "gives"
LayFz (#1105, @baoshijie8848 on X) ran a controlled A/B on one Antigravity Ultra account, same model and endpoint, only the system prompt changed: "You are an AI agent powered by DeepSeek Harness." and, in the middle of DSH's Web GUI paragraph (@deepseek-ai/dsh-harness-dev-context), "The browser provides no implicit DOM, route, or screenshot context." each got 429 RESOURCE_EXHAUSTED; each paraphrased got 200. - agy-cli's cloak.mjs already had the first line (#1171, 0.1.57). It now has the browser sentence too, sent as "The browser gives no implicit DOM, route, or screenshot context.", and the DSH hint names both. - The antigravity plugin (0.2.1, serving existing users) had neither: both lines are added there, with a DSH hint. The rewording keeps every word but the verb. sub2api's PR 8878 drops "route", which changes what DSH tells the model, so it was not copied. Real account, 11-17, through the antigravity plugin, sandbox HOME, the owner's existing plugin sign-in (no credentials entered), 3 runs each: - 0.2.1 (old): opener 429 3/3 on gemini-4-hydrogen-sonar (gemini-3.8-flash gave three 502 cert errors upstream that round, 429 3/3 in the earlier round); the literal Web GUI paragraph 429 on both models; opener + paragraph 429 3/3 on both. - agy-cli 0.1.88's outgoing() text for opener + paragraph, sent through 0.2.1 (which leaves it as is): 200 3/3 on both models. - 0.2.2 (new): opener, paragraph, opener + paragraph raw from the client: 200 on both models (one upstream 502 cert error on flash). - Bisect (gemini-3.8-flash): the sentence lower-cased or wrapped over a newline 429; without its period, without the comma before "or", without "implicit", or "gives" for "provides" 200. So those variants stay as written and the tests check it. Tests use the paragraph word for word. Run (mote, HOME=$(mktemp -d)) at this tree: bun test packages/agy-cli packages/antigravity 173 pass, 0 fail; bun scripts/check.mjs ok. Broken by hand: 0.1.87's cloak.mjs and 0.2.1's index.mjs with the new tests: both new tests fail (2 of 40 in cloak.test.mjs + shape.test.mjs). Not changed: magpie's codeassist.go list and the antigravity-cloak middleware act only on the retired built-in Antigravity (Account.Agent "antigravity"), which serves no requests. |
||
|
|
1c9ade6c81 |
loomy 0.1.12: a 401/403 from a proxy no longer signs an account out
jenxingyoung on X: four Loomy accounts behind a proxy, a different one signed out each day, none used anywhere else. Loomy's gateway never answers a dead session with a 401 or 403. A made-up, dropped or missing token gets HTTP 200 with code 100002 on every path (chat, draw, models, points records, first-login; probed 2026-11-16 and 2026-11-17). The plugin still read any 401/403 as "signed out": chat and draw returned a bare 401 (magpie's host marks the account lapsed on that), and usage and check-in threw an expired error. So a proxy or firewall turning one request away marked a good account for sign-in again, a different account each time. - 401/403 is a sign-in verdict only when its body carries 020002/100002. Otherwise chat and draw answer 502 with x-magpie-sign-in: kept (magpie tries the next account and leaves this one signed in), usage reports the error with signIn "kept", check-in reports "failed". The message names the status, says it isn't a sign-out, and quotes the body. - A lapsed account's message gives the day it was signed in (signedInAt, kept at SMS sign-in; older accounts from expires - 14 days). No lifetime is claimed: the client asks for 14 days, but agent2api found sessions served past that. - SMS sign-in returns uid (the vendor's userid) beside the masked phone. - A pasted session is named by its last six characters instead of the one name "手动粘贴" every paste shared, which made a second pasted account replace the first in magpie's account list. No renewal exists to add: Loomy's client 0.9.39, its web app, magpie-providers-hub and agent2api only sign in again. A truly lapsed account still needs an SMS code; magpie's "Sign in again" on the row is one click. Run (mote, HEAD |
||
|
|
afe4c08643 |
agy-cli 0.1.87: agy's Individual quota reached ending fails the turn as a rate limit
@Airan_FS on X (11-17): when an Antigravity account's own quota is used up,
agy ends the turn with "⚠ Individual quota reached. Please upgrade your
subscription to increase your limits. Resets in 1h18m40s." The bridge only
knew fixed ending lines, so this one went to the client as the model's
reply and magpie never asked the next account.
The bridge now holds a line starting "⚠ Individual quota reached" that
nothing follows, and ends the turn with a rate_limit_error carrying agy's
words and the reset ("agy bridge: Antigravity quota reached: Individual
quota reached. ... Resets in 1h18m40s."; HTTP 429 without streaming).
Words the model wrote before it still reach the client. A quote of the line
with more text after it stays text. magpie rests the account until the
reset it reads from the error (magpie's routing.go change in the same fix).
The words are from a user's report on discuss.ai.google.dev (limit
membingungkan) and @Airan_FS's tweet; the agy binary carries "individual
quota reached".
Run (mote, HOME=$(mktemp -d)): bun test agy-cli.test.mjs 20 pass, 0 fail;
node --test repeat-batch.mjs smoke.mjs 72 pass, 0 fail; bun scripts/check.mjs
ok.
Broken by hand: 0.1.86's index.mjs with these tests: three of the four new
tests fail (the ending alone, after partial text, non-stream 429); the
quoted-line test passes on both.
Not tried: a real agy account with its quota used up.
|
||
|
|
38233a569c |
agy-cli 0.1.86: agy starts with telemetry off (#1236)
The bridge passes --disable-telemetry when `agy acp --help` lists it, so agy doesn't report the run to its vendor; AGY_BRIDGE_TELEMETRY=1 keeps agy's own default. The flag is part of the spare's launch key. By ump45nose (#896, PR #1236), landed on top of #1235 with only the version line's conflict resolved. The flag was checked in the agy binary on this Mac (strings: "disable-telemetry", "--disable_telemetry"). Run (mote, HOME=$(mktemp -d)): - At the PR head 0ead2594: bun test agy-cli.test.mjs 20 pass; node --test repeat-batch.mjs smoke.mjs 66 pass; check.mjs ok. - At this tree (with #1235): bun test agy-cli.test.mjs 20 pass, 0 fail; repeat-batch.mjs + smoke.mjs 68 pass; check.mjs agy-cli ok. Broken by hand: origin/main's index.mjs with the PR's tests: "#896: an agy whose acp --help lists --disable-telemetry starts with telemetry off" and smoke.mjs fail. Not tried: a real agy acp run with the flag (the local agy account answers 403). Co-authored-by: ump45nose <52391318+ump45nose@users.noreply.github.com> |
||
|
|
c52dd35bfa |
agy-cli 0.1.85: agy's output-cap notice never reaches the client (#1235)
agy's output-cap retry writes three lines of its own into the reply (the cut-off notice, its instruction to continue, "Retries remaining: N"); the bridge now drops them where they start a line, held across chunks, and keeps a mid-line quote of them. By ump45nose (#892). The three strings were checked against the agy binary on this Mac (strings: "Your previous response was cut off because it exceeded the output token limit", "Please continue from where you left off, keeping your response shorter", "Retries remaining: %d" and "%d."). Run at e95ee1d5 (mote, HOME=$(mktemp -d)): - bun test agy-cli.test.mjs: 20 pass, 0 fail. - node --test repeat-batch.mjs smoke.mjs: 66 pass. - bun scripts/check.mjs agy-cli: ok. Broken by hand: origin/main's index.mjs with this PR's tests: "#892: agy's output-cap notice never reaches the client" fails. Not tried: a real turn that hits agy's output cap (the local agy account answers 403). |
||
|
|
44bfefb7a7 |
agy-cli 0.1.84: an ended access token is renewed by the plugin for usage, so agy never opens a sign-in (#1234)
qiankun229 traced it in agy's own logs (#1234): at Windows startup the background usage read ran `agy -p /usage` with an ended access token and a refresh token. agy's silent renewal failed for a moment (a 10s keyring timeout, or "no such host" for oauth2.googleapis.com before the network was up) and agy fell back to an interactive Google sign-in, which opens the browser through ShellExecuteW past the BROWSER/PATH shims. The next read renewed the same token fine. The stored-sign-in precheck passes such a token, since it can be renewed. - createUsageReader: when the stored access token has ended or ends within two minutes and has a refresh token, fetchUsage reads with `direct`: it runs `agy --version` only (no sign-in) and reads the quota the way agy does (readQuotaDirect, loadCodeAssist then retrieveUserQuotaSummary, with agy's User-Agent), renewing the token in memory. agy's stored sign-in is never written. `agy -p` isn't run. - A failed renewal is a failed read: it backs off as before and keeps the sign-in. A network error says to check the network or proxy. - Google answering the refresh with invalid_grant (400/401) is kind "auth": the account reads as signed out ("Sign in again") and nothing runs for that sign-in again until another is stored. - A token with time left still goes through agy -p, as before. Tests: three tests that leaned on an ended token only to get agy to run now use a token whose end isn't said (as the existing "refreshing" test does); what they check is unchanged. Run (mote, HOME=$(mktemp -d)): - test/usage.mjs (AGY_BRIDGE_STORED_SIGNIN=skip node --test): 41 pass. - bun test agy-cli.test.mjs: 20 pass, 0 fail. - bun scripts/check.mjs agy-cli: ok. Broken by hand: origin/main's usage.mjs with the new tests: the three new tests fail (agy -p ran for an ended token; no backoff/network message; invalid_grant not auth), 38 pass. Not tried: Windows with a real ended token and the network down at startup (no agy account here: the local one answers 403); the requests are the ones the region-refusal path has made since 0.1.7x. |
||
|
|
ffc98f640a |
agent-lorca 0.1.0: Lorca as a Magpie agent (#1230)
Lorca's plugin returns its provider as one merged object (custom.custom:magpie), with no changed_at, so unwire leaves the user's credentials.json as it was. Needs magpie v0.1.4336 (8a017b583), which writes a connect-only plugin's merged-only keys.
Run at 883ea48: bun test packages/lorca 2 pass; scripts/check.mjs lorca ok; a magpie sandbox test loading this lorca.agent.js connected and unwired with no file, {"anthropic":"k"}, and a file with custom:gemini and a changed_at map: "{}" and the two files back as they were.
Not tried: the real Lorca app (author tested Desktop 0.1.22 / CLI 0.1.26).
|
||
|
|
f10738917f |
agy-cli 0.1.83: a pending call Codex dropped is answered as cancelled, and the live session goes on (#1231)
Codex delivers a sub-agent message at a sampling boundary by keeping the interrupted reply's text, dropping its tool call, and sending the history on with the new message. Since 0.1.74 lineageVerdict called that a fork: the pending call was closed with SUPERSEDED_NOTE and the conversation was replayed in a new session, losing agy's cached prefix and, for a long history, the turns past the 112 KiB prompt budget. Now lineageVerdict returns "dropped" when the recorded history with the turn's unanswered calls taken out is exactly the client's history, and the reply that carried them kept some text. keepDroppedTurn answers those calls with "cancelled by the client, not executed" through the existing steerInSession (MCP commit wait, session/cancel, history set to the client's), and the new trailing message goes in as the next prompt in the same session. A changed reply text, a reply that was only the call, grown tools, another work dir or other instructions still replay as before; so does a steer that fails. Run (mote, HOME=$(mktemp -d)): - node --test test/dropped-call.mjs: 3 pass (kept session; changed text replays; call-only reply replays). - bun test (agy-cli): 38 pass, 0 fail. - bun scripts/check.mjs agy-cli: ok. Broken by hand: origin/main's index.mjs with the new test: the kept- session case fails (a second agy session is started); the two replay cases pass on both. Not tried: a real Codex session with a sub-agent message arriving mid-sampling against a real agy; the fake reproduces the request shape the issue describes. Part 1 (history seed through systemPrompt.append, opt-in) is not in this change. |
||
|
|
36dc4007fc |
zcode 0.1.68: every account takes requests, the Start Plan held to six in flight from this address
mathfournity on X: with several ZCode accounts in magpie, requests went to two of them only. 0.1.40 declared maxAccounts 2 after 01huadalang's address was refused with a 405 while three accounts took requests at once, so magpie kept the first two of the list taking requests and held every other account in reserve until one rested. A user with five gift accounts saw two used. What zcode.z.ai's edge firewall counts is the address's Start Plan requests in flight (busyHold's logs: ~10 in flight against a cap of three before the IP's 405), not how many accounts sent them. So the plugin no longer declares maxAccounts, and holds that instead: besides each account's three (startGate), every account's Start Plan requests share one address lane of six, what two accounts of three each sent while the two-account default stood. A request takes its account's slot first, then the address's, within the one 120s wait; a wait that runs out on the address's is answered here with a 429 that says so, nothing sent, and lets the account's slot go. Free first counts the address lane full as it does the account's. The coding plan, on api.z.ai, is held to none of it. A user's own Accounts at once is kept as they set it. Run: - HOME=$(mktemp -d) bun test in packages/zcode on the Linux box (wsl-run, Bun 1.4.2): 275 pass, 0 fail. - Broken by hand: the new tests against origin/main's index.mjs and package.json: 3 red (maxAccounts 2 declared; peak 12 in flight over four accounts where six are allowed; the address wait never runs out). - magpie's gateway with this plugin under bun and four accounts on a fake Z.ai (a throwaway test, not committed, on mote): 12 requests at once went 3/3/3/3 to the four accounts, where 0.1.67 sent 6/6 to two and none to the others; 1302, 1308, 3008 and 500 on one account each went to the next and rested the first, as before. - start.test's in-flight hold test parks twelve accounts' requests at once; it raises the address lane to twelve, since the hold's handling of such a run is what it tests. Not tried: a real ZCode account; whether zcode.z.ai refuses an address for the number of accounts as well as for requests in flight. |
||
|
|
75068043af |
agy-cli 0.1.82: each account lists the models agy offers it, not the last account's (#1229)
The cached `agy models` list and what agy acp offers a client were one set of module globals. With several accounts on different plans, the last session or probe of any account replaced them, so every account's models() listed that account's models and the catalog flipped as requests went by (#1229). - The catalog, the offered set and the refresh/probe state are now kept per account home (currentHome(), "" for agy's own). magpie asks each account's models() in that account and serves the union, and already sends a model only to an account that lists it. - A Proc remembers the account it was started for, and the offer probe remembers its account at the start, so what agy says later is noted for that account even outside its scope. - models.json keeps agy's own account under the executable's path as before; another account's entry is "<path>#<home id>". - provider.warming() waits on every account's listing and probe, and again for a probe a landing listing starts. - A new account's static start no longer replaces the usage reader's rows from another account's real list; a changed agy still does. Run (mote, HOME=$(mktemp -d)): - bun test in packages/agy-cli: 37 pass, 0 fail (test/catalog.mjs 34 of 34 under node --test too). - bun scripts/check.mjs agy-cli: ok. Broken by hand: origin/main's index.mjs with the new test: red ("#1229 每个账号列自己开放的型号,互不覆盖"). Not tried: two real agy accounts on different plans (none here); the test fakes them with a per-HOME offered list. |