Two switches in the provider's editor, "Use us-east-1 only" and "Use
eu-central-1 only" (us-east-1-only, eu-central-1-only), pin an Identity
Center account to one credit region. They are read with input.magpie.option
at each request.
- With one on, every request goes to that region. If that region is not
enabled or is used up, the answer is a 429 naming the switch, and the
other region is never tried.
- auth.usage counts only the pinned region. If the pinned region is not
enabled or couldn't be read, a used-up window gives the reason, so the
account is left out of routing.
- The not-enabled reminder names only the pinned region.
- Both off, or both on, is the default.
Run at 38c18529 merged with main 7153e59d (Windows 11, Bun 1.4.2, temp
HOME and USERPROFILE):
- bun test packages/kiro: 178 pass, 8 fail. The 8 are the EBUSY cleanup
reds that fail the same on main on Windows (#966).
- bun scripts/check.mjs kiro: ok.
- The review's two probes, the reminder under a pin and an unenabled
pinned region, now give the right card.
Broken by hand: dropping the pinned-reminder filter and the unenabled-pin
window turns 3 region tests red.
Not tried: a real Identity Center account in both regions, and the
switches in magpie's editor.
Co-authored-by: caozhenyuan <caozhenyuan@users.noreply.github.com>
A page that shows how many tokens each model has left across your accounts. It is estimated from magpie's quota windows (/v1/magpie/quotas) and past usage rounds: the median tokens per percent over the rounds that can be used, or one round, or "sparse". The report carries no prose. The page words everything in English or Chinese. The service binds only to loopback, checks the Host, refuses a foreign Origin, wants a per-run key for Origin null, serves index.html to navigations only, and writes nothing under HOME. page-model-quota 0.1.0.
Run at the reviewed head dd8d44164d505088efeb07d80784128134aad213, on the Windows box (mote's sshd was refusing connections):
- node --test test/*.test.mjs: 14 pass. bun test: 14 pass. bun scripts/check.mjs: exit 0. It merges cleanly with main 86d3febf.
- Broken by hand: taking the space out of " (from past rounds)" again turns i18n.test red (13 of 14).
At a5d9a8c5, on mote and in WSL (from the review): the Host, Origin, key and navigate-only checks each went red when broken. Wrong Hosts got 403, Origin null without a key got 401, traversal got 404, and a restart rotated the key. The page rendered in Chromium and WebKit at 1200px and 420px, with no Chinese in English. Since then, only the English note's space, an unused usableRounds, the English gateway error and template-literal coverage in the i18n test have changed.
Not tried: in a real magpie window with real quota windows.
An opt-in switch, "Group models by company", orders Factory's models by maker: Claude (Fable, Opus, Sonnet, Haiku), GPT, Gemini, Grok, GLM, Kimi, then the rest. Within a family, newer versions come first, and each Fast Mode model sits right after its base. Off, which is the default, keeps main's order byte for byte. Only a strict `true` from magpie's option turns it on. factory 0.1.45.
Run at the reviewed head fe96f7eb67b308a31ce33492fd3c5d5f19a4f5b1:
- On mote at 9b19aa76: bun test packages/factory 196 pass (main 194). Main's and this index.mjs were compared as JSON of the config hook and provider.models: off is identical to main for absent, {}, false, "true", 1, null, a throwing option and `option: 5`; on, there are 59 models, the same set, with no duplicates.
- On the Windows box at fe96f7eb (mote's sshd was refusing connections): bun test packages/factory 196 pass, bun scripts/check.mjs exit 0.
- Broken by hand at fe96f7eb: grouping always on turns both order.test.mjs tests red. Before the review's fix, it stayed green.
- npm has 0.1.44.
Not tried: in a real magpie window.
When plugins change, magpie retires the old plugin host and starts a new one. The old host can keep port 43717 for up to 10 minutes while it finishes calls. In 0.10.0, the new host stored its failed bind as the service, and `if (service) return` blocked every later try. Once the old host exited, the page stayed refused until the host restarted.
Now a service is kept only once it is listening. A failed bind retries with backoff (1s, doubling, capped at 30s, the timer unref'd) while a store exists, and a listener that closes starts again. A failed backend start is retried too, and the first mutation's race with the empty-store check gets one more check. layerfs 0.10.1.
Run at the reviewed head 6f2d484e8f3367d1d614d4be5d9a44a701165fb4, on mote (temp HOME, Bun 1.4.2):
- bun test packages/layerfs: 68 pass (main: 64). page-lifecycle.test.mjs: 3 of 3 green. bun scripts/check.mjs: exit 0.
- The new tests against main's index.mjs: the handover and backend-retry tests go red.
- Broken by hand: dropping the backendPromise reset, the retry schedule, or storing the service before it listens each turns a test red.
- Probes: a closed listener comes back; with the port held for good, the retries cap at one every 30s and leak no servers; a pending retry doesn't hold the process open. page-service.mjs is unchanged, so its Host and Origin checks cover every retry.
Not covered by a test (follow-up): restarting a closed listener, sharing one startup between concurrent calls, and the store-version recheck. recheck and storeVersion overlap: either alone handles the race.
paintPicker called pop.classList.toggle("photo", B.meta(bg.bg).photo).
A pattern's photo was undefined, not false, and toggle(name, undefined)
flips the class. So each input event of the margin or blur slider hid
or showed the blur and dim sliders in turn. The reporter saw both
states with the teal backdrop picked.
Every backdrop's photo is now a boolean, and the toggle asks for
=== true.
Run, on mote:
- bun test packages/day-card: 15 pass. bun scripts/check.mjs: exit 0.
- A Playwright repro (not committed) loads the page with a stub bridge,
picks teal, fires input on the margin slider four times, then picks
alpine and drags blur, then goes back to teal. In Chromium and WebKit
the old page shows blur as false,true,false,true,false. The new page
keeps it hidden on teal and shown on alpine on every tick.
Broken by hand: with backgrounds.js from main, the new test goes red
(1 of 15).
Not tried: in magpie's own window on Windows, where the reporter is.
Reported-by: lbjxr
The rate tests held one date, 2026-10-14, so a promotion starting after
it was never compared with PROMOTIONS. Dropping gemini-4-carbon's line
(#953, from 2026-11-10) left every test green. The new test checks each
promotion droid's registry lists, inline or named, a minute after it
starts, a minute before it ends and a minute after, against what
configModels gives then.
GPT-6 Astra's 60% off ended 2026-09-05, before PROMOTIONS was kept, and
is skipped by a fixed LISTED_SINCE (2026-10-01); with no cutoff the
test was red on it. 7 promotions are checked.
Run on mote with a sandbox HOME: bun test packages/factory, 194 pass.
Broken by hand: deleting Carbon's PROMOTIONS line turns the new test
red (the old ones stay green); Argon at 0.4 turns it and two more red;
the count bar at 99 shows 7 checked.
Not run: the root suite (test-only change in one package; CI runs it).
Registers gemini-4-carbon on Factory's Google Gemini route, with the same shape as gemini-4-argon: 1M context, 65536 output, low/medium/high, a 1.6x multiplier and 50% off from 2026-11-10T16:00Z to 2026-12-01T08:00Z. Factory 0.1.44.
Reviewed and run at fd9b634f41d7021715842f3db7bde28a9e8e6888:
- Downloaded Droid 1.7.1 (darwin/arm64) on mote: SHA-256 761730017d94…7bd4, as the testdata says. The Carbon entry in the binary is byte for byte the testdata line, and it differs from Argon's only in id, name, the feature flag, the pricing note and the dates.
- mote, sandbox HOME: `bun test packages/factory` 193 pass; `bun scripts/check.mjs factory` ok. PR CI (root suite under a temp HOME) green.
- Broken by hand: Carbon at 1.5x turns 3 rate tests red. Carbon sits at index 48 of 59, after the Fast Mode block's rule; the first 24 are unchanged.
- Not caught: dropping Carbon's promotion leaves every test green, since the promotion test reads only named promotion variables, not inline `promotions:[…]`. Argon has the same gap on main.
Not tried: a real request. Carbon is behind Factory's Gemini4Carbon flag, unreleased in Droid 1.7.1.
Co-authored-by: Mars-Sea <Mars-Sea@users.noreply.github.com>
The Credits and Total windows said when the soonest credits left run out
(runsOutOf), but only over the packages the resource summary lists. A daily
check-in reward (code 007, each with its own end) that only the detail lists
have, beside extra credits the summary does list, was in no window and in no
expiry, so Smart routing never saw those credits lapsing. runsOutOf now also
counts the extra codes WorkBuddy's panel counts (EXTRA_CODES, plus the free
month and gift on WorkBuddy AI) when given the site, on the extra window, and
on the single window when no window of its own holds them.
Run: bun test packages/workbuddy (336 pass, HOME=$(mktemp -d)); the new test
fails on the old code (broken by hand: stashed index.mjs, red).
Not tried: a real account (the desktop sign-in on this machine was stale, so
the real list shape of a check-in reward is the 2026-10-26 fixture's, 007
"赠送积分", not seen live today).
9a96799e merged #951 without a version bump, so its fix would not reach
the dist branch. This bumps packages/agy-cli to 0.1.5, which publish.yml
packs to dist.
Run: bun scripts/check.mjs agy-cli on mote: ok. The package tests for the
code in this release (8 pass, 0 fail) were run at #951's head merged onto
d5f4214e, the parent of 9a96799e.
A user message that carried ordinary text beside a live tool_result, before
or after the result block, was refused with 400 "text beside a live
tool_result; send it after the tool response completes" (maxleebeta's
DeepSeek-harness agent, #909; Claude Science does the same). inspectToolTurn
now marks such a turn userSteered, so the bridge takes the existing replay
path: the old session is stopped, its pending calls are not resolved, and a
new session/prompt carries the round, the real tool result included. The
user's text is never spliced into an MCP function response. The same goes
for plain text after a Skill result, and for a hook line that carries "The
user sent a new message while you were working".
Still refused: an unclosed protocol notice (<system-update>... with no end
tag) on either side of the result, a companion (ARGUMENTS:, [Image: ...],
Tool loaded.) with no matching preceding tool, and an image before the first
tool_result. A turn whose tools also grew (#942) takes the same single
replay.
Changed behaviour beyond #909: a protocol notice, token line or hook-success
line placed before the tool_result (previously 400) now replays in a new
session, where the same line after the result is forwarded in-session.
Tests: compat.mjs checks both placements are userSteered, the MCP result
is unchanged, and the replay carries the instruction and the result. smoke.mjs
drives both placements and the Skill case through the fake agy and checks a
new convId whose prompt carries both. Five smoke checks that asserted 400
for text the bridge now replays were removed; the unclosed-notice 400 check
stays.
Run at head 04692ce0a74d (merged onto origin/main d5f4214e) on mote, bun 1.4.2:
- bun test packages/agy-cli: 8 pass, 0 fail, at the head and merged
- bun scripts/check.mjs agy-cli: ok, at the head and merged
- Broken by hand (index.mjs reverted, tests kept): compat 1 fail (the new
test); smoke 3 FAILURES of 321 (before, after, Skill: status 400)
- Probe of inspectToolTurn merged: the user text appears once in the replay
and the result once; MCP content stays "file contents"
Not run: the root bun test suite (mote's suite queue was long); the
reporter's own request bytes (never obtained, #909 stays open for them).
Co-authored-by: Guuuu233 <308638291+Guuuu233@users.noreply.github.com>
Google turns Claude Code's billing line and "built on Anthropic's Claude
Agent SDK" away again when only the first letter is broken (checked on a
real Antigravity account with Claude Code 2.1.316's prompt); a break after
the first and the second character of each word goes through, 3 of 3.
Both packages break every run of three or more letters or digits that way.
antigravity's error for a turned-away prompt said "400 ... as from an
unapproved channel" about what Antigravity answered as a 429; it now says
"Antigravity answered 429 to this system prompt".
bun test packages/antigravity packages/antigravity-cloak on mote: pass.
cases.json expectations regenerated for the new breaks.
The agent plugin magpie's built-in agy moves onto. It names agy's
settings.json, where magpie's models go beside the user's own
(merge: customModelsConfig.customModels), and how agy is started:
GEMINI_API_KEY and GOOGLE_GEMINI_BASE_URL from magpie's gateway and
--model, given by the agy function magpie puts in the user's shells.
own() lists the user's own custom models by their provider.
Run: bun test in packages/agent-agy (3 pass) and bun scripts/check.mjs
(ok) on mote. magpie's TestAgyPlugin, TestAgyHandedToPlugin and
TestAgyHandedOverUnwire load this file and pass against the magpie
change that reads launch, merge, effort, wsl and aliases. A magpie
without that change keeps agy its built-in's, so this package does
nothing there.
takomitkm (plugins#438, 0.1.57, default settings) had the busy hold arm
with one account, one agent and at most two in flight, at about five
asks a minute, and arm again within a minute of its end. A coding plan
model's weekly or monthly limit (1310) also rested the whole account, so
its -Trial models got the cached 1310 without being asked.
Busy hold. ZCode serves that account one Start Plan request at a time,
so every second request was refused again at its 1s re-ask and counted
toward the process-wide hold. A sustained cap with others of the same
account in flight (the gate's lane busy >= 2) now narrows that account's
gate to busy-1, at least one, for NARROW_FOR (5 minutes; startGate.now
is its injectable clock) and counts toward no hold. A lone sustained
cap still counts, so the hold stays process-wide and keeps the firewall
protection: #801's caps came with up to ~10 in flight, which the gate
never sends, and an account whose slots are taken elsewhere narrows
3 -> 2 -> 1 within a few caps and is then refused alone, which arms the
hold as before. The queue answer says the account's current number.
Rest. The models hook marks each -Trial entry free: true, so magpie's
PaidBesideFree makes a coding plan model's quota refusal rest that
model, not the account. Gift-only accounts' plain names stay unmarked.
Side effects: the Free mark in pickers, free-preferring groups pick the
trials first, and they price at 0, which they are.
Run (mote, bun 1.4.2, HOME=$(mktemp -d)): packages/zcode bun test,
240 pass, 0 fail, 17 files, at this head rebased on 60acd62b;
bun scripts/check.mjs exit 0.
Broken by hand:
- narrowing off (if (false && ...)): the three new inflight tests fail;
the reporter's case shows the hold armed (until=1000000240000).
- lone caps narrow too (busy < 1): seven hold tests fail (the
saturated-elsewhere replay, refused-even-one-at-a-time, start.test's
hold tests, dual's hold test).
- free: true removed: the new gift test fails.
Tests: inflight.test's reporter's case (fake caps at >= 2 in flight,
injected clocks), the narrowing's expiry, and a lone refusal still
arming the hold; gift.test's free trial entries. start.test's in-flight
guard now uses twelve accounts of one request each, and dual.test's hold
test a gate of one, so their caps stay lone ones.
Not tried: a real ZCode account served one at a time; the core side
(magpie's TestZCodeCodingPlanLimitLeavesTrials) is in magpie with the
mover min.
Reported-by: takomitkm
agy checks each call against the tools it listed before the prompt began.
After ToolSearch loads a deferred tool, the client's next request declares
it, and the bridge sent tools/list_changed and then continued the same
session/prompt. agy's validator still answered `unknown tool: "<name>" —
check spelling` for the rest of that prompt.
When the tool-result request declares a tool the process has not listed
(Proc.toolsGrew), the bridge now takes the existing changed-context path:
it drops the process without resolving its calls and replays the history,
the ToolSearch tool_use and its tool_result included, in a new
session/prompt, where agy lists the full catalog first. The user's turn is
in the replayed history once. The new process starts with the grown
catalog, so the next result continues it live and nothing loops. A catalog
that only loses or changes tools still continues the live turn.
Tests (test/smoke.mjs, fake agy): TOOLSEARCHGROW checks calls against the
tools listed at prompt start, like agy 1.5.3. The new block checks that the
grown catalog starts a new session/prompt, that it replays the ToolSearch
round with the user's ask once, that the old prompt never reaches the
validator with the new tool, that the loaded tool's call reaches the client,
and that its result continues the new session with no second replay. The
"live tools change" case now removes a tool instead of adding one.
Run on mote (Bun 1.4.2), at this tree:
- packages/agy-cli `bun test`: 8 pass, 0 fail; smoke.mjs ALL OK (319 checks).
- `bun scripts/check.mjs agy-cli`: registry.json and agy-cli ok.
Broken by hand: sed removed `|| proc.toolsGrew(tools)` from the condition;
smoke.mjs went 5 FAILURES (319 checks), the five new checks; restored, ALL OK.
Not run: the root `bun test`. It waited behind about 20 queued suites on
mote's suite.lock for over an hour, and WSL answered E_UNEXPECTED.
Not tried: a real agy 1.5.3 run.
Version 0.1.4.
Reported-by: chrisjian <chrisjian@users.noreply.github.com>
magpie's /v1/audio/transcriptions form (OpenAI's) is sent on to
api.x.ai/v1/stt signed as the CLI signs: the audio byte for byte, language
passed on, OpenAI's model left out (xAI answers 404 to any id but its own),
json/text/verbose_json answered in OpenAI's shapes, srt/vtt and
translations refused. cli-chat-proxy has no stt route (404), api.x.ai takes
the Grok Build token.
Images: an input_image in a Responses request already goes through
unchanged and the models say image input; a real request with a 64x64 PNG
answered "Red" through the plugin's own fetch. A 8x8 one is Grok's own 400
(minimum 512 pixels).
Run: bun test in packages/grok (112 pass), mote. Broke by hand: with the
transcription branch out of fetch, 4 of the 5 new tests go red. Real
account: the plugin's fetch with ~/.grok's sign-in transcribed a say(1)
wav ("Hello world, this is a test.") as verbose_json and described a
red PNG. Not tried: through a built magpie gateway.
inkstone 0.1.5 changes three things:
- The sign-in window closes within about half a minute.
- A refused key is removed, so it no longer leaves a dead end.
- An unchanged request body is sent byte-for-byte.
Runs at head d90df26 merged onto main 4a063646, in WSL (Ubuntu 24.04):
- inkstone package tests: 120 pass, 0 fail.
- bun scripts/check.mjs inkstone: exit 0.
- Root bun test: 8024 pass, 19 skip, 0 fail.
Broken by hand:
- Without the per-attempt removed reset, "a stale removed does not spare the last orphan" goes red.
- Changed to upstream(input, init), "the fetch wiring is the request path" goes red.
Earlier on mote (macOS), at main 1aab125: 120 pass, and root 7579 pass, 0 fail.
Not tried: a real inkstone account, and Windows.
Co-authored-by: nonamelane <nonamelane@users.noreply.github.com>
Runs of the atomcode tests leave atomcode-state.json at the repo root. Ignore it so it is never committed.
Reviewed at c18d5772: a 3-line .gitignore change, nothing to run.
Co-authored-by: lunove <lunove@users.noreply.github.com>
The reporter's income bills, pasted after 0.1.9, have no expired grant:
3000 + 300 + 3000 + 300 + 3000 = 9,600, while the balance is 9,623. So
0.1.9's count-back of expired grants added nothing and the card stayed
balance-only. The extra 23 comes back outside income bills.
A balance at most 10% over the listed grants now becomes the window's
limit (0 / 9623 here). A balance far over them (5,270 against 600 in the
existing test) stays balance-only, since the bills don't explain it.
Run: win-run bun test packages/raccoon (52 pass; the new test uses the
reporter's bills as pasted, with the expiry years moved ahead so it
holds after 11-15). Broken by hand: with the 10% branch made false, the
new test goes red (51 pass, 1 fail). bun scripts/check.mjs green.
Not tried: a real Raccoon account.
Reported-by: ULTIMATE215
ULTIMATE215's card (0.1.8) showed one account as "9623 credits" with no
bar, beside two accounts with Credits windows (47 / 11,600, 0 / 9,300).
queryUsage builds the window only when the unexpired grant bills cover
the balance, and skips every grant whose expire_at has passed. The
vendor takes an expired grant's remainder some time after expire_at, so
for a while the balance (9,623) is more than the unexpired grants
(9,600 from 9,000 reward + daily 300s) and the card fell back to
balance only.
Now the expired grants are counted back in, the most recently expired
first, only until they cover the balance. runsOutAt/runsOut still come
from unexpired grants only. When even the expired grants cannot make up
the balance, the card stays balance-only as before.
Run on xiaohuanxiong.com-shaped fixtures (bill rows with expire_at, as
in the existing tests and #223's live bills), on the Windows box
(win-run at this tree, Bun; mote refused SSH and WSL failed to start):
bun test packages/raccoon 51 pass, 0 fail; bun scripts/check.mjs
raccoon ok.
Broken by hand: with the count-back line removed, "a grant past
expire_at the balance still holds keeps the Credits window" goes red.
Not tried: a real Raccoon account (none here, and the browser is not
signed in to xiaohuanxiong.com). That the vendor's balance lags expiry
is inferred from the reporter's numbers, not seen in a raw bills reply;
the issue asks the reporter to confirm.
Reported-by: ULTIMATE215
The registry entry for magpie-review-rules no longer names an icon URL in the author's personal repository; magpie falls back to its built-in icon.
Run at 93d1883e568b26b70b2192ae30609e25d2974f6b: bun scripts/check.mjs in WSL (magpie-desktop), exit 0. The diff removes only the one optional icon line; registry.json still parses.
Not tried: the Plugins page in the GUI with the entry.
Co-authored-by: youyouhdhd <youyouhdhd@users.noreply.github.com>
The card was always a receipt on a wide teal ground. A Background button
in the toolbar now opens a menu of 19 backdrops, all drawn on the canvas
the card is saved from:
- teal (as before), and 14 patterns: gingham, graph paper, kraft,
cyanotype, night dots, deckchair stripes, olive linen, seigaiha waves,
xuan paper, zigzag, terracotta, lilac lines, green velvet, apricot
polka;
- four landscape photos (alpine dawn, misty shore, dunes, forest lake),
1000x1500 JPEGs made for this plugin;
- a picture of the reader's own: pick it, drop it on the page or paste
it.
A slider sets the margin around the paper (24 to 160, 76 by default, in
place of the old fixed 207 a side and 4:3 height). A photo also has blur
and dim. The paper's shadow follows the ground.
The choice is kept in the plugin's options (magpie.options): saved a
moment after a slider settles, since magpie takes one write a second.
The reader's own picture is shrunk to a JPEG of at most ~44KB, within
the 64KB magpie keeps for a plugin's options.
The photos are JPEG data in page/bg/<id>.js, loaded when picked, not
image files: the frame's origin is opaque, so a picture loaded by URL
would taint the canvas, and Copy image and Save PNG would fail.
Thumbnails are in bg/thumbs.js, loaded when the menu first opens.
Run: bun test packages/day-card on the Linux test box (magpie-desktop,
via wsl-run; mote refused SSH at the time): 14 pass, 2 of them new
(names in every language and the photos' data; a saved choice made
sound). A Playwright harness served the page with magpie's plugin-page
CSP (sandbox allow-scripts, img-src own data:, connect-src 'none') and
a fake bridge, in Chromium and WebKit: each of the 19 backdrops drew
and saved a PNG through magpie.image (so the canvas was not tainted),
the menu picked dunes and saved {bg: dunes, pad: 120}, the blur and dim
sliders showed only for a photo, and a 2400px JPEG of one's own was
stored as 36-43KB data and drawn. No page errors in either engine. The
first run showed the menu's sliders over the card while closed
(display: flex beat [hidden]); fixed and run again.
Not tried: the real magpie app (WKWebView, WebKitGTK, WebView2), its
real options store, and the native file picker inside the frame.
Out of credits, 妙手's gateway answers the turn HTTP 200 with the
sentence "当前余额不足以完成本次操作。[去购买更多](https://credit.catpaw.meituan.com/#/plan),
即可继续使用全部功能。" as the assistant's text, in frames with no error
field and no model / modelDisplayName. The plugin only read `error`, so
the agent got the sentence as the model's answer (and with tools, the
forced-tool retry spent a second turn on it).
Now a frame that names no model and whose text, before anything was
streamed, starts with "当前余额不足以完成本次操作" is the credit gate:
the request fails 402 with {type: insufficient_quota, code:
insufficient_credits, help_url, upstream_message}, the message with the
markdown link spelled out as "去购买更多 (https://…)". magpie's gateway
reads a 402 as failCredit: the account rests for credit and the next
one is tried, not counted as broken. A head that could still grow into
the sentence ("当前", "当前余额") is held until it does or doesn't; a
model's answer quoting the sentence names its model and passes as text.
"余额不足" in a round's msg, an SSE error frame or a non-200 body is a
402 too.
Streaming requests now wait for the conversation's first event (up to
10s) before answering, so the 402, and a round or turn's bare 429 / 401,
go out as their own status instead of an error chunk inside a 200. A
slower turn streams as before. The bare 429 now says it is 妙手's rate
limit with Retry-After: 45 (the reporter saw a ~41s cool-down), the
bare 401 that the sign-in has expired; both keep the step and status.
The fixture (testdata/issue-933.json) is the reporter's frames as the
issue quotes them; the elided finishing frame is filled in, and the
model fields of a normal answer are made up (the issue doesn't quote
their values).
Run in WSL (magpie-desktop) via wsl-run at this tree:
- bun test packages/catpaw: 73 pass, 0 fail
- bun scripts/check.mjs: exit 0, catpaw ✓
Broken by hand, each red, then restored:
- no gate throw: 4 of the new tests red (both 402 paths, tools, split)
- gate without the no-model condition: the quoting test red
- plain stream not primed: 402-before-streaming, split and 429 red
- tool stream not primed: the tools 402 and the 401 test red
- held head never flushed: the held-head test red
- 429 not mapped: the 429 test red
Not tried: no real CatPaw account, so neither the gate nor the bare
429/401 was met against the real gateway; the 409/400 mapping the
issue suggests for "会话未在执行中" is not done.
Reported-by: LIEGU0317
wizcheu on X, Kiro Power (10000 credits) with overage on: the Kiro IDE
shows "10000 used / 10000 covered in plan" and 2589.24 post-paid credits
used (12589.24 this month). magpie showed 12589.24 / 37500 (in "left"
mode 24910.76 / 37500), the overage cap taken for the month's whole
limit.
The cap counts the overage alone: it is the profile's "maximum allowed
overage" quota, in USD at $0.04 a credit (Kiro's Service Quotas
L-75434B0B; $400 is 10000 credits, the cap the 0.1.28 fixture had on a
2000-credit plan). So with overage on the month is now two windows, as
the IDE shows it:
- the plan's credits, min(used, plan) / plan, shown only (aside): using
them up doesn't stop the account;
- "Overage": currentOveragesWithPrecision (else currentOverages, else
what is past the plan) / overageCap, the window that stops it.
With overage off nothing changes. An Identity Center account's regions
sum each: the plans' sum first, shown only, then the overages' sum,
which is the one magpie weighs; a region is used up when its overage
is.
Run (mote, macOS, Bun 1.4.2, HOME a temp dir), at this commit:
- bun test packages/kiro: 172 pass, 0 fail.
- bun scripts/check.mjs: ok.
Broken by hand, bun test packages/kiro/region.test.mjs:
- index.mjs from origin/main (overage cap as the month): 6 fail,
the reporter's numbers among them.
- a region used up by its plan, not its overage: 1 fail ("a region
past its plan with overage left is still used").
Not tried: a real Kiro account with overage on. The fixture is built
from the reporter's screenshot (12589.24, 10000, 2589.24, 37500); the
overageCap-is-overage-only reading is from Kiro's quota docs, not from
a read of a real account at its cap.
A page plugin that compares the agent harnesses behind magpie's gateway by agent: input tokens, cache hits, failures, latency and estimated tool-definition size. A local service on 127.0.0.1:3496 reads magpie's usage ledger, and a read-only gateway hook writes tool counts, sizes and names to <config>/harnessweight/tools.jsonl.
Since the review at e0a0ae97 (7c6cd626a, then main merged in):
- Port 3492 -> 3496 (window-warmup has 3492; 3496 is used by no other package).
- Config dir: input.directory, then a cwd probe, then an absolute XDG_CONFIG_HOME, then ~/.config/magpie. A relative XDG is ignored.
- tools.jsonl is append-only. Past 8 MiB it is renamed to tools.jsonl.1. Age is checked at most hourly. Appends from two hosts are serialized by a cross-process lock that is skipped after 100 ms.
- MAGPIE_ADDR is honoured; the UI has English and Chinese (zh-TW and ja read English); preview PNGs dropped; /%E0 returns 400.
Run at 961b20e63c7e00e1dcca723bc2aa1d302f5dd9a3, in WSL (magpie-desktop, Node 22.23.4):
- node --test test/*.test.mjs in the package: 60 pass, 0 fail.
- bun scripts/check.mjs: clean (registry.json ok; the package has hooks, so check skips it).
- Probes against createHandler:
- Origin null without the token: 403. With the token: 200.
- A foreign Origin, a loopback Origin on another port, a file:// Origin, a rebound Host and a localhost Host on another port: all 403.
- The index HTML carries the token and no ACAO.
- ..%2f: 400. /%E0: 400.
- Rollover with 40-tool rows (1306 B each), 9.5 MiB written: the file peaked at 8,388,590 B (cap 8,388,608) with one rename to .1. Append p50 was 1.35 ms, p99 9.2 ms and max 24 ms.
- Portable dir: the hook's cwd probe and the service's input.directory gave the same tools.jsonl.
- Broken by hand:
- Size rotation turned off: two rollover tests went red.
- The Host check removed: the service test "other hosts, other origins and path traversal are refused" went red.
Co-authored-by: webkubor <29485642+webkubor@users.noreply.github.com>
Signs in with Google (Antigravity's client, PKCE, loopback) or imports a
refresh token / account-manager export, sets up the Code Assist project
(loadCodeAssist, onboardUser on the default tier), lists the account's
models with level variants, and sends every request through
v1internal:streamGenerateContent in the app's envelope, with the
built-in's request shaping (system-prompt cloak, tool ids and results,
schema flattening, Claude and Gemini rules), its error mapping (turned-away
429 -> 400 unapproved channel, 404 model, refused refresh -> 401 expired)
and its usage windows and pools.
A stream's last chunk is an empty text part; sent back in the next turn,
Claude refuses it ("text: Field required"). Both the whole-reply reader and
the request shaper drop it.
Run:
- bun test packages/antigravity on mote: 78 pass, 0 fail.
- bun scripts/check.mjs antigravity: registry.json ok, antigravity ok.
- Real account (the built-in's saved Google account, read only, sandbox
HOME): model list; stream and generateContent on gemini-3.8-flash; the
effort header picking -low; claude-sonnet-4-6, claude-opus-4-6-thinking,
gpt-oss-120b-medium all answer; a Claude Code system prompt to Gemini
answers 200 (cloak); an unknown model 404; usage gives plan, model
windows and the Gemini and Claude & GPT 7-day pools; a tool call round
trip on Claude Sonnet, Opus thinking, Gemini and GPT-OSS.
- Broken by hand: without the empty-text drop the new shape test and the
generateContent test go red, and the real Claude round trip answered 400.
Not carried over (README): the 6h rest of a turned-away account, Google
Search grounding and image models, countTokens (404, magpie estimates),
sending the system prompt uncloaked, multi-account import, models.dev
names. Not tried: the browser sign-in end to end (the import path was).
Qoder Ultimate sent two native tool calls at tool_calls[].index 0, each
with its own id and name. events() kept one call per upstream index, so
the second call's arguments were sent as more of the first:
{"key":"A"}{"key":"B"}, which the client refused as unparseable JSON.
A fragment with a non-empty id that differs from the open call's id at
that index now starts a new call with an output index of its own. A
fragment with no id, or the open call's id, still goes on with the open
call (OpenAI's argument fragments, and relays that repeat the id). A call
pushed aside before it got a name still counts as nameless (#579).
After two ids at one index, id-less fragments go to the newer call; the
report suggested failing there instead, but OpenAI streams each call's
fragments right after its start, so the newest is the one open.
Siblings with the same index-keyed fold, fixed the same way:
- zed 0.1.19: chatWhole (a streamed chat reply folded for stream:false).
- codearts 0.3.7: completionFromChunks.
- zen-free 0.1.27: stream.mjs chatAccumulator, and tool-response.mjs's
chat buffer, which gives each call its own index when two collided.
- page-chat 0.1.13: lib/server.mjs folds through toolCallFolder.
Looked at and left: codearts' stream name restorer and kimi-desktop's
Agent hold pass fragments through unchanged and join no arguments;
zed's streaming path passes Zed's chunks through, and magpie's gateway
already starts a new call on a new id (internal/gateway/chat.go).
Run (WSL magpie-desktop, bun 1.4.2, node 22):
- pedh's repro.mjs with his fixture: [0,0] gave one tool event plus an
args event on 0.2.64; now two tool events (index 0 and 1), each with
valid JSON. [0,1] unchanged.
- HOME=$(mktemp -d) bun test packages/qoder packages/zed
packages/codearts packages/zen-free packages/chat: 987 pass, 0 fail,
1 skip (the epub reader's, as before). bun scripts/check.mjs: every
package and registry.json ok.
Broken by hand:
- qoder back to index-only: 3 of the new tests fail (two ids, id-less
after a second id, streaming adapter).
- qoder starting a call on any fragment without the open id: 8 fail,
the id-less continuation test among them.
- qoder treating any id as new: the repeated-id test fails.
- zed, codearts, zen-free (both) on main's code and chat keyed by index
only: each new collision test fails (5 of 5).
Not tried: a real Qoder account (no Qoder Ultimate here), real Zed,
CodeArts or OpenCode Zen replies with a collision, and the chat page
in a browser.
Reported-by: pedh <pedh@users.noreply.github.com>
It said 30 models; main had 47 before #927 and 58 after. A count goes
stale with every model update, so the summary just names the labs.
Run: JSON parses (node -e JSON.parse). bun scripts/check.mjs not run
for a one-string text change.
droid 1.7.0's new models in the Factory plugin: Fable 5.2, Kimi K3.1 Pro,
MiniMax M3.1 Flash, Nemotron 3.5 Super, Inkling, Muse Spark 1.2, Beam 1.0,
and GPT-6 Sol/Luna, GPT-5.6 Sol and GLM-5.2 Fast. Each is at droid's
limits, efforts, images and token multiplier, with apiProviders[0] as the
upstream. gpt-6-sol/gpt-6-luna at service_tier "priority" now go to their
Fast Mode models. GLM-5.2 Fast is its own chat model and is not a tier of
GLM-5.2. GPT-5.6 Sol Fast Mode gets Sol's 20% promotion until 2026-11-22.
Muse Spark 1.2 is left out of CORE (no billingPool "core"). GPT-6.1 Terra,
Muse Spark Open, GPT-6.1 Sol Ultra Fast and Muse Spark 1.3 are left out,
each with a reason. The first 24 models are unchanged (#119).
Review at 9524dcfc6e45b7c2c15245bd1e200d72aeebe17f:
- droid 1.7.0 linux-x64 downloaded in WSL (magpie-desktop). SHA-256
4700746f52ec88e3758a18737be13bb74519276de97bc329054e8dae08f15f42
matches. All 24 excerpt lines of testdata/droid-1.7.0-models.txt are in
the binary byte for byte (grep -F). The base entries gpt-6-sol (0.8),
gpt-6-luna (0.04), gpt-5.6-sol (2) and glm-5.2 match the plugin's.
- Each new row was checked against its entry: id, context/output, efforts
(off dropped, or kept as none only for GLM-5.2 Fast), images,
multiplier, upstream and wire.
- First 24 ids are equal on main and the PR, and main's order is kept.
CORE gains exactly kimi-k3.1-pro, minimax-m3.1-flash,
nemotron-3.5-super, inkling, beam-1.0 and glm-5.2-fast.
- In WSL, bun 1.4.2, HOME a temp dir: `bun test packages/factory` gave
193 pass, 0 fail. `bun scripts/check.mjs` passes.
- Broken by hand. main's index.mjs with the new tests: 14 fail. Muse kept
in CORE: 7 fail. The Sol Fast promotion removed: 2 fail. Fable 5.2 moved
first: the first-24 test fails. Luna Fast at 0.04: 3 fail. Beam with
images: 1 fails.
Not tried: real requests to Factory. Kimi K3.1 Pro, Nemotron 3.5 Super,
MiniMax M3.1 Flash, Beam 1.0, GLM-5.2 Fast and Fable 5.2 are behind
statsig gates whose default is off in the binary. The author's account
listed them, but other accounts may not, as with Gemini 4 Argon.
Co-authored-by: garry569 <garry569@users.noreply.github.com>
Lists magpie-model-quota 0.1.2 (page plugin, port 3497) in registry.json.
Reviewed at head 943da6b777ea3f23e02887c99a9c139b4e7a9c48. The npm tarball
magpie-model-quota@0.1.2 matches GitHub 1sh1ro/magpie-model-quota at 366de7dc
file for file (the repo adds only .gitignore, PUBLISHING.md,
registry-entry.json and test.mjs).
Run in WSL (magpie-desktop), sandbox HOME, server on 127.0.0.1:3502:
- refused: Host attacker.localhost:P, 127.0.0.2:P, 127.0.0.1:9, localhost
(no port), localhost.:P, [::1]:P, evil.com (403); Origin null without the
key (401); Origin http://localhost:9, :9999, attacker.localhost:P,
127.0.0.2:P, evil.com with the key (403); no key or a wrong key (401);
index.html to Sec-Fetch-Mode cors/no-cors (403); path traversal (404).
- served: navigation to / with the key injected; /api/report with the key
from 127.0.0.1, localhost + same Origin, and Origin null.
- a restart makes a new key; the old one gets 401. Nothing is written to
the sandbox HOME.
- bun scripts/check.mjs on a git archive of the PR head: registry.json and
every package pass.
Not changed, not blocking: usage.jsonl is read whole and kept in memory,
and accounts are matched by substring (report.mjs:418-447).
Co-authored-by: 1sh1ro <1sh1ro@users.noreply.github.com>
A deep Mem search can take longer than 5s, and the page refused any
requestTimeoutMs over 5000 or gatewayTimeoutMs over 10000. Both now go up
to 30000; the defaults (1500 and magpie's 1000) are unchanged. magpie
v0.1.3538 (yetone/magpie#5890) runs a hook up to its own 30s budget;
the README says an older magpie cuts anything over 10s.
- validate.js, settings page and labels (en, zh, zh-TW, ja, de): 50-30000
and 100-30000.
- nowledge-mem-agent checked: its 10000 ms values are fixed internal
timeouts, not user options with a cap; unchanged.
- slow-recall.test.mjs: a fixture server answers /memories/search after
6100 ms; requestTimeoutMs 15000 recalls it, 30001 is invalid, and a
caller abort stops the fetch at once (the server sees the abort) and
keeps the request as it came.
Run (wsl-run, magpie-desktop): bun test packages/nowledge-mem
packages/nowledge-mem-agent: 161 pass, 2 skip (live Mem and the
Playwright layout check, skipped as on main), 0 fail; bun
scripts/check.mjs: rc 0. The README's magpie version was filled in after
that run.
Not tried: a real Nowledge Mem server with a slow deep search.
Reported-by: aboat0625-cpu
PiG's Magpie provider now speaks openai-responses instead of openai-completions, so encrypted reasoning items round-trip across turns. Magpie's gateway takes Responses clients for every upstream and translates for Chat-only ones (covered by internal/gateway TestResponsesClientChatUpstream, TestDshResponsesReachChatVendor). agent-pig 0.1.2.
Reviewed at 87085bce. Run on the merged tree in WSL: bun test packages/pig 11 pass / 0 fail; bun scripts/check.mjs rc=0.
Not tried here: a real PiG binary; the author reports real tool calls and resume through Codex and a Chat-only upstream.
WaiooT asked to see Cursor in Agent Office. It read no Cursor files: Cursor
showed only through the gateway hook, which never sees Cursor's own
requests (they go to Cursor's servers).
It now reads <CURSOR_DATA_DIR or ~/.cursor>/projects/<slug>/agent-transcripts/
<chat>/<chat>.jsonl (and the older agent-transcripts/<chat>.jsonl). A chat
with cursor-agent's chats/*/<chat>/meta.json (CURSOR_CONFIG_DIR, else
$XDG_CONFIG_HOME/cursor, else ~/.cursor) is "Cursor CLI" with that cwd;
the rest are the editor's, a new "cursor-app" agent named "Cursor", with
the cwd found by matching the slug against real folders (bounded, cached),
else the slug's last part. Lines carry no time, so the file's mtime is
used, and the user line's <timestamp>. turn_ended ends a turn (success
done, error with its text, else stopped). The editor writes no
turn_ended, so its chat counts as done 30s after a last answer with no
tool pending. No token counts: Cursor doesn't record them locally.
Run on mote at this tree (Bun 1.4.2, HOME=mktemp -d): repo bun test 7866
tests, 7846 pass, 20 skip, 0 fail; bun scripts/check.mjs exit 0;
stamp-page.mjs --check exit 0 (agents.js restamped).
The fixtures are the bytes a sandboxed cursor-agent wrote here (a Read
tool run that ended "WritableIterable is closed", and "Say ok.").
Broken by hand: without the editor's quiet-done rule the chat stays
"thinking" (red); without meta.json's agent the CLI chat is cursor-app
(red).
Not tried: a real Cursor editor writing a transcript (no editor in a
sandbox here; the format is cursor-agent's, which the editor shares per
magpie's Sessions reader), subagent transcripts, the page in a real
magpie window.
Adds the community muse-auth plugin (magpie-muse-auth, Meta's Muse) to registry.json, in the contributor lane, without the community flag.
Reviewed at d68ed7c4. Against current main the merged tree changes registry.json only (3+/1-). The icon URL returns 200, and npm has magpie-muse-auth 0.1.3.
Run: bun scripts/check.mjs on the merged tree on mote, rc=0.
Not tried: signing in to Muse with a real account.
binary() looked only for /Applications/Doubao.app (豆包,
com.bot.pc.doubao). The reporter has only 豆包工作 at
/Applications/DoubaoWork.app/Contents/MacOS/DoubaoWork
(com.work.pc.doubao), so sign-in always said the app was missing.
choose() now picks { app, binary, dataDir } from both apps, 豆包工作
first, in /Applications and ~/Applications on macOS and under
%LOCALAPPDATA% on Windows. A user already signed in to 豆包 through
the plugin (its profile exists) stays on 豆包 while it is installed, so
the update signs no one out. 豆包工作 keeps its profile, port and model
list in a doubaowork/ subfolder. DOUBAO_WORK_APP still names the binary.
The chat page check (owns, connect) accepts doubaowork://doubaowork-chat/chat
and chrome://doubaowork-chat/chat as well as 豆包's. The busy and
not-installed messages name the chosen app and its download page.
Run (mote, worktree at 6cb5dbe8 + this change; origin/main 1bdc4d4b only
adds an autoclaw change):
- bun test packages/doubao-work: 36 pass, 0 fail.
- bun scripts/check.mjs: exit 0, doubao-work ok.
- Live on this Mac with DoubaoWork 2.36.3 (copied out of the official
dmg) and a sandbox DOUBAO_WORK_HOME: choose picked 豆包工作, App.start
launched it, owns accepted it, the page reported
chrome://doubaowork-chat/chat, input present, signed out; the model
menu read 自动 / 豆包 2.1 Lite / 豆包 2.1 Pro; the new-task and 云电脑
steps ran on the real page. A second connect reused the running app.
- 豆包 2.35.8 with a temp profile: same chat page test ids.
Broken by hand (mote): choose searching only 豆包 made "a Mac with only
豆包工作 drives 豆包工作 (#917)" red; the old owns regex made "both apps'
chat pages are the plugin's" red (34 pass, 2 fail). The old code has no
choose/isChat and binary() returns Doubao.app, so the #917 test is red
on it.
Not tried: a signed-in request (no 豆包工作 account here). Windows: the
path %LOCALAPPDATA%\DoubaoWork\Application\app\DoubaoWork.exe comes from
DoubaoWork_installer_2.36.3.exe's config (install_dir_name DoubaoWork,
exe_file_name DoubaoWork.exe) and 豆包's layout; not installed on the
Windows box. Running 豆包工作 and 豆包 side by side.
Reported-by: sinoyster
DeepSeek Harness names itself three times in system: the identity line
("You are an AI agent powered by DeepSeek Harness.") and, from its dev
context, "The runtime context names the DeepSeek Harness implementation
checkout.", "...through the DeepSeek Harness Web GUI..." and "Current
DeepSeek Harness implementation checkout: ...". FLAGGED rewrote the first
only. The reporter's replay (five sends each) was still 406 with the
identity line rewritten and 200 five of five with every occurrence masked.
autoclaw 0.2.21:
- the identity line, its comma optional, becomes "You are an AI agent
powered by a local coding harness."; every other "DeepSeek Harness" in
system or developer text becomes "DeepSeek" (the reporter's proposal,
which their replay measured; no product name in the replacement).
- "powered by the glm-<x> model" in any case is written "powered by the
GLM-<x> model", the form probed to pass on 11-03. Only that sentence:
model ids, paths and code naming glm-5.3 are left. The reporter's other
sentence ("powered by the model glm-5.3-flash") was already rewritten
case-insensitively before this.
- Same roles as before: system and developer only (string content and
text parts); user messages, tool results and tool arguments untouched,
and a test checks that on both gateways.
Fixtures are dsh's own strings byte for byte (@deepseek-ai/dsh
0.2.1-rc.2: dsh-system-prompt harness:identity, dsh-harness-dev-context
HARNESS_SOURCE_PROMPT, WEB_SURFACE_PROMPT and its runtime line), plus the
reporter's comma line and lowercase GLM sentence. The reporter quoted the
Web GUI line without the product name; dsh's source has it.
Run: lockf ~/suite.lock mote-run -C <worktree> bash -lc 'bun install
--frozen-lockfile; bun test packages/autoclaw && bun scripts/check.mjs':
112 pass 0 fail, check.mjs ok.
Broken by hand, each on mote, each restored (cmp against the saved file):
- origin/main's index.mjs with the new tests: 4 fail (the three new
tests and the all-lines table).
- the "DeepSeek Harness" -> "DeepSeek" rule removed: 3 fail (full-text,
loader, table).
- unflag applied to every role: 5 fail, the new loader test among them
(user and tool text would change).
Not tried: a real request to AutoClaw; the 406 -> 200 is the reporter's
measurement and was not reproduced here. Whether the gateway refuses a
lowercase "glm" where it takes "GLM" is the reporter's word, not probed.
Not run: the full bun test.
Reported-by: connoryang331
Names the magpie-review-rules listing "Claude Desktop Review & Model Rules" so the card says which app it targets. Only `name` changes; the npm spec and plugin identity are the same.
Run at 9d004be29: `bun scripts/check.mjs` (mote) passed; the diff is one line of registry.json.
magpie's Usage page counts only what went through magpie, so Cursor's
editor and cursor-agent use was missing ("求支持统计cursor的使用情况").
auth.calls reads GetFilteredUsageEvents page by page from the time magpie
asks for and gives each of the account's own events: id, time, model,
tokens (input uncached; cache read/write apart), cost (totalCents / 100)
and conversation. A team's other members (owningUser vs GetMe's userId)
and the conversations this plugin ran itself (kept 40 days in
$XDG_DATA_HOME/opencode-cursor-auth/conversations.json, written
temp-and-rename) are left out. A refused page fails the reading.
Run: bun test in packages/cursor on mote (410 pass), scripts/check.mjs.
calls.test.mjs's fixtures carry the field names of a real Pro account's
reply. Real account: the hook read 43 events (30 days) from the owner's
Cursor sign-in, tokens and costs as the dashboard has them.
Broken by hand: without the own-conversation and owningUser filters the
first calls test goes red.
Not tried: a team account with other members; Cursor's editor (none
installed here), so an editor event's shape is taken as the same.
bun test runs every package in one process. mail-watch's test set
MAGPIE_CONFIG_DIR to its temp dir at module level and never restored it,
so page-usage-board's spawned service inherited it through ...process.env.
MAGPIE_CONFIG_DIR wins over the cwd probe, and "config dir: the host cwd
carrying magpie markers wins" read /tmp/mail-watch-test-*/usage.jsonl on
CI, which kept every publish run red after #844.
mail-watch's afterAll now restores the variable. page-usage-board's test
spawns build their env without an inherited MAGPIE_CONFIG_DIR or
USAGE_JSONL.
Run:
- On main (545ed66), mote: `bun test packages/mail-watch
packages/page-usage-board` failed this one test (79 pass, 1 fail).
- With the fix, WSL Ubuntu 24.04: full-repo `HOME=$(mktemp -d) bun test`,
as in CI, gave 7835 pass and 0 fail.
Not tried: the full repo on macOS. mote's suite lock was queued for hours.
Supersedes #921, which chdir'd the child and left the env as it was.
Adds @magpie-community/page-usage-board: a usage dashboard page with its
own zero-dependency local service (quota cards with expiry tiers, TTFT,
7x24 heatmap, optional remote attribution).
Reviewed at 8ca2562: the author's 80137b0 plus a maintainer merge of main
(registry entry re-appended after upstream's newer packages).
Since the 6b2625d review: [::1] in MAGPIE_ADDR stays IPv6 loopback (only
0.0.0.0/[::] map to 127.0.0.1), the config-dir test compares real paths
so it passes on macOS, and the registry-block test tolerates CRLF.
Run on mote at 8ca2562: packages/page-usage-board `bun test` 36 pass,
`node --test test/*.test.mjs` 36 pass; `bun scripts/check.mjs` all ok.
Not tried this round: the page in a live magpie window.
Reads Doubao Work's model list from the app's own model menu, keeps it in
models.json, and offers those models (0.1.4).
Reviewed at 43b3d5d (the author's 50c1448 plus a maintainer fix: the
config hook now keeps a model the user declared themselves, as every
other package does).
Run on mote: bun test packages/doubao-work 34 pass; bun scripts/check.mjs
doubao-work ok. Broken by hand: model lookup back on the built-in table
fails 2 tests; the old merge order fails the user-settings assertion.
Not tried: a real Doubao app (the author ran it on macOS, 8 models).
WANGY1ER asked on X for Windows: the plugin said "macOS only", because
binary() knew only /Applications/Doubao.app. Doubao's Windows app is the
same Chromium 147 fork with the same chat page (doubao://doubao-chat/chat),
so the plugin drives it the same way.
- binary(): %LOCALAPPDATA%\Doubao\Application\app\Doubao.exe, the per-user
install's own exe (Application\Doubao.exe beside it is a launcher).
- dataDir(): %LOCALAPPDATA%\magpie-doubao-work.
- copies() is empty on Windows: Chromium keeps one copy per profile there,
so the user's own Doubao keeps running and the plugin's copy opens
beside it, in a second window. No "quit Doubao first" on Windows.
- Linux stays unsupported: Doubao has no Linux build. Its download page's
platform list is ios, android, mac, OpenHarmony, windows. The sign-in
says so.
Run:
- bun test packages/doubao-work: 29 pass on mote (temp HOME, as CI),
win-run (Windows 11) and wsl-run (Ubuntu 24.04). bun scripts/check.mjs ok.
- Live on xiaomi-gpu (Windows 11, Doubao 2.34.6 / Chromium 147), with the
owner's own Doubao running in the console session: the plugin's App
started app\Doubao.exe from its own profile beside it, its DevTools port
answered with doubao://doubao-chat/chat, owns() took it, and each step
of an ask ran in the real page: NEW_TASK "", CLOUD "" (mode 云电脑),
自动 and 豆包 2.1 Lite picked, 豆包 2.1 Pro "upgrade", fill wrote three
lines into tiptap. The owner's copy was untouched throughout.
Broken by hand:
- binary() without its win32 line: "the app is found on macOS and
Windows" is red on mote and Windows.
- copies() without its win32 line: "on Windows a running copy never
blocks" is red on mote.
Not tried: a signed-in request on Windows. That Doubao has no account
signed in (its cookie jar is empty), so Enter was not sent; signed-in
STATE relies on data-testid=sidebar_bottom as on macOS.
The host part's server() runs each time magpie starts the plugin host
(magpie opening, a plugin installed or changed), not each time the page
is opened. The READMEs and index.js said "on open"; the review of #885
asked for this wording and the merged text still had the old one.
Run: bun scripts/check.mjs free-tokens ok, bun test packages/free-tokens
62 pass (mote). Text only; no behaviour change.
New page plugin: AIHOT's Token 羊毛 (free model allowances), sorted into "ready" / "plugin to set up" / "no plugin" against the user's own magpie plugins. Only the vendors in src/allowlist.js are shown; anything else (relays included) is dropped before it reaches the page.
AIHOT's written approval (2026-11-10) is quoted on the PR: free, no ads or sponsors, each user reads it once on their own computer, no proxy, mirror or redistribution, credited in the footer.
Run at 07da91b0 (on mote):
- bun test packages/free-tokens: 62 pass. bun scripts/check.mjs free-tokens: ok.
- The page served with magpie's page CSP in a sandbox="allow-scripts" frame, Chromium and WebKit: tiles 1/2/1 for a fixture of MiniMax (signed in, checked in today), ZCode (installed, not signed in), Zed (not installed), DeepSeek (no plugin) and an unlisted relay (dropped); install popover gives @magpie-community/opencode-zed-auth, login popover "magpie plugin login zcode"; a title holding <img onerror> is shown as text; brand icons load; no dialog.
- Every mapped package checked: 8 on npm, 5 on the dist branch, and each pid is the package's provider id.
- Broken by hand: checkin null guard removed, title unescaped, Zed's npm name unscoped; each turns a test red.
Not tried: a real magpie window with the plugin installed, and the live aihot.news route (no network in the run).
Co-authored-by: sljdxde <sljdxde@users.noreply.github.com>
AStudio's daily reward is claimed without the desktop app: check-in completes the pending DAILY_REWARD_DIALOG popup (popupId + instanceKey only, once) and reports claimed/done only from today's GRANT ledger row. init-app and auth/bearer-token are no longer called from check-in. Version 0.2.1.
Reviewed at 199d128f3 line by line (guards broken by hand, each turned a test red); e744ee9 is that code rebased onto main plus the version bump. index.mjs, index.test.mjs and README.md are byte-identical to 199d128f.
Run at e744ee9 on mote: node --test 78/78; bun test 78/78 under TZ=UTC, America/Los_Angeles and Asia/Shanghai; bun scripts/check.mjs astudio ok. The author reports a real claim (+100) on two accounts at 2026-11-09 00:00:17 +08:00 with no desktop process; not repeated here (no AStudio account).
Co-authored-by: jinyue806 <jinyue806@users.noreply.github.com>
SpecStream's Search API and Extract API as tools for every agent, and as a web search entry in Settings > Models > Web search.
Reviewed at 2ae405947ab71dab6f9557a4191a860bd92a2ddf. Run on mote: bun test packages/specstream (9 pass), bun scripts/check.mjs, bun test scripts (22 pass). Both endpoints, called for real without a key, answer 401 {"error":{"code":"missing_api_key",...}}, which unwrap() raises with its status, so a refused key rests in the rotation.
Not tried: a call with a real key.
Adds the nanobot agent adapter (packages/nanobot): magpie's model, Library MCP servers and workspace skills written into ~/.nanobot/config.json through a journaled, owner-tracked bridge, and restored on disconnect.
fc46523d resolves symlinked parent directories (macOS /var, dotfile-managed ~/.nanobot or ~/.config) while still refusing a symlinked final file, and keeps the preset on host exit; only a disconnect restores.
Run at fc46523d: `bun test` in packages/nanobot, 60 pass / 0 fail on mote (macOS, default TMPDIR under the /var link, which failed 18 of 22 at c6f8f639) and on the magpie-desktop WSL distro (Ubuntu 24.04). Not tried: a real nanobot binary driven through magpie.
Lists the external middleware magpie-review-rules 1.1.0 (youyouhdhd/magpie-review-rules) in registry.json.
Reviewed: the npm 1.1.0 tarball is byte-for-byte the repo's engine.js, middleware.js, host.mjs, install.ps1 and page files (c3143504). The middleware only acts on claude-desktop Anthropic requests; the reviewer override changes the model of a Desktop action-review request and nothing in its prompt; custom rules are the user's own code, run in magpie's moejs middleware sandbox, whose Function constructor exists (moejs engine/dynamic.go). host.mjs reads only the loopback gateway's /v1/models and writes page/catalog.js in its own folder through temp-and-rename. Nothing is turned on by a fresh install.
Run: the repo's 9 node tests on mote (Node 22), all pass. Not tried: installing it into a real magpie and sending a Desktop action review.
amr-link serves every model on chat completions, Responses and Anthropic's
messages (keyblues measured all fourteen). The plugin declares one API per
model (MODEL_WIRE, kept: it is where each model thinks, plugins#141), and
magpie's host signs a request with the declared package's header. So a model
asked on another API (magpie's per-model API choice; the OpenDesign provider
has all three URLs) went with the wrong header: a chat model on /messages
with a Bearer, glm-5.3-flash on /chat/completions with x-api-key.
The loader now returns a fetch that signs by the request's path: x-api-key
(and anthropic-version when missing) on /messages and /messages/count_tokens,
Bearer on everything else. A request on the declared API goes as before.
Zero-config native protocol per agent needs magpie: its plugin contract has
one API per model (provider.pluginAPIs returns pluginProtocol's one), so the
gateway translates every other agent's protocol to it. Reported, not changed.
Run on mote under lockf ~/suite.lock:
- bun test packages/opendesign: 31 pass, 0 fail (at ff9d3a64 and again at
the rebased head).
- bun test (full, isolated HOME): 7578 pass, 0 fail, at base ff9d3a64. A run
with mote's real HOME had the suite's isolated-HOME guards (zcode) and
Devin's local-CLI tests red, untouched packages; isolated, they pass.
- bun scripts/check.mjs: ok.
Broken by hand: the loader without `fetch: signFor(key)`; the new test and
the loader test went red (2 fail), green again with it back.
Not tried: against the real gateway (no OpenDesign key), so x-api-key on
amr-link's /v1/messages for a chat-declared model is the reporter's result,
not mine.
Reported-by: keyblues
Found by trying Copy image and Save PNG in the real app with real usage:
- VS AVERAGE DAY read "0.0×" early in a day ($0.07 against a ~$180
average). Any ratio above 0 and under 0.1 now reads "<0.1×".
- Alma's icon (a drawing on its own light ground) printed as a black
square, because every colour icon was filled with the ink. A picture
that is mostly light with something dark drawn on it now prints in
the ink with its near-white parts left the paper's colour. Mono logos
and colour marks with no ground of their own (Claude, DeepSeek) are
still filled solid.
Run:
- mote-run bun test packages/day-card: 12 pass, 0 fail (two new
versus cases: 0.07/180 → "<0.1×", 0.5/5 → "0.1×").
- Real app: magpie 0.1.3443 (/Applications) in a sandbox HOME on
127.0.0.1:3486, the owner's usage.jsonl copied in, this app.js and
view.js in the installed package. The page shows "<0.1×" and Alma's
drawing; Claude and DeepSeek marks unchanged. Copy image showed
"Copied" and put a 1708x2278 PNG on the clipboard; Save PNG said
"Saved to ~/Downloads/magpie 2026-11-10-2.png" (the first save's
file kept, not overwritten), byte-identical to the clipboard PNG.
Not tried: Windows and Linux webviews.