Commit Graph
1194 Commits
Author SHA1 Message Date
yetone fb7bbebdc2 antigravity 0.1.13, antigravity-cloak 0.1.8: Codex's GPT-5 line goes reworded in a user's turn too
Since 11-14 Antigravity also answers a bare 429 "Resource has been
exhausted (e.g. check quota)" to Codex's GPT-5 lines ("You are Codex, an
agent / a coding agent based on GPT-5") in a user's turn: a pasted
AGENTS.md, or a developer message magpie tells after a reply as a
<system-reminder> in the user's turn. Both the plugin and the cloak only
reworded the system prompt, so such a conversation 429s on every turn
whatever quota is left (daoche_wuzui on X, magpie 0.1.4131 with Cloak
0.1.7).

On the owner's real Antigravity account, gemini-3.8-flash, 11-14:
- each line in the first user turn: Codex's two lines 429 3/3 each; the
  billing line, the Agent SDK line, Hermes' persona and omp's RFC line
  200 3/3 each, so only Codex's two are reworded there.
- Codex's line in the model's turn and in a functionResponse: 200 2/2.
- "built on GPT-5" in the user's turn: 200.

antigravity: shape() rewords USER_TURNED_AWAY (Codex's two lines) in
every non-model part's text; cloak() takes an optional list of lines.
antigravity-cloak: onProvider rewords those two lines in user messages
(anthropic messages, chat messages, responses input, gemini contents);
tool results, the model's turns and the user's own saidAs/extraWords are
left as they were in messages. The old case that kept a user's Codex line
as written now expects it reworded.

Run, at this tree, on mica:
- root `bun test` with a temp HOME: 8781 pass, 0 fail (8801 tests, 613 files)
- packages/antigravity `bun test`: 93 pass; packages/antigravity-cloak:
  25 pass.
Broken by hand: with the user-turn cloak taken out, shape.test's new
test fails, and 5 of the cloak's cases fail.
Real account through a sandbox magpie (gateway 3476, plugin host
restarted on these files): an Anthropic /v1/messages request whose user
turn carries Codex's line, 429 3/3 on 0.1.12 + cloak 0.1.7, 200 3/3 on
these. The plugin alone on the same account: 429 3/3 -> 200 3/3 for both
lines. Claude Code's 23-tool capture and a Codex capture still 200 2/2.
Not tried: agy-cli (it doesn't cloak), other models than
gemini-3.8-flash for the user-turn case.
2026-11-14 14:24:14 +08:00
yetone 09c05dfa9f trae: an enterprise sign-in naming the console chats on the consumer gateway (#1127)
shadow1606's real Trae CN enterprise (SaaS) seat named
console.enterprise.trae.cn as its model host. There, every
/api/agent/v3/llm_utils_chat answered {"code":4245}, for every function
and model: TRAE SOLO chats through create_agent_task/workflow with
encrypted bodies instead. The list the console gives names the tenant's
configs, which the consumer gateway then refuses (4001). The consumer
gateway takes the same login, and the reporter verified full completions
by pointing `api` at it. That is now what apiOf does for the console host
itself. The account's usage stays on the console (`host`, seat pool in
yuan), as before. Chats there count against the login's consumer
Credits, not the seat pool; that is said on the issue.

Not changed: any other trae.cn tenant host a sign-in names (ent-acme in
the tests) is still taken as the model host, as no real account shows
otherwise. Trae Global's console.enterprise.trae.ai is not measured. Its
issue was filed with this commit.

Run (WSL, bun 1.4.2, HOME=$(mktemp -d)): packages/trae bun test 266
pass 0 fail; scripts/check.mjs trae ok. Broken by hand: without the
console line, the new enterprise test fails (19 pass 1 fail).
Not tried: a real enterprise account (no seat here); the reporter's run
is the end-to-end evidence.
2026-11-14 14:11:24 +08:00
yetone e0f2a4c2e9 agy-cli 0.1.42: agy's "Model produced invalid output." retry banner is dropped (#1124)
When the model's first call returns neither text nor tool calls, agy writes
"\n⚠ Model produced invalid output." into the reply and calls the model
again in the same turn. The bridge passed that banner on as the reply's
text, so Claude Code's prompt_suggestion took it as the suggestion.

Turn.pushText now drops the banner, with its leading newline and one
trailing newline, wherever it starts a line. A banner that ends a chunk is
held, so a newline in the next chunk goes with it, and it is dropped for
good when the text is flushed. The turn goes on: unlike agy's error
marker, it does not fail the prompt. The model quoting it mid-line keeps it.

Run on WSL (Bun, temp HOME):
- packages/agy-cli: bun test, 21 pass / 0 fail (repeat-batch 30 pass).
- bun scripts/check.mjs agy-cli: ok.
- Broken by hand: on the old index.mjs the new #1124 banner test is red.

Not tried: a real agy 1.5.8 empty-output retry; the banner bytes come from
the reporter's gateway log, and both with and without a trailing newline
are covered.
2026-11-14 13:30:22 +08:00
Muyang 80547ec2ab privacy-gate: per-agent controls and a graphical settings page (#1111)
privacy-gate's settings page and panel gain per-agent switches and an
"other agents" list. disabledAgents entries the UI can't show as one id
(globs such as `claude-*`) are kept verbatim on save and lock the rows
they match. A save reads the options again and refuses when the agent
fields changed since load, and merges into the current object so
unrelated options are kept.

Run at 30956ba616b3 (the reviewed head), on WSL with a temp HOME:
- packages/privacy-gate: bun test, 76 pass / 0 fail.
- bun scripts/check.mjs privacy-gate: ok.
- Broken by hand: with mergeDisabled dropping patterns, "a glob policy
  survives an options save and unrelated options are kept" goes red.

Thanks @siml1169.
2026-11-14 13:26:28 +08:00
yetone 9bca17b5d2 codearts 0.3.20: a body too large to sign is a 413, not an expired sign-in (#1121)
APIG signs a request body of 12 MB at most. A larger one (apple-small's
long chat with 21 images, ~20 MB) came back after ~30s as 401 APIG.0301
"calc ak sk signature fail:body too large". The plugin read every such 401
as a stale credential: it renewed, then answered 401 with
X-Magpie-Sign-In: expired, so magpie showed the account signed out and
signing in again changed nothing.

Now that answer, on chats and other requests, is a 413 saying the size and
what to do (new chat, or drop the large images), with no sign-in mark and
no renewal. A body over 12 MiB is refused the same way before it is signed
or sent, so it doesn't wait the gateway's ~30s first.

Not changed: images are not dropped or rewritten; that would change what
the user sent. OfficeAce sends Basic auth, no AK/SK body signature, so it
is left as is.

Run: wsl-run bun test in packages/codearts, 213 pass. Broken by hand:
isBodyTooLarge always false -> the 413 test red; no pre-send size check ->
the 12 MB test red. scripts/check.mjs codearts ok.
Not tried: a real mainland account with a 20 MB chat; the gateway's answer
is the reporter's log, used byte for byte in the test.
2026-11-14 11:49:01 +08:00
cyanask 001a1f9fbf company-guard 0.4.3: reversible company-name masking middleware (#903)
New middleware package @magpie-community/middleware-company-guard 0.4.3 (ported by @cyanask from cyanask/magpie-company-guard): masks company names in requests with stable per-session aliases, restores them in replies (Responses, Chat Completions, Anthropic Messages, Gemini; streaming and tool arguments), keeps local receipts, and lets a Codex session be approved explicitly. macOS only ("os": ["darwin"]). The receipt page listens on 127.0.0.1:3469 only; nothing goes to an outside host.

Review fixes since 07587b9: default port 3478 (atomcode's) -> 3469, unused in the repo; the three local keys are generated on first run into <config>/magpie/company-guard/keys.json (0600, O_NOFOLLOW, owner-checked) and written into this plugin's own plugins.json entry, so install works with no setup; 27 tests.

Run at 7a147166 on mica: node --test 27 pass, bun test 27 pass; esbuild 0.25.12 rebuild of dist/company-guard.middleware.js is byte-identical (sha256 b2faf535...); merged with origin/main, scripts/check.mjs ok, bun test scripts 24 pass. Broken by hand: onEvent returning the event unrestored -> the four split-chunk tests red; initializeOptions without publishKeys -> five install tests red.
Not tried: a real magpie install end to end. The package is not on npm yet, so it is served from the dist branch until its first npm publish.
2026-11-14 11:18:13 +08:00
yetone c490e2a85e codearts 0.3.19: the mainland station gets no stop at all (#1120)
The mainland gateway (snap-access cn-north-4) now answers every non-empty
stop with InferHub.001001005.400, a string too: Glueo measured "x", "###",
"\n\n", "Observation:", "</block>" and ["x"] on five models, all refused,
and the same body without stop answered. 0.3.15's string-only rule
(magpie#6342) no longer holds. Claude Code's auto-mode classifier always
sends stop_sequences ["</block>"], so every classifier call on a mainland
account was refused.

normalizeStop now leaves stop out on the mainland; the international
station still takes a list (#998), unchanged.

Run: wsl-run bun test in packages/codearts, 211 pass. Broken by hand:
main's index.mjs under the new test, 1 fail. scripts/check.mjs codearts ok.
Not tried: a real mainland account here; the measurement is the reporter's.
2026-11-14 11:13:50 +08:00
yetone 5bb4194140 antigravity 0.1.12, agy-cli 0.1.41, antigravity-cloak 0.1.7: turned-away lines go reworded (#1118)
Since 11-14 Google's check reads past invisible characters: a system
prompt with Claude Code's billing line and Agent SDK line, broken up with
two U+200B in every word as the cloak sent them, was turned away 5 of 5
with the bare 429 "Resource has been exhausted". Claude Desktop's Code
tab through magpie to Antigravity failed every turn (hc295971796 and
daoche_wuzui on X, 11-14).

Each line Google turns away now goes reworded instead, as plain words:
- the x-anthropic-billing-header line is left out (to its line's end);
  a system part or message holding only it is dropped;
- "built on Anthropic's Claude Agent SDK" -> "built on the Claude Agent
  SDK by Anthropic";
- Codex's "based on GPT-5" -> "built on GPT-5";
- Hermes' "created by Nous Research" -> "built by Nous Research";
- omp's RFC "keywords" -> "key words" (as before).
A copy an older magpie or cloak broke up (U+200B, U+2060, soft hyphen,
in or between words) is matched and reworded as the line. The Code tab's
main line ("You are Claude Code, Anthropic's official CLI for Claude,
running within the Claude Agent SDK.") passes as written and is kept.
antigravity-cloak gains a saidAs {phrase: replacement} option; extraWords
still breaks words up and the README says it no longer gets past
Google.

Run:
- real Antigravity account, sandbox HOME, gemini-3.8-flash, 10
  sequential requests each through packages/antigravity at this head:
  Code tab main prompt as Claude Desktop sends it (billing + main line +
  rest) 10/10 200; Agent SDK subagent line 10/10; an old two-U+200B
  copy 10/10; Codex GPT-5 10/10; Hermes' earlier persona 10/10; omp's
  RFC line 10/10. Each rewording alone was first tried 5/5 against the
  zero-width break, which went 0/5.
- wsl-run, HOME=$(mktemp -d) bun test (whole repo) before the last test
  fixes: 8735 pass, 19 skip, 3 fail, all three in these packages' own
  tests still expecting zero-width; after fixing them,
  bun test packages/antigravity packages/agy-cli packages/antigravity-cloak:
  133 pass, 0 fail.
Broken by hand: the three packages' source files from origin/main with
these tests: 19 fail (shape, cloak parity, smoke, every cases.json case).
Not tried: agy-cli against the real agy binary (smoke runs a fake agy);
models other than gemini-3.8-flash.
2026-11-14 11:04:28 +08:00
yetone 07ba4eb88d trae 0.2.35: a bare {"tool_calls":[…]} reply is its calls (#1114)
The sibling of qoder's #1113: a model can write OpenAI's own wire shape
as text, {"tool_calls":[{"name","arguments"}]} on a line of its own,
and trae passed it through as the answer. TextTools now reads a whole,
readable object as its calls ({"name","arguments"} entries and OpenAI's
{"type":"function","function":{…}} both), drops the line's indent with
it, and ends the turn with the cut-short failure when the stream ends
inside one, as a <tool_call> block does. While streaming, a last line
that may still grow into {"tool_calls":[{ is held until it settles.

The shape in prose, in a code fence, {"tool_calls":[]}, an entry with
no name and other JSON lines stay text.

Siblings: doubao-work 0.1.12 (4ea39f01) and orcaterm 0.1.8 (2db9b0ad).
zen-free reads no calls out of text (its upstream sends tool_calls
itself), so it has nothing to change.

Run (WSL magpie-desktop, HOME=$(mktemp -d)):
- packages/trae bun test: 265 pass, 0 fail. jsoncall.test.mjs uses
  #1113's bytes, whole and in 1-, 5- and 4096-character pieces.
- On the old code jsoncall.test.mjs is 2 of 3 red; with jsonHoldAt
  returning -1 by hand, the streamed cases go red again.
- bun scripts/check.mjs trae: ok.
Not tried: a real Trae account producing this reply.
2026-11-14 10:05:13 +08:00
yetone 2db9b0ad7f orcaterm 0.1.8: a bare {"tool_calls":[…]} reply is refused, not sent as the answer (#1114)
#1113's model wrote OpenAI's own wire shape as text, on a line of its
own: {"tool_calls":[{"id":…,"function":{…}}]}. OrcaTerm sends no tools
upstream, so such a reply is a call with nothing to call: it is now cut
where the call starts and the turn ends with the text_tool_call error,
the same as a <tool_call> block. Streamed, a last line that may still
grow into {"tool_calls":[{ (its indent too) is held until it settles.

Prose that mentions the shape, a fenced or backticked copy,
{"tool_calls":[]} and other JSON lines stay the answer.

Sibling: doubao-work 0.1.12 (4ea39f01) lifts the same shape as calls,
since doubao-work does carry tools.

Run (WSL magpie-desktop, HOME=$(mktemp -d)):
- packages/orcaterm bun test: 164 pass, 0 fail; jsoncall.test.mjs
  covers 1-, 5- and 4096-character frames with #1113's bytes.
- Broken by hand: without the new regex alternative, all 4
  jsoncall tests fail; restored, all pass.
- bun scripts/check.mjs orcaterm: ok.
Not tried: a real OrcaTerm account producing this reply.
2026-11-14 10:02:43 +08:00
yetone 4ea39f0155 doubao-work 0.1.12: a bare {"tool_calls":[…]} reply is its calls (#1114)
The sibling of qoder's #1113 (0.2.68). A reply that writes its calls as
one JSON object in OpenAI's own wire shape went out as the answer with
"stop". A whole {"tool_calls":[…]} object on a line of its own, outside
code, is now those calls (finish tool_calls), with arguments as an object
or as a JSON string. While the reply streams, such a line, or a tail that
could become one, is held and never shown as text. JSON in prose or in a
fence, an empty list, a nameless entry and unreadable arguments stay text,
as an unreadable <tool_call> block does in this package.

Run: bun test in packages/doubao-work on WSL (magpie-desktop),
HOME=$(mktemp -d): 62 pass, 0 fail (jsoncall.test.mjs new, with #1113's
bytes). bun scripts/check.mjs doubao-work ok.
Broken by hand: without the lift and the hold, both jsoncall tests that
are about them go red (2 fail).
Not tried: a real Doubao reply in this shape; none has been reported.
2026-11-14 09:58:53 +08:00
yetone 6753271861 doubao-work: the README says listing models and usage read only an open window (#1117) 2026-11-14 09:31:18 +08:00
yetone 37ef8ffa96 doubao-work 0.1.11: listing models and reading usage never start Doubao (#1117)
On Windows magpie's model list and usage read each brought 豆包工作 up
with no request sent, and a single-instance app handed the second launch
to the copy already on the plugin's profile, so start waited on a fresh
port nothing listened on and the window kept coming back.

- quota() and ensureList() attach only to a window already open
  (App.running); a closed one is the app_closed error for usage, and the
  list is read on the next request. Only a request starts the app.
- App.start finds its own copy (now on Windows too, via WMI command
  lines) and waits on that copy's --remote-debugging-port instead of
  spawning another. A copy on another profile stops start on macOS only:
  Windows keeps one copy per profile.
- The port file is written only once its port shows the app's pages.
- A models.json from an older version keeps its models (less 快速 and
  专家) as a never-read list, instead of falling back to three models.

Run: bun test in packages/doubao-work on WSL (magpie-desktop),
HOME=$(mktemp -d): 59 pass, 0 fail. bun scripts/check.mjs doubao-work ok.
Broken by hand: with quota/ensureList launching again, "models() and
usage never start Doubao" goes red; without the own-copy attach, "App
waits for its own copy on that copy's port" goes red (2 fail).
Not tried: the real app on Windows (no 豆包工作 there); the WMI query
is tested against a recorded shape only.
2026-11-14 09:18:29 +08:00
yetone 7da596030e day-card 0.3.5: the day menu lists every day after a past day or span, not today above it (shangyuan0818 on X)
The reporter (Windows) picked an earlier date range; the day menu then
listed today first and the range's last day second, as if no day between
had calls. usage:day's days stop at the date read (usageapi.SpanOf:
h.Date <= date), and the menu put today on top of them. A day or span in
the past now reads today's days for the menu (one more usage:day read,
date "", on opening it) and V.menuDays merges both, newest first, today
on top, the newest 120 and back as far as the day shown. If that read
fails the menu lists only the days it has, with no today above a gap.
Chosen over leaving today out: the menu is how you get back to a later
day, and today was always on it.

Run on mica (mote's load was over 18) at 76cfb7fe + this change:
- HOME=$(mktemp -d) bun test (whole repo): 8717 pass, 0 fail.
- bun scripts/check.mjs: exit 0.
- day-menu.gui.mjs (new, real page, stub bridge answering as SpanOf):
  all ok in Chromium and WebKit, day, week and month.
Broken by hand: with the old menu logic moved into V.menuDays unchanged,
the new unit test is red (today then 11-01, 11-06..08 missing); with
origin/main's app.js and view.js, day-menu.gui.mjs FAILs "chromium day to
11-01" with 2026-11-09 2026-11-01 2026-10-20, the reporter's case.
Rebased onto 4170d0e8 (antigravity/agy-cli only, no day-card change).
Not tried: the live magpie window on Windows.
2026-11-14 09:14:12 +08:00
yetone 4170d0e816 antigravity 0.1.11, agy-cli 0.1.40, antigravity-cloak 0.1.6: omp's RFC 2119 line goes as "key words", in any white space
eric_li8983 (X, 11-14): oh-my-pi on Windows with an Antigravity account got
"Antigravity answered 429 to this system prompt" for omp's first line,
"RFC 2119 keywords: MUST, REQUIRED, SHOULD, RECOMMENDED, MAY, OPTIONAL."

Two causes, both seen on a real account on 11-14:

- Google's check reads the line in any case with any white space between
  its words: wrapped with LF or CRLF, indented, a tab, two spaces or a
  no-break space were all turned away, while the cloak matched only the
  literal line, so those copies went out whole. Each turned-away line is
  now matched with any run of white space (JavaScript's \s) between its
  words, the same in antigravity, agy-cli's cloak.mjs and the
  antigravity-cloak middleware; Codex's and Hermes' lines too.
- A zero-width-broken copy of omp's line was itself turned away now and
  then (10 sequential requests each: two U+200B a word 3 bare 429s, one
  after every character 3, U+2060 2, soft hyphen 1). omp's line now goes
  as "RFC 2119 key words: …", RFC 2119's own term, with its white space
  as it was. The hint says so.

Real account (sandbox HOME, copy of the live Antigravity account,
gemini-3.8-flash, sequential): the reworded plugin answered omp 18.20.0's
literal prompt 10/10, the full template 10/10, and the line wrapped after
"REQUIRED," 10/10. The zero-width version before it: lit 3, tmpl 1, w1 5
bare 429s in 12 each.

Run at 24c75a16's tree (rebased on 76cfb7fe): the whole bun test (temp
HOME) on WSL magpie-desktop, 8720 pass, 0 fail, 19 skip. Broken by hand: the new tests against the old index.mjs,
cloak.mjs and middleware: 6 fail.

Not tried: omp itself end to end on Windows. Also seen in the same probe:
Claude Code's, Codex's and Hermes' broken-up lines were each refused 1-2
times in 10; filed as #1118.
2026-11-14 09:03:51 +08:00
yetone 76cfb7fe86 qoder 0.2.68: a bare {"tool_calls":[...]} reply is its calls (#1113)
A model on Qoder CN (auto/minimax-m3.1-flash) answered with OpenAI's own
wire shape written as text, {"tool_calls":[{"name","arguments"}]}. The
Splitter only knew <tool_call> and the bare XML tags, so the block went
out as the answer with finish "stop" and the calls were lost.

The Splitter now reads such an object as those calls and finishes
tool_calls. It counts only when the object starts its own line, its first
key is "tool_calls", and it is outside code (quoted()). Each entry needs a
name and arguments that are an object or a JSON string ({name, arguments}
or {function:{...}}). It is held until its braces close. A block cut short
at the end of the stream, or with an entry that can't be read, ends the
turn as an error (502 when not streamed), as #132's <tool_call> block
does. An empty array, other JSON, and JSON in prose or code stay text.
Unlike the XML path, this isn't gated on declared tools: the reporter's
request declared none, and the <tool_call> path isn't gated either.

jsoncall.test.mjs uses the issue's bytes: bare, prose then bare, whole
and in 3- and 1-char pieces, streamed and not, the <tool_call> control,
string arguments, four error shapes, and seven text-stays-text cases.

Run (WSL magpie-desktop, bun, HOME=$(mktemp -d)): packages/qoder
`bun test`: 440 pass, 0 fail. jsoncall+textcall+xmlcall at the pushed
tree: 26 pass. `bun scripts/check.mjs qoder`: ok.
Broken by hand (detection turned off): jsoncall goes 7 fail, 2 pass
(the control and text-stays-text).
Siblings filed: #1114 (doubao-work, orcaterm, trae, zen-free).
Not tried: a live Qoder CN account.
2026-11-14 08:35:54 +08:00
00 26ea8faf77 codearts 0.3.18: claim every daily check-in campaign, not only the first (#1110)
The delivery list holds more than one USER_LOGIN campaign: the ordinary daily check-in (34, 100), a contest's daily check-in (40, 1000, 2026-11-11 to 12-05) and the contest's one-time sign-up gift (42). dailyCampaign took the first, 42; once it was CONFIRMED the check-in answered done and claimed neither daily one. Now every USER_LOGIN campaign whose title is a daily one (签到/每日) is claimed and confirmed in turn, credit is their sum, grants and unconfirmed claims are kept per campaignId, and a campaign the account hasn't joined (not claimable, or refused with 需要先通过触发接口激活/未报名) is ineligible rather than a failed day.

By @amqsy (#1110).

Reviewed at ab9447b8:
- WSL, HOME=$(mktemp -d): bun test in packages/codearts 211 pass; bun scripts/check.mjs codearts ok.
- Broken by hand: dailyCampaigns back to the first USER_LOGIN item turns three of the new tests red.
- The old single-claim _unconfirmed shape is still read.
- Not tried: a real CodeArts account (the author's run on 2026-11-14 00:00 Beijing claimed +1100 on two accounts).
2026-11-14 02:21:30 +08:00
yetone 397da020de opendesign 0.1.13: each model says the two other APIs amr-link serves it on
gaubeebangeel on X: OpenDesign's Anthropic request to an Open Design
Cloud model went upstream as chat completions. Each model is declared on
one wire (the thinking choice of plugins#141), and magpie translated any
other API's request to it, though amr-link serves every model on chat
completions, Responses and Anthropic's messages (plugins#888).

Each model (the config seed, a kept copy, the models hook's) now lists
the other two packages as `also`. magpie from the matching release reads
it (plugin.Model.Also) and relays a client's request on any of the three
as it was sent; the declared wire stays the model's own, which a request
on another API is translated to. signFor already signs by the request's
path. An older magpie ignores the field.

Run: bun test packages/opendesign (32 pass) with a temp HOME on mote;
root bun test with a temp HOME on mote: 8704 pass, 20 skip, 0 fail.
2026-11-14 02:05:31 +08:00
MuLiu_SaMa 418d81d896 agent-meowcode 0.1.0: MeowCode as a magpie agent (#1107)
Adds MeowCode (https://github.com/MuLiuSaMa/MeowCode) to the Agents page. magpie writes %APPDATA%\MeowCode\agent\magpie.json, an overlay MeowCode 1.3.0+ reads at start-up and never writes; the user's own providers and keys are untouched. The row's notice says it needs MeowCode 1.3.0 or later.

By @MuLiuSaMa (#1107).

Reviewed at 4593caec:
- MeowCode's reader, desktop/magpie-overlay.cjs, is the same blob (59e0c926) at 3d47a099 and at the v1.3.0 release tag; it reads every field this package writes, keeps only magpie/ ids with loopback baseUrls, and treats {} as no overlay.
- WSL, HOME=$(mktemp -d), merged onto main c95e20a3: bun test in packages/meowcode 5 pass; bun scripts/check.mjs meowcode ok.
- Not tried: a real MeowCode install (Windows only); the author's screenshots cover the real run.
2026-11-14 01:45:20 +08:00
yetone c95e20a352 doubao-work 0.1.10: lists 工作任务's real models from brief_list, with 推理强度
XingHeJin on X: 豆包工作 listed only 快速 and 专家, and 测试模型 failed,
while the app offers 自动, 豆包 2.1 Lite/Pro, DeepSeek V4.1 Flash, Kimi
K3.1 Pro (高速), Kimi K3, GLM 5.3 (Flash) and DeepSeek V4 Pro, each with a
推理强度 submenu.

Cause: discover read the model menu of whatever page was open. In 豆包 that
can be the 对话 page, whose menu is 快速/专家; that list was cached, and
pickModel("快速") then failed in the 工作任务 the request opened.

- The list now comes from the request the app's own page makes,
  alice/slot/action_bar_v3/brief_list (coco_deep_thinking, mode_id 3), with
  each model's model_item_key and 推理强度 levels. When it can't be read,
  the menu is read inside a new 工作任务, never the current page's.
- models.json carries a version; a 0.1.9 cache is read again.
- A model is found by id, by Doubao's key or by its name.
- Each model's 推理强度 levels are variants; reasoning_effort (or
  reasoning.effort) picks the nearest level (低 low, 中 medium, 高 high,
  极高 xhigh, 最高 max). With none asked, the model's own default level is
  set, not the one the last request left.
- A Radix menu left open in a background window (its close animation waits
  for a frame that is never drawn) is closed with a pointerdown before
  filling; the message is sent with the send button, Enter only without one.
- A model the list has and the menu doesn't reloads the page once.

Run:
- bun test packages/doubao-work under a temp HOME on mote: 56 pass, 0 fail.
- Broken by hand (cache version check removed, default effort removed, the
  send button skipped): the three tests about them went red, 53 pass 3 fail.
- Full bun test, HOME=$(mktemp -d), on mote at this tree on 14296209:
  8698 pass, 0 fail, 20 skip (606 files).
- Real requests through the plugin against the owner's Doubao account
  (豆包.app on macOS, sandboxed data dir), chat/completion bodies captured:
  deepseek-v4.1-flash xhigh -> person-deepseek-v4-1-flash-261017,
  reasoning_effort 6; glm-5.3 medium -> person-glm-5-3-261111, 5 (高, the
  nearest with a tie going higher); kimi-k3.1-pro-fast low ->
  person-kimi-k3-1-pro-highspeed-261111, 3; auto -> 9. All 200, ~5-7s.
  glm-5.3 with no effort, after a request left 低 -> 高 set, reasoning_effort
  5. provider.models() listed all 10 models with their variants.

Not tried: DoubaoWork.app itself (the same page, the 豆包 app was used),
Windows, the reporter's free plan, a Page.reload in real use, and the rates
read from a real menu.
2026-11-14 01:24:56 +08:00
qingnian108 14296209ea agent-console 1.3.8: scrolling up near the bottom leaves it at once, open the project in an IDE, reveal in the file manager (#1108)
Scrolling up near the bottom of the timeline now leaves stick-to-bottom at
once. The project can be opened in the first IDE found (Cursor, VS Code,
Windsurf, Zed, IntelliJ IDEA, WebStorm, Sublime Text) through argv arrays
with shell:false, and a file or folder can be revealed in Explorer, Finder
or the file manager. Reveal refuses absolute paths and "..", and checks the
target's realpath against the project's real root. By qingnian108.

Run at the reviewed head ad88364f4 on Linux (WSL magpie-desktop, Node 22),
in a standalone copy of the package:
- npm ci; npm run check (daemon + web tsconfig): clean
- vitest run: 75 files, 585 passed, 21 skipped
- npm run verify:build: app/* and daemon/dist/main.js(.map) match a
  rebuild from source byte for byte
- bun scripts/check.mjs agent-console: ok
Broken by hand: with files.reveal's realpath containment check removed,
"files.reveal refuses a symlink that resolves outside the project" is red
(1 failed, 14 passed); restored, 15/15.

Not tried: a real IDE launch or reveal on Windows or macOS (the Windows
branches ran only through injected-deps tests), and the scroll change in a
real window.
2026-11-14 01:03:25 +08:00
汤杭运 27ce92fd8f agent-wave 0.1.1: the mode names its model, sets a thinking level, and Wave is found by wsh (#1106)
Wave's magpie mode now carries the picked model's name ("Magpie · <model>"),
display:order 1 and the crow icon, and ai:thinkinglevel from the model's
efforts (medium, then high, then low; left out when it has none). The agent
also detects Wave by the wsh CLI, attributes usage by Wave's User-Agent, and
shows a notice on picking the Magpie mode in Wave. connect still returns one
whole `magpie` object, so a disconnect removes the mode. By aibot88.

Checked against Wave's source (pkg/wconfig/settingsconfig.go): display:order,
display:icon and ai:thinkinglevel (enum low/medium/high) are AIModeConfigType
fields. magpie passes name and efforts to connect (internal/agent/plugged.go),
and bin/ua/notice are agentplug.Desc fields.

Run at the reviewed head 008cd8bb4, HOME=$(mktemp -d):
- packages/wave: bun test 5 pass, 0 fail (mote)
- bun scripts/check.mjs wave: ok
Broken by hand: putting "high" ahead of "medium" turns the thinking-level
test red (4 pass, 1 fail, magpie-desktop WSL); restored.

The author ran it on magpie 0.1.3900 with Wave 0.14.5 on macOS.
Not tried by the reviewer: a real Wave install.
2026-11-14 00:28:26 +08:00
K1NG_HAER1N e488064e06 antigravity 0.1.10: Google Search grounding as a magpie web search (#1103)
Adds a magpie `search` hook (`search.antigravity`, auth: antigravity) that runs
a query through Google Search grounding (`tools: [{googleSearch: {}}]`) on a
Flash model from the signed-in account's live catalog, with thinking off, and
returns the grounded pages (title, URL, snippets), deduplicated and trimmed to
`count`. A refusal carries numeric `status` and `retryAfter` so magpie rests
the account for search only. Grounding redirect URLs are returned as Google
sends them; no extra request is made per result. By Invis1ble-2.

Run at the reviewed head f0465e41b on mote, HOME=$(mktemp -d):
- bun test ./packages/antigravity/: 90 pass, 0 fail (294 expect calls)
- bun scripts/check.mjs antigravity: ok

Broken by hand: turning off the per-URL dedup in pagesFromGrounding turns
search.test.mjs red (5 pass, 1 fail); restored.

The author ran it through a real magpie with a real Antigravity account
(`magpie tool web_search`, 10 pages for "latest Bun runtime release version")
and checked the SEARCH_MODELS names against a real fetchAvailableModels.

Not tried by the reviewer: a real Antigravity account.
2026-11-14 00:06:15 +08:00
zhangyandzy1233 a410afe0d9 zycode 0.1.0: zycode as a magpie agent through a reversible agent.toml (#1104)
Adds `@magpie-community/agent-zycode` 0.1.0: zycode (`zypi`, the VS Code extension, the ACP agent) on magpie's Agents page. magpie writes the model, gateway URL and key to `~/.pi-python/local.env`. A host part (`bridge.mjs`) copies them into the `[model]` table of `agent.toml` as text, and puts the file back byte for byte on disconnect, keeping any edits the user made meanwhile.

Reviewed at 618771e7c9269c8248599f05cd86eb18e00c358f:
- WSL Ubuntu 24.04, Bun 1.4.2: `bun test` in packages/zycode 20 pass; `bun scripts/check.mjs zycode` exit 0.
- Broken by hand: disconnect leaving agent.toml as is (`const back = current`) turns 9 of 20 red.
- No network and no child processes; local files only, temp-and-rename, symlinks refused.
- Real run by the author (Ubuntu VM, zypi 0.9.1, magpie v0.1.4069): only the four [model] lines changed; one turn answered through magpie (Usage shows zycode, 4 calls); after disconnect, agent.toml and local.env have identical sha256.

Not tried: Windows, macOS, the VS Code extension's frozen agent binary.

Co-authored-by: zy1233 <zy1233@users.noreply.github.com>
2026-11-13 23:17:06 +08:00
yetone 8647819cd1 day-card 0.3.4: the Background menu stays on the page where the toolbar wraps
The menu hangs from the Background button's right edge. Where the page is
narrow enough for the toolbar to wrap (about 1000px and less), the button
sits at the left and the 292px menu ran off the page's left edge: at
900px it spanned -105..185, and the first column, the reader's own
picture with its new remove badge among them, couldn't be reached. On
open it now hangs from the button's left edge (#bg-pop.left, origin top
left) when the button's right edge has less room than the menu's width.
Found while checking 0.3.3's badge.

Run on mote at 4191c523 + this change:
- bg-delete.gui.mjs, now at 1200, 900 and 420 wide with a check that the
  menu is within the page: 600 ok, all ok (Chromium and WebKit, five
  languages, mouse and touch).
- HOME=$(mktemp -d) bun test packages/day-card: 19 pass, 0 fail.
- bun scripts/check.mjs: exit 0.
The whole repo's bun test ran green at 4191c523 (8662 pass); this change
touches only day-card's page and its GUI script.
Broken by hand: without the toggle, "menu within the page" FAILs at
900px (-105..185).
Not tried: the live magpie window.
2026-11-13 22:50:33 +08:00
yetone 4191c52328 day-card 0.3.3: your own background picture can be removed, with a badge at its corner (netube99 on X)
A picture added in Background stayed for good. Its swatch now carries a
small × badge at the top-right: shown on hover with a mouse (gated by
hover: hover and pointer: fine), on keyboard focus (focus-within), and
always where there is no hover (touch). The badge is its own button
beside the swatch, not inside it. Removing the picture drops it from the
saved plugin options (pick({ image: "" }), the 1.1s debounced
options.set); a card drawn on it goes back to teal through norm, a
picture not in use leaves the backdrop alone. The menu stays open (the
click is stopped before the outside-click closer sees a detached target)
and focus moves to the + button. No confirm dialog: adding it back is one
pick away. Badge fades and grows from scale(.9) in 150ms on the strong
ease-out; reduced motion keeps the fade only. Name in all five
languages.

Run on mote at 4f5d4138 + this change:
- HOME=$(mktemp -d) bun test (whole repo): 8662 pass, 20 skip, 0 fail.
- bun scripts/check.mjs: exit 0.
- new bg-delete.gui.mjs (Chromium and WebKit, en/zh/zh-TW/ja/de, mouse
  and touch, 1200x800): 180 ok, all ok. Checks the badge's name, hidden
  without hover, shown on hover and on focus, at the corner, always shown
  on touch, menu open after, teal picked, focus on +, saved options
  without the picture, no page errors.
Broken by hand: without the stopPropagation, "menu stays open" FAILs in
every case; with :focus-visible on the wrapper in place of :focus-within,
"badge shown on focus" FAILs. The script needs the badge, so it fails on
the old page.
Not tried: the live magpie window. Seen on the way: at a page width where
the toolbar wraps (900px), the Background menu runs off the page's left
edge, so the picture's swatch can't be reached; fixed in the next commit.
2026-11-13 22:45:13 +08:00
yetone 4f5d4138ad agy-cli 0.1.39: a new nc.exe build drops this runtime's older ones (#1097)
Each nc dir holds a whole Bun runtime (~115MB) and its key changes with
mcp-server.mjs, so every plugin update left one in %TEMP% for the 7-day
sweep (Hy1an measured it). Each dir now holds a `runtime` file naming the
runtime that built it; a build removes the same runtime's other nc dirs at
once. Another runtime's dirs (another install) and dirs from before the
marker keep the week. A running nc.exe is locked, so its dir stays.

Run: test/windows-nc.mjs 8/8 on WSL and on Windows 11 (xiaomi-gpu);
bun test in packages/agy-cli 20/20 (WSL); check.mjs agy-cli ok.
Broken by hand: 0.1.38's index.mjs fails the new test (and the two that
now expect the marker).
Not tried: a real update on Windows. Dirs 0.1.38 left have no marker, so
they still go after a week.

Reported-by: Hy1an
2026-11-13 21:15:11 +08:00
yetone 67a5baaa1f agy-cli test: the sign-in check's upper bound has room on both sides (#1089)
"#1064 登录检查不为探测等太久" bounded authorize() at SLOW_MS + 3s + 1s, so
a busy Windows box used up the 1s and went red 1 in 12. The fake session
now answers after 60s, and the test asks that the probe session was started
and that authorize() returned before half of that. The lower bound stays: a
timer is only ever late.

Run: WSL, node --test test/catalog.mjs 24/24; Windows 11 (xiaomi-gpu,
Node 22), the #1064 tests 12 times, 0 red.
Broken by hand: OFFERED_SIGNIN_WAIT_MS at 120s (authorize waits for the
session) makes the test red, "登录检查等了会话(31524ms)".
No package code changed, so no version bump.
2026-11-13 20:43:46 +08:00
ming_jiang c2f54a8e74 amp-usage 0.1.2: an open page survives the plugin host restarting (#1099)
amp-usage keeps its service token across a host restart; a held lock is waited for, and the page polls with a timeout and clears its notice on recovery. Fixes #1098.

Reviewed at 8a6a66162; 585c921ae only drops a docs file.
Run (WSL, Bun 1.4.2, temp HOME): amp-usage tests 53/53, bun scripts/check.mjs exit 0.
Broken by hand: main's lib/server.mjs fails tests 1 and 2; main's index.mjs fails test 3.
Not tried: a real Amp account through a restarted magpie.
2026-11-13 20:28:35 +08:00
yetone c441017527 scripts/check: each package gets a folder of its own as its directory (#1100)
check.mjs handed every plugin process.cwd() as its directory, so a
plugin that writes state there (atomcode's atomcode-state.json) left an
untracked file in the checkout. magpie gives a plugin a data folder of
its own; the check now does the same, one temp folder per package,
removed at the end.

Run (mote, temp HOME, Bun 1.4.2): bun scripts/check.mjs exits 0, 59
packages ok, and no file in the tree is newer than the run's start.
Broken by hand: with main's check.mjs the same run leaves
./atomcode-state.json.

Reported-by: jinyue806
2026-11-13 19:59:41 +08:00
yetone 035a11cf88 agy-cli 0.1.38: a runtime under a non-ASCII folder still builds nc.exe (#1097)
On Windows, Bun's `build --compile` widens its own path byte by byte
into UTF-16 before CopyFileW, so a magpie-bun.exe under a non-ASCII
folder (a Chinese user name) fails with "failed to copy bun executable
into temporary file: ENOENT". windowsNcDir then fell back to nc.cmd,
which agy 1.5.x never runs, and no client tool reached the model.

When process.execPath isn't ASCII, the build now runs a copy of the
runtime in an ASCII-only folder (the temp dir, else %PUBLIC%, else
%ProgramData%) and removes it after. nc.exe's cache key is still the
real runtime's path.

Run (mote, temp HOME, Bun 1.4.2): node --test test/windows-nc.mjs
7 pass; bun test in packages/agy-cli 20 pass; scripts/check.mjs
agy-cli ok. Broken by hand: with main's index.mjs the new test fails.

Windows 11 (xiaomi-gpu, Bun 1.4.2, real binaries): bun under a folder
named with Chinese characters fails `build --compile` with the
reporter's ENOENT. A non-ASCII cwd, server path or output path is fine,
and the compiled exe runs from a non-ASCII folder; an 8.3 short path
doesn't help. The plugin's own ensureShimDir, run by that bun: main
gives nc.cmd, this change gives nc.exe in 614ms, which starts, and
leaves no build dir or runtime copy behind.

Not tried: agy itself against the new nc.exe on Windows, and Bun 1.4.4
(the reporter's); the code path read is the same in Bun's main source.

Reported-by: Hy1an
2026-11-13 19:58:09 +08:00
Pursuit806 a2af9d2dd3 astudio 0.2.2: fill in DeepSeek-V4.1-Flash while the catalog lags (#1095)
Reviewed at b43d74357. WSL (Bun 1.4.2, temp HOME): bun test in packages/astudio 81 pass, scripts/check.mjs astudio ok. Without the catalogSlugs check the two new tests fail. A slug the catalog lists, hidden or not, is never filled in. Not tried: no AStudio account here, so the model's 200 is the author's.
2026-11-13 19:49:49 +08:00
tungloong 592b716ac3 agy-cli 0.1.37: DeepSeek Harness's notes are not the loop's task; a trimmed loop keeps its whole user turn (#1093)
Reviewed at 56248465f. WSL (Bun 1.4.2, temp HOME): bun test in packages/agy-cli 20 pass (repeat-batch.mjs inside agy-cli.test.mjs), scripts/check.mjs agy-cli ok. With main's index.mjs, node --test test/repeat-batch.mjs fails 6 (19, 20, 21, 22, 24, 26). Open question, not blocking: a string-content message holding a runtime snapshot and the user's words reads as meta-only (affects only prompts trimmed past 112 KiB).
2026-11-13 19:49:31 +08:00
Akiiwa 157c7deefd agentcompass 0.2.1: a needs_visual task requires image input at every tool_operation level (#1092)
Reviewed at cedd845b3. WSL (Bun 1.4.2, temp HOME): bun test in packages/agentcompass 141 pass, scripts/check.mjs agentcompass ok. Without Boolean(task.needs_visual) the new test fails; restored, 141/141. Generated files change only their Source line.
2026-11-13 19:49:26 +08:00
yetone f053e32790 autoclaw 0.2.23: ZCode's subagent opening line is rewritten too (#1094)
ZCode's built-in subagents (general-purpose) open "You are an agent for
ZCode CLI. …", which the "You are ZCode" rule doesn't match. AutoClaw
answered 406 for them while the main session, in the same minute on the
same account, was 200. As with Claude Code's subagent line, an article
goes in front of the name: "You are an agent for the ZCode CLI." The
reporter ran exactly this rule on 0.2.22: 406 before, 200 x2 after.

Run (WSL, magpie-desktop, HOME=$(mktemp -d)): bun test in
packages/autoclaw, 117 pass / 0 fail; bun scripts/check.mjs autoclaw ok.
Broken by hand: without the new rule, "a system prompt carrying every
known line at once comes out clean in one pass" goes red.
Not tried: a real AutoClaw account.

Reported-by: aynauynij
2026-11-13 19:09:06 +08:00
yetone 59d1d107d0 codearts 0.3.17: sign in with a Huawei Cloud International account in the browser (#1090)
The browser sign-in always opened the mainland portal
(codearts.huaweicloud.com/portal/authorize, locale zh-cn), so an
international-station account could not sign in in the browser.

A new method, "Sign in with Huawei Cloud (International)", opens
auth.huaweicloud.com/authui/login?site=intl&locale=en-us with the
international portal's authorize URL
(codearts.ap-southeast-1.huaweicloud.com/portal/authorize, same
parameters, locale en-us) as `service`. The reporter found that the
portal alone sends a signed-out browser to the mainland login. After the
callback, the portal's result page is the international one too. The
code is exchanged at the same STS endpoint, as the reporter found. The
credential is stamped `station: "international"` (the key the IDE import
already uses), so chats, usage and signing stay on that station.
refreshCredential now carries `station` over, or a renewal would turn
the account back into a mainland one. The international sign-in skips
the mainland IAM phone read and OfficeAce's MaaS read.

The method is listed last, so the mainland browser method and the IDE
method keep their places. A mainland credential still carries no station.

Run (WSL, magpie-desktop, HOME=$(mktemp -d)): bun test in
packages/codearts, 208 pass / 0 fail; bun scripts/check.mjs codearts ok.
Broken by hand: with `station` taken out of refreshCredential's copy list
and out of the callback, the refresh test and the international sign-in
test go red (206 pass / 2 fail).
Not tried: a real international account. The URLs are the reporter's,
from their own sign-in.

Reported-by: AyakaChen1
2026-11-13 18:33:31 +08:00
yetone fbeda91fb3 loomy 0.1.6: routing reads the daily and permanent credits added up (gocccy0 on X)
gocccy0 on X: Loomy's usage sent the permanent credits (永久积分) as aside
text, and the daily credits (每日赠送积分) either as aside text too (no
dailyLimitPoints pair: routing had no window, "quota unknown") or as the
one window routing reads (with the pair: at 100% it stopped an account
that still had permanent credits).

Now usage leads with 积分合计, the window routing reads (totalOf): spent
is what the daily wallet has spent, limit is spent + daily left +
permanent balance, used its share; with nothing left at all it is 100%.
It renews at Beijing midnight with the daily wallet, and the daily
credits left are lost then (runsOutAt, runsOut), so magpie's Smart and
Least used first spend them first. With the permanent balance alone it
has no reset. The two wallets are still shown, both set aside, as
WorkBuddy shows its plan and extra credits beside their total. No
magpie change: plugin windows already carry amount/limit/runsOutAt, and
40c8d0c81 already shows an all-aside account's read.

Run (mote, HOME=$(mktemp -d)): bun test in packages/loomy, 32 pass,
including the new test (daily spent + 1,200 permanent is 80.6% not 100%;
both 0 is 100%; 3,000 daily left run out at midnight; no limit pair; the
permanent balance alone). Root HOME=$(mktemp -d) bun test: 8648 pass, 20 skip, 0 fail;
scripts/check.mjs ok.
Broken by hand: no total window (the old shape) turns the new test red
(2 counted windows, expected 1).

Not tried: a real Loomy account (the reporter's reply shape is assumed
to be one of the ones tested); magpie's GUI with the plugin installed.
2026-11-13 17:40:41 +08:00
yetone 2e77e646c8 agy-cli 0.1.36: the last model list agy gave is served after a restart (#1086)
After a restart, models() handed out the static Gemini-only fallback until
agy answered again. offeredFilter also hid every non-Gemini model until a
session or probe told it what agy offers. So the first requests after a
restart saw no Claude models.

The bridge now keeps the last list agy gave, and the set it offered, in
models.json beside the session state file. The file has one entry per agy
path, is written under the state lock through temp-and-rename (mode 0600),
and is trusted for 14 days. A half-written or invalid file, another agy
path, or a stale entry all give the static fallback, as before. A saved
list is not treated as an answer from this agy: the offered probe still
waits for a real listing.

Run (WSL magpie-desktop, Bun 1.4.2, Node 22):
- bun test in packages/agy-cli: 20 pass.
- node --test test/catalog.mjs: 24 pass.
- bun scripts/check.mjs agy-cli: ok.
Windows (xiaomi-gpu): node --test test/catalog.mjs 12 times, 11 green.
The one red is the existing wall-clock test "#1064 登录检查不为探测等太久",
filed as #1089. I haven't shown whether it is red on origin/main too.

Broken by hand: readSavedCatalog returning null turns the new #1086 test
red; skipping the offered restore turns it red too.

Not tried: real agy on any OS; a restart with a real signed-in agy.

Reported-by: yinbing-666
2026-11-13 17:29:06 +08:00
Akiiwaandakiiwa-games c4e9c1099e agentcompass 0.2.0: route on AgentCompass v0.6.0 (#1083)
agentcompass routes on the AgentCompass v0.6.0 engine: four capability
categories, quota-economy seat ordering and data gates. With no caller
profile, a request keeps the model the client asked for. External
scoring stays off unless allowExternalScorer and a scorer base URL are
both set. The reference ships in the package. This supersedes #791.

Run at 52a98632, merged onto main, on WSL (Ubuntu 24.04) with
HOME=$(mktemp -d):
- npm test in packages/agentcompass: 140 pass, 0 fail
- bun scripts/check.mjs agentcompass: ok
- Read the diff for new I/O: src/ has no fetch outside the opt-in
  scorer, and no spawn, env read or disk access.
- The docs' scorer example was checked against scorerOptionsOf and
  resolveClassifier.

Not tried: a real Magpie gateway routing live traffic through it.

Co-authored-by: akiiwa-games <akiiwa-games@users.noreply.github.com>
2026-11-13 17:14:25 +08:00
yetone 319b0a6459 layerfs 0.10.2: the page shows its empty state before the first project, not Connecting for good
AlanWang1027713 on X (magpie v0.1.4026, macOS): Plugins -> LayerFS
轨迹 stays on "Connecting to the local trajectory service…".

The page's boot.js jumps its frame to the host's service on 43717, and
the service started only once a store with a project existed. With no
store the jump is refused. The README said the frame then shows the
browser's refused-to-connect page; that is Chromium. A WebKit frame
(magpie's window on macOS and Linux) keeps the old document when its
jump is refused, so it said Connecting for good.

The service now starts when the host loads, store or no store. With no
store (or an empty projects folder) it answers an empty recording
without building the backend, so nothing is written under ~ until a
tool call makes the first project. The empty state now reloads itself
every 5s like the full page, so the first provision shows up without
reopening the page. The retry on a held port no longer waits for a
store, and the store-race recheck it needed is gone.

Run on mote (Bun 1.4.2, temp HOME):
- bun test packages/layerfs: 69 pass, 0 fail. bun scripts/check.mjs: 0.
- Broken by hand: 0.10.1's index.mjs and app.js turn the two new
  tests red (the no-store service test and the empty-state reload).
- Real browsers (Playwright 1.62.0): a sandboxed frame doing boot.js's
  jump against a no-store host. 0.10.1: WebKit's frame stays on
  "Connecting to the local trajectory service…", Chromium's shows
  chrome-error. 0.10.2: both show the zh empty state
  ("还没有记录到轨迹…").

Not tried: the page inside the real magpie window with the plugin
installed.
2026-11-13 17:07:35 +08:00
SivanColaandSivanCola bd5e598d25 deepzora 0.2.0: every model Magpie offers the agent is imported (#1081)
Deepzora's model list now imports every model Magpie offers the agent
(through agentplug's connect catalog), with per-model display name,
effort and context settings, and keeps the user's default when an
upstream is removed.

Run at df024f9d on WSL (Ubuntu 24.04), HOME=$(mktemp -d):
- node --test deepzora.test.mjs: 13 pass
- bun scripts/check.mjs deepzora: ok
- acceptance.mjs and resident-acceptance.mjs against a magpie CLI
  built from main 51b98b1a8 (-tags nogui): every PASS line
- Broken by hand: the tests went red.
- The per-model toml keys were checked against Deepzora's
  ProviderModelOverride source.

Not tried: a real Deepzora desktop install.

Co-authored-by: SivanCola <SivanCola@users.noreply.github.com>
2026-11-13 16:47:50 +08:00
yetone 84d7072a4e Revert "comate 0.1.0: 文心快码 (Baidu Comate) provider plugin"
This reverts commit 9523f472.

A Comate plugin already exists and is listed in magpie's unofficial
plugins: github:PengJunchen/magpie-comate-auth (0.5.12, provider id
`comate`), with native Comate tool calls, task reuse across turns,
images, license paste and the local Comate sign-in, run by its author
on macOS. 0.1.0 here was never run against a real account, carries
tools as JSON text and takes no images, under the same provider id.
Listing it beside the other one gives users the weaker of the two, so
it comes out. It never reached npm (a new package can't be created by
trusted publishing); only the dist branch had it.

Run: git revert only; registry.json still parses
(python3 -c json.load).
2026-11-13 16:25:05 +08:00
yetone 7bccaae910 agy-cli 0.1.35: a client tool's ide-tools permission request is allowed once (#1082)
Newer agy asks before an MCP call, and the bridge refused every
session/request_permission, so each client tool failed with "user
denied permission for mcp(ide-tools/exec_command)". A request whose
title (or name) is exactly mcp(ide-tools/<tool>), mcp "ide-tools/<tool>",
ide-tools/<tool> or mcp_ide-tools_<tool>, with <tool> among the tools
the client declared, now gets allow_once. Those tools run in the client
under its own permissions. agy's own tools (shell, edits, browser) are
still denied, as is a title that only contains such a name somewhere
(a shell command's text can be in its title), an undeclared tool and
another server's tool. rawInput is never read.

Run (WSL magpie-desktop, HOME=$(mktemp -d)): bun test in
packages/agy-cli, 20 pass; bun scripts/check.mjs agy-cli ok. Broken by
hand: with the allow branch off, smoke.mjs has 2 failures, the two
#1082 allow checks.

Not tried: a real agy that asks for MCP permission. The title agy
sends for an MCP call isn't known from its strings, so the forms above
come from its rule and error text; the reporter is asked to confirm.

Reported-by: Saramanda9988
2026-11-13 16:08:40 +08:00
yetone 9523f472b2 comate 0.1.0: 文心快码 (Baidu Comate) provider plugin
A request from X (@vfrpn). Read from the Comate VS Code extension
BaiduComate.comate 4.14.1 (its bundled Comate CLI, @comate/zulu 1.7.16):
unpacked into its own folder and read, never run.

- Sign-in: the CLI's own flow. A fresh clientId opens
  comate.baidu.com/zh/login?track=COMATE_CLI, /api/client/generate/token
  is polled every 2s for 3 minutes, and /api/client/key turns the token
  into the account's license, the credential. A license copied from
  comate.baidu.com/user can be pasted instead (checked at
  /api/key/valid/<license>).
- Models: the account's list from POST /api/v2/api/models/available, as
  the CLI reads it; "auto" alone when it can't be read.
- Chat: one Comate agent turn per request (conversation, task, execute
  SSE) as a custom agent in the client's own shape (isProjectAgent,
  agentPrompt, no server tools). ANSWER deltas and reasoning go out as
  content and reasoning_content, TOKEN_USAGE as usage. code 401 is a 401,
  code 429 / QUOTA_EXCEED / DOWNGRADE a 429. Tools ride as JSON text, as
  in catpaw; images are refused with 400.
- Usage: Comate has no quota a license can read outside Baidu's network,
  so the card says only whether the license holds.

Run (mica, mote was at load 41; sandbox HOME): bun test packages/comate,
22 pass; bun scripts/check.mjs, exit 0 (registry.json and comate ok).

Broken by hand: dropping the login-name header, the code 401 mapping
and the trim of the answer's leading newlines turned 5 tests red; put
back, 22 pass.

Not tried: anything against a real Comate account (none here). Unknown
until one runs: whether the server takes agentPrompt for a top-level
custom agent with no tools of its own, whether conversation and task
need more fields, whether thinkingEnabled / effort / contextWindow are
accepted, the real model ids and the limit frames' shape. The README
says so.
2026-11-13 16:07:44 +08:00
yetone 5f125842b0 antigravity 0.1.9: Gemini 4's thinking is held back for 10 s at most (#1078)
holdThoughts held a Gemini 4 stream until its first non-thinking part,
so a late 400 INVALID_ARGUMENT could be asked again without sending
thinking twice. On a long-thinking turn (gemini-4-hydrogen at high:
60-140 s) the client got nothing until the answer began, and harnesses
with a 60-120 s idle timeout gave up. Now the hold ends after
retry400.holdMs (10 s): what was held goes out and the rest streams
live. A read still out when the time runs out is taken by the body
first, so no chunk is lost. A 400 within the first 10 s is still asked
again; one after that reaches the client as it is. No switch: the cap
covers the timeout without a setting.

Run (WSL, Bun 1.4.2, temp HOME): packages/antigravity bun test 84
pass; bun scripts/check.mjs antigravity ok. Broken by hand: with the
timer replaced by a promise that never settles, the new test fails at
its 3 s timeout. Not tried: a real Gemini 4 account.

Reported-by: hardfist
2026-11-13 15:54:38 +08:00
zhbchnandzhbcn d6dcb6eaa1 workbuddy 0.2.34: REA's surrogate path guard is left out of the tools sent to WorkBuddy AI (#1080)
WorkBuddy AI's deepseek-v4.1-flash-sg refuses a request whose tools
carry REA's exact `^[^\uD800-\uDFFF]*$` path guard with "400: invalid
function call parameters", before any tool is called. fitSchema now
drops that exact pattern from the outbound schema; other patterns, the
surrounding allOf and REA's own validation stay.

Reviewed at 2f4738e9: workbuddy package on Linux (Bun 1.4.2, temp
HOME) 378 pass; bun scripts/check.mjs workbuddy ok; with the new `if`
turned off by hand the new guard test goes red.

Co-authored-by: zhbcn <zhbcn@users.noreply.github.com>
2026-11-13 15:51:22 +08:00
wuuliandwuuli 463bbfe2b6 cursor 0.2.46: a quiet Run's error says the stream timed out, so Pi retries it (#1075)
Cursor's quiet watchdog (idle and heartbeat-only) now ends its error with "; stream timed out (try again)", so Pi, which classifies a streamed error by its words once the 502 is lost behind a 200, retries the turn within its own budget. The status, limits and failure stay as they were. 0.2.46.

Reviewed at 507b2fd0. Checked Pi's own retry list (earendil-works/pi packages/ai/src/utils/retry.ts on main has "timed? out"; "(try again)" alone matches nothing there). magpie's gateway decides on the 502 status (busyStatus), so its own handling is unchanged. Run (WSL, Bun 1.4.2): packages/cursor bun test 421 pass, 0 fail; bun scripts/check.mjs cursor ok. Not run: scripts/cursor-pi-retry.integration.mjs (needs an installed Pi SDK, loopback only); a real Cursor stall (#550).

Co-authored-by: wuuli <wuuli@users.noreply.github.com>
2026-11-13 15:09:02 +08:00
zhou.han 6059fb1990 nowledge-mem: the layout test gives a slow Chrome launch 90 s under CI (#1076)
A layout test whose Chrome launch is slow under CI's full suite gets a 90 s launch bound when CI is set (25 s locally), and the test's own timeout follows the bound plus 10 s for cleanup. Fixes #1071.

Reviewed at df016967. Run (WSL, Bun 1.4.2, CI=1): bun test packages/nowledge-mem 161 pass, 2 skip (no Chrome on that box, so the layout test itself skipped); the author ran a fake Chrome that answers at 26 s, red at 25 s on d24fd5d and green with CI=1. Not tried: a real Chrome on ubuntu CI, which this PR's merge run is.

Co-authored-by: yetihan <yetihan@users.noreply.github.com>
2026-11-13 15:08:56 +08:00
yetone 8528698e3a workbuddy 0.2.33: the free window reads routing traces a line at a time, numbered day files too (#1077)
freeWindowRows read each routing day whole: readFileSync, gunzipSync into
one string, then split("\n"). A busy day's .gz unzipped to 520 MB, and the
read took Bun past 1.1 GB on easonlao's 2 GB host, where the kernel killed
the plugin host every minute or two and every request in flight with it.

- routingLines streams the file (createReadStream, piped through
  createGunzip for a .gz), holding a chunk and one line, never the file.
  A line over 4 MiB is passed over (the longest in the 520 MB day was
  88 KiB). A .gz that fails part way keeps the lines before the fault, as
  magpie's own gzRoutes does; a .gz of several members is read through.
- Today's plain file is read on from the offset past its last newline
  when it has grown (same inode, bigger), so a usage read no longer
  re-reads the day after every request; a half-written last line waits
  for the next read. One that shrank or kept its size is read whole.
- freeWindowRouting lists a day's numbered files (YYYY-MM-DD.N.jsonl and
  .gz, magpie 5d93f6b3), which were missed, so a day past 256 MB read
  short.
- Two usage reads at once share one read of a trace.
- readRoutingRefusals, routingRefusalRows and freeWindowRows are async;
  the one caller, the usage handler, already awaits.

Run (WSL magpie-desktop, Bun 1.4.2, HOME=$(mktemp -d); mote's load was
over 18):
- bun test freewindow.test.mjs: 59 pass.
- packages/workbuddy bun test: 376 pass, 0 fail.
- bun scripts/check.mjs workbuddy: ok.

Broken by hand: the new memory test against origin/main's index.mjs, in
its own child process on a .gz of 256 MB unzipped: RSS grew 848 MB, red
(bar 160 MB); green on this change.

Not tried: the reporter's real 47.6 MB trace or a 2 GB host; Windows and
macOS (the read is node:fs/zlib streams only). Each CN estimated window
still reads a trace on its own, once per trace change.

Reported-by: easonlao
2026-11-13 15:05:03 +08:00
yetone aea9438f90 devin 0.1.40: a typed API key (cog_…) is a sign-in method
wuxudongxd on X: the plugin offered only the browser and CLI sign-ins,
while a hand-written {type:"api", key:"cog_…"} entry (a service user's
key) worked for chat and usage. Add "Devin API key (cog_…)" as a v1 api
method (no authorize, so the host saves the key as typed) and as an
OpenCode 2 key method; v2Auth already reads a key credential. The key is
sent as a sign-in's token is (Basic on GetChatMessage, apiKey on
GetUserStatus), and the first usage read names the account (syncOrg).

Run: bun test in packages/devin (214 pass) and the whole repo's bun test
with a temp HOME on mote (8542 pass, 20 skip, 0 fail).
Broken by hand: with both methods removed, apikey.test.mjs's method and
OpenCode 2 tests go red (the chat and usage tests pass either way: those
paths already took any api key).
Not tried: a real cog_ key (none on hand).
2026-11-13 15:02:14 +08:00