889758605 (v0.1.3981, coder_shaun on X asking for one-click import from
relays' CC Switch links) made magpie claim ccswitch:// on every system:
Info.plist on macOS, HKCU\Software\Classes\ccswitch on Windows, and
magpie-ccswitch.desktop on Linux. That scheme is CC Switch's, and magpie
claiming another app's links is not something it should do (asombrado_a
on X: "Magpie为啥要注册 ccswitch://协议的深链").
From this version magpie registers magpie:// only: the ccswitch entry is
out of Info.plist, and the Windows and Linux registration is back to what
it was before 889758605. A start doesn't touch what an older version wrote
(the owner's call); uninstall still takes it out while it is magpie's, as
before. The ccswitch:// parser (importccswitch.go, its test and CC
Switch's example links) goes with it: with nothing registered, no link
reaches it, and ParseImport, ImportLink and `magpie import` take magpie://
links only. The docs' "CC Switch links" paragraph is out in en, zh and ja,
and llms-full.txt and the search indexes are regenerated.
TestRegisterScheme now holds that registration never asks about or claims
x-scheme-handler/ccswitch, and TestImportLink that a ccswitch:// argument
is not taken as an import link.
Run at this commit's tree (rebased on 1318864d1), on mica (mote's load was
38): gofmt clean; go vet darwin, GOOS=windows
(gui, uninstall, provider), GOOS=linux nogui (provider, uninstall);
go test provider, gui, uninstall, cli ok; node --test site/*.test.mjs
135 pass. Linux (wsl-run, magpie-desktop, -tags gtk3), at the tree before the rebase
(the scheme files are the same at this one): provider, uninstall ok; gui ok
except TestClipboardReadBack/copies_after_a_read_back,
which fails the same on origin/main 3ec89c522 (probe segfault, #7073); at this tree TestRegisterScheme*, TestImportLink
and TestImportIsReadOnce ok.
Pushed on 3e66d25d8, which landed after the run and changes internal/agent
only; not run again with it.
Not tried: a real Windows or Linux desktop with an older magpie's
ccswitch registration, which this leaves in place; macOS Launch Services
dropping the scheme once the updated bundle replaces the old one.
macOS ran everything in one job on a 3-core runner: ~93 minutes on
44024695993 (Test 65m, Race 24m), and the Test step met its 75m cap with
no test failing (#6903). The packages' own times sum to ~2250s; the rest
was waiting for a processor. Raising the cap would only be met again.
macOS now runs as four jobs: three shares of the packages but the gateway
(build/pkg-shards.sh, slowest first onto the lightest share, with macOS
CI's seconds for the slow packages), and the gateway with the race steps.
The old Test step is split into Test (packages) and Gateway; ubuntu and
Windows run whole as before. Vet runs once on macOS, in share 1/3. The
Test cap goes from 75 to 45 minutes.
Run: build/pkg-shards.sh 1..3 of 3 over `go list ./...` (124 packages):
41/42/41, each with three of the slow packages, ~870s apiece, and their
union is the list; the step's pipeline under bash -eo pipefail (bash
3.2 too) for each part; actionlint (only the Gofmt step's old SC2046).
workflow_dispatch run 44046493476 at this tree (branch ci-mac-parts),
all green: macOS 1/3 12m, 2/3 17m, 3/3 15m, gateway with race 34m
(the macOS job was ~93m); ubuntu 37m, windows 5m.
a49f3745e used a conpty folder beside magpie.exe holding conpty.dll and
OpenConsole.exe, which a user had to fetch and place. Windows 10's own
ConPTY drops a paste's bracketed-paste marks and loses 1024-byte blocks,
so without that folder long messages reached Claude Code cut.
Now a Windows release carries the pair. internal/conptypair pins
Microsoft.Windows.Console.ConPTY 1.25.260930003 from nuget.org (MIT): the
package's SHA-512 as nuget.org publishes it (catalog packageHash) and
each file's SHA-256. `make conpty-pair` (go run ./build/conpty, before
release-cli and release-windows) downloads it, checks both, and writes
the pair to internal/conptypair/<arch>/ (gitignored), which -tags
conptypair embeds: about 1.2 MB per Windows binary. At run time, on a
build below 22000 with no conpty folder of the user's, the pair is
written to %LocalAppData%\magpie\conpty\<version>\<arch> (temp file and
rename), each file checked against its pin there before conpty.dll is
loaded; a file that doesn't match is written again. The order is the
user's conpty folder, then the bundled pair on Windows 10, then the
system's; any failure leaves the system's, where the whole-message check
(previous commit) catches a cut message. Windows 11 keeps its own.
1.25.260930003 is the version 3leg0ocat ran whole on Windows 10 19044;
CoreyKatzburg ran 1.25.261109001 on 19045 (under two weeks old).
Run:
- The package hash: the download's SHA-512 matches nuget.org's
packageHash; the four files' SHA-256 are taken from it.
- Authenticode on xiaomi-gpu (Get-AuthenticodeSignature): all four files
Valid, CN=Microsoft Corporation.
- go run ./build/conpty on mote: fetched and written; a second run keeps
them with no download; a package with the wrong hash is refused.
GOOS=windows go build -tags nogui,packedassets,conptypair for amd64
and arm64: built, 1.2 MB over the build without the tag.
- win-run (Windows 11 26200) go test -tags conptypair ./internal/conptypair:
ok; TestBundledOpens writes the pair from the embedded bytes and
CreatePseudoConsole through its conpty.dll returns S_OK.
- go test ./internal/conptypair ./internal/claudetui on mote: ok.
- gofmt -l clean; go vet ./..., GOOS=linux go vet -tags nogui ./...,
GOOS=windows go vet ./... on mote: ok.
- Full suite on mote (-timeout 45m) was still running at push, per the
ship-at-once rule; a red it shows gets fixed or filed.
Not tried: Windows 10 itself (no Windows 10 box here; xiaomi-gpu is
Windows 11, whose own ConPTY doesn't have the bug, so the build gate
sends it to the system's), and a real Claude Code turn through the
bundled pair; the user folder route that loads the same way was
confirmed on Windows 10 by CoreyKatzburg (19045) and 3leg0ocat (19044).
f1c9014cd's macOS Test run went red with internal/gateway past go test's
30m alarm while the test then running was 1s in: no test hung, the
package as a whole ran out. Its tests run one at a time (t.Setenv rules
out t.Parallel), and the package grew from 450-600s on macOS runners
(10-28, 56602426d) to 965s on the green run before, and 892s for 4286
tests on mote, none over 20s. A longer timeout would be met again the
same way; Race already runs the same tests in chunks through
build/race-shards.sh (#5361).
The Test step now runs every other package as before, and the gateway's
plain test binary through race-shards.sh. The plain run stays: it sends
the full 64 MB bodies and runs the pool tests -race skips (raceOn).
Run on mote at this change (origin/main a5e3972a7):
- go test -c ./internal/gateway/, then build/race-shards.sh with 18
workers and -test.timeout=20m: 4300 tests in 135 chunks, 125s, exit 0
(twice; the second run's status taken from the script, not a pipe)
- go list ./... | grep -v '/internal/gateway$': 121 packages, the
gateway's subpackage kept
Not run: the workflow itself; this push's own Test run is its check,
on Linux (gtk3 tags) and macOS.
1f05c311d was committed with its worktree's older tree on top of a
fresh origin/main (git reset --soft), so beside the memory fix it
undid every file 610ae1f54..c1312ac15 changed (45 files: key balance,
import links, project subagents, uninstall, site, LESSONS.md and
more). This commit restores each of them to c1312ac15 byte for byte;
the tree is now c1312ac15 plus the memory fix alone
(git diff --stat c1312ac15 HEAD: the 4 files of the fix).
"资源库-记忆中,被展开的记忆的表单会定时抖动". While search by meaning
still has memories to read (read < of, which can last up to a minute
between memembed.Keep's reads) or a learn-from-conversations run goes,
the Memory tab reads its row again every 2s, and each read drew the
whole page anew. The open editor was a new .lib-detail each time and
played its content-in entrance (opacity .5, 2px slide) every 2s.
- semWatch/distWatch draw nothing when the read changed nothing, and
redraw only their own row (redrawRow) when it did; the whole tab only
when the memories changed.
- render() marks a .lib-detail open before it (same data-detail) as kept,
so it doesn't replay its entrance. This covers every render of an
open editor in the Library: memories, instruction sets and agents'
files (the siblings; no other Library tab polls into render()).
- A new memory's text no longer takes the focus back on every render.
Run (mote): library-memory-steady.test.cjs, all 5 languages, 980/420,
chromium + webkit: green 4 of 4 whole-file runs after the last change
(webkit alone 2 of 2 before it). Broken by hand: the same test against
origin/main's client.js and library.css: 22 of 22 red ("the editor
played its entrance again"). One webkit de 420 red was the test's own
first row click intercepted by the header at 420px while the page
settled; the test now opens rows with a DOM click.
Also run, both engines, every language, 980/420: library-memory, library-memory-select, library-memory-suggest, memory-icon, library-instr-busy, library-instr-sets, library-linked-set, library-follow-server: all green. No Go code changed, so no go test or vet.
Not tried: the real app on a real memory store mid-read.
A relay's one-click ccswitch://v1/import?resource=provider&app=…&name=…
&endpoint=…&apiKey=… link now opens magpie's own import confirmation. The
format is read from CC Switch's source (src-tauri/src/deeplink/parser.rs and
provider.rs at 3c76d3b): host v1, path /import, resource=provider only,
app, name, endpoint, apiKey, apiFormat, model/haiku/sonnet/opusModel,
homepage, iconUrl, and the base64 config (claude env, codex auth + config.toml
provider table, gemini env) filling what the URL leaves out. The link is
translated into a magpie://import's parameters and goes through the same
checks (https only, key shape, id rules, balance host) and the same
confirmation; usage scripts, configUrl, enabled and notes are never taken, a
codex env_key is refused.
Registration, so as not to take CC Switch's links: Linux writes a separate
magpie-ccswitch.desktop and sets the default only when `xdg-mime query
default` is empty or already it; Windows writes HKCU ccswitch only when
HKCR has no live handler of another program; uninstall and install.sh remove
them only while they are ours. macOS declares the scheme in Info.plist
(static), so with CC Switch installed too the system picks.
Run: provider, gui (macOS mote; Linux gtk3 on WSL for the scheme tests),
uninstall, cli, update packages; vet darwin, windows, linux nogui. The test
parses CC Switch's own 11 provider examples (testdata/ccswitch_links.txt,
copied from its repo) and refuses the other resources. Broken by hand: claude's
default endpoint kind (4 reds) and the Linux "another app has it" check
(TestRegisterSchemeLeavesCCSwitchItsLinks red).
Not tried: Windows registry (vet only), a real CC Switch installed beside
magpie, a browser click on a real relay's button.
Rebased on 610ae1f54 and run again there (mica): provider, gui, uninstall,
cli, update ok; GUI import-link-balance, import-link-gemini,
import-collision, import-opencode 80/80 in chromium and webkit; vet darwin,
linux nogui, windows ok; gofmt clean. Reviewed against CC Switch db7a0e7
(no deeplink change since 3c76d3b). Broken by hand again: the config's key
no longer filling an empty apiKey (TestCCSwitchOwnExamples, 3 reds).
Pushed on 48afb27b0, which adds only the library plugins GUI files
(client.js, library.css, library-plugins.test.cjs) to that base.
Not tried either: macOS with CC Switch installed too, where Launch Services
picks which app opens ccswitch:// links.
On macOS 27, Go's MADV_FREE_REUSABLE (and DONTNEED, FREE) leave freed
pages in phys_footprint, which Activity Monitor shows as Memory, until
the system is short of memory. An idle magpie showed ~98MB while ~69MB
of it was heap Go had already given back. A MAP_FIXED anonymous remap
does take the pages out.
build/darwin/footprint-overlay.sh writes a copy of the toolchain's
runtime/mem_darwin.go whose sysUnusedOS maps fresh pages over the range
(falling back to MADV_FREE_REUSABLE), and prints an -overlay flag.
make build, cli, build-release (so make app) and release-cli use it.
It replaces a darwin-only file, so Linux and Windows builds are the
same; release-linux, release-windows and install are unchanged. The
script fails the build if sysUnusedOS is not found.
Run:
- Real config, sandbox HOME on mote, 6 minutes, footprint every 15s:
main (w26) settles at 87MB, with this (w27) at 77-79MB; the first
two minutes are the same (131-137MB, then ~123MB). Idle CPU over
90s: 0.19% vs 0.31% of one core; the page release is 10ms in both
profiles (madvise vs mmap), the rest is GC marking, which varies
run to run.
- build/darwin TestFreedHeapLeavesFootprint on mote (darwin, runs the
program) and in WSL (cross-compiles for darwin/arm64): ok.
- Broken by hand: a toy that frees 128MB shows 205MB without the
overlay and 8.4MB with it; with the script's replacement removed the
test's content check fails.
- make cli with the overlay on mote: builds.
Not tried: an Intel Mac; macOS before 27.
The Windows and Linux downloads (and the CLI builds) are the raw binary, so
what is embedded counts in full. 8.2 MB of the 12 MB under internal/gui/assets
is scripts, styles and svgs. `make assets-pack` (build/assetpack) writes them
to internal/gui/assets.zip (deflate; png/jpg/webm stored), and the release
targets and `make app` build with -tags packedassets, which embeds that zip
instead of the tree (assets_packed.go: a file is unpacked once, on first use,
and served seekable with no modification time, as an embedded one is). Plain
`go build`, `make build`, `make cli` and every test still embed the tree.
The zip is git-ignored and made before every release build.
Sizes (go build -trimpath -ldflags="-s -w", on mote, at e430e2750):
linux/amd64 nogui 73,203,874 -> 67,502,242 (-5,701,632)
windows/amd64 app 88,401,408 -> 82,755,584 (-5,645,824)
The macOS zip/dmg compress the binary already, so they gain nothing.
Run: assetpack, then `go test -tags packedassets -run TestPacked ./internal/gui`
(passes: every file byte for byte and no other; / and a range of the webm served;
no Last-Modified). The first try failed it with "packed has 0 files, the tree
301" (zip entries lacked the assets/ prefix), so it does go red on a bad pack.
go vet ./internal/gui on darwin, linux nogui, windows and -tags packedassets:
clean. gofmt clean.
Not run: the full suite and the GUI suite (default builds embed the tree as
before; api.go only lost the embed line), a real release through
magpie-releases (its release.yml calls these make targets), the Linux GTK
build (cgo).
The macOS -race gateway step split 3772 tests by sorted name into one
fixed share per core (3 on macos-latest), and the shares ran out of their
20 minutes with no test hung: run 42354008450 at 191f3c0af ended at 12m,
16m and over 20m (shard 2 in TestMediaJSONPastOldBodyLimit/images), and
42350695944 ran all three at ~19m20s. Two causes: the shares were uneven,
and a few tests scan tens of MB byte by byte, which the race detector
makes 14 to 30 times as slow.
Measured on mote (M5 Pro), -race, -test.v, old script, per test (plain
run in brackets): TestLoopGuardLeavesOrdinaryRepliesAlone 104s (7.6s),
TestLargeRequestEndpoints 104s (3.6s), TestRequestTailAfterOldLimit 33s
(4s), TestCodexBodyReadsPastOldLimit 14.6s (0.55s),
TestMediaJSONPastOldBodyLimit 10.7s (0.7s), TestCodexCompressedTailError
10.2s. Sums of test time per share: 487s, 641s, 761s.
- build/race-shards.sh: the tests go in ~118 chunks of about 32 (test N
in chunk N mod m, so TestCodex..., TestCompaction... spread out), and
each of the N workers takes the next chunk when it is done (xargs -P).
Workers end within a chunk of each other. Each chunk logs in its own
::group:: with its time; the five slowest are printed at the end. A
chunk whose process didn't finish counts as failed.
- oldBodyLimit (the pre-#118 64 MB) is 20 MB under -race
(race_on_test.go), 64 MB in the plain run. 20 MB still passes every cut
below 64 MB (bodyKept's 4 MB, the 8 MB and 16 MB reads); the plain Test
step on ubuntu and macOS still sends the full 64 MB.
- TestLoopGuardLeavesOrdinaryRepliesAlone is skipped under -race: one
goroutine feeds one loopGuard (loop_guard.go starts none), so there is
no race to find; the plain run reads the whole corpus.
After, per test on mote under -race: TestLargeRequestEndpoints 40.7s,
TestRequestTailAfterOldLimit 13.05s, TestCodexBodyReadsPastOldLimit
5.1s, TestMediaJSONPastOldBodyLimit 4.46s, TestCodexCompressedTailError
3.1s, TestLoopGuard skipped: ~210s less race time.
A/B in one window on mote (same commit, binaries built from base and
change, 3 workers, load 15 to 30): old script with old tests 12m59s
wall (red: TestTranslatedStreamKeepsClientAlive, the load-timing test
of #2711/#2737); new script with new tests 10m57s, green, slowest
chunk 62s. On 3-core CI the wall should be about the total over three
plus a chunk, instead of the slowest share.
Broken by hand (wsl-run, Linux): defaultBodyLimit 16<<20 under -race
turns TestCodexBodyReadsPastOldLimit, TestLargeRequestEndpoints and
TestRequestTailAfterOldLimit red (body rejected / 413); defaultBodyLimit
48<<20 in the plain run turns the same three red. So the race run guards
the read-whole path past 16 MB and the plain run still guards 64 MB.
TestCodexCompressedTailError and TestMediaJSONPastOldBodyLimit stay green
with either cap: they never guarded the limit (true before this change).
Run: gofmt -l; on mote GOOS=linux go vet -tags nogui ./..., GOOS=windows
go vet ./..., go vet ./..., go vet -race ./internal/gateway; the seven
touched tests plain on mote (all pass, 21.9s); the whole gateway package
under -race through the new script on mote twice (one red,
TestBurstTellsNoSpeed/responses_from_chat_burst, the load timing of
#2719; the second run green).
Not tried: the race run with a 48 MB cap (it would pass: under -race
nothing now covers 20 to 64 MB, the plain step does); a CI run before
the push.
Fixes#5361Fixes#5320
psikent (Discord #feedback, 11-03) sent a dark Launchpad where magpie's
icon was a near-black tile with a near-black, glassy bird. AppIcon.icon
gave the bird a fill for the light and dark appearances only, so in the
Clear and Tinted styles (System Settings, Appearance, Icon & widget
style), which draw from the tintable rendition, actool used the light
fill: the bird at 0.086 grey, whose luminance is what the system tints.
On a dark tile that is dark on dark. The bird now has a "tinted" fill of
white, so it takes the tint (or the clear glass) at full brightness.
Light and plain Dark are unchanged.
Not (a) or (c): the shipped Assets.car (v0.1.2816 in /Applications,
same sha as build/darwin/Assets.car) matched icon.json, its dark
rendition already a 0.957 bird on the dark grey tile, and the release
build (magpie-releases release.yml, `make app`) copies that file.
Run at this head, on mote (macOS 27.2, Xcode 27.2):
- xcrun actool on build/darwin/AppIcon.icon, as `make icons` runs it;
that output is this Assets.car (sha 72fe0ee3). The old one was made by
Xcode 26.5; StorageVersion 17 and the 25 renditions are the same, and
this Mac's macOS 26.2 assetutil reads it, the tintable group now
filled with Color-2 (white).
- A test bundle (build/darwin/Info.plist, magpie.icns, the Assets.car)
drawn by IconServices for appearances 0-3 x variants 0-3, and by
NSWorkspace iconForFile under AppleIconAppearanceTheme RegularLight,
RegularDark, ClearLight, ClearDark, TintedLight and TintedDark (mote's
setting put back after). The old Assets.car reproduces the report in
ClearDark and TintedDark; the new one shows a bright bird in all six,
and RegularLight / RegularDark look as before.
- Broken by hand: a colour-coded icon (light red, dark green, tinted
blue) showed Clear and Tinted draw from the "tinted" fill.
Not tried: drawing it on macOS 26 itself (no macOS 26 test box; mote is
on 27), and macOS 15 or older, which use the flattened renditions that
this change doesn't alter. IconServices' variant 1 with dark appearance
(no setting in the six themes maps to it) still draws the light bird on
a black tile, as before.
On Windows 10 magpie's icon looked a size smaller than its neighbours
in the taskbar, the tray overflow and Start's "Recently added"
(dzxx0496 on Discord, #general). Every Windows icon was the Mac's tile:
build/windows/icon-*.png (75cb19264, the exe's icon group #3, which
the window, the taskbar and the Start shortcut's IconLocation exe,0
all use) and internal/gui/icon.png (the tray) were build/icon/gen.go's
app(), on macOS's grid, the tile 80% of the canvas with 10% clear on
each side. Windows draws an app to the edges of its square.
- gen.go: app() and the new win() share tile(). win() is the same
white tile, shading and bird (.8 of the tile), a 32nd of the side
clear from 32px up (1px at 32 and 48, 8px at 256) so the rounded
corners' soft edge stays inside, and to the edge under 32px, where
that pixel would only blur it; corner radius .2 of the side (.225 on
the Mac). No new colour.
- build/windows: icon-16 to icon-256 drawn by win(), plus 20, 24 and
40 px, which Windows asks for at 125% to 250%; winres.json lists
them.
- The tray takes internal/gui/icon-windows.ico (16, 20, 24, 32, 40,
48, 64); Wails picks the SM_CXSMICON entry, where the 64px PNG was
scaled down by the system. icon.png, only the tray's, is gone.
- Makefile's icons target draws all of these.
Not changed: macOS (app() is byte for byte the same at 64, 256 and
1024: cmp against the committed icon-256.png and icon-1024.png; the
.icns, Assets.car and tray.png untouched). Linux: its tray is the
glyph with no tile, and its desktop icon (icon-256.png) keeps the
margin GNOME's and the hicolor theme's app icons have too.
What was run:
- mote: go test ./internal/gui: TestWindowsIconsFillTheirSquare (new),
TestTrayIconPerOS and TestTrayIconSize ok. Red, each filed and none
about icons: TestSettingsSaveKeepsWhatItDoesNotSend (#4514, red 3 of
3 at a fresh origin/main 733fac48f), TestMainWindowCorners/macOS_26_SDK
(#3949, macOS 27) and TestColdTurnsTaken once in the package run,
ok when run again (#4510). go vet ./..., GOOS=linux go vet -tags
nogui ./..., GOOS=windows go vet ./..., go build and GOOS=windows
go build: ok. gofmt -l prints nothing.
- Broken by hand: the old PNGs, winres.json and the old 64px picture
as the tray's .ico: TestWindowsIconsFillTheirSquare red, "tile
(25,25)-(231,231) in (0,0)-(256,256), want at least 15/16 of the
side, centred" and the same for each size, "icon-windows.ico has no
16px picture".
- make release-windows on mote at origin/main and at this change, both
exes on the Windows 11 box (xiaomi-gpu). Its console was locked at
the PIN screen, so no desktop screenshot: instead Windows itself
drew each exe and a .lnk to it through IShellItemImageFactory (what
Explorer, the taskbar and Start use) at 16/24/32/48/256, beside
Docker Desktop, Claude, Explorer, Edge and Notepad, and the tray
icon through CreateIconFromResourceEx at 16 to 40 as Wails makes it.
Before: the tile 80% of the square, the tray blurred. After: the
tile fills it as Docker's, Claude's and Edge's do; the tray is
crisp at each size.
Not run: go test -tags nogui ./... (the change is internal/gui's
embeds, which nogui leaves out, and build/).
Not tried: Windows 10 itself, and the real taskbar, tray and Start
with the desktop unlocked. Windows keeps an exe's icon in its icon
cache by path, so a user may see the old one until the cache renews.
Wails v3 sets a Windows window's icon from the icon group with numeric
resource ID 3 (NewIconFromResource(GetModuleHandle(""), 3) in
webview_window_windows.go). build/windows/winres.json named the group
"APP", and go-winres makes a numeric ID only of a "#n" key, so the exe
had no group 3: the window got no icon, and the taskbar and Alt-Tab drew
Windows' blank page. The group is now "#3".
internal/cli/winres_test.go fails while the group isn't under "#3".
Run:
- go-winres v0.3.3 make as the Makefile's release-windows, an amd64 build
of each on the Windows box (yeton@10.0.0.132): the new exe has group 3
and LoadImage(3) succeeds; the old one has neither.
- TestWindowsIconIsResourceThree red on the old winres.json, green now.
- gofmt -l, go vet ./..., GOOS=linux go vet -tags nogui ./...,
GOOS=windows go vet ./..., sandboxed go test ./... at the rebased head.
Not run: the taskbar of the running app seen with the eye; the release
build (signed) wasn't made.
The Race step took 690s on ubuntu and 908s on macOS, almost all of it
internal/gateway: its 1046 tests can't call t.Parallel (t.Setenv rules
it out), so the package ran on one core under the race detector.
build/race-shards.sh compiles nothing itself: it takes the package's race
test binary (go test -race -c), splits its tests round-robin by name over
N processes run at once, prints each process's log in a folded group and
fails when any does. The gateway's TestMain already isolates every
process in its own temporary home, keychain stand-ins and PATH, so the
processes share nothing. The step runs it with one process per core
(getconf _NPROCESSORS_ONLN: 4 on ubuntu, 3 on macOS), the same -race
binary and the same 20-minute timeout; redact keeps its own go test -race.
Every test still runs under the race detector, once.
Locally (Apple silicon, 4 processes) the gateway's race suite passed in
4:39 against 567s of test time run one after another; one test,
TestLargeRequestEndpoints (seven 64 MB bodies, 198s), now bounds it.
* Add German translation and harden paths against unset env vars
Add a German locale to the GUI, tray menu, usage alerts and website home page, and refuse to start when the home folder is unset or relative so nothing is written under the working folder; the pi plugin no longer adopts the user's PI_CODING_AGENT_DIR, and an inherited APPIMAGE no longer selects portable mode. Scripts refuse to run from the wrong folder or empty a shared out folder, and a new internal/testenv sandboxes every test package from the user's real files, which also fixes the Claude picker and Termux installer tests on Windows.
* Makefile: know magpie's folder by its go.mod, so paths with spaces work
The check compared $(CURDIR) with $(dir $(abspath …)), which make splits on spaces, so a checkout under 'My Projects' or 'John Doe' refused every target. It now reads go.mod relative to the working folder and wants magpie's module there: make -C and a symlinked Makefile work, make -f from another folder still stops before any recipe runs.
* i18n: German for the strings main added since, with a parity test
75 strings main added (group order, patterns, slow-start wait, usage caps, RTK savings …) get their German, and two that main dropped go. gui-de.test.cjs checks, as gui-ja does, that de has every zh string with its placeholders and tags, and that the window reads in German when picked or on a German system.
* appdir: ignore relative folder variables when reading, keep them for children
CheckEnv no longer unsets anything. magpie reads the XDG folders, APPDATA/LOCALAPPDATA and every agent's folder variable through appdir.Getenv/LookupEnv, which pass over a relative value; the environment stays as it is, so the agents magpie starts get the variable as the user set it. That covers what proc.UserPath lends from the login shell too, which is set after main's check and reached the desktop app unchecked. On Windows a path rooted on the current drive (\Users\x, Git Bash's /c/x) counts as usable, and magpie version and help answer without a home, before run makes any folder.
* Sandbox the tests main added since
internal/wslrun gets testenv's TestMain, and four tests main added that set HOME alone set their home with testenv.SetHome, so on Windows they don't read the runner's profile through USERPROFILE.
* agentenv: PI_CONFIG_DIR and OPENCODE_DB take relative names on purpose
omp puts $PI_CONFIG_DIR under the home and OpenCode a relative $OPENCODE_DB in its data folder, so neither depends on the working folder: appdir no longer passes them over.
* i18n: German for the Library's multi-select and System One's decision API
The 19 strings main added since (#791's skill multi-select, the decision API snippets) get their German; the one main replaced (four APIs → five APIs) goes.
* appdir: tidy the import into magpie's group; say what Go makes of /c/x
The appdir import joins the group of magpie's own imports where a file has one. rooted's comment now says that Go takes a Git Bash path like /c/x as \c\x on the current drive, not C:\x.
A vendor or relay can hand out a ready-made provider as a link. The app
registers the magpie scheme (Info.plist on macOS, HKCU on Windows, a
.desktop handler on Linux), a second launch hands the link to the running
one, and the window shows what the link would add, with the hosts the
prompts and key would go to, before anything is saved. `magpie import`
does the same in a terminal.
The Windows app cross-compiles (WebView2, no cgo) as a GUI program with an
icon, version info and a DPI-aware manifest; run from a terminal with a
command it borrows the console. The Linux app links GTK 3 and WebKitGTK
4.1. Off the Mac the app updates its own binary from its own build:
downloaded in the background, swapped in on restart or quit, and the
relaunched process waits for the old one before taking the gateway. The
window leaves room for traffic lights only on a Mac.
The product, module path (github.com/yetone/magpie), binaries, env vars
(MAGPIE_ADDR, MAGPIE_DEV_UI, MAGPIE_THEME, MAGPIE_DEBUG), config and cache
folders (~/.config/magpie, ~/.cache/magpie), bundle id (com.yetone.magpie),
gateway provider id and token, and every UI string now say magpie.
On first run magpie copies ~/.config/dial and ~/.cache/dial to the new
folders when they don't exist yet (copy, not move, so a still-running dial
keeps working; the old folders can be deleted by hand later).
The logo is a small round magpie in profile: one path for the header and
the tray, and the app tile adds the white belly and the blue-green tail.
The header mark is drawn in ink rather than the accent colour, which
fought the text in light mode.
The gateway glyph is gone. The mark is now a kingfisher in profile, facing
the wordmark: big head, dagger beak, short tail, one line for the wing, the
eye a hole. The header draws it in ink rather than the accent, which fought
the text in light mode. The icon generator rasterizes the same SVG path
(flattened cubics, even-odd fill), and the app tile is kingfisher blue.
Three inputs from the left, two of them curving in, meet at a hollow node
and one line leaves to the right: many models, one endpoint. Replaces the
detent ring, which read as a power button.
A control ring open to the upper right with a detached index reaching
through the opening: the instant a knob clicks into position. One glyph
on a 44-unit grid drives the window header SVG, the menu bar template
icon and the app icon; the generator draws it with round-capped strokes
so the three stay identical.
Wails v3 tray panel and window, TUI and CLI. Switches model, effort and
provider for Claude Code, Codex, Gemini CLI, OpenCode, Pi, Goose, Cursor,
Copilot CLI and Crush with format-preserving config edits. Providers page
and registry, stored keys, live vendor model lists, profiles.
Co-Authored-By: Claude <noreply@anthropic.com>