Their requests were unnamed in Usage and Routing. FlowDown (wiki.qaq.flow)
sets no User-Agent in its sources (checked Lakr233/FlowDown), so the system's
"FlowDown/<build> CFNetwork/..." is what arrives; Bob (com.hezongyidev.Bob) is
closed source and is matched the same way, by "bob/". Icons are the apps' own
App Store icons at 64px, as color SVGs wrapping the PNG, so app.js's size
budget is untouched.
Run: TestFlowDownAndBobAreClients (agent), see push notes for the rest.
Not tried: real traffic from Bob (its UA is the CFNetwork default for its
executable name, not captured); FlowDown/Bob are not wired as agents, since
neither reads a config file magpie can write.
7050da0a4 (Norethcy on X) made each other Hermes profile an agent
hermes#<name> so the Library could give it its own skills and MCP servers,
and that also put one row per bot, each with its own model pick, in the
Agents list. geekbb: Hermes should have one entry; the bots Hermes made are
Hermes's to manage.
The profile agents stay, as the Library's targets (Norethcy's request keeps
working), but are now marked Agent.Nested: DetectedIn (the Agents list, the
tray panel and every picker built from it) and ClientsIn leave them out.
All and Find still reach hermes#<name> by id.
Existing settings: a model a user set on a profile lives in that profile's
config.yaml and is not touched, so it keeps applying; a profile on magpie
still follows the connected config's model unless it was picked, and a
picked one stays picked (hermes:<path>:picked). Nothing is dropped or
rewritten; what goes is only the extra row and its picker.
Run on mote: go test ./internal/agent ./internal/library; new
TestHermesProfilesAreNotListedAsAgents, red with Nested off and green with it;
GUI hermes-profile-row (rewritten: one Hermes row, no "Hermes ·" text),
hermes-profiles, i18n-keys in chromium and webkit, five languages; gofmt;
go vet darwin, linux, windows for agent and library.
Not tried: a real Hermes with several bots; the full suite before the tag.
kudi3699 again: v0.1.3877's Lapsing faded the lost share across the
week and needed 0.5 points. A WorkBuddy check-in reward is a few dozen
credits (20 of a 5100 pool is 0.39 points, less the fade), so it stayed
under the threshold until its last hours and the half-used account was
still never picked. The plugin side is fine: mover min is 0.2.29, past
0.2.27 that reports check-in rewards' runsOutAt/runsOut, so no plugin
change.
Allowance.Lapsing is now the whole loss in points when RunsOut is within
7 days, none past it (no fade); routes.lapsingMin is 0.1 points. A seat
at 90%+ is still not helped.
Run (mote): go test internal/routes, internal/provider -run
"Lapsing|LeastUsed|Allowance", internal/gateway -run
"WorkBuddy|LeastUsed|Smart|Pace|Routing"; go vet -tags nogui for linux,
windows, darwin on the three packages; gofmt clean. Broken by hand:
lapsingMin back to 0.5 turns TestLeastUsedSpendsSmallCheckInRewardSixDaysOut
red (20 credits, 6 days out, old 50% vs new 20%). Not run: the full suite
(after the tag), real WorkBuddy accounts.
"Test on account..." posted the pick as `account` with provider/test, but
the test action never read it: the body's Account was only used by other
actions, so provider.TestOn was never called from the GUI and every test
went with routing's pick (d96403141 tested TestOn in the provider package
only). Now the action puts req.Account on the context for both the model
tests and the provider's Test, for every kind TestOn covers (keys, pool
sign-ins, plugin accounts), as one handler.
Run: gofmt clean; mote-run go test ./internal/gui (new
TestProviderTestIsPinnedToTheAccountPosted, TestProviderTestStops,
TestProviderInfoSaysTestPicks) ok. Broken by hand: with the TestOn line
back to r.Context() the new test is red (pinned to the second key came
back Account:first, 503 wrong key), which is the report.
Not tried: a real ChatGPT or plugin account pair; their path is the
provider package's, already covered by TestModelTestPinnedToAnAccount.
/docs/mistral-vibe says how magpie sets up Mistral Vibe (the vibe
CLI): config.toml in $VIBE_HOME or ~/.vibe, magpie's [[providers]]
entry at the gateway's /v1 and one [[models]] entry per catalog model
aliased magpie/<provider>/<model> for /model and active_model; the key
as an Authorization header in extra_headers, since Vibe reads keys only
from the environment or keyring, and nothing written to the environment
or ~/.vibe/.env; thinking levels and the 128K default; the user's other
keys kept and Avibe's vibe not taken for it; and active_model put back
on switching off. Each claim is from internal/agent/vibe.go. Linked
from each language's Pencil page and to the Mistral page; in the
sitemap, llms.txt and llms-full.txt.
Run: the three pages' JSON-LD parsed with node; llms-full.mjs rebuilt;
node --test site/*.test.mjs on the WSL box (magpie-desktop, wsl-run):
116 pass, 0 fail.
Not tried: Mistral Vibe itself with magpie for this page; it names only
what magpie's source says.
An upstream that turns Responses into Chat itself (OpenDesign,
deepseek-v4.1-flash) passed output_index on as tool_calls[].index. With a
sentence of text first the calls came as 1,1,2,3, and a client that keeps
calls in an array by index broke on the whole turn. chatTidy's renumber
gave a call its upstream index unless another call had it; it now gives
each call the next index in the order calls start, so 1,2,3 is 0,1,2 and
the 0,0,1 case still is 0,1,2. A stream numbered from 0 in order is
unchanged. The Responses to Chat encoder (chatEncoder) and the Messages
and Gemini translations already count calls, not positions; plugin
streams go through chatTidy.
Run: TestChatTidyNumbersCallsFromZero (text then three parallel calls),
red with the old renumber (frames 1-5 kept 1,2,3), green with it; the
chatTidy tests; go test ./internal/gateway on mote; vet on darwin, linux
nogui and windows.
Not run: the full suite before the tag; a real OpenDesign account.
After Kimi Code's 7-day window reset with nothing used, the card lost its
"Whole ≈ N tokens" until the new week passed 5% used. The reckoning is
every provider's (usage.WithWindowHolds), so the fix is too: carryHolds
keeps the last whole told for each account's window (window-holds.json,
temp-and-rename) and, where the new window is under the floor or has none
routed yet, shows it with holds.prevAt set. The tooltip reuses the past
cycle's "Estimated from the window that began X, read Y" line; no new
label. The new window's own figure replaces it as soon as it can be told.
Run (mote): TestWholeKeptAcrossReset (reset with 0% and 2% used, restart
from disk, same-window under floor, other account, new window with data),
go test ./internal/usage ./internal/provider ./internal/gui (only
TestCoreScriptBudget red until its +10 here), quota-holds and quota-curve
GUI files in chromium and webkit (all 5 languages x 360/1000px for the new
case), gofmt, go vet darwin/linux/windows for usage and provider.
Broken by hand: carryHolds returning early reds the Go test and the GUI
case; dropping the prevAt branch in app.js reds the GUI case.
Not tried: a real Kimi account across a real weekly reset; a full
./... suite before the tag.
The plugin's customer-package-reset list can flag a reset available after
its expireTime; 0.1.61 skips those (plugins fc87cc88). The min makes
keepMovedCurrent update every moved user.
Run: npm view --prefer-online shows 0.1.61; go test -run 'Moved|Mover|Migrat|ZCode'
./internal/provider on mote ok; gofmt clean. Plugin: bun test packages/zcode,
256 pass, the new test red on the old code.
Not tried: a full go test ./... before the tag, nathan's real reset list.
/docs/pencil says how magpie sets up Pencil (pen.dev): a magpie
provider in Pi's format in ~/.pencil/models.json, on OpenAI Completions
at the gateway's /v1 for every model, under magpie's key for Pencil;
the fields each model carries (Pi's 128K and 16K defaults, zero cost,
no per-model api or baseUrl); the restart Pencil needs and the model
picked in its agent composer; how magpie finds it; the user's other
providers and their own keys kept; and switching off. Each claim is
from internal/agent/pencil.go and theirsKept in sync.go. Linked from
each language's WorkBuddy page; in the sitemap, llms.txt and
llms-full.txt.
Run: the three pages' JSON-LD parsed with node; llms-full.mjs rebuilt;
node --test site/*.test.mjs on the WSL box (magpie-desktop, wsl-run):
116 pass, 0 fail.
Not tried: Pencil itself with magpie for this page; it names only what
magpie's source says.
KoiLx0 could not find how to give Claude Code's opus tier a group of its
own. The CLI already does: `magpie claude opus <model>` (also sonnet,
haiku, fable; Claude Desktop the same; omp's roles as `magpie omp small
<model>`), and `<tier> default` puts it back on the main model. Only the
field list hinted at it, and a bare `magpie claude opus` sets the main
model. agentHelp now prints the form with the tiers or roles it takes.
Run (mote-run, sandbox HOME): a probe wired claude on group/opus, then
opus group/fast, sonnet b/gpt-5.5, haiku a/only-a wrote the three
ANTHROPIC_DEFAULT_*_MODEL lines; `opus nope/zzz` is refused ("not a model
magpie serves"); `--haiku x` is refused as an unknown flag. New
TestAgentHelpNamesTheTierForm, red with the help line switched off.
go test ./internal/cli ./internal/agent; vet darwin, linux nogui, windows.
Not tried: a real Claude Code session on the written tiers.
An Ollama provider's list (/v1/models) names no window, so every model
took models.dev's guess or the agent's default and had to be set by hand.
The list now asks each model's /api/show (8 at a time, 6s in all) and
takes the window from the Modelfile's `num_ctx` in "parameters", else the
architecture's model_info.*.context_length. The reply limit is a quarter
of the window up to 32K when neither models.dev nor the user says one.
Compaction follows the window, which Codex and Claude Code already hold
their threshold under. A window or Max output the user typed still wins
(windowIn, replyLimit); a model whose show fails keeps the list as it was.
Scoped to the "ollama" preset; Ollama Cloud is unchanged.
Run on mote: go test ./internal/provider ./internal/catalog ./internal/agent
ok; go vet darwin, GOOS=windows, GOOS=linux -tags nogui on internal/provider;
gofmt clean. New TestOllamaListGivesModelfileWindow (fake Ollama, user-set
window present) fails with the list hook commented out (Context:0).
Not run: full ./... suite before the tag, a real Ollama, Windows/Linux runs.
/docs/workbuddy says how magpie sets up Tencent's WorkBuddy: magpie's
models in ~/.workbuddy/models.json (or $WORKBUDDY_CONFIG_DIR), either
file shape, an entry's fields at /v1/chat/completions under magpie's key,
the custom-local:<id> picker per task and the restart WorkBuddy 5.6 can
need; the extra 200K context size and maxOutputTokens; what stays the
user's after WorkBuddy's own rewrite (models turned off, a NAS magpie,
typed reply limits, a default effort); WorkBuddy AI in ~/.workbuddy-ai,
WSL; and switching off. Each claim is from internal/agent/workbuddy.go.
Linked from each language's VS Code page; in the sitemap, llms.txt and
llms-full.txt.
Run: the three pages' JSON-LD parsed with node; llms-full.mjs rebuilt;
node --test site/*.test.mjs on the WSL box (magpie-desktop, wsl-run):
116 pass, 0 fail.
Not tried: WorkBuddy itself with magpie for this page; it names only
what magpie's source says.
Qoder 0.2.67 (npm has it, checked with npm view) gives the "Total credits"
window the plan's resetsAt. Routing reads no window set aside, so a Teams
account with plan + shared credits had no renewal and Smart put it behind a
WorkBuddy account renewing in 18 days. Plugin change and its test:
magpie-community/plugins bc9f611e (message there is wrong, see 7b42e404).
Run: mica-run go test -run 'Mover|Moved|Migrate|Qoder' ./internal/provider
ok; gofmt clean. Not run: the full suite, a real Teams account.
4519eea71 (Settings › About's Report a problem) left main red on
ubuntu and macOS at d0a4e0be6 (run 43215704825) in two guards outside
the packages it ran:
- TestNoEagerPackageRegexps: feedback.go's osVersionRE was a
package-level regexp.MustCompile; it is lazyre.New now.
- TestEveryRouteHasACommandOrIsNamed: GET /api/feedback had no command
and wasn't in notYet. It is the window's own (it builds the block the
About row copies), so it goes in notYet as W.
Run on mote at this tree: TestNoEagerPackageRegexps ok,
TestEveryRouteHasACommandOrIsNamed ok, internal/gui -run Feedback ok
(TestFeedbackBlockHoldsNoPrivateFacts), go vet of gui and cli plus
GOOS=linux nogui (cli) and GOOS=windows (gui) clean. Red before: both
guards in run 43215704825.
Hermes makes a profile's id from a non-ASCII name with slugifyProfileName
(apps/desktop hermes-bots/labels.ts): each non-ASCII letter becomes
-u<hex>-, so 个人数据管理 is u4e2a-u4eba-u6570-u636e-u7ba1-u7406. The
Agents list drew that id: "Hermes · u81ea-u52a8-u5316-u673a-u5668-u4eba".
A Hermes profile row (hermes#<id>, and the profile:<id> model field of the
connected Hermes) now reads the name Hermes keeps in the profile's
profile.yaml (ui_meta.hermes-bots.title, then display_name, the order its
Bots roster uses), else the id with those runs decoded: excel--u64cd-u4f5c-u5458
is excel操作员, test-u673a-u5668-u4eba is test机器人. A token below U+0080 or
not a letter or digit is left as written. The id (agent id, folder, `hermes -p`)
is unchanged; the row keeps its "Hermes · " prefix and layout. Every place
the name shows (GUI rows and subtitles, TUI, usage/sessions) takes Agent.Name,
so one change covers them.
Run: TestHermesProfileRowsReadAsNames with the reporter's six ids (red on the
old code: names stay the raw ids, broken by hand); go test ./internal/agent
./internal/library ./internal/usageapi ./internal/tui; vet darwin, linux nogui,
windows.
Not tried: a profile created in the real Hermes app (its source was read, not
run). A hand-named ASCII profile like "uface" (u + 4 hex) would also decode.
dshSettingsRoute marshalled the pi section before and after putting
magpie's routes in, to tell whether anything changed. On a real
account's sandbox (mote, ~/r2278) that was 12.75 MB of the first 45 s's
allocations, every start. The section is now copied, and the copy and
the edited tree compared field by field (yamlSame: every field Marshal
reads, not line and column). Only when the trees differ are both
marshalled, so a tag spelled out on one side still reads as no change.
Run:
- real-account sandbox, alloc profile at 45 s: w28 yaml.Marshal from
dshSettingsRoute 12.75 MB, w30 none; total 547 -> 503 MB.
settings.yaml's mtime unchanged (Nov 10) after the w30 start.
- mica: go test ./internal/agent ok (333s), go vet, GOOS=linux and
windows vet; new TestYamlSameReadsWhatMarshalWrites.
Not tried: a settings.yaml whose section magpie does change, beyond
the existing dsh tests.
/docs/vscode says how magpie sets up VS Code's own Chat (GitHub
Copilot Chat): the Custom Endpoint provider since Stable 1.122, with no
GitHub sign-in or Copilot plan; magpie's customendpoint group in
chatLanguageModels.json, each model at /v1/chat/completions with tool
calling on and magpie's token in requestHeaders, since an apiKey is read
from secret storage alone; chat.defaultModel for a new chat; every
profile, Insiders and portable builds; VSCodium's Marketplace Copilot
Chat 0.48.1 and its OpenAI Compatible provider (x-api-key, personal
Copilot plan, the product.json and chat.disableAIFeatures setup); what
picking VS Code's own model and switching off each do. Each claim is
from internal/agent/vscode.go. Linked from each language's Claude
Science page; in the sitemap, llms.txt and llms-full.txt.
Run: the three pages' JSON-LD parsed with node; llms-full.mjs rebuilt;
node --test site/*.test.mjs on the WSL box (magpie-desktop, wsl-run):
116 pass, 0 fail.
Not tried: VS Code itself with magpie for this page; it names only
what magpie's source says.
coreScriptBudget rose four times on 11-12 (d96403141, 05cadcafd,
4519eea71, 09e2eef0d), 1,089 bytes with nothing moved out, the third day
the budget lesson was seen (10-17, 11-10). Per LESSONS' rule it moves into
docs/code-standards.md as a row of "What a change contains". Docs only.
In a browser tab (magpie web, or the app served to a browser) api("open")
always ran window.open in the viewer's browser, so a cindy:// import link
opened the viewer's own Cindy while the "added" status is read from the
host's Cindy database. App import links now go to /api/open and webHost
opens them with the host's system opener (openOnHost); http(s) links stay
the page's. Fixes Cindy, Lody, AionUi and Cherry Studio rows alike.
Run (mote, at this head): go test -tags nogui ./internal/gui ok; go vet nogui,
windows, darwin ok; gofmt clean; GUI import-web-host, import-row, click-scroll,
i18n-keys: 27 pass / 0 fail in chromium and in webkit.
Broken by hand: old app.js, new import-web-host test in chromium: red (the
page tried to launch cindy:// itself, no /api/open request). The Go test does
not compile on the old web.go (no openOnHost).
Not tried: a real remote host with a real Cindy; the old-code run in webkit.
/docs/claude-science says how magpie connects Claude Science,
Anthropic's research app: it restarts the claude-science daemon (stop,
then serve --detached --no-browser on its port) with ANTHROPIC_BASE_URL
set to the gateway, and sets no variable for the user and writes no
file; the hand-run command (ScienceLaunch); https or loopback http only;
where the program is found; the Claude sign-in it still needs, which the
gateway never passes on, and the X-Anthropic-Surface: operon header;
claude-magpie-<number> aliases in its model menu; the keeper (restarts,
the window's own daemon, service managers, three retakes an hour); WSL
through wsl.exe with a socat relay under NAT; switching back. Each claim
is from internal/agent/claudescience.go, claudescience_wsl.go and
internal/gateway/science.go. Linked from each language's mu page; in
the sitemap, llms.txt and llms-full.txt.
Run: the three pages' JSON-LD parsed with node; llms-full.mjs rebuilt;
node --test site/*.test.mjs on the WSL box (magpie-desktop, wsl-run):
116 pass, 0 fail.
Not tried: Claude Science itself with magpie for this page; it names
only what magpie's source says.
6055f626e (v0.1.3899) fit the budget at fd9033cbf, but the base moved
under the rebase (a2feeb11a, 4519eea71) and TestCoreScriptBudget read
1264422 against 1264309. withScheme was already cut to one expression
and respellURL's /i flags dropped; nothing on the page has a plugin to
move to, so the budget rises by the 113 bytes over, as the entries
before it did. Run: TestCoreScriptBudget ok on mica.
Remote magpie and System One addresses got "http://" put in front by
several normalisers that each tested for "://" their own way, and one
saved "http://http://host" stayed that way until the address was deleted
and added again.
provider.WithScheme (new, internal/provider/scheme.go) is the one rule:
trim, add the default scheme when none is there, lowercase http/https,
and collapse a repeated http/https prefix to the innermost one. Path and
trailing slash are left as written; "host:3425/x?u=http://y" has no
scheme. It is used by provider.normalize (every provider URL, on read),
remoteMagpieEndpoints, DetectDecide, parseAddress and gui remoteAddr.
app.js has withScheme as its mirror, used by hostOf, localAddress,
vertexRoot and respellURL (whose gemini/openai regexes now match any
letter case).
Old data: an address saved with a doubled scheme is repaired when it is
read (provider.normalize for providers and System One addresses,
loadRemote for remote-magpie.json). The file is written out correctly on
the next save; nobody has to delete and re-add. Reading alone does not
rewrite the file.
app.js: the core script budget is met without a raise;
withScheme was cut down to fit (final package run after the rebase on fd9033cbf: gui and provider ok).
Run:
- go test ./internal/provider ./internal/gui ./internal/settings
./internal/cli on mote: ok, except TestCoreScriptBudget (284 over),
fixed by shortening the JS and re-run alone: ok.
- gofmt -l, go vet darwin, GOOS=windows, GOOS=linux -tags nogui: clean.
- GUI on mica, chromium and webkit: scheme-once, local-address,
custom-systemone-url, decide-endpoint-label, azure-endpoint, remote-*,
i18n-keys, connect-address-kept: 158 of 164 pass; the 6 reds are
"Remote magpie asks for the other magpie's address", red the same at
origin/main 5e933e153 (#6099).
- add-sheet-custom, provider-fetch-again, provider-gemini: 14 of 54 red
on mica, the same 14 at origin/main ab98228cc (#5232, #6209).
Red on the old code: scheme_test.go, remote_test.go (Go) and
scheme-once.test.cjs (withScheme undefined) were run against an
origin/main copy and failed there.
Not tried: the place that produced "http://http://" was not found by
reading (every guard used Contains("://")), so this hardens every
normaliser instead of one site; no real remote magpie was used; the full
GUI suite was not run.
TestNoEagerPackageRegexps (root package) was red on main since
36eebea13: internal/update/behind.go:122 compiled urgentLine with
regexp.MustCompile at package level. Main's Test run 43201591823 (at
67f61bd78) failed on it on macOS and ubuntu. It now uses lazyre.New;
its one call is MatchString, which lazyre has.
Run on mote at origin/main f6c882ad7 + this: go test -run
TestNoEagerPackageRegexps . ok (red with the old line put back:
behind.go:122:18); go test ./internal/update ok; go vet of
internal/update, linux nogui and windows; gofmt -l empty.
After the Sessions caches dropped (five idle minutes), the next
/api/sessions/stats on `magpie web` took 2.3–4.1s on the real account
on mote while its handler ran ~220ms of CPU. Two goroutine dumps taken
1.2s and 1.8s into the ask both sat in ownSessionsOff → agentsHere →
agent.Detected → HasApp → desktopApp.version → spotlightBundles: one
mdfind per bundle id (13 of them, ~50ms each idle, far more under
load), serial under one lock, asked again whenever the 5-minute answer
expired. Every other agent.Detected caller (Providers, quit ask, gateway
pause, Sessions) paid the same.
- spotlightBundles asks one `mdfind -attr kMDItemCFBundleIdentifier`
for every id desktopApps names, and keeps the answer by id. Past
spotlightFresh a caller gets the kept answer at once while one
goroutine asks again; only the first ask after start waits, once for
every caller. A failed mdfind keeps the answer before it.
- agentsHere stops at the first detected agent instead of checking all.
Measured with the real account's data on mote, the Sessions stats ask
at 370s, after the drops (`magpie web`, sandbox HOME):
main (w27) 2.3–4.1s in three runs earlier today; 1.34s in this run,
while mote's load fell from ~180 to ~10
this (w28) 0.77s at load ~170, then 0.046s
The rest of the 0.77s is the stats themselves being read again.
Tests: TestSpotlightParse; TestSpotlightOneAskStaleNeverWaits (10 reads
are one ask; a stale read returns while the refresh is held; two stale
reads are one refresh). On mica: go vet ./internal/agent ./internal/gui,
go test -count=1 -timeout 45m ./internal/agent ./internal/gui ok
(280s, 186s).
Not tried: Spotlight off on the Mac (mdfind fails; the answer is none,
as before); Intel Mac.
usemagpie.ai's download is slow for some users (Cloudflare R2) and GitHub
is the one that works for others. Settings > Network has an "Update source"
menu button under App updates' proxy (the app's menu, no native select):
Automatic (default, as before: the site, then GitHub when the feed can't be
reached), usemagpie.ai only, GitHub only. Settings.UpdateSource ""/site/
github, this computer's own (KeepOwn), in settingsapi.Keys and Choices so
`magpie settings set updateSource github` works; any other value is refused
on save. The menu loads from assets/updatesource.js, so app.js (at its
budget) grows by one line.
GitHub only: latestAt reads yetone/magpie-releases without asking the feed,
and download starts at the file's github.com address (mirror and GitHub's
API route as before), never the site. usemagpie.ai only: no fallback to
GitHub for the release (fallsBack) nor for a file (toGitHub, toAPI off).
Stable and a MAGPIE_UPDATE_FEED of your own keep reading the site's feed
whatever the source says (Stable's release list is only the site's; its
files still come from GitHub on GitHub only). Every source goes through
Release.verify: ed25519 signature against the embedded key, the version in
the signed text, each hash from the signed list; a release read from GitHub
must be signed whatever its version. The update private key is untouched.
Run (mote, tree before the commit): gofmt clean; go vet update/settings/gui,
GOOS=windows and linux vet of update; go test internal/update, settings,
settingsapi, backup, cli ok; internal/gui TestCoreScriptBudget, assets and
i18n tests ok. GUI: settings-update-source (chromium and webkit x en, zh,
zh-TW, ja, de x 1100 and 420px: three menu items, each pick saves updateSource
alone, tick, no overflow), settings-update-proxy, i18n-keys, i18n-en-no-cjk,
settings-*, gui-* ok except the 22 subtests (gui-de/ja "has every zh string",
settings-hints, settings-lines-wrap de 440, settings-search) that fail the
same on origin/main 5a3d73039 (#6234, #6073, #6156, #6133 are open for them).
New Go tests use a fake GitHub and a live fake site feed that count their
hits: GitHub only never asks the feed and downloads from GitHub, the site and
Automatic never ask GitHub, the site only never falls back (release or file),
GitHub only refuses wrong key, swapped sums, no/junk signature and an
unsigned old version, a custom feed is never overridden. Broken by hand:
without the githubOnly branch and the two download switches, 3 of them go red.
Not tried: the real github.com or R2, a Windows run, Stable with GitHub only.
d96403141 added "Test on account…" to a model chip's right-click, shown
when the provider row has testPicks, and added provider.TestPicks. The
row the GUI is sent (providerJSON in internal/gui/providers.go) never set
the field, so the entry never showed for any provider: tmr11235's ChatGPT
API with two ChatGPT sign-ins on v0.1.3884 has only Test this model, Copy
model ID and the image toggle. The GUI test fed a hand-made testPicks and
the provider tests called TestPicks directly, so nothing joined them.
providerJSON now carries TestPicks (p.TestPicks()).
Account kinds checked (TestPicks reads AccountsOn for any signed-in
provider, KeyList otherwise): API keys (first key and saved keys, off ones
left out); signed-in accounts and their also-on accounts of every sign-in
that AlsoOn lists: ChatGPT API's ChatGPT sign-ins, Codex and Claude logins,
Copilot, Gemini and Antigravity, plugin accounts. Read, not each signed in:
only keys are run as a row (new test); plugin accounts are covered by
TestModelTestPinnedToAnAccount; the ChatGPT API shape is in the GUI test.
Run on mote (load ~107 at the time, mica 128): go test ./internal/gui
./internal/provider ok; model-test-account (now with a ChatGPT API
provider with two accounts) and i18n-keys 14 of 14, chromium and webkit,
en zh zh-TW ja de; gofmt clean; go vet darwin, windows, linux nogui.
Broken by hand: with TestPicks left out of the row,
TestProviderInfoSaysTestPicks fails ("two keys on: testPicks []").
Not tried: the live app with two real ChatGPT sign-ins. The GUI test serves
a fixed /api/providers, so it is not red on the old code; the Go row test
is the guard. The other model-* and provider-* GUI files not rerun (a Go
field the page already reads).
Cause. A skill's group is traced (tracer.repoOf) from files that belong to
one computer: the skills CLI's lock, a git checkout, CC Switch's record,
and Skill.From noted by an install-again or Group again. The sync bundle
carried none of it (CarriedSkill had Source, not From), and Put built every
skill as a new Skill, so the other computer had nothing to trace and put
the skill under "this computer". Group again only fetches repositories some
skill is already traced to, so with no skill traced it had nothing to start
from; and where it did group, the next sync's Put wrote the skill new again
and took it back out.
Change. Collect carries the traced repository as CarriedSkill.From for a
skill with no source of its own (none, or a folder). Put writes it as
Skill.From. When the bundle has none (made by a magpie before this), Put
keeps the From this computer already found for the same skill, and keeps
Skill.Gone ("kept on this computer only") for one with the same source.
Old data. Skills synced before this stay in "this computer" until one of:
the computer that has the trace updates and syncs (its bundle then carries
From, and Put applies it here), or Group again here, which works as soon as
one skill of the pack still names the repository (a skill installed from
GitHub carries its source); the result now survives later syncs. A pack
with no skill traced anywhere on the receiving computer has nothing to start
from there until the first computer has synced with this version.
Tests (library/carry_from_test.go), each red on the old code:
TestSyncedSkillKeepsItsRepo (lock-traced skill A -> B -> C),
TestSyncKeepsRepoFoundHere (old bundle, From found here kept),
TestRegroupAfterOldSync (old sync, Group again, then the same bundle
again). Broke Put's From by hand: first two go red.
Run on mote: go test ./internal/library ./internal/davsync ./internal/backup
./internal/gui ok; Library GUI files in chromium and webkit (see below).
Not tried: two real machines through S3 (the fake-S3 davsync tests pass);
a copy Group again bound to its repository is still unbound by a sync from
a computer that has it unbound (filed).
Formats from Cloudflare's docs (fundamentals/api/get-started/token-formats
and /ca-keys): the scannable prefixes cfut_ (user token), cfat_ (account
token), cfk_ (Global API Key) and cfoat_ (Wrangler OAuth), each 40
characters and a checksum; an Origin CA key, which always starts v1.0-
(two alphanumeric runs split by a hyphen); a tunnel token, base64 of
{"a":..,"t":..,"s":..} so it starts eyJhIjoi (the docs show only that
head). The X-Auth-Key and X-Auth-User-Service-Key headers are masked
whatever the value looks like. The unprefixed older token (40 letters) and
Global Key (37-45 hex), and an R2 Secret Access Key (64 hex), have no
shape and were already masked under their names (CLOUDFLARE_API_TOKEN,
AWS_SECRET_ACCESS_KEY); the test pins that. An R2 Access Key ID is an id
and goes as written by design (TestIDsGoAsWritten), so it is not masked.
The checksum's length and alphabet aren't documented, so the prefixed rule
takes 40 or more of [A-Za-z0-9_-]. The origin CA hex split is not in the
docs; the rule takes alphanumerics.
Docs: the masking page (en, zh, ja) and llms-full.txt list them.
Run (mica, mote was loaded): go test -count=1 ./internal/redact ok;
gofmt; go vet darwin, linux nogui, windows. The new tests were red on the
old code for every prefixed, Origin CA, tunnel and X-Auth-Key case, and
keep SHA-1/SHA-256/MD5 hex, a base62 string, v1.0-beta, a bare prefix, an
R2 id and a JWT header unmasked.
Not tried: a real Cloudflare token (fake values in the documented shapes);
the full suite and GUI suite (no GUI file touched).
A user who hit a problem had to work out what to tell us. Settings ›
About now has a Report a problem row with an Open button: it copies a
short block to the clipboard (magpie version, OS name and version,
architecture, and whether this is the app or the browser page), says it
was copied, and opens the feedback post
https://x.com/magpie_router/status/2119861020978188499 so the user can
paste it in a reply. GET /api/feedback builds the block and the URL.
The block holds no account names, keys, paths, host or user names, and
nothing is put in a URL: the opened address has no query or fragment.
The TUI has no Community links, so it gets nothing here. The core script
budget is raised by 458 bytes for the row and its translations
(1,263,851 to 1,264,309 with the provider commit under it).
Run, on mica: new TestFeedbackBlockHoldsNoPrivateFacts (version, OS,
arch, surface; no home dir, host or USER; URL with no ? or #; macOS
version present; unknown surface becomes app) and about-report.test.cjs
(clipboard gets the block, /api/open gets the post URL with no
diagnostics), chromium and webkit, en zh zh-TW ja de, widths 1100 and
420, 40 of 40 with about-website; vet on darwin, windows and linux nogui
clean. Broken by hand: a "Home:" line added to the block turns the Go
test red. A loaded run of the About files plus gui-de/ja/zh-tw and the
i18n files had 40 reds in usage and picker files; the reachable ones
were run alone on origin/main 5e933e153 (see the provider commit under
this one: usage-hidden-way-back #6295 and usage-agents-hide #3414 are
red there; the rest pass alone).
Not tried: the Linux app (WebKitGTK) and Windows; the clipboard write in
the Wails webview rather than a browser.
Providers sync between computers (WebDAV, S3, GitHub), so a model served
from one machine's localhost reached the others, where it can't be
reached. A provider now has "Only on this device": sync neither sends it
out nor lets a copy from another computer replace or delete it.
Provider.ThisDevice is set from the provider row's right-click menu
(Only on this device, a check when on) or `magpie provider this-device
<id> yes|no`, over POST /api/provider/thisdevice. davsync's collect drops
those providers and their order entries (provider.SyncedOnly); Mirror
skips an incoming copy of one and keeps the local ones; Restore keeps a
local mark. A normal editor save keeps the mark. File backups still carry
the provider with its mark.
Default is off for every provider, localhost included. A 127.0.0.1
provider is also what another computer runs for its own copy of the same
local server, and default-on would remove those copies on their next
sync; a LAN address is reachable from the other computers. Turning it on
at one computer removes the synced copy at the others on their next sync.
docs/subsystems/sync-backup.md says so.
The menu item gives no toast: its check mark is the answer, which also
keeps the core script budget at +151 bytes (1,263,700 to
1,263,851).
Run, on mica: new davsync TestProviderOnThisDeviceStaysOnIt (two
computers over a fake DAV) and this-device.test.cjs (chromium and
webkit, en zh zh-TW ja de, widths 1100 and 420); provider-find updated
for the new menu entry; davsync, provider, backup, cli, gui Go packages
ok except TestCoreScriptBudget, then fixed; vet on darwin, windows and
linux nogui clean. Broken by hand: SyncedOnly made a no-op turns the
davsync test red ("a sends its own model out"), and the Mirror skip
removed turns it red ("b after a's model synced"). GUI files that fail
in a loaded run (claude-quota-onboarding, provider-find, skill-fold-all,
usage-agents-hide, usage-cards-hide, usage-hidden-way-back) were run
alone on origin/main 5e933e153: usage-hidden-way-back (#6295) and
usage-agents-hide (#3414) are red there too, the rest pass; this branch
gives the same result. gui-de and gui-ja "has every zh string" are red on
5e933e153 as well.
Not tried: a real WebDAV/S3/GitHub server between two real computers;
the CLI command has no test of its own.
README (en, zh) and the start page's FAQ (en, zh, ja) give
'gh attestation verify <file> -R yetone/magpie-releases', say it holds from
v0.1.3891 and names the magpie-releases repo, not the source commit, and say
the updater keeps its own ed25519 check (offline, R2 mirror). Not adding
in-app Sigstore verification: it needs a TUF-fetched trust root and a bundle
per file, which breaks offline and mirror updates.
The workflow change is yetone/magpie-releases 9213fbd. Run: site/*.test.mjs
on mote (llms-full.txt regenerated, worker.test.mjs green). Not tried: the
attestation itself until v0.1.3891's run.
/docs/mu says how magpie sets up mu (qybaihe/mu, npm's mu-agent and
the mu desktop app), which is Pi with a judgment kernel: Pi's
settings.json (defaultProvider, defaultModel, defaultThinkingLevel) and
models.json (the provider magpie) in ~/.mu/agent; that this counts as
mu setup done; its own magpie-mu key, since its requests say pi/; the
folder variables (MU_AGENT_DIR and three more), ~/.kyrn as its old
name, and maildir-utils' mu not taken for it; mu.json and MU_JUDGE left
alone; switching back. Each claim is from internal/agent/mu.go and
piLikeKeyed in internal/agent/agents.go. Linked from each language's
Mister Morph page; in the sitemap, llms.txt and llms-full.txt.
Run: the three pages' JSON-LD parsed with node; llms-full.mjs rebuilt;
node --test site/*.test.mjs on the WSL box (magpie-desktop, wsl-run):
116 pass, 0 fail.
Not tried: mu itself with magpie for this page; it names only what
magpie's source says.
ZCode reads its providers at start. Its Agents row now offers Restart for a
model list magpie changed while the app runs, as Claude Desktop's, WorkBuddy's
and OpenMausBot's do: restartApps has ZCode.app (dev.zcode.app) and
ZCode.exe, appReads covers config.json and provider_config.json, and
zcodePart hashes only magpie's provider, provider rule and model rules,
without the key or another provider's rules.
Patch by Flandern1211 (fork branch fix/zcode-restart-5662, 7b663fea9), read
line by line: three files in internal/agent, no network, credential, dependency
or .github change. Kept as written; this commit only adds the Restart line to
docs/subsystems/agent-wiring.md.
Run (mote, at this tree on origin/main 5a3d73039):
- TestZCodeRestartOnWindows red with the zcode restartApps entry renamed away
by hand ("behind: <nil>"), green with it.
- go vet darwin, darwin nogui, linux nogui, windows on internal/agent: ok.
- GUI agent-app-restart, restart-app, agent-notice-lang, agents-last-known in
chromium and webkit: 100 of 100 pass.
- internal/agent package: started, result follows in the tag's suite record.
- gofmt -l: clean.
Not tried: a real ZCode on macOS. dev.zcode.app is the patch's bundle id and
could not be checked here (no ZCode.app on the Macs); a wrong id leaves the
Mac row without a Restart, as before, and does not close anything. Real
Windows ZCode.exe was reproduced by the author on 3.17.2, not by me.
Co-authored-by: Flandern1211 <163982805+Flandern1211@users.noreply.github.com>
TestMemorySearchDatesInLocalTime (4028687b8) set time.Local to +08:00.
time.Local is read by every time.Now, so the swap raced an http conn
goroutine an earlier test (serveMTLSGateway) left finishing: main's Test
run 43194740198 at 727e23637 went red on macOS -race with a DATA RACE
on time.Local, memory_mcp_test.go:262 against net/http setState.
Now no test touches time.Local here:
- memoryStamp writes in memoryZone(), time.Local by default, a variable
the gateway test sets.
- The half that checked a new save keeps its zone moved to memory's own
TestSaveKeepsTheLocalZone, which holds memory's clock (now) at 04:30
+08:00 and reads "+08:00" back from memory.json.
Run on mote: go vet ./internal/memory ./internal/gateway, linux nogui
and windows vet of both; go test ./internal/memory ok;
go test -race -count=3 -run ^TestMemory ./internal/gateway ok; gofmt -l
empty. Broken by hand, each red: Save's now() as now().UTC() fails
TestSaveKeepsTheLocalZone; memoryStamp in time.UTC fails
TestMemorySearchDatesInLocalTime ("2026-11-10T20:30Z").
Not run: the full gateway package (the race needs a leftover goroutine
from another test, so it isn't reproduced on demand; the swap that it
raced on is gone). Same class still open: #2949 (TestHeldClock) and
#4360 (testenv.Zone's cleanup), which swap time.Local too.
stickKeep was 24h and sticksKept 512. A long task picked up again after a
weekend lost its binding, the request went to another provider, and that
one refused the reasoning the first had sealed (invalid_encrypted_content).
Every answer already renews a binding, so only a gap over the keep let it
go. stickKeep is now 30 days and sticksKept 4096. No setting: the larger
default fits every case. Docs line in gateway-routing.md updated.
Run: TestStickSurvivesDaysAway (a 4-day-old binding saved and read back)
is red on the old 24h value ("a 4-day-old binding was lost") and green
now. Stick/Affinity/Sticks-named tests in internal/gateway pass via
mote-run; gofmt -l clean.
Not run yet: the full internal/gateway run and darwin/linux/windows go vet
were still going when this was pushed; results follow in a later commit
or note. Not tried: a real multi-day session. No GUI files touched.
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.
With Only each model's largest window (DesktopLongest) a 1M model is listed
by its "[1m]" id, but Full window off still gave it the working window as
its autoCompactWindow, so Desktop's Code tab compacted and showed it at
272K. desktopPlan's work() now leaves such a model at its whole window.
A threshold typed in magpie (CompactAt, per model or provider), the user's
own autoCompactWindow and a typed window still win. Listing and
inferenceModels already carried the 1M (supports1m/prefer1m, max_input_tokens).
Run (mote): TestClaudeDesktop* in internal/agent and Desktop|Claude in
internal/gateway ok; go vet darwin, GOOS=windows, linux nogui ok; gofmt
clean. New TestClaudeDesktopLongestRunsTo1M red on the old claude.go
(glm entry ""), green after. Not tried: the Windows Desktop 5.1231.2 app
itself (only 2.7032's bundle read); full suite is run after the tag.
Show conversation (and a subagent's row) used to unfold the whole
conversation inline in the row, which is very long. It now opens a sheet
(the modal framing the Library uses): the head counts the user's turns
("3 / 12") and has Top, Previous turn, Next turn and Bottom, like DSH's
viewer; the text scrolls inside the sheet, never the page; Close and
Escape end it. A recording cleared while a sheet is open redraws it from
the cleared state. Buttons answer in 100ms with the strong ease-out
curve, scale(.97) on press, hover gated to fine pointers; the sheet
itself keeps the modal's existing entrance.
Ran on mote: new sessions-talk-sheet (8 turns of 30 lines; counter, prev,
next, top, bottom and their disabled states, no page scroll, 1000 and 390
wide, Escape, reopen) in chromium and webkit, en zh zh-TW ja de: 10/10.
sessions-*, gateway-conversations, i18n*, modal*, inner-scroll-contain and
click-scroll GUI files: 725 pass, 0 fail (sessions-talk, sessions-subagents,
sessions-talk-model and gateway-conversations moved to the sheet flow).
go test ./internal/gui (core script budget included) ok; gofmt clean; go
vet darwin, linux nogui and windows ok.
Broken by hand: scrollTo removed from the jump: new test 0/10.
Not tried: the real Ubuntu app of the report (WebKitGTK); only Playwright's
chromium and webkit. Full suite runs after the tag.
/docs/mister-morph says how magpie sets up Mister Morph (morph): found
by ~/.morph, not the command; the llm keys it takes over in
~/.morph/config.yaml or $MISTER_MORPH_CONFIG (inference_provider
openai_response_compatible, the gateway's /v1, magpie's key, the
catalog id) and the mistermorph User-Agent in llm.headers; llm.provider
left to morph; context_window_tokens, since morph knows windows only
from its own list; reasoning_effort's levels; llm.profiles and
llm.routes left alone; switching back to the saved keys. Each claim is
from internal/agent/morph.go. Linked from each language's Grok App
page; in the sitemap, llms.txt and llms-full.txt.
Run: the three pages' JSON-LD parsed with node; llms-full.mjs rebuilt;
node --test site/*.test.mjs on the WSL box (magpie-desktop, wsl-run):
116 pass, 0 fail.
Not tried: Mister Morph itself with magpie for this page; it names
only what magpie's source says.
Copilot answered 400 to an MCP tool schema with an array-level enum, a root
oneOf or anyOf, prefixItems, an anyOf beside its own type, or an object
without properties at the root. copilotGeminiToolShapes (after
copilotGeminiToolUnions) writes each as the nearest schema it takes:
properties {} added; same-type anyOf merged (null kept as anyOf with null);
an anyOf with an untyped branch dropped, so geminiTypes types the node;
array enum moved to string items or dropped; root union an object with the
branches' properties, none required; prefixItems / items-as-list one items
schema. Nested oneOf and fit schemas go byte for byte. Antigravity's
plainSchema had the same array-level enum and now moves it to items. A
same-type object anyOf that wasn't provably disjoint is now merged instead
of refused (TestCopilotGeminiKeepsUnprovenUnions uses mixed types now).
Real Copilot account, sandbox magpie (own HOME, only the copilot login),
gemini-3.8-flash and gemini-4-argon, build without the pass -> with it:
array enum 400->200, root oneOf 400->200, prefixItems 400->200, root anyOf
(strings, objects, untyped) 400->200, anyOf beside type 400->200, root
{"type":"object"} 400->200, fit control 200->200. Nested object-without-
properties and nested typeless same-type anyOf were already 200 on the old
build, so the reports' failing forms are the root and type-beside ones.
Run: new TestCopilotGeminiTakesToolShapes (8 rows, red on the old code with
the call unwired), TestCopilotGeminiToolShapesLeavesFitSchemas,
TestAntigravitySchemaArrayEnumMovesToItems, -run Copilot|Antigravity|Schema
on internal/gateway ok (mote); vet darwin, windows, linux nogui ok.
Not tried: the full gateway and provider package run (mote busy, still
going when tagged); Google AI, Vertex and Antigravity with real accounts;
the GUI suite (no GUI file touched).
v0.1.3817 and the fixes after it scoped Fable's quota refusals ("hit your
limit", "reached your Fable limit") to Fable. A plain 429 rate_limit_error
is failRate, and restAfterMarked rested the whole account for it, with its
backoff ladder and sink: Fable rate limited showed "限流 · 42 分钟后恢复" on
the account's Opus row too.
claudeModelRate: a Claude account's failRate that names no window that
counts every model (5-hour, session, weekly, usage limit, organization,
overage, or a representative-claim header of five_hour/seven_day) rests
that model only, in restAfterMarked, rateRest and the sink. Anthropic counts
rate limits per model. Quota refusals and account windows rest the account
as before. Messages, Chat Completions, Responses, groups and the Routing
rows share restAfter.
No real Fable 429 was available: ~/.config/magpie/usage.jsonl, rests.json
and app.log hold none, and Claude Code's bridge keeps no response headers,
so the rule is not checked against real anthropic-ratelimit-unified-*
headers. The account-wide limit the logs do hold ("You've hit your weekly
limit · resets 2pm") is in the test and still rests the account.
Cost if the guess is wrong (Anthropic applies a plain 429 to the whole
account): the next Opus request to that account gets its own 429, rests
Opus there, and falls over to the next account in the same client request,
as any rested candidate does; the user sees no error. One extra refused
request per model per rest. The test checks Opus's own rest and that
Fable's stays and a second account is not resting.
Run at this tree (mote): TestClaudeModelRateRestsThatModelOnly red with
claudeModelRate returning false (account rests, Model empty), green with
it; TestFallback* ok; gofmt. Package internal/gateway and internal/provider
run, and vet on darwin, linux and windows, were still running at commit;
results follow. Not tried: a real Fable-limited account.
Settings > Usage > "Day starts at" (dayStart, 0 to 6, default 0; also
magpie settings set dayStart 4). With 4, a call at 01:30 counts toward the
day before: the Usage page (summary, charts, heatmap, ledger day filter,
hour labels of Today) and the daily and monthly key caps (access.Window,
provider.SpendCap.Window).
internal/dayzone makes a time.Location whose midnight is the real day's
hour:00 (TZif built from the zone's own offsets, same DST instants), so
every place that cuts days by a Zone's midnight follows without edits;
usage.Zone returns it and the "now" reads use it too.
Run (mote): go test usage, settings, settingsapi, access, provider, gui,
dayzone, also with TZ=UTC and TZ=Pacific/Kiritimati; gofmt; go vet darwin,
linux nogui and windows; day-start, currency, number-units and i18n-keys
GUI files in chromium and webkit, en zh zh-TW ja de; TestCoreScriptBudget.
Broken by hand: TestDayStartsAfterMidnight red with 9 failures when the
hour is ignored. New tests: dayzone over 5 zones x hours 1/4/6 x two years
of days, usage, limit window, spend-cap window, day-start GUI.
Not tried: a real log history in a real window.
Not shifted, filed as #6314: the Sessions page, TUI sessions filter,
davsync shared per-day files, gateway_sessions day keys, credits_daily.
Rows are never stored in the shifted zone.
siantgirl found the Codex settings block hard to follow when connecting
Codex to DeepSeek. Three lines were the cause: Codex subagent model (a
paragraph on resumed subagents and the pick rules), Codex subagents on
any model (named multi_agent_v2) and Long conversations (a list of which
models are and are not capped). Each now says what it does in one
sentence: the lead's pick or its own model, pick one here for every
subagent; a GPT lead can start subagents on other models, new threads
only; compact at 272K or the size typed, magpie's models only. Strings
changed in app.js, index.html and en, zh, zh-TW, ja, de, with the same
placeholders. No layout change.
Run (mica): codex-subagent-model 20 pass 0 fail (its pinned lines are red
on the old text), i18n-keys 4/0, gateway-mode 6/0 and the compact,
settings-general, agent-details-ready, context-tune and lang files ran;
agent-prefs 46 pass 10 fail, the same 10 on origin/main 2e92d71aa
(#6139, commented). The Go size-budget test is ok.
Not tried: the whole GUI suite, the real Linux app, a screenshot of the
new lines.
/docs/grok-app says how magpie sets up Grok App (RongleCat/grok-app):
the [model.magpie] channel in agent-home/config.toml under the App's
data folder, written as the App writes one, with magpie's own key, chat
completions and app_models carrying each model's context window, images
and efforts; why magpie never sets [models] default (the App would drop
its own sign-in) and Use in the App's Settings › Account is what
switches; the one-time put-back of a route an older magpie set; the
effort the picker starts on; where the data folder is found on each
system; disconnecting, which touches the route only while it names
magpie. Each claim is from internal/agent/grokapp.go. Linked from each
language's fx page; in the sitemap, llms.txt and llms-full.txt.
Run: the three pages' JSON-LD parsed with node; llms-full.mjs rebuilt;
node --test site/*.test.mjs on the WSL box (magpie-desktop, wsl-run):
116 pass, 0 fail.
Not tried: Grok App itself with magpie for this page; it names only
what magpie's source says.
A provider with two or more accounts or keys that are on now offers
"Test on account..." in a model chip's right-click, an app menu (never a
native select) of those accounts' or keys' names. The pick is posted as
`account` with provider/test and pins the test (provider.TestOn,
accountNamed / keyNamed; an unknown or switched-off one is an error row,
not a silent fallback). Every result now names the account or key it went
to (Result.Account, set in probe), and the status line ends " - <name>"
for such a provider, whether the test was pinned or routing picked.
Test models and the CLI still test with routing's pick.
Core script budget raised 1,263,333 -> 1,263,700 (+367): the model chip
menu is core code and there is no page to move it to; the PLAY icon
literal was folded into one constant and the status call tightened first.
Run: gofmt clean; mote-run go test ./internal/gui ./internal/provider ok
(new TestModelTestPinnedToAKey, TestTestPicksNeedSeveral,
TestModelTestPinnedToAnAccount); model-test-account.test.cjs 10 of 10
(chromium and webkit, en zh zh-TW ja de) on mica. Broken by hand: with
the menu entry disabled the GUI test is 0 of 10. GUI batch model-*,
provider-*, i18n-*, gui-*: reds are the same on origin/main 2e92d71aa
(model-chip-steady, model-copy-id, provider-fetch-again, provider-max-
output, provider-many-keys, provider-mask, provider-typed, gui-de/ja),
all already filed (#4388, #4621, #3292, #6209, #5109, #4673, #5475).
Not tried: a real multi-account provider end to end; the CLI and the bulk
Test models button (unchanged); vet on windows/linux not rerun beyond the
earlier builds.
The [DONE] fix in the previous commit (ggbdpq's patch, applied with git am,
reviewed: three hunks in continuation.go plus tests, nothing else, nothing
that reaches out) ended a Chat upstream's read at its own end. The other two
translated upstreams had the same hole: a relay that holds the connection
after message_stop, or after response.completed/incomplete/failed, kept the
translated reply's end waiting for the hangup. saidOver now names each
protocol's last word and the read ends there.
Run: TestAnthropicStopEndsTranslatedReply and
TestResponsesCompletedEndsTranslatedReply (a held upstream; Responses client
over Anthropic, Chat client over Responses) plus ggbdpq's two tests; all four
red on origin/main's continuation.go (5s/30s timeouts), green with the fix.
go test ./internal/gateway ok (1039s, on mote); go vet darwin/linux/windows
clean; gofmt clean.
Not tried: a real OfficeAce account, the full ./... suite before the tag.
Co-authored-by: ggbdpq <ggbdpq@gmail.com>