/docs/jetbrains-air says how magpie runs JetBrains Air, the app and Air
in JetBrains IDEs, on magpie's models: the Magpie entry in acp.json
(each OS's config folder; ~/.jetbrains/acp.json for the IDE plugin)
starting `opencode acp` with OPENCODE_CONFIG at magpie-opencode.json,
which holds magpie's provider, its models, model and small_model, and
enabled_providers narrowed to magpie; Air's own agents and accounts
untouched; OpenCode found on PATH, ~/.opencode/bin or an ACP registry
install, and the install line when none; the model menu; the IDE
plugin (bundled 2026.3, Marketplace 2026.2), restart, and its own Codex
and Claude Agent running this computer's codex and claude; a WSL
distro's own entry; OpenCode's gap with a provider key in the
environment; switching back. Each claim is from internal/agent/air.go
(its header, airIDE's comment, airAt, the notices) and air_wsl.go's
header.
Linked from each language's Snow CLI page; in the sitemap, llms.txt
and llms-full.txt.
Run: the three pages' JSON-LD parsed with node; llms-full.mjs rebuilt;
node --test site/*.test.mjs on the WSL box (magpie-desktop, wsl-run;
mote refuses SSH this session): 115 pass, 0 fail.
Not tried: Air itself on magpie for this page; it names only what
magpie's source says.
TestListingsOfDifferentSizesMadeOnce went red on macOS CI (run
42998160416, at f10c546db) and in #5990's full run: ten polls of
unchanged folders allocated 71-94 KB against a 64 KiB bound. The 64 KiB
read buffer came from a sync.Pool, which a collection empties, a Get on
another P misses, and -race drops one Put in four of; each such miss
made a new buffer inside the window. In the app, that is a new 64 KiB
buffer on the next poll after each collection.
The buffers are now kept on a small free list under a mutex, up to
four, the way listings already are (stats.go says why those aren't in
a pool). The test runs two collections in its window.
Run on mote at origin/main de13afbf6 plus this change:
- go test -count=20 -run TestListingsOfDifferentSizesMadeOnce ./internal/dirent: ok
- go test -race -count=5 ./internal/dirent: ok (#5990: every -race run failed before)
Broken by hand: the old stats_darwin.go with the new test, -count=5:
5 of 5 red, 73856 to 93624 bytes.
Not tried: Linux and Windows, where the file isn't built and the test skips.
A provider with image models and no chat models answered "Pick a model
first" to Test models, since the list it tests is the chat models agents
see. The backend already draws a tiny image for an image model id, so with
no chat models the ticked image models are sent to test instead. Image
models stay out of the Agents list on purpose; Settings > Models > Images
picks one.
Run: new image-models-test.test.cjs and image-models-hide.test.cjs in
chromium and webkit, five languages, 1000 and 360px (74 pass, wsl-run);
the new file is red (11 of 11 in chromium) with the app.js change stashed.
Not tried: a real image provider account; the whole GUI suite (no new API
call).
Copilot answers 400 "invalid request body" to every Gemini turn whose tools
have a schema with a required entry naming no property (common in MCP
tools), or two tools of one name. Probed live on a real Copilot account
with gemini-3.8-flash: required-missing, nested required-missing, required
without properties, and duplicate names were each 400; the same request
with the entry or the second tool gone was 200. Claude Code, Codex and
OpenCode bodies without those were 200. Now such required entries are
dropped and the first of same-named tools kept, for Copilot's Gemini on
chat only; a clean tools array goes byte for byte as it came.
Run: new TestCopilotGeminiTakesToolsFit and the TestCopilotGemini* set
(Linux, wsl-run); red with the call removed by hand (400 back). vet on
darwin, linux, windows and the gateway and gui tests on mote.
Not tried: Gemini tool names with a space, a leading digit or a slash are
also 400 on Copilot (probed); a rename needs the reply mapped back, so it
is left. items given as an array and boolean schemas are 400 too, left.
/docs/snow-cli says how magpie runs Snow CLI (snow-ai) on magpie's
models: profiles/magpie.json copied from the profile the user was on,
with the gateway's /v1, a key naming Snow, Chat Completions and the
picked model, made active and copied to config.json as Snow's own
switch does; ~/.snow or $SNOW_CONFIG_DIR; WSL distros; the user's
profiles left alone, snowcfg.oauth left out, a profile of theirs named
magpie put back; the row listing the user's own profiles' models;
maxContextTokens, maxTokens and supportsVision from the catalog (Snow's
200K/64K defaults otherwise, user edits kept); an own vision model kept
only with its own endpoint and key; basicModel and the small field;
chatThinking and the thinking field; Snow App's sync button; switching
back and `magpie snow default`. Each claim is from internal/agent/
snow.go (its header, the agent's fields, snowProfileFor, snowSynced,
snowOwnVision and the notice).
Linked from each language's Antigravity page; in the sitemap, llms.txt
and llms-full.txt.
Run: the three pages' JSON-LD parsed with node; llms-full.mjs rebuilt;
node --test site/*.test.mjs on the WSL box (magpie-desktop, wsl-run;
mote refuses SSH this session): 115 pass, 0 fail.
Not tried: Snow CLI itself on magpie for this page; it names only what
magpie's source says.
Windows CI compiles the tests and runs none, so both were red there only.
- TestGoneAgentListedToTakeOut wrote Hermes's config to ~/.hermes. On
Windows Hermes's home is %LOCALAPPDATA%\hermes (appdir.HermesHome), so
hermes was never found and "wasn't given the skills". The test now
points LOCALAPPDATA into its sandbox and uses appdir.HermesHome(), as
hermes_mcp_test and targets_gone_test do.
- TestCheckMixedServerEachSide's fake server is the test binary, a .exe
on Windows, and a Windows program is checked on this machine only, by
design (checkSides, TestCheckWindowsServerHere); its distro side also
runs the fake through /usr/bin/env. It is skipped on Windows, saying so.
No product code changes.
Run, at origin/main 4cc20f93c plus this: go test -count=1 -timeout 30m
./internal/library ok whole on Windows 11 (xiaomi-gpu, win-run), the
first green whole-package run there today; -run 'TestGoneAgent|TestCheck'
ok on mote (macOS) and WSL magpie-desktop. Both were red alone on Windows
at origin/main 961427f12 before.
Claude Code's row in Agents > Settings gets a "Commit signature" On/Off menu. Off writes
Claude Code's own key attribution.commit = "" in settings.json; On takes out only what
hid it (attribution.commit "" , attribution false, includeCoAuthoredBy false), so the
default comes back. A custom attribution text is the user's own: the row shows "Your own
text", is disabled, and is never written over. attribution.pr is untouched.
Route POST /api/settings/claude-attribution, S2 in the settings parity test.
Run at the rebased head (on 967fefcec), on mote with a private GOCACHE:
- go test ./internal/agent -run Claude, ./internal/cli -run Parity|Settings,
./internal/gui -run Budget|Script: ok
- GUI claude-attribution.test.cjs + i18n-keys.test.cjs in chromium and webkit: 6/6 each
(en and zh, fake API)
- gofmt -l clean; go vet darwin, linux (-tags nogui), windows: ok
- agent-prefs.test.cjs chromium: 5 of 28 red, identical at base 745d209dc and here
(#6139); not from this change.
Broken by hand: Off writing "x" instead of "" turns TestClaudeAttributionSet red.
Not tried: a real Claude Code making a real commit, the Windows box, the full suite
before the tag (started after it), webkit for agent-prefs.
A gateway key now carries ServiceTier: follow the request (unset),
standard, Fast (priority) or Ultrafast. keyTiered sets the Responses and
Chat request's service_tier to it, over the client's ask and Codex's own
setting; standard takes the tier off and Ultrafast on a bare model no
account lists it on goes as priority. What is sent upstream stays the
providers' own rule (fits, takesTier, fallback), so a vendor with no
service tier is sent none; Anthropic-protocol requests are untouched.
Set with the tier-key action, `magpie gateway-key tier <id> ...`, or the
key row's badge (zh, zh-TW, ja, de strings).
Run (wsl-run, Linux): TestGatewayKeyServiceTier, TestKeyTieredChat,
TestKeyServiceTier, TestGatewayKeyTierCLI green; internal/gui -run
Key|Tier|Caller|Access ok; gateway-key-tier and gateway-key-concurrency
GUI files 40 of 40 in chromium and webkit (serial); go vet nogui for
linux, windows and darwin; gofmt clean. Broken by hand: with the
keyTiered call removed TestGatewayKeyServiceTier fails on 4 rows.
A parallel run of all gateway-key and i18n GUI files had 8 unrelated
timeouts that pass serially (load). The whole internal/cli package hit
the default 10m timeout on this box; the key tests in it pass.
Not tried: a real ChatGPT account, the Windows box, the full suite.
Group.Redact: unset follows each member's provider (Send requests
unmasked), "on" masks as Settings say whichever provider, "off" sends
to every member as written. In a group in a group any "on" wins over
"off"; Settings with masking off still masks nothing. Every route that
reaches a group asks the same way: unredactedRoute (a provider's
fallback groups and provider.GroupsAfter), unmaskedMembers, maskedFor
and MaskRoute, and candidate.unmasked() for embeddings, images, video,
decide and count_tokens. A shared group never carries it (export and
import clear it; an import over a group keeps the old one). A save that
doesn't name it keeps it; "follow" clears it. The Routing group editor
gets a Masking row (menu, no select) in zh, zh-TW, ja, de, reusing core
strings; the Privacy page's unmasked warning counts groups set to off.
Run at the pushed head's parent (rebased on origin/main): gofmt -l, go
vet provider/gateway/gui, go test provider gateway gui cli (gateway ok
1091s, gui ok, cli ok); provider red only in
TestCancelledPluginSignInSavesNothing, open as #5047, green alone x10,
not touched here. group_redact_test.go broken by hand (UnmaskedBy's
on/off cases deleted): 5 tests red. group-redact.test.cjs: 5 languages
x 2 widths x chromium and webkit, 30 of 30; i18n-keys green.
Not tried: a real vendor request through a masked group.
Found groups live only as removal records ({"id","hidden":true}) in
providers.json; removing them one set at a time left every model a
provider listed later to make a new group, and taking the records out by
hand brings the groups back. A user who removes every found group (the
Routing page's select-all Remove, `magpie group rm` of all) has set "none":
DeleteGroups now ends with SetAutoGroups(false) when no found group is left
shown. The removed records stay, found groups on again restores them as they
were. The GUI delete runs through agent.Reseat so an agent set to one is
moved to its model, as the found switch does.
Run on mote: go test ./internal/provider ./internal/gui ./internal/cli
./internal/tui all ok; go vet darwin, windows (provider, gui), linux
(provider) clean; gofmt clean. TestDeletingEveryFoundGroupKeepsThemOff is
red with the new branch disabled by hand ("on true, shown [auto-z]").
Not tried: a real GUI click-through; a hand edit of providers.json (the
records going back is by design, documented); WebDAV sync of a removal.
Full suite not run before the tag.
ZCode's desktop app keeps the names it shows (and the user's renames) in
~/.zcode/v2/tasks-index.sqlite, tasks.title by task_id = the CLI database's
session id. The CLI's own title is the model's guess or "default" (blank
here), so the Context page showed a first prompt where ZCode shows a name.
zcDB.info now takes the task's title when it has a non-default one; the
task's updated_at counts toward the file's time so a rename, which touches
no CLI row, is read again. The index is read once per change of the file or
its -wal, and a failed read keeps the last good one.
Run (mote): internal/sessions whole package ok under a sandbox HOME;
gofmt clean; go vet darwin, linux nogui, windows ok.
Broken by hand: the title overlay off -> new test red (title empty);
updated_at bump off -> the rename step red (stale title).
Not tried: a real ZCode with the CLI db (this machine has only the app's
index, no cli/db), Windows with a moved data folder (ZCodeDataIn is the
existing resolver).
/docs/antigravity says how magpie runs Google's Antigravity app and its
agy CLI on magpie's models: the gateway block (enabled, url, apiKey,
wireProtocol openai) and models.defaultModelId in ~/.antigravity/
settings.json up to 2.29 and ~/.gemini/config/config.json from 2.30;
the user's own gateway, default, list and catalog kept and put back;
restart to take effect; models.listSource pointed at the gateway's
catalog so a model isn't given the app's 200K default window; effort
levels in the app's picker and the row's start level; no Google
sign-in on a gateway, and the commands that go with it; agy following
the app or on its own row (magpie-settings.json, GOOGLE_GEMINI_BASE_URL,
GEMINI_API_KEY, --model, the agy shell function, settings.json and
remote-control left on the user's sign-in); admin_settings.json and
AGY_LLM_GATEWAY_* winning; switching back. Each claim is from
internal/agent/antigravity.go (its header, the agent, the notices) and
internal/agent/agy.go (its header, the shell function's add and drop).
Linked from each language's Cursor Private Inference and Gemini pages;
in the sitemap, llms.txt and llms-full.txt.
Run: the three pages' JSON-LD parsed with node; llms-full.mjs rebuilt;
node --test site/*.test.mjs on the WSL box (magpie-desktop, wsl-run;
mote refuses SSH this session): 115 pass, 0 fail.
Not tried: Antigravity or agy itself on magpie for this page; it names
only what magpie's source says.
The Hermes row's "Other profiles" section picked the model of the same
profiles that now have rows of their own (Hermes · <name>), two controls for
one value. The section is gone; the profile:<name> fields stay in the API
(the row hides them via hermesBot). The profile row's Default picker is noted
as putting back what the profile had before magpie, as the section's was.
The unused "Other profiles" i18n key is removed in every language.
Run (mote): hermes-profiles, hermes-profile-row, i18n-keys GUI tests in
chromium and webkit, 19 of 19 green; hermes-profiles rewritten to assert the
section, the profile: squares and "hermes -p" are absent, in 5 languages at
two widths.
Broken by hand: with the old app.js, hermes-profiles is red (10 of 10).
Not tried: a real Hermes with real profiles, the full GUI suite and Go
suite (GUI-only change, no Go touched), Windows/WebKitGTK.
HeheLi29136651 asked for the Day card's weekly, monthly and total bill. The
read only answered one day, so the plugin had nothing to draw. usage:day
now takes {from: "YYYY-MM-DD" | "all"} beside date: the days from there to
date, with the same totals, agents, models and days list (usageapi.SpanOf;
DayOf is SpanOf with no from). "all" starts at the first day with calls:
the ledger keeps old calls in wider buckets that start before the first
call, so From is taken from the first day the heatmap lists. A from after
date, or a date after today, is an error. Answers carry `from`, which is how
a plugin tells a magpie that has spans from one that ignores the param.
Run, on mote:
- TestSpanOf (week, month, all, all up to an earlier date, day alone,
bad inputs) with calls 300 days back, where the bucket starts before the
first call: red when the From correction is removed (From 2026-01-12 for
a first call on 01-15), green with it.
- TestPluginPageReadsADay gains from "2000-01-01", from "all" and a from
after the day.
- go vet (darwin, windows, linux -tags nogui), usageapi and internal/plugin
tests ok.
- The plugin side (page-day-card 0.3.0) reads it: seen in the sandbox web
instance in chromium and webkit, empty ledger only.
Not tried: a ledger with real calls end to end in the page (the plugin's
test covers the card from a made-up read), and a magpie from before this
change opening the 0.3.0 page (the code path throws "usage:day from" when
there is no `from`, and says to update).
xuanwo's Day card was blank in magpie web behind a reverse proxy. The
frame's CSP named the page's folder under r.Host (https:// and http://),
and a proxy that keeps no Host (nginx's default proxy_pass) hands magpie
its upstream's own address, so the policy named nothing the browser used
and every script was blocked.
A browser's page now names its own origin in the frame's address
(_o=, framed() in pluginpages.js; the frame sends no Referer, its
referrerpolicy is no-referrer, so a Referer can't carry it), and
ownSources adds it (browserOrigin: http(s) only, no user info, a plain
host). The desktop window's scheme is unchanged.
Run, on mote:
- TestPluginPagePolicyBehindProxyHost: red on the old code (policy names
only the upstream host), green now; also checks that a junk _o
(javascript:, user info, a path) adds nothing.
- Real repro: a sandbox `magpie web` behind a Node proxy that rewrites Host
to the upstream's, opened at http://localhost:3495/?view=plugin-day-card
in Playwright chromium and webkit. Before: a broken frame (webkit
screenshot 52KB, no card). After: the card draws in both, the frame's
address carries ?_o=http%3A%2F%2Flocalhost%3A3495.
- go vet (darwin), GOOS=windows and GOOS=linux -tags nogui for internal/gui,
usageapi; go test internal/plugin, internal/usageapi and internal/gui
-run 'PluginPage|Page|Day'; plugin-page*.test.cjs in both engines: 8 of
10 pass. The 2 reds are plugin-page-foreign-error ("own: the frame
opened"), red on origin/main too before this change (#6117).
Not tried: nginx itself (a Node proxy that rewrites Host stands in), Cloudflare
Tunnel, and the desktop window on Windows. The whole GUI suite is started
after the tag.
Gateway mode hides Agents only for magpie web without agents, and the Library
only goes with its built-in plugin. A docker gateway asked to close both. The
new row is a multi-tick menu of the sidebar's pages (Providers stays), kept in
localStorage magpie.navHidden; navHides and offView read it beside gateway mode
and the built-in plugins, and start.js opens Providers when Agents is out.
Main's TestCoreScriptBudget was already 351 bytes over at origin/main
(1,534,153 > 1,533,802); this commit cuts comments in app.js to land at
1,533,596, under it, with no raise.
Run, on wsl-run (xiaomi-gpu), chromium + webkit: nav-pages-hidden 2 pass;
broken by hand (navHides without the new term) 2 red. settings-general went
red on the first draft (the row was 56 tall, the others 51, the button in a
wrapper) and passes now. i18n-keys, i18n-en-no-cjk, last-page, gateway-mode,
sidebar, phone-tabs 0 fail. go test -tags nogui -run TestCoreScriptBudget ok.
Red the same on an origin/main copy (7 and 14 fails, not from this change):
builtins webkit, side-toggle (both engines) and settings-search ("searching
posts nothing": /api/update/using); filed with this push.
Not tried: a real docker deployment, the full GUI suite, the Mac and Linux
apps, sidebar-glide (3 fails under load, base not compared).
A skill row's Update button only bobbed its arrow while the fetch ran, with the
row's actions hidden again as soon as the pointer left, and its toast said
"{name} is up to date" whether the update brought files or not.
- library.Result gets Current: UpdateSkill compares the skill's files, read
whole (not from the stamp memo), before and after the update.
- The button's arrow spins (0.8s linear; a fade under reduced motion) and the
row's actions stay in view until it ends. The toast says "{name} is
updated" or "{name} is already up to date"; a failure is the error toast as
before. No new labels on the row. Strings in zh, zh-TW, ja, de.
Run (WSL magpie-desktop, rebased on origin/main 31f75ddda):
- go test -tags nogui ./internal/library: ok. New TestUpdateSkillSaysWhenNothingChanged
is red with Current never set (current [] twice), green with the change.
- go vet linux nogui, windows, darwin on internal/library: clean; gofmt -l clean.
- New GUI test skill-update-feedback (button spins while the reply is held,
updated / already up to date / error toasts, en and zh): 3 of 3 in chromium
and webkit; red (waitFor timeout) with the old single toast.
- GUI files the change reaches (skill-update-edited, gui-de/ja/zh-tw,
i18n-keys, i18n-en-no-cjk): green in chromium and webkit.
- found-skill-pick-remove, inner-scroll-contain and library-loading are red
the same on origin/main 961427f12 (#4097/#5013, #4689, #5997 are open).
Not run: go test of internal/gui (still going after 40 min on the shared WSL),
the whole GUI suite, a real GitHub update of hugohe3/ppt-master (no
network fetch in a sandbox HOME was tried).
TestPluginImportCarryOnOffRemove was red on Windows only (Windows CI
compiles tests and runs none). The import replaces ${CLAUDE_PLUGIN_ROOT}
with the plugin's folder as written, so "${CLAUDE_PLUGIN_ROOT}/scripts/lint.sh"
becomes "C:\...\acme-kit/scripts/lint.sh", as Claude Code itself expands
it. The test wanted filepath.Join's all-backslash path, and looked for it
unescaped in raw JSON, where every backslash is doubled. It now expects
root + "/scripts/lint.sh" (and bin/db, and the data folder) JSON-escaped.
No product code changes.
Run: go test -count=1 -run TestPlugin ./internal/library ok on Windows 11
(xiaomi-gpu, win-run), mote (macOS) and WSL magpie-desktop, at origin/main
961427f12 plus this. Before it, red alone on Windows at the same base.
Not changed: TestGoneAgentListedToTakeOut and TestCheckMixedServerEachSide,
still red on Windows (#4115).
The hover card sat with its box edge at the name's left, so its text
started 11px (the card's padding) right of the label. show() now
shifts the card left by its padding, so text and name share an edge.
Editor fields, Routing's .hint-row and the account-switch hint go
through the same function. A row with no name keeps the card's edge at
the row's edge.
settings-hints asserts the text's x against the name's: red on origin/main
(254 vs 243 at 1100, 35 vs 31 at 420), green with the change, en/zh/zh-TW/
ja/de at 1100 and 420, chromium. Ran settings-hints, editor-hints,
provider-prefs-layout, settings-lines-wrap, sign-in-moves, searcher-pick,
i18n-keys in both engines: the only reds are the ones origin/main has
(editor-hints in WebKit; settings-hints ja/de at 420, #6107, #6073).
Not tried: WebKitGTK.
Settings > Network has a new "App updates" row under the plugin proxy row:
Same as above (default, today's behaviour), Direct, Custom or a saved proxy.
It is Settings.UpdateProxy / UpdateProxyCustom, kept per computer
(KeepOwn), left out of auto-backups with the other proxies, and listed in
the saved proxies' "in use" check, so a saved proxy used by updates can't be
deleted. update.proxied() wraps its transport: a request that names no
proxy of its own (magpie update --proxy does) takes the setting; unset, it
follows the global proxy as before. A value a user already set is never
changed.
Per-model proxy inside one provider is not added: a proxy belongs to a
provider, an account or a key, so a provider can't split by model without a
second provider on the same URL (noted in providers-accounts.md).
app.js stays within TestCoreScriptBudget by cutting five long comments, no
raise.
Run (Linux via wsl-run, rebased on origin/main 961427f12): go test of
internal/update, settings, settingsapi, backup and internal/gui (-tags
nogui) incl. TestCoreScriptBudget and the settings-keep guards; new
settings-update-proxy.test.cjs in chromium and webkit, 5 languages, 1100
and 420px; gofmt; go vet for darwin, windows and linux (nogui) on the
touched packages.
Broken by hand: removing the updateProxy wrapper turns
TestUpdateTakesItsOwnProxy red.
GUI reds named: settings-proxy-auth "optional proxy credentials" webkit
(expected 'name', actual ''; red on origin/main too, #5562, seen again);
saved-proxies "webkit de 420px" stopped passing with the third row because
the add form's Save button sat 1px below a 760px window and WebKit's
scrollTop stuck at 214 (#6130); that test's window is now 900px high.
Not tried: a real update behind a real proxy, the Windows/macOS apps,
WebKitGTK.
askWingetOwns follows the links of the rtk path it is given, but compared
it with winget's recorded install folder as written. A folder reached
through a link or a junction (macOS's /var is /private/var; a junction
over a Windows profile folder) never matched, so an rtk winget installed
read as not winget's and got no "winget upgrade" upgrader.
TestRTKWindowsRelease's "recorded" step was red on mote for that reason;
its own expected path was also the link, not the file it leads to.
Now the record's folder is tried with its links followed too, and the
test expects the followed path.
Run, at this head (origin/main 961427f12 base):
- go test -count=1 -timeout 30m ./internal/library: ok on mote (macOS),
ok on WSL magpie-desktop.
- Windows (xiaomi-gpu, win-run), whole package: three reds,
TestGoneAgentListedToTakeOut, TestCheckMixedServerEachSide and
TestPluginImportCarryOnOffRemove. All three fail the same way alone at
origin/main 961427f12 on that box; filed in #6065 and #4115.
- Broken by hand: without the askWingetOwns change, -run 'TestRTK|Winget'
is red on mote at "recorded: upgrader ... want winget upgrade".
Not tried: a real winget install behind a junction.
RealZeroP27 (switch only, requests not through magpie, ChatGPT app on
macOS 27.2.1): when the account ran out and magpie signed Codex in to the
next one, the app showed "ChatGPT 遇到了问题 请重试" and only a manual
restart cleared it.
Cause: magpie did end the app-server (a switch off a used-up account
always does), and the signed-in ChatGPT app fails on the one it starts
next, a fault in the app (codex_app_crash.go, #4550). magpie reopens the
app on that page only with "Restart the Codex app" ticked, which ships
off (15acba534, Michael25651150), so the page stayed.
Now an end made for a used-up account (a switch off one, or the takeover
in; crashSpent) has the app quit and opened once on that page whatever the
tick says: the app was greyed on that account already and the page is all
its window shows. Every other end (route change, switch among accounts
with room) still waits for the tick. The page check (no composer, no turn
or request since) is unchanged. The Windows reopen when no app-server came
back (codexAppGotNone) is unchanged and stays tick-gated.
This partly reverses 15acba534's gate for the used-up case; a product
call. A quit of a working app is still never done unasked.
Run on mote at this head:
- go test -count=1 ./internal/provider ./internal/agent: ok.
- go vet ./internal/provider on darwin, GOOS=windows, GOOS=linux nogui;
gofmt -l clean.
- TestCodexAppReopenedAfterASpentEndUnasked (switch, takeover) is new;
TestCodexAppNotQuitUnasked now ends for a route change.
Broken by hand: spentEnd forced false -> the new test red in both subtests.
Not tried: the real ChatGPT app, the Windows box. No GUI file touched.
/docs/cursor-private-inference says how magpie runs Cursor Private
Inference, the Cursor build whose agent runs locally, on magpie's
models: CURSOR_LOCAL_AGENT_BASE_URL (the gateway's /v1) and
CURSOR_LOCAL_AGENT_API_KEY set for the user (launchctl, the registry's
Environment, environment.d), none of Cursor's files written; the build
found by its product.json, and on Linux as its AppImage; the row's
start command for a shell; the picker listing what its key is shown,
the Models button, api_types and limits from /models; effort picked on
the row and asked by the gateway; quit and reopen, the Mac's variables
set again at magpie's start; Open configuration and a model's settings
coming first; clearing both to switch back. Each claim is from
internal/agent/cursorlocal.go (its header, cursorLocalRoots,
cursorLocalOn, KeepCursorLocalEnv, cursorLocal, noticeCursorLocal).
Cursor CLI got no page: its row picks only Cursor's own models.
Linked from each language's Pi page; in the sitemap, llms.txt and
llms-full.txt.
Run: the three pages' JSON-LD parsed with node; llms-full.mjs rebuilt;
node --test site/*.test.mjs on the WSL box (magpie-desktop, wsl-run;
mote refuses SSH this session): 115 pass, 0 fail.
Not tried: Cursor Private Inference itself on magpie for this page; it
names only what magpie's source says.
The Codex app's "generate commit message" is an ephemeral side turn
(thread_source commit_message; pull_request_message and
commit_pull_request_message likewise) whose answer must be {"message"}
or {"title","body"}. A model behind the Chat or Anthropic API never sees
that schema and answers in plain text, which the app turned down, so the
button failed for Codex on a magpie model. Titles, descriptions,
summaries and predictions were wrapped for this reason; these three kinds
were not. codexCommit now routes them through codexShaped: commitJSON
keeps the model's own JSON when it gave every required string, else makes
the object from its text (subject cut to the schema's 72 characters,
title from the first line, body from the rest).
Run (wsl-run, Linux): TestCodexCommitMessageOnMagpieProvider,
TestCommitJSON, TestCodexSide*, TestCodexSummary* green; go vet for
linux, windows and darwin; gofmt clean.
Broken by hand: with codexCommitsTo returning "" the new test is red
(the plain text "Fix login redirect loop" goes out unwrapped).
Not tried: the real Codex app against magpie (the request shape was read
from the app.asar on the Windows box, not captured); the full suite.
usemagpie.ai/files/<tag>/<name> answered every Range with 206 and
"Content-Range: bytes NaN-NaN/<size>". R2 returns the served range with all
three keys (offset, length, suffix), the unasked ones undefined, and files.js
took `"suffix" in range` as "a suffix range", so size - undefined was NaN.
The same on the real bucket before the fix: bytes=1024-2047, bytes=-100 and
bytes=100- all gave NaN-NaN. files.js now reads a key only when it is a
number, and a range it can't state goes to GitHub's own address.
The updater resumes with "Range: bytes=<have>-" and accepts a 206 only when
Content-Range starts at <have>; any other 206 fell to the default case and
ended the update with "download ...: 206 Partial Content" (28 times in three
days for the reporter). It now throws away what was kept and asks once for
the whole file, as it already does for a 416.
Run (mote, at this tree): node --test site/*.test.mjs 115 pass; go test
./internal/update ok; go vet darwin/linux/windows ./internal/update clean;
gofmt -l clean. r2stub.mjs now returns the range as R2 does (undefined
keys); the new files.test.mjs assertions (1-3, -100, 0-, 8-99) fail on the
old files.js with "bytes NaN-NaN/10", and TestDownloadBadContentRangeIsFetchedWhole
fails on the old update.go with "206 Partial Content". Not tried: a real
auto-update through the deployed worker (checked with curl after deploy).
`magpie library mcp add` handed env=A=B and timeout=30 to the program as
arguments (exit 0, written into the agent), and refused header= on a URL,
so a token-bearing remote MCP needed a hand edit of library.json.
SplitServerWords takes header=K=V (or K: V), env=K=V, timeout=SECS,
agents= and --local out of the line; words after -- are the program's.
A setting-looking word magpie doesn't know (headers=, envs=) is refused;
header= on a command or env= on a URL is an error. New: mcp set <name>
header=|header-=|env=|env-=|timeout= keeps the rest of the server, and
mcp show <name> prints it as JSON. Header names match without case and
keep the stored spelling.
Run (wsl-run, -tags nogui): TestSplitServerWords, TestSetServerKeepsTheRest,
TestLibraryMCPHeadersEnvTimeout, all of internal/cli and internal/library
ok; GOOS=windows and darwin go vet of both packages; gofmt clean. The new
CLI test fails on the old code by construction (env/timeout in Args). Not
broken by hand separately. Not tried: win-run, the GUI (its save already
sends headers; a stale open editor over a hand edit isn't addressed), the
TUI line (still ServerOf), the other agents' encoders for timeout.
Not run: full suite.
magpie-muse-auth's accounts listed no image model, so Settings > Images and
generate_image could not use Muse. Meta's image generation page: POST
/v1/responses, model muse-image-1.0, the picture in image_generation_call.result.
The plugin signs /v1/responses only, so that is the path used; JSON and event
stream answers are both read. Video: Meta's API has no video generation.
UNTESTED against a real Muse account (none available); built from Meta's docs
and a fake plugin. Additive: a failure only affects the muse-image model.
Run at the pushed head (rebased on aebcfb93f): gofmt -l clean; GOOS=darwin and
GOOS=windows go vet ./internal/gateway clean (wsl-run); go test -run
'Draw|Muse|Image' ./internal/gateway ok, including TestMusePluginDraws (json
and stream). Broken by hand: before the draw dispatch was wired the test was red
(502 via the chat path). Not run: full suite, GUI tests, real Muse sign-in.
aiandcloud asked for GMI Cloud. It is now a preset in Add: OpenAI chat
completions at https://api.gmi-serving.com/v1, the key as Bearer, its model
list read from /v1/models, the gmicloud icon the GUI already ships, and its
console as the keys page. Only Chat is set: GMI's quickstart and LLM API
reference (docs.gmicloud.ai) name no Responses or Messages endpoint. READMEs
list it; the icon is copied to the site.
Run: TestGMICloudPreset (preset fields, no Responses or Anthropic URL, an
import at the host becomes the preset) and go test ./internal/provider -run
'Preset|Import|Icon' on Linux (wsl-run); gofmt; GOOS=windows go vet of
internal/provider. No network in the test.
Broken by hand: not run (without the preset FromPreset errors).
Not tried: no GMI key, so no real chat call or model list; mote's disk is
full, so no macOS run; no full suite before the tag.
Go on macOS and Windows verifies only against the system's store and
ignores those variables, so behind dev-sidecar (a local HTTPS-inspecting
proxy) with its root in a bundle the user pointed them at, the update
check and download failed with "unknown authority" while other programs
took the root. netproxy.TrustEnvRoots adds the certificates those
variables name to the system's roots (RootCAs from SystemCertPool, so the
platform verifier still runs) and the updater's transport uses it. Nothing
is turned off: a server signed by no trusted root is refused as before,
and the download is still checked against the feed's SHA-256 (and the
signer, on macOS). Only the updater takes it; vendor requests are
unchanged (sibling, to file).
Run: TestTrustEnvRoots and TestUpdaterTrustsSSLCertFile on Windows 11
(xiaomi-gpu, win-run); netproxy and update packages whole on WSL Ubuntu;
GOOS linux and darwin go vet of both packages clean; gofmt clean.
Broken by hand: with the TrustEnvRoots call taken out of proxied(),
TestUpdaterTrustsSSLCertFile is red on Windows ("signed by unknown
authority"); the same Windows run shows a plain transport refusing the
CA with SSL_CERT_FILE set, so the cause is confirmed there.
Not tried: dev-sidecar itself, a real macOS run (mote's disk is full),
the whole suite, the GUI.
Hermes reads skills/ and mcp_servers from each profile's own home, but the
Library only reached the connected profile. Every other profile is now an
agent row hermes#<name> ("Hermes · <name>"), like omp#<name>: its model pick
stays, and the Library target points at that profile's config.yaml and
skills/. No row is listed while Hermes itself is gone (CLIMissing). Tool
off-lists (tools.exclude) work on the rows too. The GUI says "starts on the
model picked here" for them as for Hermes.
Run: wsl-run go test ./internal/agent ./internal/library (ok, full packages);
GUI hermes-profile-row, hermes-profiles, omp-profile-connect, i18n-keys in
chromium and webkit, five languages; gofmt; go vet GOOS=darwin and windows
for agent and library.
Broken by hand: without hermesProfileAgents in onMachine,
TestHermesProfilesAreAgents is red; without the hermes# branch in targetOf,
TestHermesProfilesGetTheirOwnLibrary is red; without the app.js change the new
GUI test is red (10 of 10).
Not tried: a real Hermes with real profiles, Windows via win-run, the full
GUI suite, the internal/gui Go package (wsl lacks gtk4, build fails there).
/docs/pi says how magpie runs the pi coding agent on magpie's models:
the provider magpie in models.json (gateway, a key of its own, the
models) in ~/.pi/agent or $PI_CODING_AGENT_DIR (~ expanded, a relative
path ignored); defaultProvider and defaultModel in settings.json; each
model on its provider's native API (Responses for GPT and ChatGPT,
Messages for Claude), forceAdaptiveThinking, reasoning, contextWindow,
images and maxTokens, a typed maxTokens kept; defaultThinkingLevel held
to Pi's levels; sendSessionAffinityHeaders and why (usage and recorded
conversations per session), a user's own value kept; enabledModels
added to, never created; extensions/magpie.ts with the decision and
image models for codemode; the .before-magpie copies put back byte for
byte when unchanged; WSL; magpie pi <ref> and magpie pi default. Each
claim is from internal/agent/agents.go (piIn, piDir, piLike, the pi
provider block, piModelJSON, beforeMagpie), pi_extension.go and the pi
row in internal/agent/wsl.go; the UI label from i18n.js. Linked from
each language's Kimi Code page; in the sitemap, llms.txt and
llms-full.txt.
Run: the three pages' JSON-LD parsed with node; llms-full.mjs rebuilt;
node --test site/*.test.mjs on the WSL box (magpie-desktop, wsl-run;
mote refuses SSH this session): 115 pass, 0 fail.
Not tried: Pi itself on magpie for this page; it names only what
magpie's source says.
8a3dbf023's accounts-list sign-in line had {agent} twice in de and ja, and the
Usage plugin's model-price line had {model} twice in ja. gui-de and gui-ja
'has every zh string, with its placeholders and tags' were red on origin/main
5c02be05b (found while running the balance change's GUI files).
Run: gui-ja, gui-de, gui-zh-tw, i18n-keys via wsl-run, 13 pass 0 fail.
The balance a user types to calibrate a key (GUI pill, keyownbalance, magpie
provider key-balance) was refused below 0 with 'a balance is an amount from 0',
while the card itself already shows an overdrawn key as ≈-$1.84 after spending.
So a user whose vendor page said -1.84 could not type what it says. The bound is
now -1,000,000 to 1,000,000 in both currencies, in the GUI, the CLI parser and
checkOwnBalance (which also guards what is read from disk). A sign may come
before the currency's (-$1.84, -¥5) as well as after it. Credit that expires
stays above 0 (a grant is never negative). Refusal text and its zh, zh-TW, ja, de
strings say the new range.
Run (wsl-run, mote's disk is full): go test -run Own ./internal/provider green;
red on the old checkOwnBalance/ParseOwnBalance (5 parse cases fail). Not tried:
a real overdrawn key; macOS/Windows.
From the 11-11 reds: f5e1b1091 ran `cli -run ContextCap` and left the CLI
parity, GUI keep and usage-column tests red (#6102 to #6104); e0cadc312's
memory routes had no parity entry; and the dsh round's fixed 300 read 421
on Windows (#6118).
TestDshRoundWithNothingChangedBuildsNothing held the round to a fixed 300
allocations, and Windows CI read 421 with the skip working. It now settles
the route over 2 models and over 402, and fails when the larger is over
1.5x the smaller + 50: reading the files differs by system, building the
catalog grows with the models.
Broken by hand (`if false && r.done && key == r.last` in dshRounds.once):
red on Windows, 78375 allocations over 402 models against 1780 over 2.
Run at 8fe720453 + this: -run TestDshRound -count=3 on Windows (ok);
internal/agent whole on WSL (ok, 736s).
f5e1b1091 gave `magpie model context-cap` a longer argument list with the
old padding, so its description started at column 57 against the others'
49 (TestModelUsageAlignsEveryDescription, TestModelUsageLinesUpItsDescriptions).
It also added Settings.ContextCapAll, which TestSettingsSaveKeepsWhatItDoesNotSend
saw unset; it is now set beside ContextCap, both kept by POST /api/settings
(the test passes, so the save already keeps it). #6102's parity entries came
in 150646bd0.
Run at 8fe720453 + this: internal/cli whole on Windows (ok, 364s) and on
WSL (ok, 105s, /mnt/c taken off PATH: #5234); internal/gui -run TestSettings
on WSL (ok); gofmt.
Not tried: the GUI browser suite (no GUI file changed), macOS (mote is down).
npm's human check answers 200 with a page that isn't the package's entry, so the
README showed "npm didn't answer: unexpected end of JSON input". The community
repo's tagged workflow now keeps each listed plugin's README at readmes/<key>.md
on dist (plugins repo, pushed), usemagpie.ai serves it at /api/plugins/readme
(edge 10 min, jsDelivr stands in for raw), and ReadmeIn asks it (5s an address,
MAGPIE_PLUGIN_CATALOG=off skips) before npm / GitHub; an installed plugin's folder
still comes first. A page that isn't npm's entry now says npm may be asking for
a human check. Only the plain README.md is kept: a language README is read from
npm/GitHub only when the copy is missing.
Run: go test ./internal/plugin ok (wsl); site/worker.test.mjs 40 pass (wsl).
Red on old code: TestReadmeFromTheKeptCopyBeforeNPM fails with "unexpected end of
JSON input" and npm asked 2 times; worker test red with the route removed.
tagged.mjs run on wsl against real GitHub: 369 plugins, 369 READMEs, a second run
re-read none. Not tried: the Actions run itself, the GUI (no GUI file changed).
The built-in agy agent (Antigravity CLI) is the first built-in agent a
community agent plugin serves, as the retired subscriptions moved onto
provider plugins. While @magpie-community/agent-agy is installed and on,
magpie's agy is the plugin's: the built-in leaves the list (here and in
WSL), its id and aliases are the plugin's, and what the built-in wired
is handed over. Turned off or removed, the built-in is back. Nothing is
forced yet; the forced install and the built-in's retirement come once
the plugin is on npm and a real run with it is on record.
The plugin (plugins ebcff866, 0.2.0) follows the built-in since
0cc91af3d: its config is magpie's own magpie-settings.json, handed to
agy with --settings, agy's settings.json is only read, and
remote-control runs as agy is.
What an agent plugin can say now (agentplug; docs/reference.md and the
site's plugins pages, en/zh/ja, and llms-full.txt):
- base: the agent's own settings file, read for the user's own model
and passed to connect and own; needs launch.args with {config}, and
stepping out removes magpie's config file whole;
- launch {env, model, args, plain}: `magpie start <id>` and the shell
functions (posix, fish, PowerShell, a WSL distro's) put args before
the model flag, and run a plain word or flag as the agent is;
- own({config, base, model}), effort, wsl, aliases.
Moving over (plugged_moved.go): agentMovers names agy's package;
agyHandover gives back a settings.json an older built-in wired (Sync),
then makes magpie-settings.json the plugin's stash, so the plugin's
agent reads as connected and stepping out removes the file.
Run (mote, macOS 27, Go 1.26.8) at fe8c05e0c, the base before the last
rebase:
- go test internal/agent (507s), agentplug, sessions, edit, update,
plugin: ok.
- internal/cli and internal/gui: red only on main's own reds, the same
at origin/main 8fe720453: TestModelUsageAlignsEveryDescription and
TestModelUsageLinesUpItsDescriptions (#6104),
TestSettingsSaveKeepsWhatItDoesNotSend (#6103), TestCoreScriptBudget
(#6116, filed now).
- GUI, both engines, and site node --test: agy-effort, agy-launch,
library-rtk-agy, gui-de, gui-zh-tw, i18n-en-no-cjk, i18n-keys,
plugin-page-foreign-error, site/*.test.mjs: 114 pass.
- vet: macOS, GOOS=windows, Linux in WSL (-tags gtk3); gofmt clean.
- The shell functions with a config path holding a space: bash and zsh
on mote, PowerShell on Windows (win-run), bash in WSL.
- Broken by hand: TestAgyPlugin red with Args, Plain or the file's
removal taken out.
At 20d807d92 (rebased on 8fe720453): vet (macOS, windows) ok, agentplug
and internal/agent -run 'Agy|Plugged' ok, agy-launch and i18n-keys
pass; plugin-page-foreign-error is red there and at plain origin/main
8fe720453, from that commit (#6117), not this change.
Plugins repo: bun test packages/agent-agy 4 pass.
Not tried: fish (on none of the machines); a real agy run with the
plugin at 0.2.0 (the 0.1.0 design ran for real in a sandbox HOME, the
settings.json one this replaces); Windows and WSL agy with the plugin;
an install from npm: @magpie-community/agent-agy isn't on npm yet, so
until its first publish no user is moved.
A first build of the request rows runs on any upgrade that changes
internal/usage (the cache key hashes its source) and on a first install.
Each prefetchEach worker holds a whole file's calls while it reads, so
eight of them stacked up in the cold peak.
Measured on mote with a copy of the owner's real accounts and history
(HOME ~/r2278/acct, requests-v1.bin removed before each start), five
cold starts of each build alternated, physical footprint peak at 12s
(vmmap):
eight workers: 248.3 259.1 252.1 257.5 276.1 MB (mean 258.6)
four workers: 243.3 230.2 232.6 245.2 246.7 MB (mean 239.6)
Every four-worker run is below every eight-worker run. The build takes
the same time: the gctrace burst ends at 5.0/5.0/5.6/5.0/6.2s against
5.0/4.8/4.9/5.0/6.4s, and CPU in the first 12s is 6.7-7.6s for both.
The cache written is the same size (71,523,711 bytes) for both.
TestPrefetchEachMakeIsAReadersOwn counts four readers' makes now.
Run at this head (rebased on 8fe720453), on mote: gofmt -l clean,
go test ./internal/usage ok. go test ./internal/gui: red only in
TestCoreScriptBudget (#6116) and TestSettingsSaveKeepsWhatItDoesNotSend
(#6103), both red on main at 8fe720453 and filed; this change touches
no GUI file.
Not run: the full ./... suite.
nivekxft opened Day card in magpie web and got "This page stopped
working" with "Failed to read the 'localStorage' property from 'Window':
The document is sandboxed and lacks the 'allow-same-origin' flag", often,
until a refresh. Neither magpie nor Day card's files read storage (grep of
both), so the SecurityError comes from a script put in the frame (an
extension's, on some loads), and pagebridge.js reported it as the page's.
a3900e46f let go of the "Blocked a frame" kind and extension stacks; this
one's message is the storage kind, which foreign() did not match.
foreign() now also lets go of a SecurityError that names storage or
cookies with "sandboxed"/"allow-same-origin" (Chromium) or WebKit's "The
operation is insecure". The page's own errors still break it.
Run (wsl-run, magpie-desktop): plugin-page-foreign-error.test.cjs with two
new cases (localStorage read uncaught, sessionStorage read rejected), both
engines green; red on the old pagebridge.js (storage and storageRejected,
via MAGPIE_BRIDGE). plugin-page and plugin-page-idle: 10 of 10 green in
chromium and webkit. Not confirmed: which script reads the storage (the
reporter gave a screenshot, no stack; extension is inferred). Not tried: a
real extension, Go tests, vet (JS-only change).
ANTHROPIC_DEFAULT_<TIER>_MODEL, ANTHROPIC_SMALL_FAST_MODEL,
CLAUDE_CODE_SUBAGENT_MODEL and the auto mode model stayed
"claude/claude-haiku-4-5[1m]" after the main model became an alias. A tier
variable can't be an alias of itself, so on this computer's own file a
Claude model of Claude Code's own subscription is now written as
Anthropic's bare id (provider.ClaudeBare): through magpie that id goes to the
same subscription (OwnRoute), and Anthropic knows it. Haiku has no 1M window,
so its [1m] mark is taken off. Read back, a bare Claude id is the
subscription's ref (ClaudeUnbare), so every field, the tiers' follow logic
and the gateway's stand-in read it as before.
Old files: a settings.json written with the prefixed ids is rewritten by the
next Sync (the check that already brought dashed spellings up to date), for
every user. Models of other vendors or a relay keep their ref: Anthropic has
no id for them. A distro's file and the claude-magpie launch file keep refs.
Run (wsl-run, Ubuntu, at the pushed head after rebasing on origin/main):
internal/agent -run "Claude|Tier|Folder" ok; internal/provider ok;
gofmt -l clean; go vet -tags nogui for linux, darwin and windows clean.
Before the rebase, the whole internal/agent package had two reds:
TestFolderVarsAreListed (BUN_INSTALL, fixed on main since) and
TestGrokInstalled (WSL2 binfmt, already #3548). Neither touches this change.
Real claude 2.1.316 with a fake upstream showed Desktop's
PROVIDER_MANAGED_BY_HOST sends the tier env as written, so prefixed ids go
to Anthropic.
Broken by hand: with ClaudeBare turned into a no-op,
TestClaudeModelVariablesAreAnthropicsOwnIDs fails on the bare ids and on the
Sync rewrite.
Not tried: the real Claude Desktop Code tab, a WSL distro user, real
accounts through magpie end to end. A non-Claude model or a relay-served
Claude model still has no Anthropic id, so its tier variable keeps the ref
and Desktop's Code tab still can't use it.
/docs/kimi-code says how magpie runs Kimi Code (Moonshot's kimi CLI)
on magpie's models: the provider magpie (type kimi, base_url, api_key)
and one [models."magpie/<provider>/<model>"] table per model in
~/.kimi-code/config.toml ($KIMI_CODE_HOME), default_model set to the
pick; display_name and max_context_size; thinking with support_efforts
and default_effort, always_thinking, image_in, tool_use and
max_output_size, a value set by hand kept; the old kimi-cli's ~/.kimi
($KIMI_SHARE_DIR) only where there is no ~/.kimi-code; Kimi Code 2.x
reloading its config as it runs and its app's Settings › Providers,
kimi-cli on restart; the user's sign-in, providers, models and provider
keys kept, their default put back; WSL; magpie kimi <ref> and magpie
kimi default. Each claim is from internal/agent/kimi.go (kimiIn,
kimiModelTables, kimiProvider, the notices) and the kimi row in
internal/agent/wsl.go. Linked from each language's Qwen Code page and
the Kimi provider page; in the sitemap, llms.txt and llms-full.txt.
Run: the three pages' JSON-LD parsed with node; llms-full.mjs rebuilt;
node --test site/*.test.mjs on the WSL box (magpie-desktop, wsl-run;
mote refuses SSH this session): 114 pass, 0 fail.
Not tried: Kimi Code itself on magpie for this page; it names only
what magpie's source says.
A Remote magpie's editor has a new switch, Use its skills and prompts.
The remote serves its Library at GET /v1/magpie/library (local or shared
callers; a held key is refused; no MCP servers, which the MCP switch
already covers; borrowed items are never passed on). The client fetches
it every 10 minutes and once on switching on, and adds each skill and
prompt set as remote-<id>-<name>, recording a hash of what it wrote.
It only changes what still matches that hash: a skill or set of the
user's by the same name, one the user edited, and one the user removed
stay as they are; an update or drop moves the old copy to the backups;
switching off takes out what is unchanged. The first set becomes active
only when no prompt is active.
Run (wsl-run, magpie-wt/remote-library at the pushed head after rebase):
- go vet -tags nogui ./..., GOOS=windows and GOOS=darwin vet of library,
provider, gateway, gui: clean. gofmt -l clean.
- go test ./internal/library ./internal/provider: ok. internal/gateway:
TestReadOnlyKeyEveryRoute named the new route (fixed here, now ok);
the package then ran to the end of a 30m wsl timeout on a slow box.
- TestBorrowRemoteLibrary and TestBorrowedSkillGoesWithTheRemote: broke
by hand (the user's-own-skill guard turned off), TestBorrowRemoteLibrary
went red with "kept []", restored.
- GUI remote-magpie.test.cjs (chromium + webkit): its new assertions for
the switch pass, but the file is red on main before this change
(#6099: line 160 and a layout assertion), so they ran in a copy with
those two assertions relaxed. i18n tests ran in the same call.
Reds not mine: #6099, #6103 (TestSettingsSaveKeepsWhatItDoesNotSend).
Not tried: a real two-machine run; internal/gui and gateway full
packages to completion on wsl; Collect/Put (sync backups) still carry
borrowed items as ordinary ones.
The Agents row showed a plain black square for OpenMausBot. Its icon file
(OpenMausBot's build/icon.svg, a black tile with a silver cursor, Apache-2.0,
byte-identical to upstream at main) was named openmausbot.svg, and app.js
draws an SVG without the -color suffix as a one-tone mask: the black tile
became a black square. Renamed to openmausbot-color.svg, which app.js loads
as an image (as Antigravity, Cherry Studio).
TestEveryClientHasNameAndIcon now fails a client whose SVG holds gradients
but isn't named -color; it is red on the old name (checked by hand), green now.
Run (wsl-run, magpie-desktop, nogui tag; mote's disk is full):
- go test ./internal/agent: ok. go test -run 'Icon|Client' ./internal/gui: ok.
The full ./internal/gui run hung 600s in TestGatewayMode (gatewaymode_test.go:63)
on WSL, a test this change doesn't reach; not filed or investigated.
- go vet on linux (nogui) ./internal/agent ./internal/gui and windows ./internal/agent: ok.
- gofmt -l: clean.
Not tried: the live GUI in chromium/webkit; the full suite.
Protocol (HulaSup's question): magpie writes OpenMausBot an engine of its own
as a Claude endpoint (driver claudeAgent, ANTHROPIC_BASE_URL), Anthropic messages.
A New API relay with Chat, Responses and Anthropic URLs has channels per
API. Claude Code's /v1/messages turn for gpt-6.1-sol was relayed on the
Anthropic URL (usable lists the client's own API), where the relay has no
channel for a GPT and answers 503 "No available channel for model ...
under group ..." (or 当前分组 ... 无可用渠道). wrongEndpoint only knew 4xx
words, so the 503 reached Claude Code, and only removing the Anthropic URL
helped.
catalog.NoChannel recognises that 503 (and 404) in English and Chinese.
Server.noChannelElsewhere, used in passthrough and forwardTranslated next
to wrongEndpoint, marks the model unfit on that API and asks the next one
usable gives, but only when p speaks another API; with none left the
relay's word is returned and nothing is remembered. Claude models still go
to Anthropic: the rule fires only on the refusal.
Run (wsl-run, magpie-desktop): new TestNoChannelOnOneAPIGoesToTheNext
(fake New API: 503 bodies in Claude and OpenAI shapes; GPT goes to Chat on
the first ask and is not asked on Anthropic again; Claude stays on
Anthropic) and TestNoChannelWithNothingElseIsTheError, red on the old code
(503 reached the client), green with the fix; catalog.TestNoChannel;
TestToolsThatNeedResponses* siblings; go vet catalog+gateway; go test
catalog, gateway, provider (see push note). The 503 body is New API's as I
know it from its source, not captured from a live relay.
Not tried: a real New API relay; windows/darwin vet; GUI (no GUI change).
A Claude model whose Anthropic channel is briefly down is remembered off
Anthropic until magpie restarts.
In a provider editor's Advanced, .prefs .val's max-width: 60% read as the
least in the editor's auto grid track, so the 关闭/开启 buttons stacked. And
settingshints.js placed its card from .who's rect, which the editor lays out
as display: contents (no box), so "Warm up now"'s card showed at the window's
left edge. The val is 100% there; the card uses the name's rect.
Run (wsl-run, Linux, Playwright 1.62): new provider-prefs-layout.test.cjs,
chromium and webkit, 1100 and 420, en/zh/zh-TW/ja/de: 20 of 20 red on the old
code ("the buttons are stacked"), green with the fix. Reverting only the
settingshints.js change turns the card checks red ("the card is at x=16").
Also ran settings-hints, provider-prefs, warm-now, warm-at-own, warm-at-times,
claude-lean-prompt-setting, claude-tui-setting, editor-hints: the reds are the
same on origin/main 612dc1956 (settings-hints ja/de at 420; WebKit's
ResizeObserver pageerror in provider-prefs and warm tests), filed as issues.
Not run: the full GUI suite, Go suite (no Go change), a live app.
TestEveryRouteHasACommandOrIsNamed was red on main again: f5e1b1091
added POST /api/settings/context-cap-mode, which `magpie model
context-cap all|own` does, and POST /api/memory/promote, skill and
decline came with no command or notYet line (stage 3, the library).
Run on mote at a3900e46f plus this: go test -run
TestEveryRouteHasACommandOrIsNamed ./internal/cli/ ok; without it the
test names the four routes. The rest of internal/cli is red on main for
TestModelUsageAlignsEveryDescription and its sibling (#6104), not this.
onducoder opened Day card in magpie web (0.1.3702) and got "This page
stopped working" with "Failed to read a named property 'origin' from
'Location': Blocked a frame with origin "null" ..." logged as
plugin-day-card.open. magpie and Day card's files never read a window's
location; the error came out of a script in the frame (an extension's
inpage script, or a library probing parent/top) and pagebridge.js
reported every error and rejection in the frame as the page's own.
pagebridge.js now lets go of two kinds: an error whose stack or file
names chrome-/moz-/safari-web-extension://, and a SecurityError of the
"Blocked a frame with origin" (Chromium) / "Sandbox access violation"
(WebKit) kind. The page's own errors still break it.
Not confirmed: the reporter gave no stack, so the extension cause is an
inference; Day card's page (0.2.1) opened, with every background tile
clicked, raises nothing in Chromium. WebKit gives a sandboxed page's
uncaught error only as a bare "Script error." with no error object, so
there only rejections can be told apart.
Run (wsl-run, magpie-desktop): new plugin-page-foreign-error.test.cjs in
chromium and webkit, 3 of 3 green; red on the old pagebridge.js in both
(the exact `parent.location.origin` read, uncaught and as a rejection,
and extension stacks). plugin-page, plugin-page-idle: green. Not tried:
a real extension, Go tests (internal/gui needs webkitgtk on that box),
darwin/windows vet (JS-only change). menu-scroll.test.cjs is 0 of 24
there with the old bridge too, so not from this change; not filed here.
RTK upgrade failed with "winget failed (exit code 0x8A150014): winget finds
no rtk-ai.rtk package". rtkUpgrader took any rtk under a \WinGet\ folder
for winget's and ran winget upgrade, though winget had no record of it.
Now, when the exe sits inside winget's folders and winget says it did not
install it (wingetDisowns: records elsewhere, or winget list exit
0x8A150014), the upgrader is the existing Windows-release action (zip
checked against checksums.txt), applied to the file a WinGet\Links link
points to. A link to an exe outside winget's folders (--location) and an
rtk winget does list still go to winget; winget that can't answer is not
taken over, as before.
Run: wsl-run go test ./internal/library (full package, ok), go vet linux
and GOOS=windows ok, gofmt clean. New TestRTKWingetFolderWithoutRecord is
red on the old rtk_upgrader (stash-tested). On xiaomi-gpu (win-run) a real
rtk 1.1.0 in a fake WinGet\Packages\rtk-ai.rtk_fake folder went to 1.2.0
through UpgradeRTK.
Not tried: netube99's actual machine, so why winget lost its record is
unknown; GUI (no page change).