Paseo (getpaseo/paseo) starts the same Claude Code, but builds its own model
list: first-party models plus settings.json's `model` and a few
ANTHROPIC_*_MODEL variables (providers/claude/models.ts). It never reads
Claude Code's modelPicker, where magpie writes every model, so the rest were
not selectable in Paseo. Paseo's own ~/.paseo/config.json takes
agents.providers.claude.additionalModels ([{id,label,description}], checked
against protocol/src/provider-config.ts) and passes each id to Claude Code as
written.
New agent "Paseo" (detected by ~/.paseo or PASEO_HOME): its switch writes the
models Claude Code's /model lists (same ids, [1m] marks, names; only the ones
picked for it) there, marked "via magpie" in the description; the user's own
entries and keys stay, off takes out only magpie's, a sync refreshes when on.
Claude Code must be connected to magpie as well.
Run (mote-run, sandbox HOME in tests): TestPaseoAdditionalModels,
TestStateListsPaseo, internal/agentenv, internal/gui full package ok;
internal/agent full run red only on TestPiGroupEntryKeepsItsMembers, which is
red the same on origin/main 12cd456f2 (passes alone; filed). gofmt clean,
vet darwin, windows and linux nogui on internal/agent. Broken by hand: Set
writing no models goes red.
Not tried: a real Paseo daemon reading the file (checked against its schema
source only); GUI browser suites.
josephBenchap asked to create a skill in the Library; it could only
install or bring one in. Skills now has a New skill button beside Find
skills. A dialog takes a name, a description and the agents (the app's
chips, no select); Create writes skills/<name>/SKILL.md in the library's
folder with name and description front matter (YAML-marshalled, one line,
at most 1024 characters), lists it with no source, gives it to the agents
picked like any imported skill, and opens it in the reader, whose path
link opens the file in the user's editor. The name is checkName's, and
refused when the library or an agent already has one by that name
(compared without case) or a folder is in the way. The follow-the-server
note already sits above the Skills tab, so it covers this too. en, zh,
zh-TW, ja, de. docs/subsystems/library.md says so.
Run on mote at this head:
- gofmt -l clean; go vet ./internal/library ./internal/gui on darwin,
GOOS=linux -tags nogui and GOOS=windows: ok.
- go test ./internal/library ./internal/gui: ok. TestCreateSkill is new.
- GUI node --test in chromium and webkit: library-new-skill (new; en and
zh, 1100 and 420px: refusal stays in the dialog, agent untick posted,
reader opens, no select, no sideways scroll), library-items,
library-follow-server, library-all, library-discover-jump,
library-groups, library-intro-width, library-linked-set,
library-pick-remove, library-row-open-scroll, library-ime-scroll,
library-desktop-skills, library-gone-agents, library-bar-more,
library-chip-fan, i18n-keys, i18n-en-no-cjk, gui-de, gui-ja, gui-zh-tw:
all pass.
- library-loading is red (2 of 6) on this tree and on origin/main
e6fe481b3 alike: the tab list gained Claude plugins. Already #5997.
Broken by hand: the agents' own-skill name check removed:
TestCreateSkill red ("theirs" was taken).
Not tried: the real app; Windows run of the tests (vet only); the full
suite starts after the tag.
0.1.3688 on Windows 11: after a restart by a script, "timed out after 1m0s
waiting for the WebView2 controller" and the window never came back. Wails
waits 60s in Embed for a controller, then exits the process (ErrorHandler
runs, then os.Exit). The cause is a start that meets the previous magpie's
msedgewebview2 still holding the profile folder (EBWebView\lockfile, opened
without sharing).
- Before the first window, the start waits (30s at most) until the profile
folder's lockfile can be opened, i.e. the old WebView2 has let go. The
folder is the one passed to Wails, else Wails' %AppData%\<exe name>.
- ErrorHandler now logs the error with the WebView2 runtime version, the
folder and whether another process holds it.
- On a WebView2 failure the process starts itself again (update.Respawn,
MAGPIE_REPLACES set so the new one waits for this one to exit), backing
off 2s, 4s; after 3 starts a box says what failed and what to do.
Run: gofmt; go vet darwin, GOOS=windows, GOOS=linux with and without
nogui; go test of the WebView2 tests on mote; the same on xiaomi-gpu via
win-run, where TestWebView2FreeSeesTheHeldLockfile holds a real
non-shared file and goes red when webView2Free is forced true (broken by
hand). Full gui/update/proc packages on mote.
Not tried: a real WebView2 timeout and the restart (the controller
timeout can't be forced here without the live app); Wails still exits
the process after the handler, so the tray does not stay up through a
failed start, it is started again instead.
inlinePage wrote each script as "<script>" + body + "\n</script>" but hashed
body alone. A CSP hash covers the exact text between the tags, newline
included, so the browser blocked every inlined script (the bridge too) and a
plugin page opened in magpie web was blank. The hash is now taken from the
text that is written, in the one place that writes it. The siblings: no other
code hashes an inline script (grep sha256- in internal; the stylesheets go
under style-src 'unsafe-inline').
Run (mote): TestPluginPageWebComesAsOneDocument now hashes every served
<script> body and looks each up in the policy; red on the old pageinline.go
(all three scripts, the bridge included), green on the fix. internal/gui
package, vet on darwin, windows and linux nogui. New GUI file
plugin-page-csp-hash.test.cjs (chromium and webkit: hash of served bytes runs
with no securitypolicyviolation; hash of the body alone is blocked), with
plugin-page, plugin-page-cookie-proxy: green.
Not tried: the full suite before the tag (started after it); a real browser
against the live Go server behind a proxy.
Four Sessions GUI files were red on origin/main da169135a, run alone on
mica (Playwright 1.62.0, both engines, every language they cover):
- sessions-gateway-delete (10 of 10) and sessions-manage (4 of 4) read
every .sm-note. e6f151507's speed note (sm-speed-note) is a second
one when no row has a speed, so the exact-notes and textContent
checks met two. They now read the notes other than the speed note.
- sessions-folder-delete (4 of 4) counted every POST as a delete call.
10c4dc109's in-use ping, POST /api/update/using on a click or key,
landed in "Cancel deletes nothing". It is left out of the count.
- sessions-export (4 of 8, en not-web, #5947): at 560px the head's tabs
give way to the agent menu, so the OpenCode tab is hidden. The test
now chooses OpenCode through whichever control is shown.
Test-only; no app code changes. Run: those four files on mica, 26 of 26
ok; at da169135a, 22 red.
The Sessions page asked /api/speeds once a second while open, whether
or not the gateway had heard any session. On a resting page the list
is empty, and each ask woke magpie through the whole web middleware
chain. On mote with the real-account copy, a 60s CPU profile with the
Sessions page open measured 0.50-0.56s, against 0.22-0.29s on Home. An
alloc_space diff over 55s showed /api/speeds allocating next to
nothing (21.7MB in all, 79% of it /api/drift). So the cost was the
62 wake-ups a minute, not their garbage. Old main de13afbf6 measures
the same 0.50/0.56s, so this is no regression; the page always
cost it.
While the last answer was empty, the page now skips four ticks before
asking again. A session that starts is kept by the gateway (its curve
is the last 120s), so its speed shows within 5s with its whole curve.
Once any session has a speed, the page asks every second again.
Opening the page asks at once.
Test: sessions-speed-rest.test.cjs (every language, Chromium and
WebKit). A resting page reads at most once in 3.5s, a session heard
shows within the rest, and then the page reads once a second. On the
old client.js it is red, 5 of 5 in Chromium ("read 3 times in 3.5s
with nothing heard").
ChatGPT's image generation has a quota apart from the 5-hour and weekly
windows. Neither /wham/usage (additional_rate_limits is null) nor the reply
headers (x-codex-primary-*, x-codex-secondary-*) tell it, so no remaining
count exists to show. Each Codex account's card (Usage page, magpie quota
--json, /v1/magpie/quotas, /v1/magpie/quotas/cards) now has an "Image
generation" row (provider.WithImageLane, Lane "images", Text and Aside so
routing, holds, history, tray and statusline never see it): "Used up" with
the reset time while the image model rests on that account after a refusal
(the #2244 drawing-lane rest, whose time is the refusal's resets_at), and
"Unknown" otherwise. Never a share or a count. Shown in en, zh, zh-TW, ja, de.
app.js: a Text row's display now goes through t(), a same-length change, as
the core script budget has 1 byte of room.
Run (on mote): go test -count=1 -run 'TestWithImageLane|TestCodexImageRow'
./internal/provider ./internal/gateway ok; codex-image-row.test.cjs in
chromium and webkit at 900 and 390px in all five languages ok;
TestCoreScriptBudget ok; go vet darwin, windows, linux nogui on provider and
gateway ok; gofmt clean; 158 GUI files matching i18n/quota/usage/balance
names in both engines (result in the follow-up).
Broken by hand: the GUI test is red with app.js's display line put back to
the old form; the Go row tests are red with imageRestOf returning false.
Not tried: a real ChatGPT account hitting its image quota (the row is
driven by a faked refusal's rest); the generated-image count the issue also
asks for is not built.
Claude Code's and Codex's sessions, and each call's tokens and time, need no provider: with the consent given, a sandbox HOME with no providers lists both agents' sessions and /api/usage/requests returns their calls (source log, ms, tokens). The only gate is sessions/reads asked=false, which the Sessions page asks but the Usage Overview and Requests pages did not mention; they said to point an agent at a catalog model. Now they say the files aren't read yet and offer one button that allows the agents found. The Sessions page says live output speed is measured only on gateway requests and where the files' own figures are.
With Settings > Sync > This computer set to Follows the server, a skill
or MCP server added in the Library is replaced by the next sync, and the
reporter read that as the update deleting their skills. The Library now
says it in one line above Instructions, MCP, Skills, Hooks, Subagents and
Plugins (Memory too while memory is synced), with a link that opens the
This computer row. Nothing is said when sync is off, the part isn't
synced, or the computer syncs both ways. en, zh, zh-TW, ja, de.
Run on mote: library-follow-server.test.cjs (new, 48 cases x en/zh, 1100
and 420px) in chromium and webkit; broken by hand (note not appended) it
goes 29 red. Also green in both engines: i18n-keys, i18n-en-no-cjk,
sync-follow-server, library-items, library-intro-width, library-hooks,
library-all (chromium).
Not tried: the full suite, the real app, a real sync server.
TestCoreScriptBudget counted every byte of the core scripts, so a change
that reached the cap was paid for by cutting comments that said why the
code is as it is (five times on 11-10 alone, and 40-odd "comments cut"
in the budget's own history). Main was red on it again from 16ed1a952:
1,534,484 at 8016205e3 against a cap of 1,533,802.
The test now counts code only: blank lines, lines that are only a //
comment and /* */ blocks that start a line aren't counted (codeBytes).
The caps are set once to that measure at 8016205e3: app.js 1,086,267
(1,080,614 plus the 5,653 of room it had), the core 1,263,333 with no
room. That takes in the 682 bytes the old measure was over; the step
over was features measured with their comments. From now on cutting a
comment pays for nothing; moving a page out still does. The ~20KB of
history in the constants' comments is replaced by a pointer to
`git log -L` of the file.
Run on mote (Go 1.26.8), at this tree on origin/main 8016205e3:
- go test -tags nogui -count=1 -run TestCoreScriptBudget ./internal/gui: ok
- broken by hand: 20KB of // and a 5KB /* */ block appended to app.js
stay ok; one 20-byte line of code on top fails "over their budget";
restored.
- go test -tags nogui -count=1 ./internal/gui (the whole package): ok, 83s.
- gofmt -l internal/gui: clean.
Not tried: the GUI suite (no script changed).
Zhangzhangi on X couldn't add a Remote magpie at a domain with a
self-signed certificate ("x509: "api.magpie.local" certificate is not
standards compliant") and asked for a skip-verification option. A
follow-up asked for the same on other self-signed hosts.
This adds a pin (trust on first use), not a blind skip. It is off by
default and kept per provider:
- Advanced → Server certificate → "Trust its certificate…" fetches the
certificate the server shows (provider/peekcert) and lists its SHA-256,
subject, issuer and expiry. "Trust this certificate" keeps the
fingerprint as the provider's serverPin.
- From then on only that certificate is accepted (netproxy pinTLS:
InsecureSkipVerify plus VerifyConnection comparing the leaf's DER
SHA-256). Another one fails with PinMismatchError, saying the server
showed a certificate other than the one trusted.
- The editor shows a red "Certificate not verified: only this one is
accepted" with the fingerprint, and "Verify it again" drops the pin.
- The pin is set only on the provider's own hosts (provider.PinHosts):
- every address of Remote magpie and of a provider added by URL;
- for a preset (Ollama, LM Studio, OpenAI at your own box), only https
addresses whose host is not one of the preset's or its regions' own
hosts. A vendor's host never takes a pin.
- Never for an account, Vertex or a subscription. Save refuses one
elsewhere.
- The client certificate and Server CA still go only to the providers
that took them before (TakesClientCert). A preset gets the pin alone.
- The editor's certificate rows (Client certificate and the new Server
certificate) are drawn by a lazily imported tlscerts.js. The Client
certificate row moved out of app.js with it, so the core scripts stay
under TestCoreScriptBudget without a raise.
Run (Go 1.26.8):
- WSL magpie-desktop, before the rebase:
- go test -tags nogui -count=1 ./internal/netproxy ./internal/provider
./internal/gui all ok;
- GOOS=darwin -tags nogui vet of gui fails on traywindows_darwin_test.go's
undefined trayImagePNG, the same at the base (a cgo-only helper).
- mote and mica, after the rebase on ab5824aee:
- gofmt -l clean; node --check app.js;
- go vet darwin (cgo), GOOS=linux -tags nogui, GOOS=windows: ok;
- go test ./internal/netproxy ./internal/provider: ok.
- mote, at the final tree: node --check app.js and tlscerts.js; go test
./internal/gui -run 'Budget|ServerPin|InsecureTLS|ClientCert|OnDemand|Lazy'
ok (TestCoreScriptBudget under 1,533,802) at the base ab5824aee.
Rebased on fe5a0cf6d, TestCoreScriptBudget is red, as it is on that
main alone: main's core is 1,534,708 (16ed1a952 took it to 1,535,318);
this change takes it to 1,534,484, 224 bytes less (#5918, commented).
The rest of the run above passes at the pushed head.
- mica, GUI files at the final tree, both engines inside each file:
- green: provider-server-pin (54), mtls-settings (16),
provider-insecure-tls (60), provider-socket (60), provider-http1 (60),
i18n-keys, i18n-en-no-cjk, editor-advanced-align, provider-advanced-fold
(50);
- old-webkit: headerpresets.js not loaded (#6030) and Safari 15's :has()
(#5919), both on main too;
- menu-scroll: 24 of 24 red on /api/update/using, the same alone at
origin/main fe5a0cf6d (#5982, commented).
- Earlier flakes of provider-http1 beside another session's suite:
#6159.
- Broken by hand, each red:
- presets never take a pin: TestServerPinSaveChecks,
TestServerPinPresetAtOwnServer, TestServerPinNoVendorHost;
- vendor hosts pinned (the own-host check dropped):
TestServerPinNoVendorHost;
- client cert and CA sent to presets: TestServerPinPresetAtOwnServer;
- the pin never compared: TestPinOnlyThatCertificate,
TestServerPinRemoteMagpie.
Restored: both packages ok.
Not tried:
- a real self-signed domain from the macOS app (httptest servers with
their own certificates only);
- the Responses WebSocket dial (read only: it takes the same netproxy
transport);
- go test ./internal/cli and the whole GUI suite before the tag (the
full Go suite runs after it, under suite.lock).
The morph gives each nav tab a view-transition-name of its own (app.css
.nav-morph), but the list stopped at the eight tabs that existed when it
landed; Routing groups and Masking came later and only faded with the whole
sidebar. Both are in the list now, in the nav's order (ggbdpq's analysis and
patch on #5434, which sat without a PR since 11-08).
side-toggle.test.cjs now holds the masking tab's group to animating and every
tab drawn in the nav to a name of its own, all different, so the next tab
can't be left out. Run on mote: red on the old CSS in chromium and webkit
(no nav-masking group), 26 of 26 green after. Durations and curve are the
morph's existing .32s strong ease-in-out, unchanged.
Not tried: the live app; Routing groups is display:none in the header
layout, so its group is a fade there, as before.
The day card's copy button showed "Cannot read properties of undefined
(reading 'write')" in magpie web opened over plain http (a LAN address) or in
a webview with no async Clipboard API: pageshare.js called
navigator.clipboard.write unguarded. It now tries the API when it exists,
else copies the picture as a selected <img> with the copy command, else
throws a message that says to save it instead (translated in zh, zh-TW, ja,
de). The desktop window was not affected: it already hands the PNG to
/api/plugin-pages/image. app.js's text copy already falls back (/api/copy,
writeText, execCommand), so no sibling is left on the raw API.
Run on mote: page-image-no-clipboard.test.cjs (new, chromium and webkit, en
and zh, navigator.clipboard removed), 4 of 4 red on the old pageshare.js and
green after; plugin-page.test.cjs and i18n-keys.test.cjs green.
go test ./internal/gui: only TestCoreScriptBudget red, on main already
(#5918); pageshare.js and i18n.js are not counted in it.
Not tried: a real http LAN page pasting the image into another app; the
execCommand path was observed selecting the PNG, not read back from the OS
clipboard.
Codex's memories had a model of their own, its compaction did not. Codex's row has a compaction model square (compact_model, settings.CodexCompactModel), read by the gateway on each compaction (codexCompactTo, before codexCompact). Only a compaction magpie makes is moved: it asks for a plain-text summary any model reads back. One a ChatGPT account seals, or a pick that compacts natively, is left, since only the writing account reads it (#1099); a disabled, unserved or key-barred pick is left with a log line. The text sent to the model is unchanged.
Run on mote: TestCodexCompactOnItsOwnModel (red with the move taken out) and TestCodexCompactToLeavesNative; go test for gui, settings, settingsapi, agent, provider, gateway; darwin, linux and windows vet; the GUI files in both engines. Not tried: a real Codex session compacting on the chosen model.
startRun notes the entry on the request's context (noteEntry); serve copies it to Try.Entry and Try.EntryWhy (the claudePrint code). The Routing row shows a TUI or -p chip, with the reason in its title, in en/zh/zh-TW/ja/de. The bridge page also records the answer to Tossipe on X: a local Claude Code on a remote magpie sends its history each turn, and the remote resumes its session and types only the new turn, so the history isn't sent to Anthropic twice.
Run on mote: TestEntryNoted; routing-entry.test.cjs in both engines, five languages, 1000 and 480 wide; i18n-keys (a key repeating a Go string is reworded). Not tried: a real Claude Code run on each path.
The provider editor's 'Claude Code runs as' row was disabled in magpie web as a gateway, so it read as a switch that doesn't switch, while a second Settings row for the same claudePrintMode was the one that worked there. The editor's row is enabled everywhere (savePrefs works in gateway mode) and the duplicate row and its CSS are gone.
Run on mote: claude-tui-setting.test.cjs rewritten for the one row, app and gateway, en/zh/ja/de, 1100 and 420 wide, chromium and webkit; the claude-*, routing-*, i18n-*, agent-*, codex-*, mobile-web, provider-*, settings-*, dsh-* GUI files in both engines against a base copy (the same reds on both; proxy-auth and Hide accounts differ run to run). Not tried: the real app's Windows and Linux webviews.
Resting the pointer on Settings › About's 更新内容 row put the hint at the
far left of the row. 5710283da lined its text up with the row's name; the
pointer is what asked, so settingshints.js now keeps the pointer's x and a
card the pointer asked starts there (12px left of it, kept 16px inside the
window), with its grow-from origin at the pointer. A card a key asked
(focus) still lines up with the name. Every row hint comes through this one
module (Settings, a provider editor's fields, Routing groups), so they all
behave the same; native titles already show at the pointer.
Run on mote: provider-prefs-layout (card at the pointer; red on the old
code, 5 of 10), editor-hints, settings-hints (its pointer and key checks
changed), searcher-pick, settings-lines-wrap, sign-in-moves, and the gui-*
and i18n-* files, chromium and webkit; TestCoreScriptBudget; gofmt.
Reds: settings-hints "Settings' explanations show on hover and focus"
(chromium and webkit) fails the same way on base before reaching the
changed lines ("the card doesn't say the row's line"), and editor-hints in
webkit ("Tab didn't come back") fails on base too; both are filed.
Not tried: a live Mac window.
The Limit window menu gains "in total" (period "total", CLI: gateway-key limit <id> total). It counts from when it is set or last reset and ends a century off (access.Limit.Window), so only Reset usage starts it again; its 429 says it stays refused until reset or raised, the row reads "$0.00 / $300 · 总额" with no reset time, and a remote key's window is "Tokens/Spend in total" with no reset. Old settings files read the same (new period only). i18n in zh, zh-TW, ja, de; reference.md and gateway-routing.md say it.
Run: TestLimitTotal and TestTotalLimitNeverResetsByThePeriod, red on the old code (Valid refuses "total"); gateway-key-total.test.cjs red without the keys.js change (5 of 5). Not tried: a real key through a live gateway; full suite follows after the tag.
Run (before this push):
- gofmt -l clean; go vet darwin, linux (nogui), windows clean.
- go test: internal/access, internal/budget, internal/cli, internal/provider ok.
- Go tests for the total period are red on the old code (Valid refuses "total"); the GUI test is 0 of 5 languages passing without the keys.js change.
- gateway-key-total.test.cjs and i18n-keys: 9 pass in chromium and in webkit (zh, zh-TW, ja, de, en; 500px width; no native select).
- Full GUI suite on mica, chromium: 46 reds in files this change does not touch (accounts, Pi/OpenCode Go, panel sheet, check-in, Aside provider, API key theme, allowed addresses); none is a key-limit test. Webkit pass still running; reds are to be compared with origin/main and filed after.
- TestCoreScriptBudget is red on origin/main 2d12e8274 by 7 bytes (1,533,809 > 1,533,802); this change touches no counted core script (#5918).
Not tried: a real key through a live gateway; the full Go suite (started after the tag).
Resting the pointer on Settings › About's 更新内容 row put the hint at the
far left of the row. 5710283da lined its text up with the row's name; the
pointer is what asked, so settingshints.js now keeps the pointer's x and a
card the pointer asked starts there (12px left of it, kept 16px inside the
window), with its grow-from origin at the pointer. A card a key asked
(focus) still lines up with the name. Every row hint comes through this one
module (Settings, a provider editor's fields, Routing groups), so they all
behave the same; native titles already show at the pointer.
Run on mote: provider-prefs-layout (card at the pointer; red on the old
code, 5 of 10), editor-hints, settings-hints (its pointer and key checks
changed), searcher-pick, settings-lines-wrap, sign-in-moves, and the gui-*
and i18n-* files, chromium and webkit; TestCoreScriptBudget; gofmt.
Reds: settings-hints "Settings' explanations show on hover and focus"
(chromium and webkit) fails the same way on base before reaching the
changed lines ("the card doesn't say the row's line"), and editor-hints in
webkit ("Tab didn't come back") fails on base too; both are filed.
Not tried: a live Mac window.
ca8ff054d (times follow the system's clock) ran TestCoreScriptBudget under
its budget at its own base; rebased onto main it was 7 bytes over, because
main had grown meanwhile. No raise: the comment above resetClock is shorter.
Run on mote: TestCoreScriptBudget ok at the rebased head.
An en-US Mac set to 24-Hour Time showed Routing's request times in 12
hours: no webview hands the page the system's clock, and navigator.language
carries only the region. boot.js now says it as hourCycle ("h23" or "h12",
left out when the system names none, and for a browser tab, which keeps its
own): macOS from AppleICUForce24HourTime / AppleICUForce12HourTime, Windows
from Control Panel\International sTimeFormat, Linux from gsettings
clock-format. intlLang() adds -u-hc-<cycle> to its tag, so every formatter
that takes it follows, and the places that forced 24 hours (hour12: false,
hourCycle h23) spread hourClock() instead: 24 unless the system says 12.
Read once per 30s, so a change in System Settings shows at the next load.
Run on mote: new hc-clock.test.cjs (en-US on a 24h system, en-GB on a 12h
one, a silent system), chromium and webkit; Go tests for the three readers
and boot.js; gofmt; go vet darwin, windows and linux nogui; internal/gui
tests; GUI files of gui-*, i18n-*, panel-*, quota-*, reset-*, routing-*,
usage-* in chromium and webkit. TestCoreScriptBudget was over by 77 bytes
and passes with two app.js comments cut, no raise.
Broken by hand: hc-clock goes red (2 of 3) without the intlLang suffix.
Not tried: a real Windows or Linux session's setting (the readers are
unit-tested on their formats), a live Mac.
55dff77b4 compiled seven package-level regexps in pageinline.go with
regexp.MustCompile, so TestNoEagerPackageRegexps was red on main. They
now go through lazyre.New, like the rest of internal/gui.
Ran on mica at this tree (origin/main 817ccb56f + this change):
- go test -run TestNoEagerPackageRegexps . : ok (red in the full suite
log at 6b4513082 before)
- go test -tags nogui ./internal/gui -run 'Inline|PluginPage|Page': ok
- GOOS=linux go vet -tags nogui ./internal/gui, GOOS=windows go vet
./internal/gui: ok; gofmt clean
Not run: the full suite or GUI suite (the change is a constructor swap).
Fixes#6145
The asset call from 2022aa3c0 put 365 bytes over TestCoreScriptBudget. It moves
to pageshare.js, imported when a page asks. Run on mote: go test ./internal/gui
ok; plugin-page, plugin-page-cookie-proxy, i18n-keys in chromium and webkit ok.
A plugin page's frame is sandboxed (opaque origin), so its stylesheet and
scripts are cross-site requests that carry no SameSite=Lax cookie. Behind
Cloudflare Access they were redirected to the sign-in page and the page
said it "didn't answer" (Day card). index.html's manifest link also
fetched without credentials.
In magpie web the page's HTML now comes as one document (pageinline.go):
classic scripts (bridge included) and url()-free stylesheets are written
in, scripts allowed by sha256 in the policy, deferred ones moved to the end
of body. A script the page adds later is fetched by the window (asset call,
folder-checked, window carries the cookie) and loaded from a data: address
(WebKit finds no blob made in a sandboxed frame). The manifest link has
crossorigin="use-credentials". Modules, url() stylesheets, images and
fonts loaded by the page itself still ask the proxy.
Run on mote at this tree: go test -run PluginPage ./internal/gui; node
--test plugin-page, plugin-page-idle, plugin-page-cookie-proxy in
chromium and webkit; gofmt; vet. Broken by hand: inlining off turns
TestPluginPageWebComesAsOneDocument red, the bridge shim off turns the
cookie-proxy test red in both engines.
Not tried: a real Cloudflare Access tunnel; images/fonts behind a proxy.
A DeepSeek card that could not be read said "Allowance unavailable -
hover for why", and hovering showed the error. After one press of its
refresh the hover showed only those short words. The page's hover over
cut-short text (the mouseover handler in app.js) writes an element's own
text as its title when it has none and is clipped; the tray card's line
(.pq-sub / .pq-say, which the refresh redraws) had no title of its own,
so the short words went over the card's title that held the error. The
line now carries the reason as its own title, in the tray card and in
the Usage page's aq-none row.
panel-error-why hovers the tray card's line before and after a refresh,
en/zh/zh-TW/ja/de at 486 and 360px. Red on origin/main in Chromium
(10 of 10, the zh one reading "暂时无法获取额度 — 悬停查看原因" after the
refresh), green with the change. WebKit is green on both: its hover
leaves the title alone. Also ran the 55 GUI files that name pq-card,
aq-none, pq-line, quota-refresh or pq-say in both engines: 826 pass, 38
fail, the same 38 that fail on origin/main de13afbf6 (account-refresh-holds,
claude-quota-onboarding, codex-auto-reset, plugin-signed-out-account,
tray-cell-click, usage-fold).
Not tried: the Windows tray window itself (WebView2).
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).
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.
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).
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.
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).
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.
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).
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.
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).
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.
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.
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.
Routing group, agent row, provider row, model chip and sessions folder row
passed their drag handle or their button as the menu's anchor, so a
right-click opened it at the far left (or far right) of the row. openRowMenu
and placeMenu take the pointer; each right-click passes it, and placeMenu
still keeps the menu inside the window and flips it above when there is no
room. The handles' and buttons' own clicks anchor as before.
Tests: route-menu-pointer (new), agent-here, provider-find, model-copy-id and
sessions-relocate assert the menu's left/top against the pointer.
Run (WSL magpie-desktop, chromium and webkit, via wsl-run; mote's disk was
full): route-menu-pointer 2/2, provider-find 12/12, sessions-relocate 40/40,
group-share, group-duplicate, group-arrange all pass; agent-here 29/30 once
(chromium zh panel, not reproduced in two chromium reruns, 15/15 each).
Broken by hand: the same test files against origin/main's assets: all red
(route-menu-pointer 0/2, provider-find 0/12, agent-here 0/30,
sessions-relocate 0/40), e.g. "menu at x=24, expected 342". TestCoreScriptBudget
ok on Windows. model-copy-id is red on origin/main already (the gpt-5.1 chip
is not found, #4621, #6096), so its pointer assertion is reached only for the
first chips. Not run: macOS, the full GUI suite, the real Linux app, every
other test that right-clicks (30 files ran on mote before its disk filled and
are void).
EV_John_Liu on X: "现在不是有图片生成、asr、tts管线和网络搜索。能不能做个快速
检测。可用". Settings › Models now ends with a Quick check: a row per
pipeline, each with Test, and Test all. A check makes the smallest real
call through the gateway, the way an agent's request goes:
- image generation: the image model in force (drawer), prompt "a dot", n 1
(quality low for gpt-image);
- text to speech: the first enabled model that serves speech, "Hi.";
- speech to text: the first that serves transcription, 1s of silence as a
16 kHz WAV;
- web search: one query through the searcher in force.
A row says ok with the model and how long it took, the vendor's error with
its status (provider.APIError's reading), or that nothing is set up. A 200
with an empty body is not ok. A check costs the user money, so it runs only
on a click: drawing the page calls nothing (the GUI test counts calls).
Disabled models are skipped. tts/whisper models are read from the
provider's own list, since the kept listing leaves them out.
POST /api/pipelines/check answers "Another magpie serves the gateway"
when this one doesn't serve it. pipecheck.js is loaded lazily, so the
core script budget is unchanged.
Run at this head (rebased on ce0cbff61). mote's disk was full (113 MB
free), so the Go and GUI runs went to the Linux box (WSL magpie-desktop):
- gofmt -l clean; go vet linux (-tags nogui) and windows on the Linux box,
darwin on mote once it had room: all clean.
- go test -tags nogui ./internal/gui/ ok (2033s); go test -run
'TestCheck|TestPipeline|TestAudio|TestSpeech|TestTranscri'
./internal/gateway/ ok; go build -tags nogui . ok.
- pipeline-check.test.cjs, chromium and webkit, en/zh/zh-TW/ja/de, 1100px
and 400px: 16 of 16 ok. i18n-keys, search-key-list and video-gen-pick
ok.
- Red the same at origin/main ce0cbff61, not this change: old-webkit
(headerpresets.js #6030, Safari 15 :has() #5919), settings-search
(/api/update/using, #5982), settings-hints ja/de 420px in both engines
(#6073, Linux numbers added there).
The test brings a row into view with the wheel and waits for the scroll
to rest (WebKit's runs on after the event; script scrolls are put back
by app.js), then presses where the button is.
Broken by hand, each red, then restored:
- FirstServing ignoring the provider's own model list: SpeechSaysAWord,
SpeechSaysTheVendorsError, TranscriptionSendsASecondOfSilence red.
- taking a disabled model: TestCheckSkipsADisabledModel red.
- any answer counted ok: SpeechSaysTheVendorsError red (OK:true Status:400).
- a check run when the page draws: pipeline-check.test.cjs 8 of 8 red in
chromium (a row showing "Testing…").
- not red: a press that scrolls #view-settings, or that adds 60px above
the list. app.js holds the clicked element in both cases, so the test's
"stays put" check guards that app-wide rule (click-scroll owns it), not
pipecheck.js.
Not tried: a real call to any vendor (fakes only); the real app window
on Windows, Linux or macOS; the whole GUI suite (only the files this can
reach, listed above).