35ddd0d9bc92ee12fef33bf5d1731fc47ce21184
893
Commits
| Author | SHA1 | Message | Date | |
|---|---|---|---|---|
|
|
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
|
||
|
|
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
|
||
|
|
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). |
||
|
|
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
|
||
|
|
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). |
||
|
|
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> |
||
|
|
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. |
||
|
|
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. |
||
|
|
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) |
||
|
|
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
|
||
|
|
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 |
||
|
|
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. |
||
|
|
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
|
||
|
|
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 |
||
|
|
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 |
||
|
|
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. |
||
|
|
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). |
||
|
|
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. |
||
|
|
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
|
||
|
|
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
|
||
|
|
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
|
||
|
|
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
|
||
|
|
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. |
||
|
|
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. |
||
|
|
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. |
||
|
|
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. |
||
|
|
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. |
||
|
|
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. |
||
|
|
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
|
||
|
|
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. |
||
|
|
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
|
||
|
|
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. |
||
|
|
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. |
||
|
|
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. |
||
|
|
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
|
||
|
|
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>
|
||
|
|
8765cf8f9c |
atomcode 0.3.0: AtomGit CodingPlan provider plugin (LILEOO, #716)
Adds packages/atomcode (@magpie-community/opencode-atomcode-auth 0.3.0), an AtomGit CodingPlan provider: browser OAuth and AtomCode CLI sign-in (~/.atomcode/auth.toml), signed requests to AtomGit's own gateway, per-account models and quota, daily claim, a loopback-only diagnostics page, and OpenCode 1.x/2.x entries. Registry and README entries added. By LILEOO.
Reviewed at c57b099fff4689c0198c1c6414f04b27614b4092. The last blocking point (an inline TOML comment on a known line went into the uid and was written back) is fixed: values end at an unquoted #, quoted/escaped/literal strings keep their #, and a rewritten line keeps its comment.
Run on a separate test machine (Bun 1.4.2, sandbox HOME):
- PR head merged onto origin/main
|
||
|
|
24da52b8ca |
minimax 0.2.3: a China-site account call agent.minimaxi.com can't be reached goes once to agent.minimax.cn (#757)
youyo.p_10001 (Discord #feedback, Windows 11, magpie 0.1.2993): every China-site account call to agent.minimaxi.com (usage, check-in, account, membership) failed in magpie's plugin host with "unable to get issuer certificate" for ~16h, while chats on agent.minimax.cn worked. They checked that agent.minimax.cn serves the same account API with the same tokens and answers. accountCall now sends a call to site.agent once more to the site's agentFallback (China: https://agent.minimax.cn) only when the fetch got no HTTP answer: a TLS error, a refused/reset connection, a name that didn't resolve. A 401/403, any other status, a statusInfo/base_resp error, a redirect to another site (OtherSite) and a timeout or abort are the answer and are never sent twice. Both attempts share the one 15s deadline. When both hosts fail, the error names both hosts and why. The international site has no fallback. Tests (fallback.test.mjs): agent.minimaxi.com is played by a TLS server serving a leaf issued by an intermediate the client never saw (testdata/leaf.pem, generated for the test), so its fetch fails as the reporter's did; agent.minimax.cn by the fake. The usage card and the check-in claim go through the fallback; a 401, 404, 502, base_resp error and a 307 to another site are not sent to the fallback; both hosts failing names both; the global site doesn't fall back. Run: - mote (Bun 1.4.2): HOME=$(mktemp -d) bun test at the repo root: 5942 pass, 19 skip, 0 fail. bun scripts/check.mjs: registry.json and minimax ok. - xiaomi-gpu Windows 11 (win-run, Bun 1.4.2): fallback.test.mjs 9/9. - Broken by hand on mote: no fallback at all -> card, check-in and both-fail tests red; falling back on any non-ok status -> 401/404/502 red; falling back on OtherSite and on a body error -> redirect and business-error red. Not tried: no MiniMax China-site tokens here, so no real call to agent.minimax.cn's account API; that it answers the same is the reporter's check. The reporter's own Bun 1.4.4 was not run. |
||
|
|
36fc59a79a |
workbuddy 0.2.22: extra credits only the detail lists have keep the account going once the plan's are spent (ferock)
ferock on Discord (2026-11-05, WorkBuddy China): extra credits weren't counted, so once an account's base credits were used up magpie moved to another account, though WorkBuddy would go on serving it on the extra ones. The card read "17.37 / 500" and "500 / 500" on the plan's window. Since 0.2.17 extra credits that only the paid/free detail lists carry (the summary lists the plan's base alone, a China-site free account's shape) were an "Extra credits" window that was always set aside, so the plan's window was the one that stopped the account, at 100% with the extra ones left. The summary's own split (usageOf) already flips that: WorkBuddy serves the account while any credits are left. Now the detail-list window follows the same rule: once the plan's credits are spent with extra ones left, "Credits" is set aside and "Extra credits" stops the account, carrying the soonest lapse (runsOutAt/runsOut) since routing reads no window set aside. Both spent, the plan's stops it again. README says so. Run at this head on mote (HOME under mktemp): bun test packages/workbuddy 322 pass 0 fail; whole repo bun test 5933 pass, 19 skip, 0 fail; bun scripts/check.mjs ok. Broken by hand: the new usage test against the old index.mjs fails (1 fail, Credits not aside / Extra credits aside). Not tried: ferock's own bytes, or any real account with extra credits. The desktop's China sign-in on this Mac is refused (401) by the billing meter, and I didn't renew it (that would spend the app's refresh token). The fixture is CN_FREE's real shapes (2026-10-26) with the plan spent. Whether ferock's extras are a kind the summary lists (already split since 0.2.11) or only the detail lists carry isn't known; this fixes the latter. |
||
|
|
549e41d89e |
fovea 0.2.4: a state marker counts only at the head of an assistant's text (#756)
state_marker was found by its text anywhere: any item's string content or any part's text. A Chat tool result or a user message that read a file or log containing the marker stayed whole on every turn, and lifted the task message's protection. carriesState now takes the marker only where the agent writes its state block: an assistant message (Chat, Anthropic, or a Responses message item) whose string content, or a text/output_text part, starts with the marker. Tool results, user text, nested tool_result parts, function_call_output and a marker in the middle of a text count for nothing. page/measure.js rebuilt (build.mjs's transform), README option row and CHANGELOG updated. Ships the |
||
|
|
bf959aa60e |
agentcompass 0.1.2: sync AgentCompass v0.3.8 scoring (floors, origin, frontier headroom, curves, work-kind inference) (#749)
Syncs Mode A's scoring with AgentCompass v0.3.8 (akiiwa-games/AgentCompass, accounts.json and scripts/allocator.py): ability floors routine 2.3 / hard 3.1, `ability_score_origin` (graded from max(floor, origin)), `critical_headroom_by_difficulty` {frontier: 0.1}, the tool_execution route floor {hard: 2.7}, the 13 effort curves and `effort_ability`/`effort_burn`, and 54bb51e's work-kind inference (COMPUTER_USE_PHRASES, CODE_FILE_RE guard, "translation of", the code-file/debug skip). `extractRequestFacts().hasComputerUse` uses the same phrases and guard, so continuity's GUI `capability_outgrown` no longer fires on bare "gui", "desktop app", "keyboard", "桌面", "键盘". Version 0.1.2.
Reviewed at head 4ff38ce1d (previous review at 4de283991; the 4ff38ce diff drops the four screenshot phrases and adds tests 8.9 to 8.12).
Checked against upstream v0.3.8 (e30836e7) by script: all 13 curves in 8.12's table and `effort_ability`/`effort_burn` equal accounts.json; COMPUTER_USE_PHRASES equals allocator.py:1088 exactly.
Run at 4ff38ce1d on mote (macOS, Bun 1.4.2, Node 22.22.0): `bun test` 40 pass 0 fail; `node --test test/router.test.mjs` 40 pass; `bun scripts/check.mjs agentcompass` exit 0. PR CI (test, on-npm) green.
Broken by hand at 4ff38ce1d, one at a time, each red:
- origin = floor -> 8.9
- CODE_FILE_RE guard off in inferKindFromObjective -> 8.10
- bare "keyboard"/"mouse" in COMPUTER_USE_PHRASES -> 8.10, 8.11
- "translation of" -> "translation" -> 8.10
- namesCode out of the translation skip -> 8.10
- hasComputerUse without the guard, or on GUI_WORDS -> 8.10, 8.11
- "take a screenshot" or "截屏操作" put back -> 8.10
- opus xhigh ability, carbon medium burn, effort_ability.xhigh, effort_burn.max changed -> 8.12
- criticalHeadroom ignoring the table -> 8.7; abilityFloor ignoring the route -> 8.8
Not tried: real routing traffic through a live magpie gateway.
|
||
|
|
8e4105dd3d |
fovea: docs say a cut result is kept by the length guard, not the marker
#755 removed cut()'s "[fovea:" sniff, but the file header (and its copy in page/measure.js) and the README still said content carrying the marker is left alone, and the README still counted 31 tests. Comment and README only; no code or version change. Run on mote (Bun 1.4.2, temp HOME): bun test packages/fovea, 35 pass, 0 fail, including the measure.js freshness test. |
||
|
|
1e9f14248e |
fovea 0.2.3: a forged marker no longer exempts old content from cutting (#755)
cut() skipped any text containing "[fovea:" as already cut. That string
can come from a tool result, a file read or a user message, so such a
block stayed whole forever. The sniff is removed; the existing
head + tail + 80 length guard keeps a cut result from being cut again,
since the marker adds at most 44 chars plus the count's digits.
cut() is the one place the cut marker was read, and every route goes through
it: Chat role:"tool" (string and text parts), Anthropic tool_result
(string and nested text parts) and text blocks, Responses
function_call_output / custom_tool_call_output and message parts, and
user/assistant text. Saccade mode compares against the exact NOTE line
only, so it was not affected.
Reviewed head c41cae5cb43770158173369f18acda4e572fdc9e (evanmaranzano),
run on mote (Bun 1.4.2, HOME a temp dir):
- bun test packages/fovea: 35 pass, 0 fail, 128 expects.
- bun scripts/check.mjs: ok.
- A review-only property check, 12000 requests over Chat, Anthropic and
Responses shapes (string and nested-part tool results, text blocks),
random head/tail options and lengths, a forged "[fovea: ...]" at a
random offset, emoji at the end: 0 second-pass differences, 0 forged
blocks over the bound left whole.
- Broken by hand: putting the includes("[fovea:") line back in
fovea.middleware.js and page/measure.js turns the new case and the new
test red (33 pass, 2 fail) and the property check reports 38492
forged blocks left whole.
Not changed here: state_marker (opt-in, default "") is still found in any
item's text, a Chat tool result's included: #756. Not tried:
magpie's moejs run of cases.json, and a live gateway request.
|
||
|
|
ba4b7b0545 |
window-warmup 0.1.3: a task's editor opens under its own row, and the footer link no longer restyles the editor's buttons (#752)
renderList used to append the task editor after every row, so opening a task that wasn't the last one, or starting a new task while saved ones were listed, put the editor at the bottom of the list. Now the editor follows the row it opened: under the clicked task, or under the new row at the top. The footer's 反馈问题 button had reused the `.link` class, so its 11.5px faint rule restyled the editor's 立即发送一次 and 重试 buttons. The footer now has its own `.foot-link`. window-warmup goes 0.1.2 -> 0.1.3.
The browser smoke test (Chromium and WebKit) checks three things. Opening the first of two saved tasks puts the editor right under that row and not last in the list. Clicking 新建任务 then puts it right under the new top row, with one editor and not last. 立即发送一次 computes to 12px while the footer computes to 11.5px.
Run at the reviewed head b5787fee (on mote, macOS, Bun 1.4.2, Playwright 1.62.0 Chromium + WebKit):
- package `bun test`: 265 pass, 0 fail, browser smoke included in both engines. The browser file ran again on its own: 6 pass, 0 fail.
- `tsc --noEmit` (typescript 5.9.3, @types/bun 1.4.4): exit 0.
- `bun scripts/build.ts` rebuilds `dist/` byte for byte.
- `bun scripts/check.mjs`: window-warmup passes.
- repo root `HOME=$(mktemp -d) bun test`: 5926 tests, 0 fail. Browser tests skip at the root because bun test doesn't read NODE_PATH.
- merges cleanly onto main
|
||
|
|
f2dc68c17e |
cursor 0.2.41: new input past a parent awaiting results gets a retained Run that takes no reservation (#706)
cursor 0.2.41 (ooboqoo): new input past a parent that is awaiting results gets a retained Run that takes no reservation, so those turns stop falling back to "owner busy" and then "historical native calls" rebuilds. When a later Run of the conversation starts, a parent waiting on results owes its step at once, bounded before that start, and the later Run collects it. The collection waits until owedAt, because Cursor adds a step to a Run's one event as the step ends. If the parent's own results resume it, an uncollected count is withdrawn, and a collected one comes off its final, so the event is billed once.
Reviewed at 74a1d8b23 merged onto main
|
||
|
|
2c4e76dbba |
agent-console 1.3.1: 全部自动同意 (Auto-approve all), split out of #727 (#747)
Auto-approve all (全部自动同意) ships in agent-console 1.3.1, split out of #727 (qingnian108).
The mode is off by default. In it, Codex runs with its sandbox off and Claude Code skips its checks. Cursor, OpenCode and dsh requests are answered allow-once by the console, never allow_always or acceptForSession. Each auto answer is saved with `auto: true` before the Agent goes on, and a banner shows while the mode is on. Plan confirmations and questions still ask. A 1.2 默认 of 全部放行 is not silently upgraded to real auto-approve. Pi keeps the `default` mode id ("Pi never asks"), so switching Agents before the first message never carries auto-approve into an Agent the user didn't pick.
Reviewed at 7e55c87ca merged onto main
|
||
|
|
20b893893f |
agentcompass 0.1.1: the decision provider registers again (#742)
With `enableDecisionProvider: true` the plugin now gives a keyless `auth` hook for provider `agentcompass` beside its config entry. magpie's host lists, signs in and serves only a provider an auth hook names, and posts System One to `<loader baseURL>/systemone` through the loader's fetch. 0.1.0 had the config entry only, so with the option on there was no Classifier option, `magpie plugin login agentcompass` failed, and `/v1/systemone` returned 404 (akiiwa-games/magpie-agentcompass-router#1). The loader's fetch answers `/systemone` only and gives 404 for every other path. With the option off nothing is registered. Mode A is unchanged. The README gives the model names for each install source and the order: option, restart, login. Version 0.1.1. The capability-curve sync from the first push was taken out to go in its own PR. The README's CR bytes went with it. What was run at b3cbc52dd (WSL magpie-desktop, Bun 1.4.2, Node 22): - `bun test` in packages/agentcompass: 34 pass. `node --test test/router.test.mjs`: 34/34. - `bun scripts/check.mjs`: every package and registry.json pass. - Broken by hand: 0.1.0's src/index.js with this head's tests fails 4 and 4d ("magpie plugin list must show the agentcompass provider"). - The diff since review 496773a47: allocator.js, catalog.js and profiler-core.js are byte-equal to origin/main; index.js and package.json are byte-equal to the reviewed 496773a47; `grep -c $'\r' README.md` gives 0. - A real magpie (origin/main 1826c4bd9, `go build -tags gtk3`) in a sandbox HOME/XDG on port 3511, using plugin add <dir>, options, login, list, serve, then POST /v1/systemone: - 0.1.0 with the option on: "no plugin signs in to agentcompass", then 404 "magpie has no Jev provider". - 0.1.1 with the option off: no provider and a 404. - 0.1.1 with the option on: "signed in to AgentCompass", then "agentcompass (AgentCompass, 1 models) signed in", then a 200 with work_kind debug_review. - PR CI: test and on-npm pass. Not tried: the market (npm) install, since the package is not on npm yet. A Routing Group in the GUI. |
||
|
|
ba442a62a5 |
registry: list @vshulcz/magpie-deja, deja-vu's project-scoped gateway recall hook (#611)
Lists @vshulcz/magpie-deja (deja-vu's gateway recall hook) as a middleware
entry in registry.json and the README's gateway hooks table, after
OpenViking. The summary (en, zh) says recall is scoped to the request's
ctx.cwd, secret patterns are scrubbed, the recalled excerpt goes with the
request to the model provider, and the model is asked to end a helped reply
with a one-line "déjà vu: … — reusing it." note.
Contributed by @vshulcz (#611).
What was run at the reviewed head 1dca7a2853bc, merged onto main
|
||
|
|
a90b7aa41d |
workbuddy 0.2.21: the sign-in page opens at the desktop's version, so 企业微信 shows (shenyebuwu)
shenyebuwu (Discord #general) signs in to WorkBuddy with 企业微信 (WeCom), and the plugin's sign-in page offered no WeCom entry. The plugin opened www.workbuddy.cn/login with version=2.0.0. WorkBuddy desktop opens the same /v2/plugin/auth/state page with version set to its own app version (openAuthUrl: version = CLIENT_INFO_PLUGIN_VERSION, which the desktop sets to the app's version; read from WorkBuddy.app's app.asar). The login page's signin-callback chunk shows WeCom to platform workbuddy only at version >= "5.8.0" (Le/tn, Jt="5.8.0"), so 2.0.0 hid it. The page now opens with site.app (5.9.3, the version the requests already carry), for both builds, as the desktop does. Run (mote, bun 1.4.2, HOME=$(mktemp -d)): packages/workbuddy bun test, 321 pass 0 fail; bun scripts/check.mjs workbuddy ok. Broken by hand: version put back to "2.0.0", wecom.test.mjs 3 of 3 red. Real page (Playwright Chromium on mote, a fresh state from copilot.tencent.com): version=2.0.0 lists 微信 手机号 SSO QQ 邮箱; version=5.9.3 lists 企业微信 too. Not tried: a real WeCom sign-in to the end (no WeCom account, no credentials entered); the WorkBuddy AI page with WeCom (its gate is the China platform's only). |
||
|
|
c96d04bb6b |
zcode 0.1.51: a gift-only account lists only the models its balance names (young02036)
young02036 on Discord: two ZCode accounts in magpie, one with no GLM Coding Plan whose Start Plan holds glm-5.3-flash, one subscribed whose gift shows as GLM-5.3-Flash-Trial. Picking per account the models each can use worked; left to the plugin's lists, requests failed while the ZCode app on the same accounts worked. A gift-only account listed every model the Start Plan's provider config names (GLM-5.3-Flash, GLM-5.2, GLM-5-Turbo), whatever its balance held, so magpie's routing took it to serve models it has no bucket for. ZCode 3.17.2 offers such an account the balance's models alone (resolveStartPlanBalanceAvailability / resolveZaiStartPlanBalanceModelIds). The models hook now keeps, for a gift-only account, the config models its balance names (plus the gift names the config lacks and the -Trial entries, as before). A balance naming no model, or one that can't be read, leaves the config's list as it was. Coding plan accounts are unchanged. Run (mote, bun 1.4.2, isolated HOME): bun test packages/zcode, 200 pass; bun scripts/check.mjs zcode ok. The new gift.test.mjs case was red on the old code (GLM-5-Turbo and GLM-5.2 listed) and green after. Not tried: a real ZCode account (none available); whether the reported 3012 came from such a request is not proven. |