Commit Graph
907 Commits
Author SHA1 Message Date
Xyfer 39f59971c0 cline 0.1.13: no default DeepSeek pin; a refused providerOptions pin says how to turn it off (#819)
Since 2026-11-06 Cline answers any client-supplied `providerOptions` with
403 `client-supplied "providerOptions" model routing is not supported`
(yetone/magpie#5442). 0.1.12 pinned ClinePass's DeepSeek models with
`providerOptions` by default, so every such request failed unless the user
set `pinUpstream: false`.

Changed:
- No pin by default. `providerOptions` / `provider` is written only with
  `pinUpstream` on, and the pins themselves are the same as 0.1.12. The
  default pin's unpinned retry (`unpinWorthy`) is gone with it.
- A pin this plugin wrote that Cline refuses with that exact 403 comes back as
  a 403 that says to turn the pin off. It is not retried unpinned. A client's
  own `providerOptions` refusal is passed through as Cline sent it.
- README and comments: the 11-06 refusal, and glm-5.3-flash's top-level
  `provider.only` being accepted but ignored (finalProvider stayed
  `openai-compatible-private` in the author's live checks).
- 0.1.13.

Author's live checks (Cline API key): default Pass DeepSeek 200; pinned 403
with the hint and no retry; glm-5.3-flash 5/5 200 with the pin on or off,
finalProvider `openai-compatible-private`.

Review run at a2d43859 (on main 367edb50), on mote, HOME=$(mktemp -d),
Bun 1.4.2:
- bun test packages/cline: 92 pass, 0 fail.
- bun scripts/check.mjs cline: ok.
- bun test (repo): 6563 pass, 20 skip, 0 fail.
- Broken by hand, each red: the default pin back; the hint for any
  providerOptions 403; ROUTING_REJECTION unanchored; a retry on the refusal;
  no JSON-envelope read. Dropping ownsRouting on fetch's pin stays green: the
  own-routing test runs without pinUpstream now (follow-up).

Not tried by the review: a live Cline request (no key), magpie's gateway with
0.1.13 end to end. Follow-ups in magpie: ClinePassAsked still assumes a
default plugin pin, and the Upstream tick still sends providerOptions
(yetone/magpie#5442 stays open).
2026-11-07 09:54:22 +08:00
yetone 5bbdb82660 grok 0.2.5: a 401 that isn't Grok judging the token, on one Grok Build left good, is a 503 that passes, not "add the account again" (#818)
zane668 got 401 {"error":"Authentication required"} a few times a day on
tokens not near their end. grok models left the same token, so the
plugin said "couldn't renew the sign-in ... add the account in magpie
again", yet the same token answered 2-5 minutes later.

What tells the two apart: cli-chat-proxy answers a token it doesn't take
at once with "Invalid or expired credentials (auth_kind=..., upstream=
Unauthenticated|PermissionDenied, reason=...)" (curl'd 11-07 with made-up
tokens, signed and unsigned, on /models, /responses, /chat/completions,
/billing: each in under 1.5s). "Authentication required" after 78-114s
is not that verdict.

Now, after a 401 on a request, model list or usage read whose renewal
leaves the token as it was:
- the body is not "Invalid or expired credentials", the token is not
  past its end, and grok models didn't exit with an error (it ran, or
  was still running): a 503 with Retry-After: 60, X-Magpie-Sign-In: kept,
  code auth_refused_transient, saying what Grok said, how long it took
  to answer, and that no new sign-in is needed. magpie's gateway reads a
  503 as before (failOther: a short backoff rest, the next account
  asked), so routing is unchanged; only the advice and status change. A
  model list or usage read gives the same words, with no sign-in mark.
- otherwise as before: "couldn't renew the sign-in", sign in again.
- the wait on Grok Build's renewal after a 401 is capped at 15s; the run
  goes on and the next asker takes what it gave. The message names
  grok models' own run time when it is 1s or more.

Where the 78-114s went: the plugin's own part is grok models, capped at
30s by execFile before and at 15s now. grok models "ran" (exit 0) in the
report, so it took under 30s; the rest, at least ~50s, was Grok's answer
to the request. zane668 saw "no first token in 120s" and ECONNRESET on
other vendors in the same windows, so the wait is upstream/network and
the plugin doesn't bound it. The message now says both times, so the
next report shows the split. Not done: the report's suggestion to resend
after a few seconds; the refusal lasted minutes and each try waited
over a minute, so handing over at once is faster.

Left ambiguous: a token xAI revoked but answered with words other than
"Invalid or expired credentials" would now read as passing and keep
being retried with short rests; a revoked real token was not available
to see its words.

Run at this tree:
- packages/grok bun test on mote: 96 pass, 0 fail.
- repo bun test (HOME=$(mktemp -d)) on the Linux VM (wsl-run,
  magpie-desktop): 6571 pass, 19 skip, 0 fail. Not on mote: its suite
  lock had a 3h GUI run and four Go suites queued.
- bun scripts/check.mjs grok on mote and Linux: ok.
- Real: the plugin against the real cli-chat-proxy with a made-up token
  and a fake grok models leaving it: 401 sign_in_unrenewed, Grok's
  "Invalid or expired credentials (... upstream=PermissionDenied ...)"
  quoted, after 1s.

Broken by hand (renew.test.mjs, 15 tests): old index.mjs fails the 503,
bounded-wait, model-list and usage tests (4); passing() without the
TURNED_AWAY check fails 3 (two old tests and the new verdict test); the
CLI's failure ignored fails the exit-1 test; no 15s bound fails the
bounded-wait test (2013ms); models and usage not passing Grok's words
each fail their test.

Not tried: a real "Authentication required" 401 (it can't be called up),
a revoked real token, a real Grok Build slower than 15s.

Reported-by: zane668
2026-11-07 09:52:36 +08:00
yetone 367edb503c zcode 0.1.53: a spent bucket's 200 says 429 on the plain path too (#817)
A ZCode answer that carries a spent code (1005 "exceed quota limit",
1113) inside an HTTP 200 now reaches magpie as a 429 on every path. Before,
only a -Trial entry (forcedGift) and free first's gift did this. On a
gift-only Start Plan account, a request for the plain model (GLM-5.3) went
through `return done(kept(res))` as a 200. magpie took it for a reply that
did not stream (502), failOther, and its window branch rested the whole
account until the bucket reset. GLM-5.3-Flash, which has its own bucket,
went unused for ~22h. As a 429 it is failQuota, and magpie rests the model
whose window is full.

spentSaid reads only a non-stream JSON answer under 400. Any other answer,
a stream included, goes on as it came. A reply whose text happens to say
1005 stays a 200. The same applies to the plan answer free first replays
on (replayOnPlan, three places), and to the coding plan's own 200 with
1113.

Run at 081c67ac on mote, HOME a temp folder: bun test packages/zcode
212 pass, 0 fail; the whole repo bun test 6558 pass, 20 skip, 0 fail;
scripts/check.mjs exit 0. Broken by hand, each red: the plain path back
to done(kept(res)) (gift.test's two new tests, 200 for 429); the
replays without spentSaid (dual.test's new free-first test).

Not tried: a live spent bucket. The 200 body is the reporter's words, and
dual.test's fixture already had it.

Reported-by: zane668
2026-11-07 09:11:36 +08:00
Mañjūṣaka 006e96ef03 output-strategy 0.2.1: finish #814's review follow-ups (#815)
Follow-up to #814 (081c67ac). The core request injection is unchanged.

- Page: static text goes back to English when magpie.theme.lang changes
  from zh to en. Unsaved style picks survive a language change, and the
  title follows the language. zh / zh-CN / zh-Hans use the Simplified
  strings. zh-TW and other languages fall back to English on purpose,
  with <html lang> kept as zh-TW. With no host theme, the page loads in
  English without throwing.
- apply.js: an empty system message gets the style block with no
  leading blank lines. The unused media detector and addedBytes are
  removed.
- style.css: obsolete stats/lang/workspace rules are removed, and the
  720px media block is closed again (52 { / 52 }).
- Tests: lowercase "delete" in the cross-turn cache case;
  empty/null/object system; zh -> en restore; unsaved picks kept;
  zh-TW; a missing theme; style.css brace balance and the version.
- PROVENANCE names ANTISLOP_BOUNDARIES (OmniRoute v3.8.52), checked
  byte for byte against the tag. The page/stats.js ignore is gone.
- Version 0.2.1. dist had only 0.2.0, and npm has no version yet.

Run at 2f971ab9 (mote, Bun 1.4.2, fresh HOME):
- package bun test: 55 pass, 0 fail;
- repo bun test: 6561 pass, 20 skip, 0 fail;
- scripts/check.mjs output-strategy: ok;
- CI run 42320776930 at this head, attempt 1: test and on-npm green;
- page render, main vs head, in Chromium and WebKit at 400/700/1000px:
  identical.
Broken by hand, each turning exactly one test red: the dropped }, the
version at 0.2.0, an unguarded theme.lang, the old conditional
applyTheme, a case-sensitive delete skip, the old appendInstruction,
one-way translate, unkept checkbox state, the old zh* normalize, and
addedBytes put back.
Not tried: a live theme switch in the real magpie window, and real
Claude Code/Codex sessions.
2026-11-07 09:10:31 +08:00
Mañjūṣaka 081c67acaa output-strategy 0.2.0: composable output-style middleware (#814)
Adds @magpie-community/middleware-output-strategy 0.2.0. It is middleware only. It appends composable output-style instructions before the model call, and has a small selection page.
- Codex `instructions` stay byte-identical. The styles go into a `developer` input item at input[0].
- An existing marker means the body was already applied, and it passes unchanged, so the prompt cache holds across turns.
- It writes nothing to disk and has no hooks or telemetry.
- PROVENANCE credits OmniRoute v3.8.52.

Run at 9b47678ba (mote, Bun 1.4.2, HOME=$(mktemp -d)):
- package bun test: 49 pass, 0 fail;
- repo bun test: 6555 pass, 0 fail;
- scripts/check.mjs output-strategy: ok;
- magpie's moejs engine at origin/main 8e350155b: the Claude Code system field is identical over four turns, and the Codex input prefix is stable;
- 12 guards broken by hand, each one red.
- PR CI (test, on-npm): green.

Not tried: real accounts, Codex over websocket, Windows, Linux.
2026-11-07 08:07:11 +08:00
Muyang da8b8d71f3 privacy-gate: release 0.3.0 with branded bilingual docs (#798)
privacy-gate 0.3.0: branded bilingual docs, ShyPie icon and README.

Installs with `magpie plugin add @magpie-community/middleware-privacy-gate`
(from this repo's dist index until npm has the package). Names the
built-in "JS gateway plugins" / "JS 网关插件" (id `middleware`). Icons
are a pie, a shield and a gold chevron, with no bird. magpie.icon points
at packages/privacy-gate/assets/shypie-icon.svg. The middleware code
(privacy-gate.middleware.js) is unchanged since e0a4548a.

Reviewed at 85dbd121b833017982d0a97a2f3fab50be98caab. The last round
(67ae63c3b..85dbd121b) changed only docs/operations.md:10 (ends the
sentence) and the aria-label of the two shypie-icon SVGs ("with a gold
chevron").

Run at 85dbd121b on mote (macOS), Bun 1.4.2, HOME=$(mktemp -d):
- bun test packages/privacy-gate: 62 pass, 0 fail.
- bun scripts/check.mjs privacy-gate: ok, exit 0.
- bun scripts/check.mjs (whole repo): exit 0.
- bun test (root): 6449 pass, 20 skip, 0 fail, 472 files.
- npm pack --dry-run: 12 files, version 0.3.0.
- git merge-tree with origin/main ab0d3fe54: clean.

Not tried: installing 0.3.0 into a running magpie (dist has 0.1.0 only
until this merges). No mover or min in yetone/magpie references it.
2026-11-07 05:56:05 +08:00
yetone ab0d3fe54a kiro 0.1.27: Kiro's wait before asking again goes on as Retry-After
A 429 Kiro answered before any of the reply (USER_REQUEST_RATE_EXCEEDED,
"Too many requests, please wait before trying again.") reached magpie
with no word of when, as the plugin built its error response from
nothing. With one account magpie then asked it again after 1, 2 and 4s
and on through its patience: onemezao's one small message took six asks,
five of them 429.

The plugin now reads the wait where Kiro's own clients read it and sends
it on as Retry-After (whole seconds, rounded up): the Kiro IDE's
x-amzn-kiro-ratelimit-retry-after header and the body's
retryAfterMilliseconds (both ms; kiro.kiro-agent 1.1.499, decompiled in
hj01857655/kiro-account-manager docs/Kiro-1.4.5/re/pfd-full.txt), the
x-amz-retry-after header kiro-cli 2.35's AWS SDK honours (ms, found in
the binary's strings), and HTTP's Retry-After. magpie's gateway already
waits a Retry-After: past 8s it skips the quick retries and rests the
account that long. With none said, nothing changes.

Run (mote, HOME a temp dir): bun test packages/kiro, 127 pass;
bun scripts/check.mjs, ok.
Broken by hand: generate without the wait argument; the new test fails
(Expected "13", Received null).
Not tried: a real Kiro 429. Which of these headers Kiro sends on
generateAssistantResponse's 429 is not seen; the IDE reads them on its
CreateResponse path. Hammering a real account to get one was not done.

Reported-by: onemezao
2026-11-07 03:17:09 +08:00
yetone 1975c937d6 qoder: a streamed request Qoder queues waits up to Qoder's hour, kept alive with comments (#807)
When Qoder queued a request (10605), the plugin waited at most 4 minutes
and then answered 503. Codex retried it, so the user saw the turn stop
and start again while Qoder's own client would have waited up to an hour.
The 4 minutes were there because nothing reached the agent during the
wait.

Now a streamed request with no fallback is answered 200 at once. The
first SSE comment says the queue, and another comment follows every 10s
(QUEUE.beat) while the plugin waits up to QUEUE.held (1h) from the start.
magpie counts each upstream comment as the reply going on: it tells a
Codex client response.in_progress (the event Codex's 300s idle timeout
counts), and its 30-minute translated-silence watch restarts with each
comment. The result goes in the same stream: the answer, or the refusal
as `data: {"error":{message, code}}` (the queue's 503 after the hour, a
113's 429). Cancelling the stream aborts the status ask in flight and
stops the beat. A request that isn't streamed, or that carries
x-magpie-fallback, keeps the 4-minute wait and 503 it had. No setting was
added.

Run on mote: packages/qoder `bun test` (396 pass), `bun scripts/check.mjs
qoder` (ok), and the repo's `HOME=$(mktemp -d) bun test` as CI runs it
(6503 pass, 0 fail).
(Without the temp HOME, devin and zcode's guards refuse to run, as
designed.) queue.test.mjs runs a fake clock and timers: pauses and beats
move the clock, and no test waits on wall time.

Broken by hand, each red, then restored:
- no hold (streamed waits 4 min, as before): 4 red
- no beat timer: the 20-minute test red
- held stream's signal not linked to the status asks: the cancel test red
- held set to 4 min: the 20-minute and the hour tests red

Not tried: a real account that Qoder queues. I have none, so the
stream's shape was checked against magpie's gateway in a test on the
magpie side. A relogin during a held stream loses the "renewed" sign-in
mark, because the headers are already sent. Claude Code counts only 30
pings in a row as alive, about 35 minutes, so a longer wait still ends
there.

Reported-by: real-jacket
2026-11-07 02:20:31 +08:00
yetone 7a2599bdae loomy 0.1.4: DeepSeek-V4.1-Flash keeps its image_url parts (#811)
prefersTagFormat() sent every model id containing "deepseek" through
rewriteImagesToTags(), which turns data-URI image_url parts into
<image_base64> text. That rule came with the plugin (6a9c528a, from
agent2api's images.rs) for the DeepSeek models of the time; the test
fixture's model is "deepseek-v4-flash", listed as "DeepSeek V4 Flash 0731".
The reporter's direct calls show DeepSeek-V4.1-Flash now reads OpenAI
image_url parts (prompt 244 tokens, right answer on two accounts) and
reads the marker as plain text (prompt 10,533, all output spent on
reasoning, empty reply). deepseek-v4-flash-0731 reads neither shape, so
it keeps the marker as before; nothing here makes it worse.

Now a deepseek id with v4.1 / v4-1 in it keeps its parts as sent; every
other deepseek id is rewritten as before.

Run (on mote, via mote-run):
- bun test packages/loomy: 30 pass, 0 fail
- bun scripts/check.mjs loomy: registry.json and loomy ok
- HOME=$(mktemp -d) bun test (whole repo, as CI runs it): 6499 pass,
  1 fail. The fail is sap-aicore's "late failure does not delete a
  newer candidate" under load; it passes 3 of 3 alone, filed as #812.
  (A first run without a sandbox HOME failed devin and zcode tests that
  refuse to run under a real HOME; not a red.)
Broken by hand:
- prefersTagFormat back to "every deepseek": the two new tests (the
  reporter's DeepSeek-V4.1-Flash request through the loader, and the id
  table) go red, 28 pass / 2 fail.
- prefersTagFormat always false: the original 0731 marker test and the id
  table go red, 28 pass / 2 fail.
Not tried: a real Loomy account; the ids and token counts are the
reporter's.

Reported-by: gcq909893267
2026-11-07 02:11:17 +08:00
aqiu817 1d4edc39b7 registry: add DeepAI Code (magpie-deepaicode)
Lists magpie-deepaicode (aqiu817) in registry.json: DeepAI Code with
browser sign-in, the desktop app's saved credentials or an API key, the
device's real machine fingerprint, live models, daily Theos quota and
check-in.

The first review blocked 0.1.1 for its per-account fingerprint (it farmed
DeepAI's daily free quota), its account-pool gateway and debug logs that
printed keys. npm latest 0.2.0 (gitHead e18c6b3, tarball identical to the
repo at that commit) removes all three. A probe against the tarball gave
two keys, one asking for machineMode "account", the same machineFp and the
same X-DeepAI-Code-Machine header.

Run at 4ae03eba (on 0daaf15b), on mote with HOME in a temp folder:
bun scripts/check.mjs exit 0; bun test 6489 pass, 20 skip, 0 fail. The
plugin's own node --test at e18c6b3: 54 pass. Broken by hand: the paste
debug line logging inputs goes red; the desktop debug line and a per-key
fingerprint stay green (follow-ups asked on the PR).

Not tried: a real DeepAI account.
2026-11-07 01:14:01 +08:00
kongbai01203 e0769e8e20 zcode 0.1.52: hold a rate-limited account in the plugin until ZCode's wait is over (#503)
When ZCode rate limits a check-in (HTTP 429 on the touch feed, or code
3002 on a claim), the plugin now holds that account itself. Until the
wait is over, a check-in answers the same failed (message and until) and
sends no request. The wait follows Retry-After (seconds or a date) up to
six hours. Without one, it doubles from 30 minutes. A read that comes
through with nothing rate limited forgets it. magpie before v0.1.3165 asks
a failed again after 30 minutes whatever its until says, which is how #503
saw 180 reads in four days. The hold is keyed by the account
(s.key || s.jwt), so keyless Start-Plan sign-ins each have their own. It
lives in memory, so a restart forgets it.

Run at 017e5dfc (merge base 654d3bea), on mote with HOME in a temp
folder: bun test packages/zcode 208 pass, 0 fail; check.mjs zcode ok.
Merged with origin/main 8163be36: zcode 209 pass; the whole repo
check.mjs exit 0 and bun test 6498 pass, 20 skip, 0 fail. Broken by hand, each red: holdKey back to s.key
(the two-keyless-accounts test), the delete moved before the claims (the
claim doubling test), no forget after a read with nothing to claim (the
doubling test). CI on-npm and test green at 017e5dfc.

Not tried: a live ZCode 429 or 3002.
2026-11-07 01:13:55 +08:00
yetone 8163be365f zcode: test the system shape zcode.z.ai lets through (plugins#348)
XinOrigin's matrix on plugins#348 (11-04) says zcode.z.ai serves a Start
Plan request only when its system is an array of two or three text
blocks, ZCode's first byte for byte and its second as ZCode's begins; a
string, no system, the first block alone, the first with a block of the
caller's, or a fourth block answers 405/3012. The new test sends Claude
Code's shape (billing-header block, prompt, CLAUDE.md block, with
thinking adaptive, context_management and output_config), Codex's string
instructions, no system, and ZCode's first block alone, and checks each
goes out as the passing row: three text blocks, ZCode's first two
unchanged, the agent's text after ZCode's own sections in the third, the
top-level fields kept.

No code change: 0.1.51 already sends this shape (0.1.21 for #343, 0.1.48
for the 3.17.2 texts).

Live, on the owner's ZCode account (11-06 15:48 UTC, a GLM Coding Plan
account with no Start Plan gift), one request each to
zcode.z.ai/api/v1/zcode-plan/anthropic/v1/messages with 0.1.51's
startHeaders and dress:
- Claude Code-style system: 200 {"code":1005,"msg":"exceed quota limit"}
- the same with a 30KB agent system: 200, 1005
- Codex-style string system: 200, 1005
- Claude Code's top-level fields and a tool: 200, 1005
- control, ZCode's first block alone, not dressed: 405 code 3012
  (logid 20261106154826f91ddad38c8bfdefae1d)
So the system check runs before the quota check, and 0.1.51's dressing
gets past it. Not tried: a request on an account with a live gift (the
owner's has none), and a burst of requests.

Run on mote: bun test in packages/zcode, 201 pass, 0 fail, 12 runs in a
row; one earlier run had 5 reds in userid.test.mjs (expect(got.length)
.toBe(1)), not seen again in those 12 runs. bun scripts/check.mjs zcode
ok. Broken by hand: dress sending the agent's text as a fourth block
and more turns the new test red (Expected 3, Received 6); restored,
green.
2026-11-07 00:33:28 +08:00
Gyl1219 f3178ffc26 registry: providers-hub lists Qiniu MaaS (hub-qiniu) (#806)
Lists Qiniu MaaS (hub-qiniu) under magpie-providers-hub in registry.json:
the provider list gains hub-qiniu, and the en/zh summaries say eleven
providers and describe the Qiniu channel (80+ models, one endpoint,
https://api.qnaigc.com/v1). Reopens #772, whose branch was rebuilt; both
of #772's blocking points (model count, endpoint named two ways) are fixed
here. Qiniu serves its own models as a cloud, and lakegan handed the
channel over to the hub on #374, so this is the only Qiniu entry.

Run at 1225f2b0 (on origin/main 0daaf15b), on mote with HOME in a temp
folder: bun scripts/check.mjs exits 0; bun test 6489 pass, 20 skip,
0 fail. npm latest is still magpie-providers-hub 0.12.2 (shasum
c6a441d0, last modified 2026-11-06T00:29Z, the tarball #772's review
matched to the repo at 55b720d byte for byte and ran 229 pass / 1 skip /
0 fail, with the clock and planKeys fixes each broken by hand). Its
index.mjs exports HubQiniuPlugin, the eleven providers match the registry
list, and LICENSES/opencode-qiniu-auth-MIT.txt ships. GET
https://api.qnaigc.com/v1/models answered 89 models today, so "80+" holds.

Not tried: a real Qiniu key.
2026-11-06 23:55:25 +08:00
mdwsk88 0daaf15b6e registry: list magpie-search-mix, a web search API that mixes several (#803)
Lists magpie-search-mix (mdwsk88/magpie-search-mix, npm magpie-search-mix@0.1.0) in registry.json and the README's Web search
APIs table: a search API that asks two of Tavily, Brave, Exa, Firecrawl, You.com, DeepSeek, Doubao Search, Yuanbao Search and
SearXNG at once and gives their pages in turn, deduplicated. kind tools, community true, as @guotree/magpie-websearch.

Reviewed: every line of the npm 0.1.0 package, byte-identical to the repo at 8d535f3. No server of the author's, no
dependencies or install scripts; each key goes only to its own vendor's API or the base URL the user gives, redirects not
followed; logs off by default and never hold the query or a key. Not a relay or reseller.

Run on a macOS box with HOME=$(mktemp -d), at 97f34721 merged on main f58fa9d9:
- bun test: 6489 pass, 0 fail; bun scripts/check.mjs: 48 ok; registryProblems(registry.json): none.
- package's own bun test: 69 pass, 0 fail; red when redirects are followed, a key is left unmasked, the query is not hidden,
  one source is accepted, dedup or key rests are removed.
- real: keyless You.com gave 3 pages in 1.8 s; with a bogus Tavily key beside it, Tavily was turned away (key masked) and
  You.com's pages came back.
Not tried: the keyed vendors, and inside magpie's GUI.
2026-11-06 23:24:03 +08:00
Pursuit806 35ddd0d9bc astudio 0.2.0: browser sign-in, one pool slot per account (#781)
Browser sign-in for AStudio (fresh Chrome/Edge profile, harvest ssoSessionId +
account_id, exchange through auth/bearer-token), one pool slot per account
(accountId = uid), and a check-in that reads the daily GRANT ledger first and
sends no write when today's grant is already there. Windows built in
Beijing time; transient-only retries; profiles removed on every path.

Reviewed at 11da33c74442328eae462311914eb0ef177946a7, run on a test machine
with a temp HOME:
- bun test packages/astudio 78/78 in Asia/Shanghai, UTC and
  America/Los_Angeles; node --test 78/78.
- bun scripts/check.mjs astudio ok; repo bun test 6275 pass, 0 fail.
- Merged onto main 86778e66: astudio 78/78, check.mjs ok, repo bun test
  6489 pass, 0 fail.
- Broken by hand, each red: 5xx not transient, catalog redirect dropped,
  browser precheck dropped, check-in gated on token, profile kept on
  abort/timeout/launch failure, the "0 分钟" label.
- 0.2.0 is the next version (dist index has 0.1.4).
Not tried: a real iFLYTEK account.
2026-11-06 22:47:26 +08:00
qingnian108 86778e6646 agent-console 1.3.7: auto-detect unlabelled code blocks, html-only sanitize, Windows desktop reconnect through Magpie's Try again (#792)
Code blocks are drawn in the same pass as the Markdown, so a streaming reply no longer flickers. Two fixes from the review on 40eb3027:
- An unlabelled fence is detected by highlight.js again (`highlightAuto`, behind a 128-entry LRU). Only a fence that is still open at the end of a streaming message stays plain "text" (`isClosedFence`, which follows marked's fence rule).
- DOMPurify is back to the html profile only. The code-block icons are per-load random placeholders until after sanitize, and `codeBlockKey` is gone.

The Windows desktop reconnect is also fixed. `safeBackUrl` (gate, wrapper and web) takes loopback Magpie pages only, never `http://wails.localhost`. WebView2 can't route a 127.0.0.1 frame's request there, so it showed its gray error page. In the desktop window the wrapper, or an unwrapped daemon page, posts `{magpie:1, method:"error"}` instead, and Magpie's pluginpages.js answers with its Try again card. A stale stored wails back URL is dropped.

Reviewed at c520fa46 (merge base 1eb9473f = main) on mote (mote-run, HOME=$(mktemp -d), package copied out of the workspace):
- npm ci; `npm run check` clean; `npm run verify:build` OK for all 5 files.
- `npx vitest run` with CHROME_PATH set to Playwright's Chromium 1248: 77 files, 567 passed, 17 skipped, 0 failed. markdown-render-browser ran (it went red under the hand-breaks).
- `bun scripts/check.mjs agent-console` ok. Repo `bun test`: 6449 pass, 0 fail.
- Broken by hand, each red:
  - autoDetect forced on while streaming: markdown-render-browser red.
  - `svg: true` put back in the profile: markdown-render-browser red.
  - Auto-detection removed: codeBlock and markdown-render-browser red.
  - LRU eviction removed: codeBlock red.
  - `isClosedFence` accepting any backtick run: codeBlock red.
  - wails.localhost accepted again in gate.mjs, then in backToMagpie.ts: ac11 red (3 and 2 tests).
  - The same in wrapper.mjs: wrapper red (4 tests).
  - The stale stored back kept: wrapper red.
- Read magpie's pluginpages.js on main: `method:"error"` from the page's own frame calls `broke(key, why)`.

Not tried: a real WebView2 on Windows (the reconnect path), or a real streaming reply in the desktop app.
2026-11-06 22:01:43 +08:00
nicegui 1eb9473f5b cursor 0.2.43: read per-step ModelCallCompletedUpdate usage (#796)
Asks AgentService/Run for emit_model_call_usage (AgentRunRequest field 37) and reads InteractionUpdate 31 (ModelCallCompletedUpdate: model_call_id, then input, output, cache read, cache write and reasoning tokens). These field numbers are checked against cursor-agent 2026.11.05-86047df's bundle. A multi-step native turn's final step reports that call's exact counts. The rest of TurnEnded's totals goes to usage.magpie_deferred, or the earlier calls' #31 sum when TurnEnded has no counts. A stateless step with a #31 before it seals takes that count and doesn't poll the dashboard. Without #31, both paths are as before.

Reviewed at d2c49f3b on mote (mote-run, HOME=$(mktemp -d)):
- bun scripts/check.mjs cursor: ok.
- bun test packages/cursor: 406 pass, 0 fail. native-e2e alone 3 times: 145 pass each.
- Probes: TurnEnded with no counts and a #31 per step, and only the final step's #31. Both give own 61000/700 and deferred 105000/1400, which add up to the turn.
- Broken by hand, red each time: no field 37; native ignoring #31; #31 read unshifted; stateless ignoring #31; stateless still polling after #31.
- Not red: dropping the lastStepUsage reset in nextStep. That test gap is filed as a follow-up.

Not tried: a real Cursor account (whether api2 sends #31, and in what order).
2026-11-06 20:54:23 +08:00
Muyang 28108ddeec privacy-gate 0.1.0: ShyPie Privacy Gate, a gateway middleware that keeps binary parts and blobs local (#685)
New package @magpie-community/middleware-privacy-gate 0.1.0 (siml1169): a
gateway middleware that refuses image, file and audio parts, encoded blobs
and models outside an allowlist before a request leaves magpie, or in
binaryPolicy "guide" replaces each binary part with a short text note. A
typo in any option falls back to the stricter side; a malformed allowModels
refuses every request.

Reviewed at 2a998b73b4ae5f6ae072f12ea9ef27008692c892 (earlier rounds at
ab8c0ebe and before):
- mote, HOME=$(mktemp -d), Bun 1.4.2, merged onto origin/main 6549b633:
  bun test packages/privacy-gate 62 pass; bun scripts/check.mjs ok.
- Broken by hand: the allowModels check off (2 red), guide mode's blob scan
  removed (3 red), the mime check removed (1 red).
- magpie's own middleware engine (origin/main 3cbb7e042) with this file:
  ~90 cases across binaryPolicy typos, guide mode bounds, signatures and
  allowModels typos, all as wanted apart from the documented value cap.
Not tried: a real vendor or DSH, streaming bodies, Windows and Linux.
2026-11-06 20:22:46 +08:00
Bernardxu123 6549b6335d opendesign 0.1.9: the plan's own credit multipliers, and V4.1 Flash Eco (#794)
A model's rate is now the Design Plan's own deduction multiplier from
open-design.ai/zh/model-credits/ (rates.mjs), not amr-link's catalog cost
word, which disagreed for seven models (Claude Haiku 5.5 2x, GPT-6 Luna 4x,
DeepSeek V4 Pro 1x, ...). A model the table doesn't name keeps its catalog
word. deepseek-v4.1-flash-eco joins the seed with V4.1 Flash's limits and
levels at 0.27x.

Reviewed at 0335afb86a9afb53a576813445c0b6cb4705cfeb:
- rates.mjs checked row by row against the vendor page, fetched 2026-11-06;
  the 0.25x row is the 10-20..10-27 promo, over.
- mote, HOME=$(mktemp -d), Bun 1.4.2: bun test packages/opendesign 27 pass;
  bun scripts/check.mjs opendesign ok; npm pack has rates.mjs and the packed
  plugin imports.
- Broken by hand: rateOf ignoring the table (2 red), config hook not
  re-declaring rate (1 red), eco seed line removed (3 red).
- magpie's host builds config models without rate and never writes a hook's
  result back, so the re-declared rate overrides nothing a user set.
- npm had 0.1.8; 0.1.9 is next.
Not tried: a real Open Design account; the live ids of hy4-preview and
minimax-m3.1-flash (not in the seed).
2026-11-06 20:18:20 +08:00
yetoneandCursor Agent cfa41e5956 gcp-ai 0.2.2: retry a 401 without buffering every body (#739)
Reuse an in-memory body on a 401 instead of cloning every request up front,
and return a 401 on a stream that cannot be sent twice. Concurrent 401s share
one token refresh. Keep the token cache in a WeakMap keyed by the fetch
function, and replace Promise.withResolvers in tests so the suite runs on Node 20.

Co-authored-by: Cursor Agent <cursoragent@cursor.com>
2026-11-06 19:51:18 +08:00
qingnian108 654d3bea1c agent-console 1.3.6: keep chat pinned to the bottom on tall virtualized replies (#787)
agent-console 1.3.6: the chat stays stuck to the bottom as virtualized rows measure taller than their estimate, while a reply streams, and when a hidden view becomes visible. Only an upward scroll during a user gesture leaves the bottom, and jump follows rows as they measure. An ACP default model the session skipped is no longer recorded as synced, so the next idle send tries it again.

Reviewed at baf6475e on mote (HOME=$(mktemp -d), Node 22, npm ci --workspaces=false): tsc daemon+web ok; verify:build byte for byte; vitest 73 files, 544 passed, 17 skipped, with chat-scroll-browser run in Chromium 1248 rather than skipped; bun scripts/check.mjs agent-console ok. With origin/main's Chat.tsx and manager.ts put back and app/ rebuilt, the browser test fails (gap 760 > 2) and both new manager tests fail. 1.3.6 is the next version after dist's 1.3.5. Not tried: the real magpie webviews. PR CI green.
2026-11-06 18:53:53 +08:00
nicegui 484b870266 cursor 0.2.42: a mid-batch checkpoint after a count sent first no longer seals a parallel tool batch (#788)
cursor 0.2.42: a checkpoint whose pending calls equal the calls handed out ends a step short of its count only when tool_requests_listed came after the step's last call update or exec (StepCalls.listedAfter). A count sent first can no longer let a checkpoint between parallel calls seal the batch after one call (502 "native call arrived after its batch was sealed"). An exec also removes its id from the calls Cursor completed by itself.

Reviewed at e0794fef on mote (HOME=$(mktemp -d), Bun 1.4.2): bun test packages/cursor 405 pass, 0 fail; bun scripts/check.mjs cursor ok. Broken by hand: without listedAfter in native, 2 fail; without it in stateless, 2 fail; without byCursor.delete, 1 fails. Trade-off: a count sent before the calls, with Cursor-completed calls that send no update 3, now waits for the quiet timeout instead of ending on the checkpoint. A probe shows it; it hasn't been seen on the wire; filed as #790. 0.2.42 is the next version after npm's 0.2.41. Not tried: a real Cursor account. PR CI green.
2026-11-06 18:53:48 +08:00
狗带带子 c9bbfd89ff raccoon 0.1.8: read grant bills with type=income so a busy account keeps its Credits window (#789)
raccoon 0.1.8: allBills asks the bills endpoint for type=income first, so a busy account's grants are no longer pushed out of the newest 100-row page by spends. The old unfiltered 1000/5000 read is kept as a fallback when the filter is refused.

Reviewed at 34402598 on mote (HOME=$(mktemp -d), Bun 1.4.2): bun test packages/raccoon 49 pass; bun scripts/check.mjs raccoon ok. Removing the type=income read by hand turns the new test red (balance only, no Credits window). 0.1.8 is the next version after dist's 0.1.7. Not tried: a real Raccoon account. PR CI green.

Reported-by: RedFlagRF, nglsk (#520)
2026-11-06 18:53:28 +08:00
guoqchen1001andguoqchen1001 54a55b8b67 warp 0.1.0: Warp AI credits through the Warp app's sign-in (#57)
New provider package @magpie-community/opencode-warp-auth 0.1.0: Warp (the
terminal) AI request credits through the Warp app's sign-in (macOS
Keychain, Windows DPAPI, Linux Secret Service, read-only) or a refresh
token; the account's model list, usage/bonus credits, streaming and tool
calls over Warp's HTTP/2 protobuf API with backpressure. Ships the 1.x
entry (opencode.mjs, main) and the shared 2.x adapter (opencode2.mjs,
exports["."]). Registry entry added. Released through the dist branch
until an owner does the first npm publish.

Reviewed head 62db17e93, merged onto main 6de02a0a. Run there (mote,
temporary HOME): bun test packages/warp 122 pass 0 fail; bun
scripts/check.mjs warp ok; whole repo bun test --timeout 60000 6371 pass
20 skip 0 fail; 2.x load via exports["."] with a fake context registers
both sign-in methods, the warp provider (11 models) and its sdk hook.
Broken by hand: exports -> index.mjs, _internal exported from main,
opencode2.mjs out of files, a one-byte drift in opencode2.mjs, and main
exporting no plugin each make check.mjs fail (the last also the entry
test). Earlier rounds (10-09/10-12, at 0ae2bc3, identical warp code)
broke backpressure, the refresh-token method and the Keychain hex decode
by hand and saw their tests fail.
Not tried: a real Warp account through OpenCode 2.x; Linux with a real
account.

Co-authored-by: guoqchen1001 <guoqchen1001@users.noreply.github.com>
2026-11-06 17:36:54 +08:00
yetone 925d6a253f trae 0.2.32: a conversation keeps its session_id when the plugin restarts
baoguo on magpie's Discord: every call seemed to be a new Trae
conversation, billed and cached as fresh; asked for one Trae session per
agent session. The plugin already sends one session_id per conversation
(0.2.6, #58): the session magpie names (the agent's own header, Claude
Code's x-claude-code-session-id, Codex's session_id, DSH's
x-deepseek-harness-session-id, OpenCode's session; else magpie's hash of
how the conversation opens), with the account, hashed. But the hash's
salt was new in each process, and magpie restarts its plugins on every
update of magpie or of any plugin, so every conversation going on then
went on under a session_id of its own from that point.

Now the salt is made once, in ~/.config/magpie/trae-session-salt
(MAGPIE_TRAE_SESSION_SALT names another file), written to a temp name
and hard-linked into place so processes starting together all read the
one that won. A file that can't be read or made, or holds anything else,
is left as it is and the process has a salt of its own, as before. The
id is derived, not cached, so there is nothing to bound or expire: the
same agent session gives the same id for good. Tests now write their
salt in a temp folder (nonet.mjs).

Run: HOME=$(mktemp -d) bun test packages/trae on mote, 243 pass, 0 fail;
bun scripts/check.mjs trae ok; conversation.test.mjs on Windows
(xiaomi-gpu), 10 pass. Broken by hand: a salt new in each process makes
"a conversation keeps its session_id when the plugin's process starts
again" fail; overwriting the file on a race makes "processes starting at
once on no salt yet all take the one that was made" fail.
Not tried: a real Trae account (none in this magpie), so whether Trae's
prompt cache follows session_id is not measured. dsh-connect-trae's
probe (docs, 11-03) saw cache_read 0 on three same-prefix requests since
10-26, which no session id would change. Claude Code subagents still
share their lead's session, as magpie names them.

Reported-by: baoguo
2026-11-06 17:36:42 +08:00
Akiiwa 6de02a0ab3 agentcompass 0.1.4: canonicalModel resolves a multi-prefix model id by its last segment (#751)
agentcompass 0.1.4: canonicalModel tries the id with its first prefix removed, then its lowercase, then the last path segment and its lowercase, so a multi-prefix id such as openrouter/minimax/MiniMax-M3 resolves to its alias (minimax-m3). An id no alias knows keeps its old key.

Reviewed at 2adb5439 on mote (Bun 1.4.2, Node 22.22.0, fresh HOME): agentcompass bun test and node --test 44/44; bun scripts/check.mjs (package and whole repo) exit 0; repo root bun test 6244 pass, 0 fail. The old code and three of the four new lookups, each broken by hand, turned test 9.7 red; dropping the lowercase of the prefix-stripped id, which was already on main, stayed green. PR CI green on attempt 1. Not tried: a real routed request through a live gateway.
2026-11-06 17:08:24 +08:00
qingnian108 856ad934a2 agent-console 1.3.5: Windows reconnect, per-provider model refresh, Magpie per-agent filter (#786)
agent-console 1.3.5: Windows reconnect through wails.localhost (Windows, http, no port only), model picker refresh keyed on a per-provider fingerprint of magpie's and the agent's own files, Magpie per-agent model filter, explicit picks forced past the snapshot, gateway URL anchored after the port.

Reviewed at 44661c8 on mote (fresh HOME, npm ci --ignore-scripts, Node 22): npm run check ok; vitest 535 passed, 17 skipped, 1 known flake also on main 749e9dd1 (claude-cli mid-turn CLI crash, manager.ts lastTurnStatus before idle); verify:build byte for byte; hostile wails.localhost and gateway URLs rejected on win32/darwin/linux; each of 17 new guards broken by hand turned its test red. PR CI green.
2026-11-06 16:43:09 +08:00
yetone 749e9dd12a raccoon 0.1.7: the balance comes from setting_info when points/v1/balance answers 403 (#520)
xiaohuanxiong.com's /api/web/points/v1/balance now answers 403 to a
signed-in account, the vendor's own web page included (RedFlagRF's
screenshots on #520), and usage threw on it: every account showed an
error and routing read its remaining quota as unknown. RedFlagRF found
that /api/web/office/v3/setting_info still carries data.available_points.

- usage asks balance first and reads available_points from setting_info
  when balance fails or has no number. Balance stays first because
  setting_info is the call the clients make on opening and can hand out
  the day's credits; a usage poll shouldn't do that while balance answers.
- an expired sign-in on balance is still said as expired (and renewed),
  not read again from setting_info.
- if neither carries a number, usage says the error instead of the
  "0 credits" the old `|| 0` would have given.
- entitlement_info answers 403 too (#520): an unread plan is now left
  unsaid instead of reported as Free.

Not changed: the 413 on #520. The plugin passes the vendor's 413 through
untouched, and magpie already treats a 413 as the request's (no account
rests, the next group member is asked, the agent is told
request_too_large to compact; gateway.go's overflow branch). The
vendor's words for it were never captured, so nothing more is known.

Run (mote, bun): packages/raccoon `bun test` 48 pass; `bun
scripts/check.mjs` exit 0. Red on the old index.mjs: the two 403 tests
fail. Broken by hand: dropping the expired rethrow, the `throw first`
and the unread-plan check turns the expired, neither-readable and 403
tests red.
Not tried: a real Raccoon account (we have none). Unauthenticated, all
three endpoints answer 401, so the 403 is per signed-in account.

Reported-by: nglsk
Reported-by: RedFlagRF
2026-11-06 15:43:47 +08:00
yetone 4578b11de2 trae 0.2.31: a token_usage counting 0 read and 0 written is unknown, not a 0% miss
feng2787 on magpie's Discord: Trae through magpie shows cache hits always
zero. The plugin passes on what Trae's token_usage says. Since 10-27 Trae
answers cache_read_input_tokens 0 (and cache_creation_input_tokens 0) on
every turn while it still bills the turn at its cache price: a real Trae CN
account on 10-29, deepseek-v4.1-flash, a 146k prompt, 5.84 credits cold and
0.12 warm, cache_read 0 on both (dingminhua/dsh-connect-trae,
docs/ISSUE69_DIAGNOSIS.md; the ratio matches Trae's cache-read/input price,
0.006/0.30). 0.2.26 made a token_usage with no cache field unknown, but a
named 0 still went on as a counted miss, so magpie showed 0%.

Now a token_usage whose cache read and write are both 0 goes on with
magpie_cache_unknown: true, which magpie (v0.1.2396 and later) shows as
unknown, not 0%. A nonzero read or a write alone (a first turn that
wrote the cache) goes as before. The cache itself was never missed; magpie
cannot make Trae report it again.

Run: bun test in packages/trae on mote, 240 pass. Broken by hand: without
the new line, "a cache read and write of 0 is unknown" fails (8 pass, 1
fail in cache.test.mjs).
Not tried: a real Trae account (none here); the 0/0 shape and the billing
come from the third-party measurement above. A real cold, short turn that
Trae caches nothing of also shows unknown now, not 0%.

Reported-by: feng2787
2026-11-06 15:02:08 +08:00
qingnian108 39f5427420 agent-console 1.3.4: Stop ends the turn at once on ACP, Claude and Codex (#768)
Stop now ends the turn at once, and a resend right after it is safe, on
all three paths:
- ACP (Devin, Cursor, Copilot, OpenCode, Pi, dsh): session/cancel goes as
  a notification, the local turn ends at once, and a resend waits for the
  cancel and the previous prompt to settle.
- Claude: the result FIFO (turnGen, awaitingResult, skipResultGens) lives
  on each CLI process, and a replaced CLI's leftover stdout is ignored.
  After a crash the queue stays open, so the next send resumes with
  --resume.
- Codex: a turn whose turn/start response arrives after Stop is
  interrupted by its own response id.

Run at 0cf12a96 on mote with HOME=$(mktemp -d):
- root bun test: 6171 pass, 0 fail;
- bun scripts/check.mjs agent-console: ok;
- in packages/agent-console: npm ci, npm run check (tsc) and npm run
  build are ok, daemon/dist is byte-identical to the committed one, and
  verify:build is OK;
- npx vitest run: 68 files, 507 passed, 17 skipped.

Broken by hand, then acp-interrupt, claude-cli and codex-interrupt were
run again. Each mutant was red:
- codex: wasCancelled forced false: 1 fail;
- codex: interrupt() no longer ends the local turn: 5 fail;
- acp: pendingCancelSettle not awaited: 1 fail;
- acp: the late prompt settle ends the turn without the activeTurnId
  guard: 1 fail;
- claude: a replaced CLI's stdout no longer ignored: 1 fail;
- claude: interrupt no longer marks its gen in skipResultGens: 2 fail;
- claude: a crash closes the queue instead of setting needsRestart: 2 fail.

Not tried: a real Claude or Codex CLI. The PR says Devin 3000.11.3 was
tried live.
Not blocking: a Codex turn/start response that arrives after
turn/completed sends an extra turn/interrupt and leaves one
staleCodexTurns entry.
2026-11-06 13:49:42 +08:00
sakisakisa beb6343586 aelios 0.1.1: skip DS Bot background memory reviews (#779)
aelios recall() skips a request whose last user text is a DS Bot background
memory review (isMemoryReview: the "The Bot: …" / "The group chat: …" header,
the "Its memory now (…; team: shared by every Bot):" block, "New in …, oldest
first" and the closing "Write every new or changed entry in …." line), the
same way it skips a secret. A person quoting or discussing it is still
recalled and recorded. Version 0.1.1.

Run at 19818b55 on mote (Bun 1.4.2, HOME=$(mktemp -d)):
- bun test packages/aelios: 187 pass, 0 fail
- bun scripts/check.mjs: exit 0

Broken by hand (each restored after):
- isMemoryReview returns false: 6 fail
- isMemoryReview checks the header only: 1 fail (a discussion case)
- hook no longer calls isMemoryReview: 6 fail

Not tried: the template was not checked against DS Bot's own source (not
found publicly); a template change there makes the matcher miss, which keeps
today's behaviour (the review is recalled as before).
2026-11-06 12:19:03 +08:00
yetone 89ddfb9cb3 agent-office 0.3.4: Settings pickers read their value and stay open on overscroll (#778)
Bumps agent-office to 0.3.4 so #778 (frederick-wang: the pickers'
accessible name carries the value, overscroll no longer closes a
picker, magpie's thin scrollbar; fixes #773) reaches users; dist stops
at 0.3.3. Notes it in the changelog and moves cli.test.mjs's pinned
ping version with it.

Run on mote at this tree (Bun 1.4.2, HOME=mktemp -d): repo bun test
6255 tests, 20 skip, 0 fail; bun scripts/check.mjs exit 0;
stamp-page.mjs --check exit 0.
Not tried: the page in a real magpie window.
2026-11-06 11:12:28 +08:00
Zhaoji Wang 133cd35107 agent-office: Settings pickers read their value, keep open on overscroll, and the page's scrollbars are magpie's thin thumb (#778)
The three Settings pickers' buttons are labelled by the label and their
own value (aria-labelledby="lblScene optScene"), so they read "Scene
Office" again as the <select> did. .picker-list gets
overscroll-behavior: contain, so wheeling past a list's end no longer
scrolls #settings and closes it, and a #settings scroll in the frame a
picker opens repositions the list instead of closing it. The page's
scrollbars take magpie's thin thumb (8px, --faint, --muted on hover,
the same as magpie's Mac rule for pages), with --faint read from the
host's --magpie-faint token. Fixes #773. By frederick-wang.

Run on mote at c7ecc7a6 (Bun 1.4.2, HOME=mktemp -d):
packages/agent-office bun test 183 pass, 0 fail; bun scripts/check.mjs
exit 0; packages/agent-office stamp-page.mjs --check exit 0.
A Playwright script of the reviewer's own against the standalone page
(bin/agent-office.mjs --no-open, 600x520, chromium and webkit, light
and dark), run 4 times: the three accessible names are "Language
Auto", "Scene Office", "Quality Medium"; focus+Enter on #optQuality
keeps its list open; four 600px wheels over #optSceneList keep it open;
setting #settings' scrollTop still closes the picker; the list's
scrollbar is 8px with a #b9b9c2 thumb, #56565f under data-theme=dark;
no page errors.
Broken by hand: the same script at the base 10a61c2e fails the three
names in every engine and theme, and focus+Enter closed the Quality
list in 2 of 4 runs (the #773 race); the thumb is transparent there.
Not tried: test/browser.mjs inside a real magpie host window (needs a
magpie web URL); the wheel check also passes at the base in headless
Chromium and WebKit, so it does not prove the overscroll fix.
2026-11-06 11:08:29 +08:00
Joey Shao 367e879cab mclaw 0.5.2: China Mobile Cloud's MClaw agent (ai.yun.139.com), with a browser sign-in (#746)
New package @magpie-community/opencode-mclaw-auth 0.5.2 (joey-41): China
Mobile Cloud's MClaw agent (ai.yun.139.com) as a provider. A browser
sign-in in a dedicated Chrome profile per sign-in harvests the yun.139.com
ticket and fetches the llm key and the model multipliers by itself; the
models come from the account's own lists; the usage card reads the
aitokens pool and, through the vip SSO chain (toSourceId 001005), the
records' own endTime as the reset; the ticket is renewed headless from the
account's own profile, and a ticket for another phone number is refused.
Every host is China Mobile's own. registry.json and the README table list
it.

Reviewed at 905e2a6b, 7ed7d0aa and 7304ac15 (0.5.2, edcd9549 plus a
merge of main). The last review's two must-fixes are in the code:
magpie's cancel (callback(undefined, { signal }) and authorize's signal
both call harvesting.abort(); startBrowserHarvest records an abort while
Chrome is still starting and closes it once open), and a failed,
cancelled or timed-out sign-in deletes its signin-* profile dir after
releasing the lock. Re-signing an account leaving its old dir behind is
in the package README as a known limit.

Run at 7304ac15 (origin/main 10a61c2e already in it), sandbox HOME:
- mote, Bun 1.4.2: bun test in packages/mclaw 30 pass, 0 fail;
  bun scripts/check.mjs mclaw and bun scripts/check.mjs (all) ok.
- WSL Ubuntu 24.04, Bun 1.4.2: whole-repo bun test (see the PR).
- The real startBrowserHarvest with Chrome for Testing on mote, aborted
  before Chrome was up and 4s after: both reject "登录已取消", no Chrome
  left on the profile, no signin-* dir left.
- Review test: authorize and callback given separate signals, as
  magpie's host does, only the callback's aborted: closed and released.
  With callback's listener taken out it goes red (5s timeout).
Not tried: a real MClaw sign-in (no account here). The package's own
magpie-style test hands both calls one signal, so it stays green
without callback's listener; that is the only gap seen.
npm: the name is new, so trusted publishing can't create it; magpie
serves it from the dist branch until an owner publishes its first
version.
2026-11-06 10:35:49 +08:00
yetone 76ea55d3eb think-tags 0.1.2: strip also takes a leading <thinking> or <thought> block, each ended by its own close tag (#777)
strip matched only <think>, so a model that opens its reply with
<thinking>…</thinking> (or <thought>…</thought>) kept that block in the
agent's history through this middleware, while magpie's own gateway
reads all three since e1d4dca96 (yetone/magpie#5106). The three tags
are now one map, as magpie's thoughtTags: a block at the start of the
text only, ended by its own close tag outside Markdown code, so a
</think> inside a <thinking> block is the thinking's words. A stream
holds back a lead that may still become any of the three (<think is
the start of both <think> and <thinking>). to_content still writes
<think>. The package, root README and registry summaries name the three
tags.

Run (mote, Bun 1.4.2, sandbox HOME): bun test packages/think-tags 37
pass, 0 fail; bun scripts/check.mjs ok; whole-repo bun test 6205 pass, 0 fail at origin/main 10a61c2e.
Broken by hand: the map back to <think> alone, 12 fail; the close tag
fixed to </think>, 11 fail; the stream's wait only for a <think> lead,
3 fail (split <thought> and one character a delta).
Not tried: a live model that sends <thinking>. npm: 0.1.1 never
published (plugins#180), so 0.1.2 may not either.
2026-11-06 10:35:33 +08:00
Akiiwa 10a61c2efa agentcompass 0.1.3: :minimal and :ultra are efforts; ultra reads as the model's Max, minimal sits below its Low (#750)
agentcompass 0.1.3. `:minimal` and `:ultra` are read as efforts. `ultra` maps to the model's Max, or to the policy table's max when the model has no curve. `minimal` sits below the model's Low, and is clamped by a step floor and the burn scale. `none`/`off` stay in the policy. Quota is scaled through `burnScale` rather than the raw tables. A model with no curve (glm-5.3) uses the policy table's Low. A request that nothing routes now falls back through `fallbackToBestExcluded`, in both the middleware and the hooks. The fallback's tiers are: below the floor only, then seeing models, then the rest. The README (en/zh) notes that the fallback can override the visual, unhealthy, context and quota constraints.

Reviewed head: ff614f0316ab5b1a07bcc68afd11b69bb6e892d3 (merge-base 42331f64 = origin/main).

Run on mote (mote-run, HOME=$(mktemp -d)):
- packages/agentcompass `node --test`: 44 pass. `bun test`: 44 pass.
- repo `bun test`: 6188 pass, 20 skip, 0 fail. `bun scripts/check.mjs`: exit 0.
- PR CI (test, on-npm): green on ff614f0.

Broken by hand. All 16 went red:
- A-H turned 9.13 red: ability-only fallback, no floor-only tier, no seeing tier, onlyBelowFloor from the floor alone, tier order flipped, no fallback in middleware, no fallback in hooks, old middleware retry condition.
- I (quota from the raw tables) and J (below-Low scaling from the model's own Low) turned 9.12 red.
- K (no ultra to own max) turned 9.10 and 9.12 red.
- L (no ultra to policy max) turned 9.11 and 9.12 red.
- M (no step floor) and N (no burn clamp) turned 9.11 red.
- O (old EFFORT_ORDER) turned 9.10, 9.11 and 9.13 red.
- P (none/off out of the policy) turned 8.12, 9.11 and 9.13 red.

Version 0.1.2 to 0.1.3 sits on main's 0.1.2 and on dist's latest (tgz 0.1.2). The package is not on npm, so it ships through the dist branch.
Not tried: a real magpie gateway routing through 0.1.3.
2026-11-06 07:19:21 +08:00
yetone 42331f64d8 agent-office 0.3.3: Settings pickers are app menus (#771)
Bumps agent-office to 0.3.3 so #771 (frederick-wang: Language, Scene
and Quality are in-page listbox menus, not native <select>s, #744)
reaches users; dist and npm stop at 0.3.2. Notes it in the changelog,
and moves cli.test.mjs's pinned ping version with it.

Run on mote at this tree (Bun 1.4.2, HOME=mktemp -d): packages/
agent-office bun test 183 pass; repo bun test 6184 pass, 20 skip, 0
fail; bun scripts/check.mjs exit 0; stamp-page.mjs --check 0.
Broken by hand: before the cli.test.mjs edit, the bump alone turned
"the authenticated standalone page..." red (0.3.2 vs 0.3.3).
Not tried: the page in a real magpie window. #773 has the two small
follow-ups from the review.
2026-11-06 06:25:25 +08:00
Zhaoji Wang 1301724420 agent-office: Settings' Language, Scene and Quality pickers are app menus, not native <select> (#771)
agent-office's Settings menu drew Language, Scene and Quality as native
<select>s (#744). Each is now a button (aria-haspopup=listbox) that opens
an in-page role=listbox menu, fixed-positioned and clamped to the
viewport, flipping above the button when there is less room below.
Arrow keys, Home, End, Enter, Space, Tab and Escape work; Escape closes
the picker before Settings; an outside pointerdown, a Settings scroll
or a resize closes it. Values go through the same view.scene,
view.quality and manualLang and the same save() as before, so saved
options keep their shape. Asset stamps re-stamped. By frederick-wang.

Run at the reviewed head 790a8f21 on mote (Bun 1.4.2, HOME=mktemp -d):
- packages/agent-office bun test: 183 pass, 0 fail
- repo bun test: 6184 pass, 20 skip, 0 fail
- bun scripts/check.mjs: exit 0; stamp-page.mjs --check: 0
- a Playwright harness (Chromium + WebKit, light + dark, 1200x820 and
  600x620) serving the page inside a host frame that answers magpie's
  real pagebridge.js: no <select>; Scene list opens in view with all 11
  options hit-testable on top; click pick, keyboard pick
  (Enter/ArrowDown/ArrowUp/Home/End/Escape/Space/Tab), outside click,
  Settings toggle; picking Japanese relabels page and pickers; values
  reach options.set as lang/scene/quality strings and survive a reload;
  an unknown saved quality is not written over by opening the picker.
  72/72 checks, twice. Screenshots looked at in both themes.
- Broken by hand: the old index.html, and app.js without role=option,
  each turn the PR's new unit test red.

Not tried: the PR's test/browser.mjs against a live magpie web host
(it needs one); a screen reader. Follow-ups filed separately: the
button's accessible name leaves out the current value.
2026-11-06 06:21:46 +08:00
yetone f58fa9d95d autoclaw: the ledger-key test's comment gets back its first line
#769 cut "Two accounts can carry the same display name (#254), so the
ledger key is" off the comment over the signinAccountKey test, and left a
blank line at the end of the file. Test file only; no version bump.

Run: HOME=$(mktemp -d) bun test in packages/autoclaw on mote: 61 pass, 0 fail.
2026-11-06 03:54:20 +08:00
我是一条没有名字的区 6fa3f487be autoclaw 0.2.15: campaign rewards need the desktop client's user-info, not task-complete (#769)
autoclaw's native check-in now calls POST /userapi/v1/user-info with the
desktop client's header set (X-Channel AutoClaw20, 2.2.0, win-x64) and the
account's current access token, own host first, before task-list ->
task-complete. That call is what records autoclaw_user_active, which the
login-reward campaigns pay on (yetone/magpie#3681). A user-info failure on
both hosts never blocks the daily check-in; the message says the campaign
wasn't triggered.

Only a 401/403 from task-list (now marked signIn: expired) spends the
refresh token, once, through a per-refresh-token single flight shared with
auth.refresh. The write-back is CAS-guarded against a re-sign-in, and a
rotated pair whose write fails is kept in memory under the spent token for
the next renewal. task-list failing on both hosts now throws (failed, retried
in 30 min) instead of answering inactive (yetone/magpie#3326).
callEnvelope gets a 20s abort. 0.2.14 -> 0.2.15 (dist branch only; the
package isn't on npm).

Run at 15542cb7 on mote (Bun 1.4.2):
- HOME=$(mktemp -d) bun test (whole repo): 6184 pass, 0 fail.
- bun scripts/check.mjs: ok.
- The PR's 13 new tests against main's index.mjs: 9 red (the 4 that pass
  hold behaviour main already had); on the PR all green.
- Five more review tests (not committed): concurrent check-ins whose refresh
  fails share one try and the next run refreshes again; a failed write-back
  is used by the next check-in with no second refresh and then saved; two
  accounts expiring together refresh once each into their own records;
  check-in only reaches AutoClaw's two hosts and user-info never carries the
  refresh token; a CN account asks the CN host first. All green on the PR,
  all red on main.
- Broken by hand, each turned tests red: user-info removed, user-info host
  order reversed, plain X-Channel, refresh token sent to user-info, a
  user-info throw escaping, inactive restored, rememberRotated removed, CAS
  removed, the in-flight join dropped, signIn: expired dropped, refresh on
  every check-in.

Not covered by a test: the 20s abort (removing it stays green), and the
"evict only my own gate" guard, which nothing in production reaches. Not
tried: a real AutoClaw account (the author's live run on 5 accounts is in
the PR); macOS.
2026-11-06 03:48:10 +08:00
A. S. 39d4456ff8 devin 0.1.37: the declared list is Devin's of 2026-11-05, with SWE-2 Flash (#767)
The declared model list is Devin's of 2026-11-05, with SWE-2 Flash (VictorVow).

Reviewed at 731f418e8. On a separate machine with a temporary HOME the package's tests pass 208, fail 0, and bun scripts/check.mjs devin passes. The author checked every new variant against live GetCliModelConfigs: each reports supports_images true, so none go in NO_IMAGES.
2026-11-06 00:59:54 +08:00
guotree 2b7eb23d77 registry: magpie-websearch lists its 19 search APIs (#766)
README and registry summary for @guotree/magpie-websearch 0.6.0 (19 search APIs).

Checked at 5683f306: the published 0.6.0 tarball (npm, read only, nothing run) has one provider module for each of the 19 names listed (plus two shared moonshot/zhipu helpers), matching its package description. Docs-only diff (README row + registry en/zh summaries); CI test and on-npm green.
2026-11-05 22:36:55 +08:00
webkubor 2598c5355a fovea 0.2.5: Gemini support, harness blocks are not the user's words, legacy function role (#763)
Gemini requests (`contents`) are now thinned: thought parts, parts carrying a
thoughtSignature and functionCall parts stay as sent; a functionResponse keeps
its id, name and keys while the long strings inside it are cut; old images
become a note; document and video inlineData stay. saccade "auto" strips
<system-reminder> blocks before judging the topic, and a user message that is
only harness blocks is not the newest question. leadingUserEnd counts
custom_tool_call / computer_call / local_shell_call (and outputs) as answers.
Chat's legacy role "function" messages are thinned like role "tool".
page/measure.js carries the same change (diff of the two files is only the
export line).

What was run at 38385b82 (merged onto main 15f4fa80), on mote (macOS, Bun 1.4.2):
- bun test packages/fovea: 57 pass, 0 fail; bun scripts/check.mjs fovea: ok.
- fovea main vs 0.2.5 through magpie's own moejs middleware runner
  (internal/middleware Begin/Request, a throwaway test, not committed):
  - Gemini body, 41 turns, 849,212 -> 360,846 bytes (main: unchanged).
    Every thought part, thoughtSignature text part and functionCall is
    byte-identical; functionResponse ids/names kept, nested strings cut;
    image/png -> note, application/pdf untouched; the task turn and the
    recent window unchanged; no middleware failures.
  - Gemini, 401 turns, 8.5 MB, default options: 3.4 ms in onRequest
    (limit 250 ms).
  - Claude Code shape with <system-reminder> on every tool_result turn,
    saccade auto: a follow-up collapses nothing (main and 0.2.5); a real
    topic change with a reminder attached collapses 57 old items on 0.2.5,
    none on main.
  - Chat role "function": 81,491 -> 25,035 bytes (main: unchanged).
  - Responses whose first answer is custom_tool_call: 81,736 -> 25,240
    (main: unchanged).
- No new network access or I/O in the diff.

Not tried: a real Gemini account through a live gateway.
2026-11-05 21:27:14 +08:00
Akiiwa 15f4fa80c2 agentcompass: concise English README and registry summary (#765)
Replaces the long Chinese README with a concise English one (Quickstart, middleware candidateModels, plugin options, routing strategy, enableDecisionProvider) and rewrites the registry summary to match.

Reviewed at f4ba250cf: every option the README names (candidateModels, availableModels, allowedModels, routeAllModels, enableDecisionProvider, affinityMode, defaultModel, fallbackModel, allowExternalScorer) is read in packages/agentcompass/src; the agentcompass and agentcompass/auto model names match middleware.js; magpie plugin add/list/options exist in internal/cli/plugins_cli.go; registry.json parses. CI test and on-npm green. Docs only, no version bump.
2026-11-05 20:39:40 +08:00
qingnian108 41e90a18d3 agent-console 1.3.3: reconnect on return, sidebar dots, permission-wait, chat icon (#760)
qingnian108's follow-up to #747 and #758, on top of 1.3.2.

- A permission request still open when its turn ends is cancelled by the
  daemon (manager and ACP session both), and an ACP request the Agent
  withdraws ($/cancel_request, through the handler's AbortSignal) closes
  as cancelled. The page waits only on cards that still show buttons, so
  a finished turn no longer leaves 等待授权 with nothing to click. The
  等待授权 pill scrolls to the waiting card.
- 添加到对话 uses a speech-bubble icon.
- Sidebar dot: blinks while running, green after a completed turn, red
  on failure, amber while waiting.
- Wrapper: every disconnect / invalid-link end state offers Reconnect;
  the last safe back URL is kept in sessionStorage (safeBack re-checked
  on read). Coming back to the page (visible / focus) probes the child
  for 4 s instead of waiting out timers pushed back while hidden.

Review (head 0c8ee32b): every changed source line read. 1.3.2's Codex
model_catalog_json change is kept (codex/provider.ts untouched, rebuilt
dist still carries it). No new network in tests, page text set through
textContent/React, no new timers in the page or daemon; the wrapper's
sessionStorage back passes the same loopback check (tested with an evil
stored value).

Run (mote, macOS), standalone copy of packages/agent-console:
- npm ci; npm run check OK.
- vitest: 65 files, 489 passed / 17 skipped.
- npm run build, then verify:build: committed app/ and daemon/dist
  identical to the rebuild.
On the PR merged onto main 5026f636: root `bun test
packages/agent-console` 6/6, `bun scripts/check.mjs` exit 0.

Not tried: scripts/e2e-v1.mjs (Playwright, scenario 28), the page with a
live Cursor/Claude/Codex, Windows/Linux.
2026-11-05 18:14:53 +08:00
yetone 5026f6362e workbuddy 0.2.24: plan and extra credits stop the account together (ferock on Discord)
An account with both the plan's credits and extra ones showed only one
of them on magpie's Routing page: the window that stops the account was
the plan's until its credits were spent, then the extra one's. So one
account read "500 / 500 credits" with its extra credits untouched and
left out, the next only its extra credits, and an account at 90% of its
plan was kept for last with all its extra credits left.

Now "Credits" and "Extra credits" are both set aside and a third window,
"Total credits" (the two together), stops the account, for the summary's
split (CreditGroups or package codes) and for extra credits only the
detail lists carry. It takes the plan's cycle and the soonest lapse of
the two (summed when they lapse together); each of the two keeps its
own lapse. magpie already says "Total credits" in every language (Qoder
uses it). magpie keeps a cap the user set on "Credits" holding (its own
commit, with the mover min).

Run (mote): bun test packages/workbuddy, 332 pass; whole repo bun test,
6159 pass 20 skip 0 fail; bun scripts/check.mjs ok.
Broken by hand: the tests against origin/main's index.mjs, 6 fail
(Total credits missing, the plan's window still stopping the account).
Not tried: a real account with both kinds; ferock's bytes weren't
seen, the fixtures are the real shapes already in the tests (China free
summary, WorkBuddy AI Pro, CreditGroups) with a plan-untouched case
added.
2026-11-05 18:06:00 +08:00
yetone 4912c6088b workbuddy 0.2.23: hide DeepSeek Harness's name, on by default
NancyTom18 on X: a WorkBuddy account used from DeepSeek Harness through
magpie was banned, and a reply said Tencent recognises dsh's built-in
prompt. A new per-site switch, "Hide DeepSeek Harness's name" (hide_dsh),
on by default and on in OpenCode, takes the name out of the system prompt,
user and assistant text and tool descriptions: dsh's opener becomes "You
are an AI agent.", the runtime context's checkout and Web GUI lines lose
the name. Tool results, paths, commands, DSH_HOME and ~/.dsh are kept.
Labels in zh, zh-TW, ja, de. README section added.

Run: bun test packages/workbuddy on mote, 332 pass 0 fail, at this tree.
hidedsh.test.mjs uses dsh 0.2.1's literal strings from
@deepseek-ai/dsh-system-prompt and dsh-harness-dev-context.
Broken by hand: with the hook as `if (false && ...)` the new file went
6 pass 4 fail (the four "name doesn't go" cases).
Not tried: a real dsh request capture, a real WorkBuddy account. Whether
this prevents a ban can't be verified.
2026-11-05 17:30:47 +08:00
yetone 7e70a23ca3 agent-console 1.3.2: Codex's picker lists model_catalog_json's models (#758)
With a custom Codex provider, listModels read only config.toml's `model`
and `[model_providers.<p>].models`, so a config whose models live in
`model_catalog_json` (as magpie writes it) showed one "Default" row
(wwenc6621, #758).

parseCodexConfig now reads `model_catalog_json` (a profile's first), and
the picker lists that file's models: slug as the id, display_name as the
label, supported_reasoning_levels/default_reasoning_level as the levels.
Entries whose visibility isn't "list" are left out, as Codex's own picker
does. The path is resolved as Codex's AbsolutePathBuf does it (checked in
openai/codex codex-rs/utils/absolute-path): "~" and "~/..." are home, a
relative path is taken from config.toml's folder. Codex doesn't expand
environment variables; a leading $HOME / ${HOME}, as in the reporter's
config, is expanded here too. The configured model stays the default;
`models = [...]` entries missing from the catalog are kept after it. A
missing or unparsable catalog logs a warning and keeps the old list.

Run (mote, macOS):
- vitest: 62 files, 466 passed / 17 skipped; `npm run check` OK.
- `npm run build`, then `verify:build`: committed dist identical.
- root `bun test packages/agent-console` 6/6; `bun scripts/check.mjs` OK.
- A real magpie-written catalog (33 entries, 31 listed): 31 rows with
  display names and levels.
Broken by hand: the new test file against main's provider.ts: 4 of 5
tests red (the reporter's config gives only the one model); the fifth,
missing/broken catalog, passes on both by design.
Not tried: the console UI itself with a live Codex, and Windows/Linux.
2026-11-05 17:20:20 +08:00
CHENZUDE 808f7a184d page-usage-tree 0.1.0: usage as provider → account → model (CHENZUDE, #575)
New page plugin @magpie-community/page-usage-tree 0.1.0 by CHENZUDE: magpie's usage as a provider -> account -> model tree, served by a small server that reads the gateway's /v1/magpie/usage and /usage/requests.

The last round (f9e0907) gives the model row's calls cell the calls-cell class, so CALLS values sit under their right-aligned header, adds a test for it, and comments why the server's retry budget is 16 x 100ms.

What was run at f9e09079 (mote, macOS, sandbox HOME):
- In the package: node --test 50 pass; bun test 47 tests, 0 fail.
- f9e09079 merged onto main 8765cf8f: bun scripts/check.mjs ok; whole-repo bun test 6149 pass, 20 skip, 0 fail.
- Playwright against a fake gateway: CALLS header and value right edges 616/616 (1280px), 423/423 (900), 341/341 (760, 621) in Chromium and WebKit. Chromium 1280-620px, WebKit 900/760, both engines at 420px in en and zh: no clipped cell, no sideways scroll, no <select>, no page errors.
- Broken by hand: the old `model.errors ? "bad" : ""` puts values at 544 and 273 and turns "model calls sit under the right-aligned calls header" red (27 pass, 1 fail).

Not tried: a real magpie with real accounts, the desktop app, Windows and Linux.
2026-11-05 17:11:25 +08:00
我是一条没有名字的区andyunwang2442-creator 29a36b1ecf sensenova 0.2.1: localized labels for the provider options (#738)
The two provider options (`create_key`, `prune_old_keys`) carry `labels`, `descriptions` and `confirms` in zh, zh-TW, ja and de, which magpie's host passes through (`optionsOf` → `inLanguages`) and the GUI picks by locale (`optionWords`). The English `prune_old_keys` description now also says a key whose creation time can't be read is never deleted, as `pruneKeys` does, so all five languages say the same thing. Version 0.2.1.

Run at 77a164b25 on mote (macOS, Bun 1.4.2):
- `bun test packages/sensenova`: 57 pass, 0 fail. `bun scripts/check.mjs`: exit 0.
- A probe loading `SenseNovaAuthPlugin` and passing every option string through host.js's caps (label 60, description/confirm 300): all 20 localized strings come through whole (longest: de prune description, 257).
- No `{{` in the file. Each translation read against the English.

Co-authored-by: yunwang2442-creator <yunwang2442-creator@users.noreply.github.com>
2026-11-05 17:11:03 +08:00