isee1_1 on Discord uses a community translation plugin as a provider and
asked why "Send requests unmasked" (请求不脱敏) isn't offered for it.
698da36f3 (lc) left a signed-in account, a plugin's provider and another
magpie out because the switch was then for local addresses only, and none
of those is local. 380032cda (AcMilan) made it the user's word at any
address, with a caution while on for one not local, but kept the
exclusion. Nothing still stands behind it for a subscription or a plugin:
the setting lives with the account's model picks, and every route reads
SkipsRedaction. Another magpie stays excluded, as it masks on its own side.
- provider.SkipsRedaction: an account (subscription or plugin) skips when
set; another magpie never. Save keeps Unredacted in the picks record,
withPicks applies it (AlsoOn accounts too).
- gateway: serve, count_tokens, embeddings, Jev and the plugin's fetch
already go by unredactedRoute (every fallback and group member must be
set too). The Codex relay on a ChatGPT sign-in masked always: it now
sends the turn whole when the Codex subscription is set
(codexRouteUnmasked; only for the ChatGPT backend, not the Codex API
key route), codexMaskRoute stands aside then, and ChatGPT web search
(alphaSearchOn) goes unmasked only when every provider it is on is set.
Speech and video stay masked whatever the switch (maskTextHits), as
before, for every provider.
- GUI: the editor's Redaction row is shared (unmaskRow); a subscription
or plugin provider has it too, its caution naming the provider while
on, since its vendor is never local; saved with the account's body.
Another magpie has none. No new strings; app.js stays in its budget.
- CLI help/show text, gateway-routing.md and the masking docs (en, zh,
ja) say so.
Run (mote, through mote-run):
- go test ./internal/provider ./internal/cli: ok
- go test -timeout 45m ./internal/gateway: ok (676s)
- go test -run 'Budget|Redact|Unmask|I18n' ./internal/gui: ok
(TestCoreScriptBudget at +45 bytes)
- GOOS=linux go vet ./internal/gateway ./internal/provider, GOOS=windows
go vet ./internal/gateway ./internal/provider ./internal/cli: clean
(GOOS=linux vet of internal/cli fails in wails without cgo, as on main)
- node --test provider-unmasked (chromium): 36/36; i18n-keys: 4/4.
WebKit on mote can't launch (#4125); WebKit ran through wsl-run:
the whole file in chromium and webkit, 72/72. At 440 in Linux WebKit
the list's sticky foot covers the last row (another magpie's), so the
test clicks that row as an event (#4484).
- gofmt -l: clean
Broken by hand:
- SkipsRedaction's account branch back to false: TestSkipsRedaction
(an account, a plugin's provider), TestPluginProviderUnmaskedSwitch/set
and TestCodexSignInUnmaskedSwitch/set go red.
- Unredacted dropped from Save's account whitelist: the plugin test's
"saved as" goes red.
- codexRouteUnmasked forced off: TestCodexSignInUnmaskedSwitch/set red.
The unset and falls-back-to-a-vendor cases stay masked in each.
Not tried: a real plugin provider or a real Codex/Claude account with
the switch on (fakes only: the fake bun plugin and a fake ChatGPT
backend); the Claude bridge path; the full Go and GUI suites run after
the push.
The owner asked why it was a "hub". Composio calls the same thing a Tool
Router; "router" says what it does (one server that routes each call to
the right one), and "gateway" is taken by magpie's LLM gateway. Only
the words change: MCP router / MCP 路由 / MCP 路由 / MCP ルーター /
MCP-Router, "Router address", and the CLI's `magpie library mcp router
on|off`, where `hub` still works. The URL /mcp/magpie/hub, the mcpHub
setting, the servers/hub API and the Go names stay, so nothing a user
or an agent config holds changes. docs/subsystems/mcp-hub.md moves to
mcp-router.md and the pages that link it follow.
#4382's new words follow too: "Through the MCP router", "Not through
the router" and their hints in every language, and the CLI's
`magpie library mcp router <name> shared|direct` (`hub` works there
too; library_hub_test.go says router for direct, hub for shared).
Run at e2583df31 (this stack on 86fef947e), on mote: gofmt -l clean;
go vet for darwin, linux (-tags nogui) and windows; go build ./...;
go test -tags nogui ./... -timeout 45m, 81 packages ok, 0 FAIL;
library, gateway, imagemcp, sessions, cli and gui again alone, ok;
site's node --test, 49 of 49. GUI on xiaomi-gpu (Windows; mote's
browsers crashed under other sessions' suites): library-*, image*,
mcp-hub-direct, i18n-keys, list-sort and plugin-tools, both engines and
every language, 1055 of 1056: i18n-keys found "{name} is given to each
agent directly" dropped from the library's strings in the rebase. Put
back in the first commit; at the pushed head i18n-keys, mcp-hub-direct
and library-mcp-hub are 48 of 48. That is the only difference from
e2583df31.
Broken by hand at e2583df31: imagemcp ignoring magpie/roots fails
TestHubCallSavesInTheCallersProject; the router asking anything but
roots/list fails TestHubAsksTheAgentItsRoots and TestHubRootsUnasked;
inHub leaving magpie-image out fails TestHubGivesMagpieImage.
The CLI's TestProviderAddressMovesALocalServer red at -count=3 was
the same on origin/main 380032cda and is fixed in 65c792410.
Rebased once more onto 2570efb5f, which changed library-mcp-hub,
list-sort, mcp-hub-direct and gateway-routing.md. Run at the pushed
head: go build; gateway, library, cli and imagemcp tests ok; the GUI
budget tests ok; on xiaomi-gpu i18n-keys, mcp-hub-direct,
library-mcp-hub and list-sort, 51 of 54. The three reds were WebKit
420px library-mcp-hub cases with no Connect sheet after a reload.
origin/main d77da5bff goes red the same way (de 420px, 9 of 11). In a
second run of library-mcp-hub on WebKit at this head, 11 of 11 passed.
Filed as #4483.
magpie-image was the one MCP server the hub left out, because it saves
what it makes on disk and needs to know whose project that is. The hub
now serves its tools like any other server's and tells it where the
caller works:
1. the hub answers a tools/call as SSE and asks the agent roots/list on
that stream (3s), as Claude Code answers;
2. else Codex's _meta x-codex-turn-metadata.workspaces (git repos only);
3. else the Codex thread's cwd from its session file
(sessions.CodexThreadCwd), only with session consent;
4. else none, and the image goes to ~/Pictures/Magpie as before.
The hub passes `magpie/roots` and `magpie/client` in the call's _meta;
imagemcp saves into the first root and names the agent on its usage
row. Its result carries `magpie/model`, which the hub's own usage row
takes, so the row says which image model drew it. A WSL agent keeps
magpie-image as its own entry (the hub can't reach a path inside the
distro). docs/subsystems/mcp-hub.md (mcp-router.md after the next commit), gateway-routing.md and
gateway-sessions.md say so.
It is rebased on #4382 (b889ffe81), which lets the user keep a server
out of the hub (Server.Hub = direct). inHub now asks both: a server
kept direct is out, and magpie-image is in unless the agent is in WSL,
so the user can keep magpie-image direct too; the editor's switch
shows for it like any server, and the hub's line counts it with the
others (mcp-hub-direct.test.cjs follows).
Run at e2583df31 (this stack on 86fef947e), on mote: gofmt -l clean;
go vet for darwin, linux (-tags nogui) and windows; go build ./...;
go test -tags nogui ./... -timeout 45m, 81 packages ok, 0 FAIL;
library, gateway, imagemcp, sessions, cli and gui again alone, ok;
site's node --test, 49 of 49. GUI on xiaomi-gpu (Windows; mote's
browsers crashed under other sessions' suites): library-*, image*,
mcp-hub-direct, i18n-keys, list-sort and plugin-tools, both engines and
every language, 1055 of 1056: i18n-keys found "{name} is given to each
agent directly" dropped from the library's strings in the rebase. Put
back in the first commit; at the pushed head i18n-keys, mcp-hub-direct
and library-mcp-hub are 48 of 48. That is the only difference from
e2583df31.
Broken by hand at e2583df31: imagemcp ignoring magpie/roots fails
TestHubCallSavesInTheCallersProject; the router asking anything but
roots/list fails TestHubAsksTheAgentItsRoots and TestHubRootsUnasked;
inHub leaving magpie-image out fails TestHubGivesMagpieImage.
Real use, sandbox HOME and gateway, at 62421e570 (before the rebase): Claude Code saved into its project
via roots/list; Codex in a git repo via its workspaces _meta; Codex
outside a repo with session consent via the thread's cwd.
At 62421e570 the whole GUI suite ran on WSL magpie-desktop at load 116 to 135 from other
runs: 504 of 15757 red in 118 files, WebKit timeouts, none in a file
this change touches; filed as #4471 with the list.
Rebased once more onto 2570efb5f, which changed library-mcp-hub,
list-sort, mcp-hub-direct and gateway-routing.md. Run at the pushed
head: go build; gateway, library, cli and imagemcp tests ok; the GUI
budget tests ok; on xiaomi-gpu i18n-keys, mcp-hub-direct,
library-mcp-hub and list-sort, 51 of 54. The three reds were WebKit
420px library-mcp-hub cases with no Connect sheet after a reload.
origin/main d77da5bff goes red the same way (de 420px, 9 of 11). In a
second run of library-mcp-hub on WebKit at this head, 11 of 11 passed.
Filed as #4483.
Not tried: Codex outside a git repo without consent (it saves to
~/Pictures/Magpie, #4435); agents on Windows and in WSL with real use.
kelvinjason11 on X: "图片识别好像只支持一个模型识别 没有fallback". When
the describer (Settings' Image recognition model, or AutoVision's pick)
failed, the turn failed with it, though other models that see were there.
Now describeWith asks the pick first, always. When it fails for any reason
but the client's own cancel, magpie asks the next model that sees: the
first ready one of seersRanked, AutoVision's own order (ready, then
Claude account, Codex, API key, other, then cost), leaving out each model
already tried and each one that turned an image away (sightRefused). At
most 3 models (visionTries), and all of them within visionWaitMost
together: each try gets what is left of it, not a fresh visionTimeout.
- The text header names the model that described the image
("as other/bigeye describes it"), not the pick.
- The Routing row of the stand-in carries Instead, Why and Picked
(describingInstead, the same fields web search's searchingInstead
sets), and the Routing page says in every language that the pick
couldn't describe it, why, and which model did instead.
- When none answers, the error is the first failure as before, then
"nor could X, asked in its place: why" for each other model tried.
- Spent/allowance: each try goes through serve as before, so autoSpent
and spentModel judge every stand-in the same as they judged the pick.
- vision_mcp's describe_image tool gets the same fallback.
Cache (s.sights): a description is kept under the pick and the image,
whichever model described it, with the describer's name beside it. The
same image sent again asks no one, the stand-in's text is reused, and
its header still names the stand-in. A new image asks the pick first
again, so a pick that comes back is used at once. Failures are not kept.
Settings' text ("When the model in use can't see images, this one
describes them to it") is left as it is: the pick is still asked first
for every image.
Tests (internal/gateway/vision_fallback_test.go):
- TestPickedDescriberThatFailsGivesWayToTheNextThatSees
- TestAutoDescriberThatFailsGivesWayToTheNext
- TestNoDescriberAnswersNamesEach
- TestPickedDescriberThatAnswersIsTheOnlyOneAsked
- TestCanceledDescriptionAsksNoOther
TestDescriberThatCantSeeIsntAskedToDescribe now expects the next model
that sees to describe in place of a text-only pick, not a 502.
GUI: internal/gui/tests/vision-instead.test.cjs (every language, 1100
and 520 wide).
Run on mote at 45739f15b (this tree, on origin/main 74f1df869):
- go test -tags nogui ./internal/gateway/ -count=1 -timeout 45m: ok
(542.988s). An earlier run while mote was at load ~26 failed four
Antigravity turned-away tests and TestCodexSpentGrokFailingIsTold.
None of them touches vision, and all passed in this run.
- gofmt -l: nothing.
- GOOS=linux go vet -tags nogui ./... and GOOS=windows go vet ./...: ok.
- GUI, Chromium: vision-instead, search-instead, routing-vision-why,
vision-mcp, routing-kind and i18n-keys (4/4) pass.
Broken by hand (in a worktree at 0fcb3acb3):
- The old code with the new tests: Picked, Auto and NoDescriberAnswers
go red. PickedThatAnswers and Canceled pass, as they should on code
that never falls back.
- The ctx.Err() check removed from describeWith: Canceled goes red (a
vision row for other/bigeye appears).
- describeWith made to ask the next model after a success:
PickedThatAnswers goes red ("eye asked 1 times, bigeye 1").
Not tried:
- The GUI files in WebKit. Playwright's WebKit launch timed out at 180s
while mote was at load ~25 from other suites. To be rerun.
- vision-instead against the old Routing client, to watch it go red.
- No real account: the fallback was run only against fake upstreams.
agent-open-terminal (f03ed8c26) landed while ce8b67de3 was being made,
with a 30s navigation bar; nav-timeout.test.cjs asks every page for a
minute, so it would be red at the pushed head. Raised to 60000.
Run on WSL magpie-desktop at this tree: nav-timeout.test.cjs green;
agent-open-terminal.test.cjs 14 of 14 in Chromium and WebKit.
account-arrange's "account dragging uses the routing order in every mode"
was red alone in WebKit at 31728e29a: line 169's first Antigravity row
had no box. The app is right and the test was wrong. A signed-in
provider's editor is drawn at once and drawn again when its accounts'
allowances come in (loginUsageOf: "loads on its own and fills the rows
in when it's there"), and that redraw replaces every row. The test took
a row from the first draw; when /api/login/usage answered after it (a
busy machine, WebKit), the row it held was gone.
open() and the reload now wait for drawn(page): the first row (with a
load's minute, #4470), then the editing provider's allowance answer in
and not loading, so every action works on the rows that stay. The README
paragraph says so.
What was run (WSL magpie-desktop, Playwright 1.62.0):
- By hand: /api/login/usage answered 1.5s late, a marker set on the name
first selected. origin/main's file: red in Chromium and WebKit, "the
name selected is the one drawn last"; this file green in both.
- account-arrange.test.cjs, Chromium, at load ~230-258: green (the first
run, before the first row got its load's minute; WebKit then went red
at that 5s first wait, which this file now gives a minute).
- Both engines at load 205-245 (other sessions' suites): this file and
origin/main's own file both run past the test's 90s budget, Chromium
and WebKit alike (origin/main's Chromium once red at 14s instead). That
budget under load is #2200, the same on origin/main, not changed here.
Not tried: the whole GUI suite; mote (#4125) or Windows.
images-library-way opened Settings › Models and waited for the Image
generation row, then screenshotted it. A page opened on Settings reads
/api/settings twice (go('settings')'s own read and load()'s), and each
answer draws the tab again, so when the second answer came late the row
it had waited on was replaced while Playwright held it: "element was
detached from the DOM" / a screenshot of a redrawn element (zh-TW 1100
in Chromium). The app's double draw is by design; the test was wrong to
hold the first one. It now waits with reader.cjs's watchSettingsReads and
settingsDrawn, as the other Settings files do, before taking the row.
proxy-test opens Settings › Network the same way and presses its Test
button after the first draw: it gets the same wait at both gotos.
What was run (WSL magpie-desktop, Playwright 1.62.0):
- By hand: the second /api/settings answer held 1.5s and a marker set on
the row first waited on. origin/main's images-library-way: zh-TW 1100
and 420 red, "the row held for the screenshot is the one drawn last";
this file 6 of 6 green, Chromium.
- images-library-way.test.cjs and proxy-test.test.cjs, Chromium and
WebKit, every language each file covers: images-library-way 62 of 62, proxy-test 22 of 22 green at load ~210 (nav-timeout green on this tree).
Not tried: the whole GUI suite; mote (#4125) or Windows.
claude-switch-only set page.setDefaultTimeout(5000) and then called
page.goto with no timeout of its own, so Playwright held the first load
of app.js, i18n.js and the plugins to the 5s bar meant for clicks. On a
busy box (a whole-suite run at load 130-160) that load took longer and
goto timed out. The same pattern is in 988 GUI test files (1174 pages):
every one of them now also sets setDefaultNavigationTimeout(60000) on
the same page, right after its default, so goto, reload and waitForURL
wait on the load itself with room, while clicks and waits keep their
short bar. group-from-model-add's own 20s navigation bar is raised to the
same minute. claude-switch-only also gives its first provider row (drawn
from the page's first reads) a minute before clicking it.
nav-timeout.test.cjs (no browser) reads every GUI test file and names
each page given a default under a minute without a navigation timeout of
at least a minute, so a new file can't bring the pattern back.
What was run (WSL magpie-desktop, Playwright 1.62.0, load 70-260 from
other sessions):
- node --check on every file in internal/gui/tests: all parse.
- nav-timeout.test.cjs against origin/main's test files: red (names the
1174 pages); against this tree: its only reds were my own probe copies
of the old files, since removed.
- By hand: claude-switch-only with app.js served 7s late (a busy box's
first load), --test-name-pattern "1100 en": origin/main's file 4 of 4
red with "page.goto: Timeout 5000ms exceeded"; this file 4 of 4 green.
- claude-switch-only.test.cjs, both engines, en/zh/ja/de, 1100 and 420:
32 of 32. group-from-model-add, usage-access-key-card and i18n-keys:
green. agent-plugin-agents: Chromium green; WebKit's de 420 subtest red
on a 5s waitForFunction at line 115 (a wait after load, not the
navigation), at load ~230.
Not tried: the whole GUI suite (about 1000 files; the change is one
mechanical line per page), Windows or mote (mote's browsers, #4125).
What changed
The budgets a listing of the plugins' providers is made of added up past
the budgets its callers set: the host let one provider spend listWait
(20s) on its models hook plus the wait for a due renewal (RENEW_WAIT,
15s) before it, and a provider with two accounts spent them back to
back. One provider could be allowed 35s (40s with a second account) —
past the 30s refreshDeadline the background refresh asks under and past
the editor's own 20s — so pressing Fetch models, or a refresh, died with
a bare "context deadline exceeded" while no vendor had failed: every
provider is asked side by side, and the sum of the budgets was the only
thing over.
Now the host's own bounds hold by construction:
- host.js info(): the wait for a due renewal (fresh) spends the models
hook's own budget — the hook is given what is left of listWait, and
the renewal wait can no longer be added on top of it.
- host.js providers(): a provider's accounts are listed side by side
(the first no longer waited for before the rest), so one provider
costs one listWait, not one per account.
- gui/providers.go, case "models": the editor's budget is 30s, the same
the host bounds one providers RPC with, instead of 20s — shorter than
even one provider's worst case under the old arithmetic.
A provider whose renewal is slow then lists late (its hook given up on
alone, said so in listError as any other stuck listing) instead of
taking the whole listing past the caller's deadline (#4065).
Run
- TestProviderListCoversAccountsSideBySide, two accounts whose hooks
each take 3s under a 4.5s caller budget: with the product files at
the base (68b31ce23) and the tests kept, the listing dies with
"context deadline exceeded"; with the fix it stands and both accounts
are listed.
- TestRenewalWaitSpendsTheListBudget, a renewal that never finishes
waited 15s before a 10s hook given 11s of its own, under a 20s
refreshDeadline: with the product files at the base the listing goes
past refreshDeadline and nothing is kept; with the fix the listing
stands and the provider fell back, its listError saying so.
- internal/plugin full suite (go test ./internal/plugin -tags nogui):
ok, and gofmt/vet clean.
Review (magpie): the two tests' timings were widened from gua's 1.5s
hooks under 2.5s and a 5s hook under 17s, which left ~1s and ~2s of
room, to the numbers above, so a busy CI box can't turn them red
either way. Run at this head on the Mac mini: go test ./internal/plugin
-count=1 ok (254s); go vet ./internal/gui ./internal/plugin clean.
Broken by hand: host.js put back at the base, tests kept - both tests
red (context deadline exceeded at 6.1s; past refreshDeadline at 35s).
Not tried: the reporter's Windows box with 35 real providers. Left
open: /api/sync, the CLI's refresh and the editor's other Fetch calls
still give a plugin provider's fetch 8s while it lists every plugin
provider; one provider's fetch still re-lists them all.
Generated-by: GLM-5.3-Flash (ZCode)
coolmantou on Discord asked to start an agent from magpie's Agents list.
In the Mac app's window, an agent row's menu (openRowMenu, the one the
grip and a right-click open) now has "Open in terminal". This includes a
row under Not set up. Clicking it posts POST /api/agents/open with only
{agent: id}. The server finds that exact id in agent.Detected() (not
agent.Find's prefix match) and builds the line itself: the agent's
Launch() where it has one (agy, Claude Science, Cursor local), otherwise
its program's path, single-quoted (BinPath, new in internal/agent).
openTerminal then opens that line with the user's Session terminal
choice. The command never comes from the page. Other systems, the web
build, WSL agents and desktop apps with no program are refused, and
their rows have no item (agentJSON.terminal). The tray panel's rows don't
have the item either. The label is "Open in terminal", not "Terminal",
because the user's terminal can be iTerm or Ghostty. The string is in
en, zh, zh-TW, ja and de. Windows and Linux are #4474.
The core budget had 39 bytes left on main, so no budget was raised.
Instead:
- the item says nothing on success; the terminal opening is the answer,
and a failure goes to statusErr;
- the omp roles' comment above OMP_UNSET was cut to what OMP_UNSET's
values don't already say.
app.js is now 22 bytes under main's size.
Run:
- go test ./internal/gui ./internal/agent on mote (macOS) and in
magpie-desktop (Linux, -tags nogui), both ok.
- TestAgentOpenRunsOnlyTheAgent puts claude in a folder named
"it's a' $(touch made1) `touch made2`; touch made3 #". It posts the
ids "claude; touch made4", "claude'$(touch made5)'" and "cl"; none
of them opens anything. It then runs the line made for claude
through /bin/sh and checks that only the program ran.
- After the rebase onto origin/main 2604d68db, the core budget
first went red (1,536,904 > 1,536,586). It passed again after the
trims above, along with TestAgentOpen* and TestAgentCommand*.
- gofmt -l clean. go vet on darwin, GOOS=linux -tags nogui and
GOOS=windows for internal/gui and internal/agent: ok.
- GUI, both engines (wsl-run): agent-open-terminal.test.cjs is new,
14/14 at the pushed tree. It covers every language, a row under Not set up, no item for
the desktop app, the web build or the tray panel, and checks that the
post body is the id only. Its goto has 30s, since a goto while
another suite ran on the box took 5s once. i18n-keys and agent-disconnect pass.
- Real run on mote in a sandbox HOME: the endpoint was called through
the real openTerminal with an `open` on PATH that records instead of
opening. It returned 204, and the open args were -a
/System/Applications/Utilities/Terminal.app <file>. The file was
-rwx------ and read: #!/bin/sh / '<sandbox>/.local/bin/claude' /
exec "${SHELL:-/bin/zsh}" -l.
Broken by hand:
- agentCommand returning the path unquoted: the Go test went red with
"ran more than the agent: [made1 made2 made3]".
- The term item dropped from openRowMenu: the 10 row tests went red.
- The panel and web gates dropped: the 4 gate tests went red.
Not tried:
- No terminal app actually opened. The scratch run recorded what
`open` would get instead.
- iTerm, Ghostty and the other Session terminal choices were not tried.
- Launch() agents (agy, Claude Science, Cursor local) were not opened
for real; their lines were already quoted and used by
"Copy launch command".
- The full Go suite and the whole GUI suite were started before the
rebase and not waited on (ship at once).
qiang2040 on Discord ("狂闪", a screen recording): with Codex
conversations sending at once on group/glm-5.3-flash-free and
group/deepseek-v4.1-flash, the Routing page's top card (head, story,
context window) jumped to the newest request on every trace update,
and to "magpie hasn't routed this request yet" for each new one.
told() picks the request the card tells of: it stays on the one it
shows until that one is done, then goes to the newest, and a newer
request routing hasn't picked for yet doesn't take it from one that
was routed. play(), resume(), the live poll and rebuild() use it;
requests that come meanwhile still fly on the stage, without a caption
of their own. Pinned, replay and day views are unchanged.
Run:
- routing-concurrent-hold.test.cjs (new; two conversations interleaved,
every frame's head watched; en, zh, zh-TW, ja, de): red on the old
code in Chromium (mote); green on this code in Chromium (mote and
WSL) and WebKit (WSL).
- Broken by hand: told() returning newest() -> 6 of 6 red in Chromium
and WebKit (WSL), "the card stays on 101 while it is under way".
- routing-* and panel-routing* in both engines on WSL, against a base
worktree at origin/main: the reds are the same on base. row-swap is
red 3/3 on base too (#3799); live-patch's folded sample caught a
count-up mid-way once (129K vs 130K, the right request; #2174); the
rest are WSL WebKit reds under #4121.
- go test ./... -timeout 45m on mote: 80 packages ok; internal/gui's
10 real-window AppKit tests were killed at their deadlines (mote's
pboard/launchd state, #4125; also #2645, #1936). This change is
JavaScript only.
- The whole GUI suite (node --test, both engines) is still running on
WSL at push time; reds it shows that aren't on file get issues.
- At the pushed head (rebased on 59bdd4dbc): the new test 12/12 green in
both engines on WSL.
Not tried: the real app with several real Codex conversations sending
at once (the test drives a mocked trace). WebKit on the old code
(WebKit can't launch on mote now).
In a routing group, members a pattern added followed the catalog's
order. The editor gave them no grip or Up/Down, and the gateway tried
them in that order. Now every row gets the same grip, Alt+arrow and
Up/Down that named members have. Matched rows still have no Remove,
since the pattern decides those.
The order is stored as Group.Placed, keyed by provider/model as Members
spells them. It is nil while the order equals the default (named, then
matched in catalog order), so existing groups.json files don't change.
Read (withMatches -> placedIn): members follow Placed. A model matched
since goes after them, and one no longer matched drops out. The gateway
tries members in the order the group is read, so it follows the editor.
Saved (SaveGroup -> placedOver): Members orders the named members, and
Placed (sent, or the stored one when a save doesn't send it) places the
matched ones. A save that doesn't know Placed (card routing, the CLI's
models+=, TUI, import) keeps the matched where they were, and a model it
names newly goes after the last named one. A provider rename, fold,
group rename and RenameMember carry Placed along.
Run:
- go test -timeout 45m -count=1 ./... on mote: 80 packages ok.
internal/gui fails 10 AppKit window tests at 30s (TestDockJoinLeadsCommandTab,
TestPanelCloseHidesIt, TestMainWindowCorners, ...). On a fresh origin/main
cf9ea977c the five I reran fail the same way. That is mote's #4125 (open).
- TestGroupPatternMembersKeepTheirPlace is red on the old code
(read [zen/y or/a:free or/c:free]).
- Broken by hand, each red at its own step: no stored-Placed fallback
("after a named-only save"), a newly named model put last instead of
after the last named one ("after an add"). On the earlier draft, no
rename mapping ("after a rename").
- GUI: group-member-drag and group-patterns in chromium and webkit on
Linux (wsl-run), 8/8 at this head. group-member-drag was red on the old
client.js. The whole GUI suite ran at the draft before the save
payload's `placed` field. It was still running when this was pushed,
and its reds will be filed once it ends.
- gofmt -l clean; GOOS=linux and GOOS=windows go vet of provider and
gateway on mote.
Not tried: a real account or the real app's window; WebKit on macOS
(mote's browser launches hang, #4125), so WebKit only on Linux. The TUI
has no way to reorder matched members; it keeps the stored order.
max2020 on Discord signs in from a separate, fingerprint browser so the
vendor never sees their default one. Every waiting sign-in already shows
its link with Copy link (since 52c8e838d), but magpie still opened the
page in the default browser first.
Settings › Privacy › Sign-in pages › "Open sign-in pages in the browser",
On by default, so nothing changes unless it is turned off. Off
(settings.SignInLinkOnly) opens nothing: /api/signin and
/api/plugin-signin go through openSignIn, which skips the open and
answers linkOnly; a web tab skips window.open on linkOnly, after an
install step too; the box says the page wasn't opened and its button
reads Open, not Open again. `magpie accounts add` and a plugin's
command-line login print the link without opening it. A plugin whose own
CLI opens the page (Grok Build on macOS and Windows, opened) still does.
Callbacks, by flow: Claude Code's login, Codex (localhost:1455), ChatGPT
API, Gemini/Antigravity and localhost plugins come back to this machine,
so another browser on it finishes them, and the pasted final address
covers one whose proxy keeps it off loopback. Copilot, Grok and other
device-code flows work from any browser.
Run:
- TestSignInLinkOnlyOpensNothing (new; built-in and plugin sign-in, the
setting on and off) with TestPluginSignIn*, TestSettingsSave*,
TestCoreScriptBudget and TestI18n* on mote: ok. Budget holds with no
raise (app.js 1,313,244 of 1,315,316).
- signin-link-only.test.cjs (new; every language, Chromium and WebKit,
900 and 360px), signin-link and account-discovery on WSL: 42/42 and
the neighbours green.
- Full Go suite on WSL (go test -timeout 45m ./...): every package ok
except internal/agent's TestInstalledVersion, TestGrokInstalled,
TestOmpDetectedWithPiDir and TestZedAppPath, red the same on
origin/main 387e8572a there (#4033, #3548); root, internal/cli and
internal/gui need gtk4 there and were run with -tags nogui: ok.
- gofmt; go vet darwin, GOOS=linux -tags nogui, GOOS=windows: clean.
- The whole GUI suite (both engines) is still running on mote at push
time; reds it shows that aren't on file get issues.
Broken by hand: openSignIn ignoring the setting made the Go test red
("built-in: kept to its link, its page was opened 1 times"); dropping
startSignIn's linkOnly check made the GUI test red ("no page opened",
12 of 42).
Not tried: a real vendor sign-in from a fingerprint browser; Grok on
macOS/Windows still opens its own page; MCP server sign-ins unchanged.
A Huawei Cloud CodeArts account is kept by its accountId, an IAM id
(iam::<domain>:user:<name>), and every list showed that id while its
quota card showed the masked phone the plugin's usage() names it by.
Display only: an account now reads as the name the user gave it, else
the `user` its plugin's last usage read gave (PluginUserOf: the
in-memory read, else quotas.json), else its id. The id stays the key
everything is kept by; nothing stored changes or migrates. A read that
fails keeps the last good name; nothing read yet is the id, never blank.
One rule in provider (AccountShown, AccountShownOf, AccountLabelOf),
used by every list: cards' Alias (Usage page, tray panel,
/v1/magpie/quotas, magpie quota), magpie accounts, magpie providers,
the TUI's Providers rows and quota titles, usageapi's Account filter,
the quota alert. The GUI gets it as /api/providers' accountUsers
(accountShownOf in app.js): the editor's account rows (the id in the
tooltip), the per-account proxy lines, Routing's userShown, the
Providers search, Hide accounts. app.js's account lookups share one
helper, so the core stays in its budget (1,536,561 of 1,536,586), with
no room added.
Run:
- go test ./... -timeout 45m on mote at 2f5a3f1c0 + this change: all ok
but internal/agent TestPiModelsAskedOnTheirNativeAPI (fixed on main
by 7474a86f1, green there; this is rebased onto it),
internal/update TestRelaunchOpenTriedAgain (#3881, green alone x3),
and internal/gui's real-window AppKit tests (TestPanelCloseHidesIt,
TestMainWindowCorners, TestTrayCellClickReleasedPanel red the same
on origin/main 99ad38b7c; #2645, #4125, #1936).
- go vet, GOOS=linux go vet -tags nogui, GOOS=windows go vet of the
touched packages; gofmt -l clean.
- TestPluginAccountShownByItsUsageUser (new, real plugin host and fake
plugin): id before a read, phone after, phone after a restart from
quotas.json, phone kept over a failed read, own name wins, id when
nothing is known. Red on the old code.
- GUI on the Linux box (mote's Chromium segfaults on these pages on
origin/main too, #4125): account-plugin-user (new),
routing-account-name (extended) and account-alias, Chromium and
WebKit, every language, 34/34; the new checks red on the old code;
the whole suite (make test-ui on the Linux box) was still running at
push: 417 files in, 5 reds, none on a page this changes
(account-models' row-moved check in WebKit, 81 vs 79px, and
agent-models-all-hidden), not yet compared with origin/main; any
that are new get an issue once it ends.
- At the rebased head (3bce283df): go test of provider, cli, tui,
usageapi, plugin, agent -run TestPi, gui -run
Budget|Provider|Quota|Account: all ok. Core scripts 1,535,513 of
1,536,586.
Broken by hand: dropping the quotas.json fallback turns the test red
at "after a restart".
Not tried: a real Huawei CodeArts account (none here). A plugin whose
windows are all model pools isn't kept in quotas.json, so after a
restart it shows its id until its first read.
chenxiang0010 on Discord asked to keep a provider or a model out of the
auto-created routing groups. A model could already be kept out (remove
its found group; magpie keeps it removed), but a provider could only be
turned off per group or everywhere. Now Routing -> Groups, under "Find
groups on their own", has "Leave out a provider..." (app menu, saved
when it closes) and `magpie group auto skip <provider>...|none`. The
providers chosen (providers.json autoGroupSkip) join no found group; a
group the user made or changed keeps them, a found group left with one
provider goes away, and a request for it is served by AutoStandIn from
a provider still in, and agents on it are reseated (agent.Reseat). A
rename carries the id along. en, zh, zh-TW, ja, de.
Run at 383947fce (this change on origin/main 2ff75161d):
- go test -timeout 45m ./... on mote: 80 packages ok; internal/gui red
only in its real-window AppKit tests (TestDockJoinLeadsCommandTab,
TestPanelCloseHidesIt, TestMainWindowCorners, ...), which fail the same
on fresh origin/main 2f65a33aa on mote (#4125, #2645).
- gofmt -l clean; go vet ./... on Windows (win-run) clean; on Linux
(wsl-run) clean with -tags nogui (the WSL distro has no gtk4).
- GUI: group-found-skip (new) and group-found-off, all five languages,
1100px and 390px, Chromium and WebKit on Linux (wsl-run): 24/24. On
mote every WebKit launch times out (#4125), Chromium 12/12 there.
- The routing files the full run flagged (concurrency 6) rerun alone on
wsl-run, here and at fresh origin/main 380032cda: click-scroll's
WebKit case and group-morph's WebKit 420px cases fail the same on
origin/main. group-duplicate's de case was mine: the found groups'
new "Anbieter ausnehmen..." line made German taller than the test's
420x1200 window, which it assumes needs no scroll; it now uses 1400
and passes 10/10 in both engines.
- Whole GUI suite on wsl-run, concurrency 6: still running at push time
(5092 ok, 170 not ok so far, mostly in files this change doesn't load:
account-*, agent-*, connect-*, gui-de/gui-ja's "{agent}" placeholder
string). They are compared against origin/main after the push.
Broken by hand: foundGroups without unskipped -> TestAutoGroupSkip and
TestGroupsSkip red. Test calls before the fix to groupCmd's args ->
TestGroupAutoSkip red.
Not tried: the real app with real providers; a model-level skip (a
model is kept out by removing its found group, as before).
The sibling of ec5571d6f's ja fix: da3c5e0c0's de string for "{agent}
checked that magpie answers ..." had a third {agent} too, so gui-de's "de
has every zh string, with its placeholders and tags" was red on main. "Das
Modell dieser Prüfung wählt {agent} selbst" now reads "wählt es selbst";
the sentence opens with {agent} already. zh and zh-TW had two.
Run: wsl-run gui-de, gui-ja, gui-zh-tw, i18n-keys: 13/13; gui-de alone
before this change: red, this test. Found in the whole GUI suite run
after v0.1.2228 (ec5571d6f was checked with gui-ja only, and missed it).
Not tried: a German speaker's read of the wording.
AcMilan (Discord) runs a vLLM at http://llm.corp.lan:8000, and the
editor never offered "Send requests unmasked": the switch showed only
for a localhost, *.local or private-IP address. Asked, he said the
choice should be the user's for each provider.
provider.SkipsRedaction is now: Unredacted, no signed-in account, not
another magpie, and at least one address. Nothing is looked up on the
request path. The editor shows the row for every provider but an
account or remote magpie. While it is ticked, an amber caution under it
names an address not on this computer or the local network (awayHost).
A name of the user's own DNS is asked about, only while ticked, through
POST /api/local-hosts (provider.LocalHost -> netproxy.LocalName: every
address loopback, private or link-local, 400ms lookup, kept 1 minute).
That answer only words the caution. CLI help and `provider show` say
the same. The 'away' i18n line is in zh, zh-TW, ja and de. To stay
inside the core script budget, a few nearby editor comments were cut
down (no raise).
Run (logs in the worktree's logs/):
- Full Go suite on mote at base 024393fbb (go test ./... -timeout 45m).
Every package is ok except internal/gui. Its reds are the AppKit
window tests (#4125, #2645, #1936, #3949, #3178) and
TestRestartHandsTheGatewayOver (#4167), plus TestCoreScriptBudget,
which was mine and is fixed. At the pushed head (rebased on
995f84a0f): the gui, provider, netproxy, gateway and cli tests for
this area, with TestCoreScriptBudget and TestI18n: ok.
- GOOS=linux go vet -tags nogui ./internal/... and GOOS=windows go vet
on the touched packages: ok. gofmt -l is clean.
- provider-unmasked.test.cjs and decide-endpoint-label.test.cjs: 34/34
in Chromium and 34/34 in WebKit (Linux, wsl-run), on the final app.js.
- The 155 GUI files that open a provider editor, both engines (WebKit
on Linux, Chromium on mote). Each file red there was rerun on Linux
beside the base 024393fbb. The one red this change caused was
decide-endpoint-label: a /api/local-hosts fetch cut off by navigation
showed as a console error. That is why names are now asked only while
the switch is on. The rest are red on the base too and have issues
(#4431 and others). mote's browsers were crashing (#4125), so
Chromium was compared on Linux.
Broken by hand:
- The old local-only gate put back in SkipsRedaction: TestSkipsRedaction
(lan name, vendor, public IP, own proxy) and
TestLANNameUnredactedProvider went red.
- awayHost returning "": 12 caution tests went red.
- The "only while on" guard removed: 4 "nothing is asked while the
switch is off" tests went red.
Not tried: a real LAN DNS server, or AcMilan's own setup; WebKit on
macOS (mote's WebKit can't launch, #4125); the Windows app; the whole
GUI suite beyond the provider-editor files.
A Codex reset card that would run out unused was spent 30 minutes before
it expired, a fixed resetExpiryLead. Now the lead is codexResetLead in
settings.json (minutes, 15 to 1440). Unset, out of range or unreadable
reads as 30m, never 0, and magpie never writes it unless the user does.
- settings: CodexResetLead and Settings.ResetLead(); the menu's values
are 15m, 30m (default), 1h, 2h, 3h, 6h, 12h, 24h.
- provider: the spend (expiringResetSpent) and routing
(Allowance.Restarts, through nextResetLook) read the same resetLead(),
so they still agree (#717, #718). The "near" look cadence follows it:
lead + 30m, at least 1h, so a look lands inside a long lead.
- GUI: Settings > Usage, under the Codex auto-use rows, a row "Codex:
how early before one expires" with an app menu (no <select>), and the
sub text says spending earlier loses what the windows have left. The
four "before it expires" strings say the chosen lead. POST
/api/settings/codex-reset-lead; the general save keeps the field.
en, zh, zh-TW, ja, de.
- CLI: magpie quota auto-reset lead [30m|3h|<minutes>|default].
- app.js budget: the auto-use rows moved out to lazy autoresetown.js
(painted in the same draw once loaded), so app.js and the core script
stay under their budgets with no raise. The button sizes to its widest
label (a grid of every label), so picking one never rewraps the row.
Run (all on mote through mote-run):
- go vet: darwin, GOOS=linux -tags nogui, GOOS=windows; nogui build.
- go test -tags nogui -timeout 45m ./... at 3955adccf (this change
before the paint and sizer fixes, which touch only GUI assets): 81 ok.
go test ./internal/gui at this head: ok.
- GUI, Chromium: codex-reset-lead, codex-auto-reset,
codex-auto-reset-settings, segs-press-redraw, i18n-keys: 62/62.
WebKit: every case of those files failed at browserType.launch
(180s timeout) before a page loaded, both runs; mote's browser
launches hang under #4125 (load ~26), so WebKit is not run.
- Rebased onto f7f2d75f2 (old-webkit's lazy list now has traywindows.js
too): go build ./..., go vet -tags nogui ./internal/..., go test
internal/gui (budgets included), cli, settings, gateway: ok. provider:
ok but TestQuotaSpanCarriesEveryWindowField, red on main since
7d4a63148 (#4457, fixed in ccbefe2a2). GUI old-webkit, i18n-keys,
codex-reset-lead in Chromium: pass.
- Rebased again onto 62a1dcdd7 (clean): go test internal/gui (budgets)
and internal/provider: ok; i18n-keys and Chromium codex-reset-lead
12/12 pass; old-webkit 9/10, its Safari 15.0 case a WebKit launch
timeout (#4125).
Broken by hand, each went red:
- resetLead() pinned to 30m: all 3 provider tests.
- resetExpiryNear pinned to 1h: the long-lead look test.
- ResetLead's range check turned into m == 0: TestResetLeadUnreadIsDefault.
- GUI resetLeadMinutes returning 30: codex-reset-lead in every language.
- The button without the sizer: de at 420px, "no click moved the page".
Not tried: a real Codex account spending a card at a non-default lead;
Windows and Linux runs (vet only). The whole GUI suite in Chromium on
mote has ~45 tests in 31 files crash with "browser has been closed" on
untouched origin/main c84c3e1c0 too (reducedMotion files, #4458).
cuipengcx90's #4382, Option A's first step (nifengfanpan asked on
Discord): with the MCP hub on, every Library server went behind magpie's
one entry, so a server that reads its project from the folder it starts
in, or keeps a session's state, resolved the wrong repository or shared
state across agents. A server now has a hub policy, Server.Hub ("hub" in
library.json): "" (shared, the default, so nothing changes for existing
users; "shared" is saved as "") or "direct". A direct server is left out
of the hub through inHub, the test that already keeps magpie's own image
server out, so each agent given it keeps its own entry written as with
the hub off, beside the hub's entry for the rest. An agent whose every
server is direct gets no hub entry. The hub neither lists nor runs a
direct server, at /mcp/magpie/hub either, and hubPrune ends one it held.
Switching goes through change(), so the agents are written again at once
and the entry from the other policy is removed. An unknown policy is an
error.
- GUI: with the hub on, the server editor has a "Through the MCP hub"
switch (role=switch, not a <select>; not shown with the hub off or for
the image server), a direct server's row has a "Not through the hub"
tag, and the hub's line and the Connect sheet name the direct servers
with the image server as given directly. Strings are in zh, zh-TW, ja
and de ("MCP 聚合" as the core uses it).
- CLI: magpie library mcp hub <name> shared|direct (ServerHub), and
magpie library marks a direct server.
- TUI: an edit keeps the policy.
- Not done: Option B (per-roots/project backends behind the hub, keying
hubPool by roots). It is left for later; #4382 stays open for it.
Run:
- TestHubDirectServer (internal/library) and the extended
TestLibraryMCPHub (internal/cli) on mote. Broken by hand: inHub back to
!isSelf(s) makes TestHubDirectServer red ("codex with the hub on:
[magpie], want [index magpie]").
- Real configs in a sandbox HOME on mote (fake claude on PATH, the real
binary built from this tree): mcp add index + web for claude and codex,
hub on, hub index direct, shared, then both direct. The direct index
entry was in .claude.json and .codex/config.toml beside magpie's; with
every server direct both files were byte-for-byte as with the hub off
(json.tool diff and diff); shared again removed the index entry.
- Full Go suite (-tags nogui -timeout 45m ./...) on mote at this tree
rebased on origin/main 72ed121fd: 81 packages ok. Before the rebase
the only red was TestQuotaSpanCarriesEveryWindowField (#4457, fixed by
ccbefe2a2). GOOS=linux and GOOS=windows go vet clean, gofmt clean.
- GUI on WSL (magpie-desktop; mote's GUI is broken, #4125), both engines,
every language: the new mcp-hub-direct.test.cjs (1100 and 390 wide,
hub on and off), library-mcp-hub, mcp-local-server, i18n-keys: 88 pass.
Broken by hand: not sending hub in the save makes mcp-hub-direct red
(11 of 11 in chromium).
- The 54 library/mcp/i18n GUI files at --test-concurrency=4 on WSL at load
~160: 978 of 988 pass. Red: library-chip-fan (webkit, fan positions),
library-mcp-tools (chromium ja 420, "the click scrolled the page") and
mcp-oauth-app (chromium de 390). None of them touch the hub switch or
the editor's new field. They are being rerun alone, here and on
origin/main, after this push; a red that only this change has is fixed
next, and a red on main too is filed.
Not tried: the whole GUI suite (1028 files); a real cwd-sensitive
server in a real agent session; the live app window.
karissasel_ on X: T3 Code through magpie could only run Claude Code; the
harness couldn't be chosen. T3 runs a thread on the driver of the provider
instance its model is picked under, and magpie wrote only a claudeAgent
instance. It now also writes `magpie-codex` ("magpie · Codex", driver
codex) in ~/.t3/userdata/settings.json. Its config.launchArgs (T3's
CodexSettings key, passed to `codex app-server`, and its -c pairs to
`codex exec`) are Codex's own -c overrides: model_provider=magpie, the
same model_providers.magpie table codex.go writes, and model_catalog_json
pointing at magpie-codex-models.json beside settings.json. Values are
quoted for T3's tokenizeCliArgs. ~/.codex/config.toml is not written. A
binaryPath/homePath the user gave T3's own codex instance is carried over.
The user's name, on/off and unknown keys are kept; launch args and catalog
are magpie's, and Check says when they no longer reach the gateway
(the base_url read back through T3's tokenizer; a reverse proxy to magpie
the user put there counts, reachesMagpie, as for every agent). An
older Claude-only wiring gets the instance once on Sync; one the user
removed stays removed (stash t3code.codex) until magpie is turned on for
T3 again. Turning magpie off removes both instances and the catalog. The
option's note says where to pick (4 languages); reference.md and
agent-wiring.md describe it.
Run (on mote, the tree as committed):
- real end to end, sandbox HOME (~/t3e2e/home): settings written by this
code, magpie serve on 127.0.0.1:47811 with a fake Responses upstream,
T3 Code server 0.1.5 (npm t3) and @openai/codex 0.165.0.
`t3 thread start . "Reply with the word pong." --provider magpie-codex
--model fake/fake-model --wait` answered PONG-T3-CODEX; the upstream saw
POST /v1/responses, model fake-model, stream true, with the provider's
own key (sent by magpie's gateway).
- go test -tags nogui ./internal/agent -count=1 -timeout 45m: ok
- gofmt -l; go vet (darwin, GOOS=linux, GOOS=windows) ./internal/agent
- node --test internal/gui/tests/i18n-keys.test.cjs: ok
Broken by hand, each red then restored: no escaping in t3Arg
(TestT3CodeCodexInstance red); Sync without t3CodexSync (both new tests
red); no stash check (TestT3CodeCodexInstanceAddedOnce red); t3CodexOff
never reporting (TestT3CodeCodexInstance red). The first full run
was red in TestReverseProxyIsStillMagpie, Check comparing the launch
args by string; that red is the break for the proxy rule.
Not tried: T3's desktop app window (the server CLI is what it runs); the
Windows quoting on a Windows box; a real vendor upstream (fake one only);
T3's other drivers (cursor, opencode, pi, grok, ...), which are off by
default in T3 and not wired.
RIck (Discord #feedback): after pressing 测试模型, the error took too long
to show, and the test couldn't be cancelled.
Fail fast. Each probe now has 10s (connectWait) to get a connection,
traced through httptrace's GotConn. If it doesn't get one, the error says
"couldn't connect to <host> in 10s". In the past a refused, unresolved or
silent host waited out the whole 20s probe, or TLS's own timeout, once for
every model. TestModels keeps the hosts it couldn't reach for the run
(withUnreached). Once one model on a host fails to connect, the rest of
that host's models fail at once with the same error, so they don't each
wait 10s in turn, four at a time. The 20s per-probe bound and the GUI's
3m/25s bounds are unchanged. A stream that breaks off before the model
answers is now a failure ("the stream broke off before the model
answered"), not a long wait. Plugin and account transports don't get the
connect bound, since they dial for themselves.
Stop. While a provider has a test running, its Test models button (the
model editor), its endpoints' Test, and a chip's own right-click test all
read Stop (停止 / 停止 / 停止 / Stoppen). Pressing Stop aborts the fetch
and posts provider/teststop with the run's token. The handler keeps each
run's cancel in testRuns, so the vendor's request ends on the server too.
This matters on WebView2, where a fetch abort never reaches the request's
context. The status line then reads "Test stopped". Every entry point goes
through one helper (provTest, testButton), so they behave the same.
app.js fits its budget with no raise. The helpers are compact, and three
comments in the editor's Fetch models were cut down.
Tests:
- TestTestModelsUnreachedHostFailsOnce: a listener that accepts and never
speaks TLS, connectWait set to 200ms and 8 models. Every model's error
must be "couldn't connect", and the listener may get at most 4
connections.
- TestStreamAnswerBrokenOff.
- TestProviderTestStops (models and endpoints): a fake vendor holds the
request until its context ends. The test waits for the request to
arrive, posts teststop, and waits for the reply to say canceled and for
the vendor's request to end. It waits on that state, not on a duration.
- model-test-stop.test.cjs: all three buttons read Stop, teststop is
posted with the run, the labels come back, the status reads Test
stopped, there is no left-border accent, and nothing overflows at
560px. It runs in Chromium and WebKit, in en, zh, zh-TW, ja and de.
Broken by hand (each one went red, then the fix was restored):
- the GUI test against origin/main's app.js;
- teststop's post removed ("Stop posted no teststop");
- teststop not cancelling ("the test went on after Stop");
- dead.Store removed (8 connections);
- the connecting wrap removed (TLS handshake timeout after 10s).
Run:
- At the pushed head:
- mote: TestCoreScriptBudget, TestProviderTestStops, the i18n Go tests,
TestTestModelsUnreachedHostFailsOnce and TestStreamAnswerBrokenOff:
ok.
- wsl-run (load 179): model-test-stop 10/10 and i18n-keys 4/4.
- model-test-one: webkit zh was red, "model-c moved on its right-click",
445.37 vs 444.89. origin/main's app.js was red the same way 3 of 6
times, in en and zh. That file is on #4218.
- provider-typed: 4 red (locator.fill 5s); see #4461.
- On the change before its last rebase:
- gofmt clean. GOOS=windows go vet and GOOS=linux -tags nogui go vet:
ok.
- Full Go suite on mote (-timeout 45m, tee'd): 79 packages ok.
internal/gui failed only on the ten AppKit window tests #4125 names.
- Whole GUI suite on Linux WSL (both engines, every language): 15,767
tests, 502 red across about 125 files, at load 160 to 175. The 8
provider-editor files gave the same pass and fail set at fresh
origin/main ccbefe2a2. The reds are on the WSL issues; the 12 files
no issue named are filed as #4461.
Not tried:
- Stop in the real Windows app (WebView2).
- A real vendor, or a real unreachable host outside the tests.
- Plugin and account transports (no connect bound for them).
- The Fetch models step inside the endpoints' test.
- The CLI's test path and Detect, which get the connect bound through
probeOnce but weren't exercised.
- The macOS GUI suite, since mote's WebKit is broken (#4125).
liyuanzheng (#general) and lam_em (#feedback) both asked for the same
thing. Off-peak, DeepSeek's own API should come first for deepseek-flash.
At DeepSeek's peak (weekdays 01-04 and 06-10 UTC, billed 2x since
v0.1.2173), another provider should come first, Ollama say. A schedule
editor would make the user copy DeepSeek's hours into magpie. Instead,
a group gets one more routing, "Cheapest first" (`cheap`). Each request
sorts the members by what they cost right then: input + output price per
million, at the peak rate when it is peak hours. A tie goes to the lower
cache-read price. Free models count as 0. A member with no known price
keeps its listed place after the priced ones. Prices come from the same
priceOf the usage ledger bills with, so the user's own ModelPrices,
list prices and maker prices all count, and so does a provider's rate
windows.
- routes: Seat carries Priced/Cost/CacheCost; Strategy.ByPrice; Cheapest
is a stable sort, so equal prices keep the user's order.
- gateway: weighRouted prices each seat at priceClock() (time.Now; a test
holds it) through the new provider.PriceAt. The trace's Weighed row
gets a price (input/output/cacheRead/peak) so Routing can say why.
- It is a group's alone, like Manual. A provider saved with it drops it,
and `magpie provider set … routing=cheap` refuses it. Groups take it in
the GUI menu (one more item, no new controls), the TUI and
`magpie group set <id> routing=cheap` (aliases cheapest, price, cost).
- Routing's mode line says why the first one is first, e.g. "Cheapest
first: deepseek-v4-flash costs least on ollama-cloud now — $0.150 in,
$0.600 out a million tokens.", with peak and unpriced variants.
en/zh/zh-TW/ja/de.
- Docs: gateway-routing, plugin-runtime, reference (it also points at
Time window and Pause rules for a fixed schedule) and the site's start
pages (en/zh/ja).
Run, at f7f2d75f2 (this change rebased onto it):
- Red on the old code: TestCheapestFirstGroupFollowsPeakHours (deepseek
vs ollama with ModelPrices, priceClock held at 14:00 UTC off-peak and
02:00 UTC peak) and TestCheapestOrdersByPriceNow did not compile
without Cheapest. TestCheapestFirstIsAGroupsOnly checks that a provider
drops it and a group keeps it.
- Broken by hand: without `pr = pr.In(at)` the gateway test is red ("at
DeepSeek's peak ... went to deepseek"). With Cheapest returning the
order unchanged, both the routes test and the gateway test are red.
Both were restored.
- Full Go suite on mote (-count=1 -timeout 45m ./..., log kept): every
package ok except two. internal/provider had
TestQuotaSpanCarriesEveryWindowField, which is red on origin/main (#4457,
fixed since in ccbefe2a2). internal/gui had ten AppKit window tests
killed at their 20-40s deadlines (TestPanelCloseHidesIt,
TestMainWindowCorners and others). Three of them are red the same way
on a fresh origin/main f7f2d75f2 copy, under #2645/#4125 (mote has
several GUI suites running). After the rebase, go vet and the Cheapest,
SpeedFirstGroup, ParseRouting, ApplyGroupPairs and ProviderRouting tests
are ok. go vet darwin, GOOS=linux -tags nogui and GOOS=windows are ok,
and gofmt is clean.
- GUI on WSL (Linux, chromium + webkit): routing-cheapest-first (new,
3 scenes x en/zh/zh-TW/ja/de x 2 engines), routing-group-strategy,
builtins, i18n-keys and routing-speed-first gave 95 of 96. The one red,
routing-group-strategy "webkit en light ... the pick moved nothing", is
a wheel-scroll timing red. It fails 3 of 3 on origin/main and 1 of 3 here
(#4459). Core-script budget ok (app.js +9 bytes).
- The whole GUI suite (1025 files) was started on WSL at this tree and
was still running when this was pushed, at load ~160.
Not tried: real DeepSeek or Ollama accounts, and a real request during
DeepSeek's peak hours. Ollama Cloud's price here is the catalog's, not
checked against a bill.
Claude Pro's menu bar card drew its 5-hour and 7-day windows as two
small stacked numbers, and the user wanted one of them alone. Settings ›
Usage › Menu bar windows (under Allowances in the menu bar) lists a pill
per ticked subscription with two or more windows ("Claude Code · All
windows"), opening the app's menu: All windows, then each window. The
choice is settings.TrayWindows, by provider id (every account of it, the
in-use "|*" card too) and by window kind from the span ("5h", "1d", "7d",
"month", "15m", "name:<name>" when the span is unknown), so a vendor
reordering windows changes nothing. Unset shows every window as before;
a pick whose windows are all gone shows every window again, never an
empty card. Only the bar's rows and the Linux label are filtered; the
tooltip still says every window. One row draws at mpRowFont's 11pt
single-row size. Hidden on Windows (its tray shows no text). Per
computer through KeepOwn. The GUI learns kinds from trayKind on
/api/usage/quotas (withTrayKinds; model and aside windows get none). The
row's code is a lazily imported traywindows.js, so the core script
budget is not raised (app.js +4 lines for the call and the prefs keep).
Run:
- mote (macOS): go test -run 'TrayWindow|TrayUsage|WithTrayKinds|
CoreScriptBudget|AppScript|TrayImage' ./internal/gui/ ok;
./internal/settings/ ok; davsync TestSync ok. TestTrayImageOneWindow
draws through AppKit: Claude's card one line ("42%"), both windows two;
the PNGs were looked at.
- mote: gofmt -l empty; go vet ./..., GOOS=linux go vet -tags nogui
./..., GOOS=windows go vet ./... ok; go build, GOOS=linux go build
-tags nogui, GOOS=windows go build ok.
- magpie-desktop (Linux VM), --test-concurrency=1, BROWSER=chromium and
webkit: tray-windows (en, zh, zh-TW, ja, de; picking All; hidden on
Windows / single-window / no cards; 360px narrow), i18n-keys,
old-webkit, tray-usages, tray-logos, tray-cost, quota-pace: 43/43 each.
After rebasing on ec5571d6f: the focused Go run above, davsync and vet of
the touched packages ok on mote; tray-windows, i18n-keys, old-webkit,
tray-usages 27/27 in chromium and webkit on the Linux VM.
Broken by hand: the row filter in trayCardText off -> TestTrayWindowsPicked
and TestTrayImageOneWindow red; trayWindows out of prefsKeep ->
tray-windows.test.cjs red in every language. Restored, green.
Not run: the full Go suite (owner: ship each verified fix at once; mote
was at load 20-27 under another session's full GUI suite) and the whole
GUI suite. The GUI ran on the Linux VM because mote's browsers crash or
hang under that load (#4125; TestTrayCellClickReleasedPanel is red the
same way on origin/main c84c3e1c0 there).
Not tried: the live app's real menu bar with a signed-in Claude account
(the AppKit drawer was exercised in-process instead); Linux tray label
on a real desktop.
da3c5e0c0's ja string for "{agent} checked that magpie answers ..." had a
third {agent}, so gui-ja's "ja has every zh string, with its placeholders
and tags" was red on origin/main (a0cb8b646), in Chromium and WebKit.
"このチェックのモデルは {agent} がモデル一覧の名前から自分で選んだもの"
now reads "このチェックのモデルはモデル一覧の名前から自分で選んだもの"; the
sentence already says the agent picks it.
Run: wsl-run node --test gui-ja.test.cjs i18n-keys.test.cjs: 7/7 (red
before: 1 fail, the same test, in both engines).
Not tried: a Japanese speaker's read of the new wording.
treeman_26897 (#help): in the price editor the Command Code plan's
deepseek/deepseek-v4.1-flash showed empty boxes, and typing a price lost
the peak/off-peak split.
What was wrong, on the plan (served by its plugin since the retire):
- No price at all. models.dev's DeepSeek now lists V4.1 Flash only as
deepseek-flash, by the dated canonical deepseek/deepseek-v4.1-flash-1017,
so no maker price matches the undated id, and the plugin's own model list
gives cost 0 (none). Its calls were counted unpriced, at nothing, and the
editor had no list price to show. models.dev's own "commandcode" catalog
does list it ($0.15/$0.60, cache read $0.003); the Command Code API-key
preset already read it through its endpoint, the plan didn't.
ListPrice now falls back to that catalog for the plan (vendorListPrice),
after the maker's price, so a model DeepSeek prices keeps DeepSeek's.
- No peak hours. PeakOf judged the vendor by the provider's URLs, and a
plugin provider's are plugin://, which matched nothing. plugin:// URLs
are now left out, so the plan is told by its id as before.
- A user's own price was flat at every hour. It is now the off-peak base,
doubled in the peak hours of a vendor that bills by the hour (DeepSeek,
Command Code's DeepSeek V4, OpenCode Go's two), as the vendor does to
its own price. Chosen over a second "peak price" field: smaller, no new
UI. The editor's hint says it ("Off-peak price, the list's or one set
here: ... doubles it", en/zh/zh-TW/ja/de).
Behaviour change for existing users: a price already set on such a model
now counts double in those hours on the Usage page. It was not left
alone because the vendor itself doubles whatever the off-peak price is;
a price set for every other model is unchanged (tested: OpenCode Zen and
an OpenAI model hold at every hour).
Tests:
- TestCommandCodePlanPrice (new, models.dev's bytes of 2026-10-30): the
plan's plugin provider lists 0.15/0.6/0.003, 0.30 at peak; DeepSeek V4
Pro keeps DeepSeek's 0.66; a set price is 0.1 off-peak, 0.2 at peak; a
relay doesn't take Command Code's catalog.
- TestPeakOf: the plan with plugin:// URLs, its flash-fast, another plugin.
- TestPriceOfPeak: a set price doubles at peak; Zen and OpenAI set prices
don't.
- model-price-edit.test.cjs: the hint names a price set here.
Broken by hand (each red, then put back):
- peak.go at origin/main: TestPeakOf plugin case and four
TestCommandCodePlanPrice checks red.
- vendorListPrice off: "list price ... false", "unpriced".
- the user price's Peak line removed: TestPriceOfPeak (3 keys) and
TestCommandCodePlanPrice (2 keys) red.
- origin/main's app.js with the new GUI test: model-price-edit red.
Run:
- mote-run go test ./... -timeout 45m -count=1 at acdc85ac8 + this change:
every package ok but internal/gui, whose 10 reds are its real-window
AppKit tests (TestDockJoinLeadsCommandTab, TestPanelCloseHidesIt,
TestMainWindowCorners, ...) killed at their deadlines while pboard was
down on mote (pgrep pboard empty, crash reports 10-29 22:45): #4125.
The size budgets in it passed.
- mote-run GOOS=linux go vet ./internal/provider, GOOS=windows go vet
./internal/provider ./internal/gui: ok.
- wsl-run model-price-edit.test.cjs: Chromium 2/2, WebKit 2/2.
- wsl-run, Chromium and WebKit: i18n-keys, gui-ja, gui-zh-tw,
model-price-edit, model-price-tiers, provider-price-rate,
usage-unpriced-names, usage-unpriced-sum, commandcode-risk.
Each engine 27 pass, 1 fail: gui-ja's "ja has every zh string", on
the Routing plugin's connection-check string from da3c5e0c0, red on
origin/main a0cb8b646 too; fixed in the next commit (gui-ja and
i18n-keys 7/7 after it).
- After rebasing onto origin/main 2df46e3c8 (which added i18n.js lines):
mote-run go test ./internal/provider: ok; internal/gui -run
'Budget|Size': ok; wsl-run i18n-keys, gui-ja, gui-zh-tw,
model-price-edit with the next commit: 14/14.
Not tried:
- No real Command Code bill compared with magpie's count, and no real
plan account used: the prices are models.dev's, the hours are the
ones 9e73f69af already uses for Command Code.
- The whole GUI suite: the WSL box had ten other suites running (some for
4h+); it runs after this push and is reported separately.
- Not checked against the real catalog: whether another relay with no
catalog of its own that serves the undated deepseek-v4.1-flash is
unpriced the same way since models.dev's dated canonical.
zytszone on X runs one magpie's gateway for a whole department, whose
people can't be given the admin's app. Each now opens the gateway's /me
at the address they reach it at, types the gateway key they were given,
and sees that key's own name, limits and what is spent of them, its
usage over today, 7 and 30 days with its most used models, the models
it may use, and copy-ready setup for Claude Code (settings.json env),
Codex (config.toml provider, /v1, responses), any OpenAI-compatible
client and a curl test. The base URL is the address the page was
opened at, never 127.0.0.1; the key is a placeholder until "Put my key
in the setup" is ticked. Strings in en, zh, zh-TW, ja and de.
- GET /me (keypage.html, embedded) is the same bytes for everyone and
holds no data, so lanGuard serves exactly GET/HEAD /me (no escaped
path) to another machine without a key, after the allow list, the
rebinding check and the not-shared 403, which still apply. Its CSP
loads nothing from elsewhere, posts no form and forbids framing.
- GET /v1/magpie/me (keyInfo) answers access.Caller's own key only. No
key, a wrong one, one turned off and magpie's own token are 401
alike; ?key= is refused 400 so a key never sits in an address or a
log. It names no account, other key, provider or secret; its models
are /v1/models' for that key (keyAllowed), none for a read-only key.
The page sends the key as Authorization to its own origin with
credentials omitted and keeps it in sessionStorage only.
- Both are in readOnlyRoutes, /me in clientPrefixes (magpie web's page
port), and Gateway -> Gateway keys shows the page's address
(MAGPIE_PUBLIC_URL, else the LAN address offered) with a Copy, while
shared and with a key. Docs: gateway-routing.md, reference.md.
Run:
- mote: go build -tags nogui ./...; go vet -tags nogui gateway+gui;
GOOS=linux and GOOS=windows go vet -tags nogui ./internal/gateway;
go test -tags nogui -count=1 ./internal/gateway ./internal/gui: ok
(gateway 732s). gofmt -l clean. Rebased onto 18b63fe5f after that;
there: build, vet, and the KeyPage, read-only, client path, page
port, LAN guard, caller usage and core script budget tests ok.
- Key page Go tests, through the real lanGuard(Handler()) chain, from
the network and from loopback: the key sees its own name, usage, top
model, limits and allowed models and nothing of Bob, Bob's secret,
the upstream key or magpie's token; no key, wrong key, turned-off key
(Bearer and x-api-key), magpie's Token, ?key=, Origin null, an
evil.localhost page, a foreign origin with a good key and a rebound
Host all get nothing; the page opens without a key, not on POST,
/me/x or /%6De, and not while unshared; a read-only key gets no
models.
- GUI, key-page.test.cjs: Chromium on mote and WebKit on the Linux box
(magpie-desktop), 390px, all five languages, 24 of 24; i18n-keys ok.
The 46 Gateway/caller-key GUI files and i18n-keys on the Linux box,
both engines: 645 pass, 11 red at concurrency 4. Serially 6 stay red,
and the same tests are red on origin/main a0cb8b646 there:
api-key-theme "system", gateway-key-limit webkit en/zh,
connect-snippet-shell, gateway-key-models (#4120), phone-rows (#4218).
Broken by hand, each red then restored: lanGuard's /me exemption
removed (page 401); the KeyID check removed (no key/wrong/off/Token got
data); keyAllowed dropped (Alice saw plan/m2); the RawPath check dropped
(/%6De served); the ?key refusal dropped (200 with Alice's data).
Not tried: a real Claude Code or Codex pointed at a shared gateway with
the page's snippets; WebKit on macOS (every WebKit launch on mote hangs
right now, for every session, a bare launch included); the whole GUI
suite and a full go test ./... (one suite per machine; mote is running
other sessions' suites).
jorbenzhu on Discord: after every update and restart the panel is back in
the middle of the screen. It is the main window: after an update magpie
starts again with `magpie gui <tab>`, and Wails opens a window centred
unless told otherwise. Its size and maximised state were kept; its place
never was (gui-shell.md said "The window's position is not kept"), so
nothing was lost on upgrade, there was nothing to restore. The tray's
panel opens under the tray icon on the Mac and Windows, and where the
click was on Linux, so it is not what moved.
Now settings.WindowAt keeps the window's top left corner (system
coordinates across every screen), per machine like Window (KeepOwn, and
the Settings page's save carries it over). keepAt saves it once a move or
resize has rested 500ms, unless the window is maximised, full screen,
minimised or hidden; settings.Save writes through temp and rename, and an
unreadable settings file is left alone. On the first show placeMain puts
it back (putBack): openAt picks the screen holding most of the window and
moves it fully onto that screen's work area; when no screen holds any of
it (a monitor gone) or the screens or the file can't be read, it stays
centred. Under Wayland a window can't place itself, so nothing is kept or
restored there unless GDK_BACKEND is x11 (keepsPlace).
Run:
- mote, at 3f8f1d88b (on d99e213f5): go test -timeout 45m -count=1 ./...
80 packages ok; internal/gui red only in its 10 real-window AppKit
tests (TestDockJoinLeadsCommandTab, TestPanelCloseHidesIt,
TestPanelJoinsFullScreenSpaces, TestPluginPageLoadsItsFilesInTheWindow,
TestDockReopenKeepsTheWindowsSpace, TestMainWindowCorners,
TestMainWindowRightToLeft, TestHandoverLeavesTheMenuBarIconForTheNextMagpie,
TestTrayCellClickReleasedPanel, TestCoveredWindowStaysUp), each killed
at its deadline. The same 10 fail the same way on origin/main
fa427216a: mote has no console session (#4125).
- mote, after rebasing onto 024393fbb (two gateway commits, none of
these files): internal/gui (less the 10 above), internal/settings and
internal/gateway: ok.
- mote: gofmt -l; go vet ./internal/gui ./internal/settings; GOOS=linux
go vet -tags nogui ./...; GOOS=windows go vet ./...; go build, and
GOOS=windows / GOOS=linux -tags nogui builds: clean.
- Windows (win-run) and Linux (wsl-run, -tags gtk3): TestOpenAt,
TestSettleAt, TestKeepsPlace, TestOpenSize, TestSettle*,
TestSettingsSaveKeeps*, TestWindowMaximisedKeptAndOwn: ok.
Broken by hand (each red, then restored):
- api.go not carrying WindowAt over a Settings save:
TestSettingsSaveKeepsWhatItDoesNotSend red ("WindowAt: [] after a save
of the Settings page, was [-1440 120]").
- KeepOwn not keeping WindowAt: TestWindowMaximisedKeptAndOwn red.
- openAt without the clamp and the gone-screen check: TestOpenAt red in
7 of 12 cases.
Real app, Linux X11 (magpie-desktop, Xvfb 1920x1080 + xfwm4, sandbox
HOME/XDG dirs, MAGPIE_ADDR 127.0.0.1:3447, gtk3 build of this tree):
first start centred (630,240 in X terms); xdotool moved it to 200,150 and
settings.json got windowAt; restarted, it opened at 200,150; windowAt
[5000,4000] (a gone monitor) opened centred; [1700,900] opened at
[1260,480], flush with the bottom right (660x600 + GTK's 26px shadow).
Not tried: the real app on macOS (mote has no console session, #4125)
and on Windows (a sandbox magpie.exe rewrites HKCU\Software\Classes\magpie,
which points at another session's build there). Wayland is not restored
by design. Multi-monitor setups with mixed scaling were not tried on real
hardware; openAt's cases cover a second screen left of and right of the
main one.
Also: the check follows a Desktop model switch made after the last turn.
cybercaius (#help): with gpt-6.1-sol on AnyRouter chosen in the
conversation, the Routing page showed "Claude Desktop requested
deepseek/deepseek-flash" while the answer came from gpt-6.1-sol. The route
was right; the row was not explained.
Those rows are Desktop's own connection check ({"max_tokens":1, content
"."}, app.asar 2.7032 lWt/YT). Desktop names its model itself: the
shortest listed id with haiku, else sonnet, else opus, else the FIRST
listed model. magpie lists no Claude-named ids to it, so the check names
the first one (deepseek-flash), whatever the conversation is on, and
magpie sends it to the model chosen in Desktop's menu (desktopChosen).
- The check is recorded with kind connection_check (KindDesktopCheck,
usage purposeKinds "Connection check", purposes.js regenerated). The
Routing page tags the row "Connection check" next to the requested id
and its story says the id is the one Desktop named from its list, not
the conversation's model, and where magpie sent it. zh/zh-TW/ja/de.
The requested id itself stays what Desktop sent.
- desktopChosen: a turn sent after cowork_account_settings.json was last
written wins over the menus (newer of the two). Before, the last
session's model came first whenever any menu still held it, so the Code
tab switched off DeepSeek with Cowork left on it kept the check on
DeepSeek. desktopPicked now carries when that turn was sent (the
file's mtime once read).
The two 400s were AnyRouter's own (the reporter says so); not changed.
Run (at 0013f990c, this tree before its rebase on e0ad48641 and the
version stamp v0.1.2208 -> v0.1.2212 in comments/doc):
- mote: go test -tags nogui -timeout 45m -count=1 ./... : 81 ok, exit 0.
- mote: go vet ./internal/gateway ./internal/usage for darwin, linux
(nogui) and windows: ok. gofmt clean. go generate ./internal/usage
gives the same purposes.js as committed.
- GUI: routing-desktop-check (new; en, zh, zh-TW, ja, de), routing-kind,
i18n-keys: chromium on mote ok; WebKit could not launch on mote (90+
hung pw_run.sh launches from other sessions), so both engines ran on
the Linux box (wsl-run): 14/14 ok.
- Whole GUI suite (wsl-run, concurrency 4) still running at push; reds
so far are in account-arrange, account-models and agent-expand-steady,
files this change does not reach. Checked against main after.
Broken by hand:
- call.Kind = KindDesktopCheck turned off: TestClaudeDesktopProbeAsksNoClassifier
red ('recorded as kind "" (unmarked)').
- the connection_check story removed from client.js: routing-desktop-check red.
- old desktop.go: the new "Code tab switched off the last session's
model" case red; the at.After check turned off: red too.
Not tried: a real Claude Desktop. Whether Desktop sends a check on each
model switch, and whether its composer switch writes the menu file, are
read from its bundle, not seen live. AnyRouter's 400s not looked into.
yogurt36 on Discord: the menu bar panel had a button to open the window
at the top (the header's open-as-a-window icon, #open) and another at
the bottom (the foot's "Open magpie", #openMain). Both called
api("window/main"). The foot's button is gone; the foot keeps what is
its own: Profiles, the status line and Quit. The four "Open magpie"
strings it alone used are out of i18n.js (the tray menu's own
"Open magpie" lives in traymenu.go and is unchanged).
Test: internal/gui/tests/panel-open-once.test.cjs, both engines, all five
languages: the header's icon opens the window, the foot's buttons are
Profiles and Quit only, Quit worded in each language.
Run:
- panel-open-once, Chromium on mote: 5/5 ok; i18n-keys on mote: 4/4 ok.
- panel-open-once, WebKit on Linux (wsl-run, magpie-desktop): 5/5 ok.
WebKit does not launch on mote right now (several pw_run.sh from other
sessions hung for hours; a bare webkit.launch() times out at 80s).
- Broken by hand: the test against the old assets (origin/main
0a9d9702f) is red in every language, "the foot's buttons" lists
'openMain'.
- Every GUI file that loads the panel, its foot or i18n (146 files),
both engines, on Linux WSL: 2170 tests, 2107 ok, 63 red. The 12 red
files run alone at concurrency 1: 62 red with this change, 64 red at
0a9d9702f without it, the same tests (agent-panel-name-width,
redact-rule-edit, remote-magpie, text-size, tray-totals and others).
Filed: #4120 and #4400 (Linux WSL reds at main), #3407, #4398, #4203,
#4082, #3501, #1866.
At the pushed head (rebased on 30939aa84^): panel-open-once
Chromium + i18n-keys on mote 9/9 ok, WebKit on Linux 5/5 ok.
Not run: the whole GUI suite (mote and WSL both had other sessions'
full GUI suites running), the Go suite (no Go changed). Not tried in
the real tray panel on a Mac.
lml0664 on Discord: Library > RTK offered a fixed few agents, even on the
latest magpie. RTK 1.1.0 (rtk-ai/rtk, Latest, 2026-10-25) has `rtk init`
agents claude, cursor, trae, windsurf, cline, kilocode, antigravity, kimi,
pi, hermes, droid, vibe, omp, plus --codex/--gemini/--opencode/--copilot.
Every one with a global hook that magpie has an agent for was already on
the page except Factory's Droid, which is added now:
- droid: rtk's own `rtk init -g --agent droid`, given Droid's folder as
FACTORY_HOME_OVERRIDE (magpie's droid agent honours it). rtk writes its
Execute group (`rtk hook droid`) into the root hooks.json, or into
settings.json's hooks.PreToolUse when Droid's hooks already live there
(src/hooks/init/droid.rs), so ReadRTK and switching off look at all
three files rtk may use (hooks.json, hooks/hooks.json, settings.json)
and leave the user's own hooks and settings. rtk before 0.44 has no
Droid agent, so it is blocked with "needs RTK 0.44 or newer".
- dropHook no longer slices key[:-1] for a top-level key (hooks.json's
"PreToolUse"); before, it would have panicked.
Listed with the switch off and their own reason (rtkNoHook and the page's
rtkNoHookWhy, in zh, zh-TW, ja and de too):
- Qoder, Qoder CN: rtk 1.1.0 has no Qoder agent (`--agent qoder` is an
invalid value), rtk-ai/rtk#1327 (PR #1721 open).
- Cline: `rtk init --agent cline` only writes a .clinerules in the
current project asking the model to type rtk, no hook (#3841).
- Kimi Code: Kimi's hooks can't rewrite a command; rtk writes only one
project's AGENTS.md and refuses -g ("Kimi AI is project-scoped").
RTK's Trae, Windsurf, Kilo Code and Mistral Vibe have no magpie agent.
Run:
- go test -tags nogui ./internal/library -run TestRTK on mote: ok
(TestRTKDroid home/override, TestRTKDroidSettingsHooks,
TestRTKNoHookQoderClineKimi new, sandbox HOME, fake rtk).
- Red on old code: rtk.go at HEAD^ -> TestRTKDroid, ...SettingsHooks and
...NoHookQoderClineKimi red. Broken by hand: version gate at 0.43, the
settings.json entry dropped -> red; FACTORY_HOME_OVERRIDE not passed ->
TestRTKDroid/home red. client.js at HEAD^ -> library-rtk-nohook red
(Qoder's reason was the generic one).
- Real rtk 1.1.0 (release tarball, sha256 checked against checksums.txt)
on mote in a sandbox HOME through SetRTK/ReadRTK: plain ~/.factory,
settings.json with the user's own Execute hook (kept, rtk's taken out)
and FACTORY_HOME_OVERRIDE: on, seen on, off, seen off. Real rtk also
refuses --agent qoder and -g --agent kimi, and cline writes .clinerules.
- Full suite on mote, go test -count=1 -timeout 45m ./...: 80 packages
ok; internal/gui red only in its 10 real-window AppKit tests (#4125).
- GOOS=linux and GOOS=windows go vet ./internal/library: ok. gofmt clean.
- GUI on the WSL box (mote's browsers crash at launch, #4125):
library-rtk-nohook (chromium+webkit, en+zh) and i18n-keys 10/10; all 45
library-*.test.cjs files 810/824, the 14 reds (library-chip-fan webkit,
library-items webkit, library-mcp-tools chromium ja 420) are the same
at origin/main cf9ea977c and are #4120.
Not tried: a real Droid session running the hook; the whole GUI suite
(only the Library files); Windows (Droid's folder there is the same code
path; no run).
xgddm88 on X: after turning Claude Desktop on in magpie (to use DeepSeek
V4.1 Flash), Desktop started with none of the earlier projects or chats.
Cause, from Desktop 2.7032's app.asar (index.pre.js, read only): in
third-party mode Desktop calls app.setPath("userData", …"Claude-3p")
("[custom-3p] userData mkdir"), so it runs in a profile of its own. The
signed-in (1P) chats, projects and Code sessions stay in
~/Library/Application Support/Claude. They are not deleted, only not
shown, and come back when Desktop is off magpie. magpie writes nothing
in Claude/ but deploymentMode, and only reads its config.json for the
language. There is no supported way to show 1P history in 3P mode.
So magpie says it before the switch is touched, and after:
- the Agents row, not connected: "Not connected · on magpie, Claude
Desktop opens a separate profile: chats and projects from your
Anthropic sign-in stay, and are back when you turn it off"
(CONNECT_BEFORE);
- the opened row, once connected (CONNECT_COST);
- the notice after On and after Off (noticeClaudedesktop3/4).
In en, zh, zh-TW, ja and de. agent-wiring.md says where Desktop's
history is and that Opus beside DeepSeek comes from a Claude
subscription added in magpie.
Run (worktree at cf9ea977c):
- gofmt -l internal/: nothing.
- mote: go vet ./..., GOOS=windows go vet ./..., GOOS=linux go vet
-tags nogui ./..., go build ./..., go test -timeout 45m
./internal/agent ./internal/gui: vets and build ok, internal/agent
ok; internal/gui red in 10 real-window AppKit tests (dock, panel,
tray, main window), each at its 20-40s deadline. Four of them, run
at origin/main cf9ea977c on mote, fail the same way; that is mote's
window server (#4125, #2645), not this change, which touches no Go
in internal/gui.
- GUI, Chromium on mote and WebKit on Linux (wsl-run; mote's WebKit
launches hang behind ~48 stuck pw_run.sh from other runs):
desktop-history (10+10 pass), and i18n-keys, agent-connect,
agent-failover, desktop-longest, desktop-tiers, desktop-model-menu,
desktop-subagent-model (36 pass in each engine).
Broken by hand:
- Notice without the new sentences: TestClaudeDesktopKeepsTheSignedInHistory
fails on the On and the Off notice.
- desktopOn writing Claude/config.json: the test fails, "on changed
…/Claude/config.json".
- connectLine without the CONNECT_BEFORE line: desktop-history fails
10 of 10 ("Not connected · Claude Desktop uses its own settings").
Not tried: a real Claude Desktop launched on magpie (sandbox and live
were both left alone); leaving disableDeploymentModeChooser unset so
Desktop's login screen offers Claude.ai sign-in beside magpie (unverified,
unchanged); Windows' Claude-3p path in a real app; WebKit on macOS.
Each poll of the Sessions list and of every stats range titled each of
~5000 gateway sessions with GatewayTitle, which made the recordings
folder's name and Stat-ed it each time. With nothing recorded, as for
most users, that was the whole cost: os.Stat 62 MB and gatewayDir 18 MB
of 90 s of polls while an agent worked.
GatewayTitler makes the folder's name and asks once, and gives "" with
no work when nothing is recorded; gatewayListed takes it. GatewayTitle
is GatewayTitler()(agent, id), for one session.
Bench (mote, ~/r2278/full, hmw.sh second runs), e14 = bed604efb, e15 =
this: GatewayTitle 81 MB -> gone, gatewayListed 100 -> 19 MB, polls 170
x 200 in both; total 2308 -> 2350 MB is the run-to-run band.
TestGatewayTitlerAsksOnce: with nothing recorded a title makes 0
allocations; after a turn is recorded a titler made then finds what
GatewayTitle finds. Broken by hand (Stat and the folder's name again per
session): red.
At 825db07aa on bed604efb (mote): gofmt clean; go vet -tags nogui
./internal/gui/ ./internal/sessions/ for linux, windows, darwin ok;
go test ./internal/sessions/ ok; go test ./internal/gui/ -run
'Gateway|Sessions|Stats' ok.
With the Sessions tab open, every poll grew each long answer's buffer
from nothing: writeJSONRows' `whole` (~8 MB of rows) and writeJSONSame's
buffer plus encoding/json's own encodeState for the stats (~6 MB of
days), which the Encoder grows to the whole value after each
collection. In 90 s of polls while an agent worked, writeJSONRows was
245 MB and the stats' writeJSONSame 209 MB of 2702 MB allocated.
- answerBuffer/keepAnswer keep two buffers, dropped 30 s after the last
answer (as the usage scratch lingers). A ResponseWriter copies what
it is written, and only the rows' sums outlive the call, so nothing
reads a buffer once it is put back.
- writeSame is writeJSONSame over a write func; writeJSONRows and the
stats handler use the kept buffers.
- statsAnswer encodes the stats a Day at a time, byte for byte the
Encoder of struct{ sessions.Stats; Agents } (the page's tag rests on
those bytes).
Bench (mote, ~/r2278/full, hmw.sh: a gateway call every 3 s, 10
endpoints polled every 5 s with X-Magpie-Had; second runs compared),
e13 = 3bce283df, e14 = this:
total alloc 2702 -> 2308 MB, writeJSONRows 245 -> 110 MB,
stats encoding 209 -> 46 MB, /api/sessions/stats handler 306 -> 128 MB,
GCs in 90 s 85 -> 71, fp_peak 347 -> 360 MB (noise band 345-370).
Polls 170 x 200 in both. One e14 run (y14) had 60 answers of "400 Bad
Request" (15 bytes, <6 ms): Go's net/http refusing a malformed request
header from the bench's tag file; y12 at the old code had the same 60,
and a rerun had none. That run is not compared.
Tests: TestStatsAnswerWritesWhatEncodeDid (nil/empty/HTML/U+2028 days,
keys, agents, a hidden Sessions), TestAnswerBufferKeptForTheNext
(writeSame and writeJSONRows put a buffer back that the next answer
takes). Broken by hand, each red: writeSame without keepAnswer (red),
writeJSONRows without keepAnswer (red), statsAnswer keeping Encode's
newline (red).
At 9d6461416 rebased on 9e73f69af (mote): gofmt clean; go vet -tags nogui
./internal/gui/ ./internal/sessions/ for linux, windows, darwin ok;
go test ./internal/gui/ -run 'TestStatsAnswer|TestAnswerBuffer|
TestWriteJSONRows|Sessions|Stats|Same' ok; go test ./internal/sessions/ ok.
Full internal/gui on mote at the pre-rebase tree: every test ok but ten
real-window AppKit tests killed at their 20-40 s deadline (dock order,
panel close/space, plugin page, dock reopen, titlebar corners/RTL, tray
shown, released panel, window up), mote's #4125 / #2645, which this
change doesn't reach.
A provider can have up to 8 rate windows: days, a span that may cross
midnight (on this computer's clock), and a rate. Inside a window a call
costs the base price times the rate. The base is the user's model price
as set, or the list price times PriceRate with the vendor's own peak
(DeepSeek, Command Code, OpenCode Go) already in it. The author gave
this order as the spec: a 0.8 window on a shared DeepSeek key takes 0.8
off the peak price at peak. The editor's hint says not to set the
official peak hours again as a window, in every language.
Each call is priced at its own time on the Usage page and its CSV, in
the Requests tab's rows, and against a gateway key's cost limit. The
Sessions page, group templates and the model list written into an
agent's own config use the base price. /v1/models prices at now.
Ported from YangHonghang's 2c9d459ff (rate-windows-2463-v2). The Go
pricing, its tests and the translations are theirs. Changed here:
- No budget raised. Their commit raised appScriptBudget and
coreScriptBudget; core_budget_test.go is main's again. The editor's
window rows, time menus, validation and hint moved to ratewindows.js,
which app.js imports when the field is drawn (as signsheets.js is).
The sliding-thumb and modalDepth comments were cut down to make room.
The core is 1,535,528 of 1,536,586 and app.js 1,312,242 of 1,315,316.
Until the script has loaded, a save leaves rateWindows out, and the
server keeps the saved ones.
- Their unrelated TestAssetsHaveNoConflictMarkers is dropped (one
commit, one goal).
- The row badge shows only for a provider with windows. Before, every
provider with a price rate alone got a new ×badge. Its title is
shorter, and so are its translations.
- AgentPricer (agent model files: Pi, omp, OpenCode cost) uses the base
price. Nothing rewrites those files when a window opens or closes, so
a price taken at Sync stayed on outside the window.
- internal/budget gets a TestMain through testenv, so the new test
runs in a home of its own.
- old-webkit's list of lazily loaded scripts names ratewindows.js.
- The draft keeps each window as a shallow copy, and a day chip
replaces its days array, so the saved provider is never changed.
- The GUI test waits for the lazy script's hint, not a fixed 300ms.
It also checks the peak note in each language.
Run first on 2f5a3f1c0, then again after rebasing on 70d9996c5,
8acb0d3a7 and d609729cf. The rebase onto 70d9996c5 met main's ruleedit.js in
old-webkit's list, and both are listed.
- gofmt -l internal: clean at 8acb0d3a7 (129578c3d gofmt'd main's
pi_api_test.go).
- mote, on 8acb0d3a7: go vet on usage, provider and gui
ok; GOOS=linux and GOOS=windows go vet -tags nogui ./... ok.
go test -tags nogui for internal/usage, provider, gui, budget and
sessions: ok. The five internal/agent tests that are red on WSL
(below) pass on mote there. On d609729cf (a one-line mover min in
internal/provider), internal/provider again: ok.
- On 2f5a3f1c0: internal/provider, usage, budget and sessions, and the
gui RateNow|PriceRate|CoreScript|Budget tests, each under TZ=UTC,
Asia/Shanghai and America/Los_Angeles: all ok.
- wsl-run (magpie-desktop, Playwright chromium and webkit) on
70d9996c5: provider-rate-windows, old-webkit, i18n-keys,
provider-price-rate, provider-advanced-fold, agent-hides-editor,
key-box-once, provider-many-keys, nokey-editor and
editor-short-window: 200/200. On 2f5a3f1c0 the first five and
model-price-edit: 132/132. On mote the same files hit WebKit launch
timeouts (180s) under another session's full GUI suite (load 30), and
that run was stopped.
- Full suite, wsl-run (mote was running another session's full suite),
go test -tags nogui -count=1 -timeout 45m ./... at 6e534f546 (this
change on 70d9996c5): every package ok except internal/agent.
internal/agent fails TestInstalledVersion, TestGrokInstalled,
TestCursorFolderFromTheEditorIsNotTheCLI, TestOmpDetectedWithPiDir
and TestZedAppPath. This change doesn't touch internal/agent. At
origin/main 8acb0d3a7 on the same box, TestInstalledVersion,
TestGrokInstalled and TestOmpDetectedWithPiDir fail too: a fake CLI
in /tmp exec'd with "Invalid argument". That is #4033 and #3548
(WSL2 binfmt interop).
- Broken by hand, red each time:
- Pricer without the window: TestPricerRateWindows,
TestBlockRowsTakeTheirRateWindow, TestCostLimitCountsTheRateWindow.
- Block rows without atWindow: TestBlockRowsTakeTheirRateWindow.
- AgentPricer at now: TestAgentPricerLeavesTheRateWindowOut.
- Badge for a price rate alone: TestRateNowOf.
- Peak note removed: provider-rate-windows, 10 of 10 chromium
layouts.
- ratewindows.js not in old-webkit's list: old-webkit.
Not tried:
- A real relay billed by the hour.
- The real desktop app (WebKitGTK, WKWebView).
- The full GUI suite (mote was running another session's).
Known limits:
- No rate is stored per record, so changing the windows reprices
history, as a changed PriceRate does.
- Windows follow this computer's zone, with no zone of their own.
- The Sessions page uses the base price.
Co-authored-by: YangHonghang <honghang.yang@qq.com>
Kylin_Cloud on X reported that the editor of an API-key provider lists every key
under Accounts, each with copy, replace (the pencil, keys/replace, #1869) and
remove buttons. Below the list was also an "API key" box to "paste a new key to
replace it". That was the same action twice, and the box replaced the first key
without saying which one.
The box is now shown only for a provider with no key yet (an empty keyList: a
new provider, or a local one with no key). A provider with keys changes them in
Accounts.
The curl import filled the key box too. With the box gone, a pasted command's
key went into draft.key unseen and was saved over the first key. A key from the
command is now taken only while the box is on the page.
Run:
- gofmt -l: clean. go vet -tags nogui for darwin, linux and windows on mote: ok.
- key-box-once.test.cjs (new), en/zh/zh-TW/ja/de at 900px and 420px, covering
one key, two keys (one on), no key, and a curl paste with a Bearer key:
Chromium 10/10 and WebKit 10/10, both on the Windows box (mote's browsers
hang, #4125).
- provider-many-keys' "several keys pasted into the API key field are
counted" pasted into the box of a provider that has a key. Its Solo
fixture now has no key yet, which is the case the box is for.
- At this stack's head, at concurrency 1 on the Windows box: key-box-once,
agent-hides-editor, provider-many-keys, i18n-keys, redact-rule-edit and
old-webkit: Chromium 48/48 and WebKit 48/48.
- go test -tags nogui ./internal/gui ./internal/provider on mote at this
head: ok.
- WebKit on the Windows box, the 48 GUI files red in an earlier whole-suite
run, at the head before the rebase (no GUI file changed on main since)
and at origin/main 2f5a3f1c0: 178 reds at the head, 173 at main, all in
the same files except provider-many-keys (fixed above). Four more files
(provider-max-output, context-picks, connect-address-kept,
library-backups-top) were red at the head only. Run alone, they were red
at main too. Filed as #4430 (a .row.provider click hits the five loading
skeletons, 837923c43) and #4431 (21 files that #4124 doesn't list). The
rest are in #4124.
- Full Go suite (-tags nogui, -timeout 45m) on the Linux box, before the
budget move: red only in TestCoreScriptBudget (fixed by the ruleedit.js
move two commits before, not raised) and internal/agent's box-specific reds
(#4033, #3548). internal/agent is not touched.
Broken by hand:
- With the box back for every provider (`else`), "no second key box" was red.
- Without the isConnected guard in fromCurl, "no key saved over the first:
sk-from-curl-0123456789" was red.
Not tried: the real app, a whole GUI suite in Chromium (mote's browsers
fail at launch, #4125), and the full Go suite at this exact head.
Only fixtures were used.
Kylin_Cloud on X reported that after hiding single models in an agent's model
list on the Agents page, the provider's editor still showed every model ticked,
as if the change hadn't synced. These are two different settings. The editor's
picks apply to every agent, while an agent's own list (HiddenModels, or
PickedModels in "only" mode) can still leave a model out. Showing both as one
tick hid the second.
The editor now shows the truth without merging the two settings:
- /api/providers gives each agent's `hides`: the provider's models that the
agent's list leaves out (provider.ModelOff). They are read once per shared
list (a WSL copy or an omp profile is not told twice), and only for agents
whose list leaves something out.
- Under the models, one line per agent: "Codex's model list leaves out beta:
shown again from there, on the Agents page." The chip's title says the same.
- With "Only through routing groups" ticked, no agent lists the models, so no
line appears. A picked chip's title says the routing groups use it and agents
don't see it.
No layout change: the line is a hint, like the "in no routing group" hint
beside it. It has no left border. Strings are in zh, zh-TW, ja and de.
Run:
- gofmt -l: clean. go vet -tags nogui for darwin, linux and windows
(internal/gui, internal/provider) on mote: ok.
- TestProviderInfoSaysAnAgentsHiddenModels (new) on mote: ok.
- agent-hides-editor.test.cjs (new), en/zh/zh-TW/ja/de at 1000px and 420px:
- Chromium on mote: 10/10.
- WebKit on mote: 10/10 timed out at launch (#4125). WebKit on the Windows
box (win-run): 10/10.
- The full Go suite and the whole GUI suite were run at the head after the next
commit; see its body.
Broken by hand:
- With drawHiders() left out of draw(), the GUI test was red 10/10 (Chromium).
- With providerInfo's hides never filled, the Go test was red ("Codex leaves
out relay's b ...: map[]").
Not tried: the real app with a real agent's hidden models. Only fixtures and a
sandbox HOME were used.
The two provider-editor fixes after this commit add 1,433 bytes to app.js,
which would take the core scripts past TestCoreScriptBudget. Instead of a
raise (#2710), the masking rule's in-place Edit row moves out of the core
scripts into ruleedit.js, loaded by import() on the rule's Edit, the way
952f11f56 moved the setup-token and Copilot GHE sheets into signsheets.js.
It draws only after someone clicks Edit on a masking rule.
- editRedactRule moves verbatim into ruleedit.js as window.editRedactRule.
app.js keeps the ruleEdit state. The Edit click awaits the import first,
then sets ruleEdit and redraws. A failed load says why in the status line
and opens nothing.
- old-webkit.test.cjs exempts ruleedit.js from "every script is loaded by
index.html", as it does for cfgblocked.js and signsheets.js.
- app.js: 1,312,951 -> 1,310,470 bytes (-2,481). After the two fixes it is
1,311,903 (budget 1,315,316), and the core scripts are 1,535,189 (budget
1,536,586). Neither budget is raised.
Run (at this stack's head, rebased on 819aad1bc):
- go test -tags nogui ./internal/gui ./internal/provider on mote: ok
(TestCoreScriptBudget included). gofmt -l clean. go vet -tags nogui for
darwin, linux and windows: ok.
- redact-rule-edit, old-webkit, key-box-once, agent-hides-editor, i18n-keys
and provider-many-keys at concurrency 1 on the Windows box (mote's
browsers fail at launch, #4125): Chromium 48/48, WebKit 48/48.
Broken by hand: without the import() on Edit, redact-rule-edit was red
10/10 in Chromium (en/zh/zh-TW/ja/de at 1100px and 420px).
Not tried: the real app.
A request whose User-Agent names only an HTTP library or an SDK (curl,
Bun, node-fetch, undici, python-httpx, requests, aiohttp, Go-http-client,
okhttp, the OpenAI/Anthropic SDKs, …) or nothing at all got a Context
scorecard of its own, as if it were an agent (theforeveriris on X: "Bun",
"curl", "python-httpx" cards). usage.IsLibrary names those clients;
contextOfRecs folds them and "other" into one "Scripts" card at read
time, so older history reads the same way, and the card's meta line and
tooltip list the libraries by count. The cached day records are not
changed. No setting: it works as is. The Usage page's Agents list still
shows each library by name, with its Hide and Count-as-agent controls.
i18n for zh, zh-TW, ja, de. Existing context.js comments were condensed
so TestCoreScriptBudget holds without a raise (core scripts -28 bytes).
Run, at this head (rebased on 40af66027):
- gofmt -l clean; go vet darwin, GOOS=linux -tags nogui, GOOS=windows
(mote) for usage and gui; earlier the whole tree on all three, exit 0.
- mote: go test -count=1 -tags nogui -timeout 45m ./internal/usage
./internal/gui: ok, ok.
- Windows box: context-scripts + i18n-keys 26/26 (chromium, webkit,
5 languages, 360 and 1100px). Before the rebase, every reachable file
(context-*, compact-one-value, group-context, routing-context-fold,
routing-ctx-fold, routing-ctx-still, i18n-keys, gui-de/ja/zh-tw,
header-relang): 333/349; the 16 reds are routing-ctx-still, red the
same on origin/main 40af66027 on that box, listed in #4124.
Broken by hand: IsLibrary false and no fold -> TestIsLibrary and
TestContextScriptsAreOneCard red (cards python-httpx, claude, Bun, ...);
the JS label/clients removed -> context-scripts.test.cjs 0/22.
Not tried: a real app run with real curl/Bun traffic; Linux WebKitGTK;
GUI files on mote (its browsers were busy with another suite).
origin/main 101775657 is over both of its own budgets (core 1,536,777
of 1,536,586, app.js 1,315,507 of 1,315,316), and Coffemon's batch on
it came to core 1,536,973. Calls that spelled out the same error line
now share a helper, with no change in what they do:
- statusErr (already there): the tray panel's Manage opening the
window (46fb0c1b9), signAsk's failed load of signsheets.js (no
caller reads its return value) and the sync row's Show.
- statusTErr(e), status(t(e.message), "err"): 14 calls in app.js and
the Plugins page's mirror switch in plugins.js, plus 3
.catch((e) => status(t(e.message), "err")).
- settingsErr(e), statusTErr then renderSettings: the 8
.catch((e) => { status(t(e.message), "err"); renderSettings(); }).
Main's own red was fixed in e94bf7a08 (restBack) while this was
run; on that main the batch is core 1,536,265 of 1,536,586 with
this commit, still over it without. No local t or renderSettings shadows the globals at any of them. Core
1,536,454 of 1,536,586, app.js 1,313,140 of 1,315,316; no budget
raised. TestCoreScriptBudget is red without this commit (1,536,973).
What was run, go1.26.8: TestCoreScriptBudget, TestMainURL and
TestMainView on mote (ok). In Linux (wsl-run), both engines:
copilot-ghe, claude-setup-token, panel-switch-accounts,
claude-switch-only, status-long, webdav-settings-refresh,
sync-not-backup, sync-other-kind, claude-auth-status,
revoked-signin-account, plugin-signed-out-account and i18n-keys
before the statusTErr part (229 pass, 1 fail: copilot-ghe zh in
WebKit, the route-after-close flake red on main 244d80e23 too,
#1949); then agent-prefs,
cli-update(-admin), disabled-models, gateway-mode, github-token(-refused),
mask-actions, masking-records, name-suffix-saved, privacy-model,
redact-rule-edit, settings-general, settings-proxy-auth,
tray-usage-redraw, uninstall-settings, update-mirror, warm-at-own,
i18n-keys, plugin-installed-unnamed and plugin-signin-scrolls: 499
pass, 5 fail, redact-rule-edit at 420px in WebKit, red the same on
origin/main 101775657 (#3407, #4120).
Broken by hand: a first cut whose statusTErr called itself sent
github-token, redact-rule-edit and update-mirror red (30 fail), so
these files reach the error paths.
Not tried: the whole GUI suite (#4125); the real app's window.
A search left out npm's card of any package a tagged repository's
package.json names, as if npm's package were that repository's. It is
only when npm has the package from that repository, and then the
repository's card is installed by npm's name (ghListing's spec).
Otherwise npm's package of that name, if npm has one, is another plugin,
which a search never showed.
Now a search leaves out npm's card only of a listing's package, or of a
tagged repository's that npm has from that repository, whose card
installs by npm's name. npm's package of a name another repository's
package.json gives stays, and its Install asks before it takes an
installed repository's place (the first commit).
Not changed: the GitHub section drops a tagged repository whose
package.json names a listing's package (`listed`), the same rule the
other way. Showing those would put repositories named like community
plugins beside them, and that's the owner's call (#3929). Both sets are
built from every listing and tagged repository, not from what the query
left, as before. An npm card installs by the bare name, which resolve
takes for a community plugin's where one is called by it (#3928).
plugins.js grows 153 bytes, the core's scripts to 1,530,343 of
1,530,449: 2,028 bytes for the three commits, in the 2,134 the room
makes.
What was run (tree a5364df0, on origin/main 174250b2, go1.26.8,
linux/amd64, Linux 5.15), outside graftcp, the Go tests at umask 077:
- plugin-namesake, with Node 22.22.1 and Playwright 1.62.1, in Chromium
and WebKit: green, the ten new cases and the commits before's thirty,
in each engine. The new test, in en, zh, zh-TW, ja and de at 980 and
440px, has mu-zi-lee's repository installed, fakes npm with a package
of the name both repositories' package.json give, and searches
"free-model": npm's section shows that package, whose card reads
Install, and not npm's card of a package npm has from a repository on
the page.
- the commit before's plugins.js under it, in Chromium, which is main's
`known`, the one line of code this commit changes: red in all ten,
npm's section offering no card to install.
- npm's and git's answers held 150, 300 and 450ms (the page draws each
card again as they come), each delay written into a copy of the test,
in Chromium and WebKit: green at each delay, all forty cases in each
engine.
- i18n-keys, which reads the strings with no browser: 4 of 4 pass.
- TestCoreScriptBudget: pass.
- old-webkit, which parses every script for syntax and built-ins newer
than Safari 15.0 and draws each page in WebKit without those
built-ins: 6 of 6 pass.
- gofmt -l clean. go vet -tags nogui for linux, windows and darwin, go
vet for windows, go build -tags nogui for linux and darwin and go
build for windows: exit 0 each. go vet and go build without the tag on
linux: exit 1 (no libsoup-3.0 or gio-unix-2.0 here).
- 70 GUI files, each alone in Chromium and in WebKit (DISPLAY unset):
the 53 plugin*.test.cjs, the 12 whose code names app.js, plugins.js or
context.js (4 of them plugin ones), 8 more that open the Plugins page
(builtins, deprecated-subscriptions, list-sort, modal-centred-late,
settings-lines-wrap, settings-tabs-stick, skeleton-bird and
title-bar-tools), and i18n-keys. 64 green in both. Red here and, run
alone again, at 174250b2: plugin-card-update in WebKit, en and zh
(#3079); plugin-github in WebKit, de at 440 (#3218);
plugin-github-wait in Chromium, de at 440 (#4099); settings-lines-wrap
in both, de at 440px (#4026); title-bar-tools in both, de in Chromium,
and in WebKit ja, de and en here and zh, zh-TW, ja and de there
(#2740); modal-centred-late in WebKit at 560px (#4116).
- go test -tags nogui -count=1 -timeout 45m ./... (Bun 1.4.2; 9m02s,
load 24 at its start): 71 packages ok, and 15 tests red in 6 packages,
each filed: agent TestInstalledVersion, TestHowInstalled,
TestCursorFolderFromTheEditorIsNotTheCLI,
TestCopilotFolderFromAnIDEPluginIsNotTheCLI,
TestQoderSettingsFromAnIDEPluginIsNotTheCLI and
TestOmpDetectedWithPiDir (#3141), TestCodexDriftReached (#3398),
TestReasonixCLIRequiresSupportedNativeVersion and
TestReasonixCLIRecoversAfterProbeTimeout (#3641); davsync
TestSyncTeraCloudStillSeesOtherWrites (#3420); edit
TestWriteAtomicReadOnlyHardLink and testenv TestProgram (#3640, at
umask 077); gateway TestPluginToldWhereTheAgentWorks (#3675, an empty
.git above TMPDIR); gui TestGatewayHeldByAContainer and
TestGatewayFixQuitsOnlyAMagpie (#3649).
Not tried: the real app, and a search of the real npm and GitHub; the
API is faked.
Landed by yetone in a batch of Coffemon's patches from the issues.
What was run, go1.26.8, on origin/main cc81ad4ea, then again at
70a0c387c (gofmt, the three vets, the changed tests, umask 077):
- mote (macOS 27): gofmt -l clean; go vet, GOOS=linux go vet -tags
nogui and GOOS=windows go vet ./...: ok. edit and testenv at umask
077; agent, provider, library and gateway with an empty .git above
TMPDIR; davsync, imagemcp, plugin, library, edit, testenv whole; the
changed tests in agent, provider, gateway and gui; the timing tests
-count=10 (gateway, davsync, imagemcp) and -count=5 (agent): all ok.
TestCoreScriptBudget ok: core 1,536,751 of 1,537,034, app.js
1,312,975 of 1,315,316, no budget raised.
- Red on the old code: on origin/main, TestWriteAtomicReadOnlyHardLink
at umask 077 and two Reasonix tests under an empty .git; on Linux
(wsl-run) TestProgram at umask 077 with the old program.go. With
each fix's code taken back to main's, the Gemini imageConfig tests,
TestPluginToldWhereTheAgentWorks, TestSkillRepoTraced,
TestTaggedHooksAlone, TestMainURL/TestMainView and update-auto,
plugin-github-hooks, plugins-more-discover, plugin-namesake were
red. Broken by hand: claudeKeyed always true (both
OwnEndpointNeverAsked tests red), claudeAsk a no-op
(TestClaudeFirstWriteAsksTheProxy red), GitAt taking any .git folder
(the three TestGitOnDisk tests red).
- GUI: 123 files (plugins*, update-*, panel/tray/start/context, i18n,
gui-zh-tw/ja/de and every file that evals app.js parts) in WebKit on
Linux (wsl-run). 11 files had reds (click-scroll, panel-fold,
plugin-card-update, plugin-github, plugin-move*, segs-glide,
tray-totals, update-*), and run again side by side they fail the
same on origin/main d80d75f30 (79 pass, 26 fail here; 78 and 27
there). They are click-scroll guards ("the click must not scroll
the page"), varying by language from run to run (#4385).
copilot-ghe's route-after-close red is #1949, seen on main 244d80e23
too. In Chromium on mote, Chromium segfaulted partway through files
(#4125): context-map, context-scroll-end and context-tune fail the
same on origin/main 0911a65e7, so the batch's own files
(plugin-namesake, update-auto, plugins-more-discover,
plugin-github-hooks) ran in Chromium on Linux: 62 of 62.
- Full suite (go test -tags nogui -count=1 -timeout 45m ./..., mote)
at 472a0608f (on 70a0c387c): every package ok but internal/gateway,
whose five reds were #4362's (Antigravity turned-away and
TestCodexSpentGrokFailingIsTold), fixed on main in d80d75f30. After
the rebase on 244d80e23 the five pass, and gofmt, the three vets
and the targeted runs above were run again: ok. In Linux the
sign-in, copilot, plugin-github*, plugins-more-discover,
plugin-namesake, plugin-gateway, update-auto, quota-refresh-order
and i18n files ran in both engines: 475 pass, 4 fail (copilot-ghe
#1949, plugin-github's click scroll, both red on main too).
- Rebased again on c7171a256, over its budget fix e94bf7a08: gofmt, vet of
gui, gateway, provider and plugin, TestCoreScriptBudget (core
1,536,265 of 1,536,586 with the batch's last commit, statusTErr and settingsErr), the Gemini,
GitOnDisk and plugin tests, and in Linux both engines i18n-keys,
update-mirror, plugin-namesake, plugins-more-discover,
plugin-github-hooks and update-auto (138 of 138): ok.
Not tried: the whole GUI suite (mote's WebKit wouldn't launch and its
Chromium segfaulted, #4125); macOS WebKit; the real app's window.
entryOf took a tagged repository's card for an installed git plugin of
the package the repository's package.json names, so a second repository
naming that package read Installed too. EchoChan314 (#3685) had
github:mu-zi-lee/magpie-our-free-model installed, and Gyarados4157's
repository of the same package showed a second Installed card, though
nothing of it was on disk.
Now a repository's card reads Installed only when the plugin installed
is that repository, by whichever spec names it: GitHub's shorthand, its
page, a git URL over https, ssh with a user, scp's colon or a port,
ssh.github.com and git://, owner/repo, in any case and with a ref.
ghRepo read only the shorthand, its page and owner/repo before. The
other repository's card reads Install, and its Install asks first (the
commit before), naming the spec installed.
One case turns from Installed to Install: a repository renamed or moved
on GitHub, installed by its old name. The page can't tell that from
another repository of the same package without asking GitHub, and the
latter is #3685, so it asks before a reinstall. And a card found by
another spec than its own (its page, a git URL) shows no Sign in, as the
page's URL didn't before: actionFor reads the sign-ins by the card's
spec (#3930).
plugins.js grows 41 bytes, the core's scripts to 1,530,190 of 1,530,449.
What was run (tree c3898368, on origin/main 174250b2, go1.26.8,
linux/amd64, Linux 5.15), outside graftcp, the Go tests at umask 077:
- plugin-namesake, with Node 22.22.1 and Playwright 1.62.1, in Chromium
and WebKit: green, the twenty new cases and the first commit's ten, in
each engine. The new test installs mu-zi-lee's repository by each of
ten specs, in en and zh: its card reads Installed, Gyarados4157's
reads Install, one card is installed, and Gyarados4157's Install asks
to replace that spec, and Cancel installs nothing.
- the commit before's plugins.js under it, in Chromium: red for all ten
specs in en and zh, Gyarados4157's card offering no Install.
- Broken by hand, in Chromium, each red, then put back:
- ghRepo as on main, reading GitHub's shorthand, its page and
owner/repo only: red for the six git URLs, in en and zh, mu-zi-lee's
card not reading Installed
- ghRepo without the port and ssh.github.com: red for the two specs
with a port, in en and zh, the same way
- entryOf as on main, taking a git install of the package a tagged
repository's package.json names for that repository: red for all ten
specs, in en and zh, as with the commit before's
- i18n-keys, which reads the strings with no browser: 4 of 4 pass.
- TestCoreScriptBudget: pass.
- The Plugins page's other GUI files, old-webkit, vet and the full suite
ran at the last commit's tree, which holds this one.
Not tried: the real app, and a real install from GitHub; the API is
faked.
Landed by yetone in a batch of Coffemon's patches from the issues.
What was run, go1.26.8, on origin/main cc81ad4ea, then again at
70a0c387c (gofmt, the three vets, the changed tests, umask 077):
- mote (macOS 27): gofmt -l clean; go vet, GOOS=linux go vet -tags
nogui and GOOS=windows go vet ./...: ok. edit and testenv at umask
077; agent, provider, library and gateway with an empty .git above
TMPDIR; davsync, imagemcp, plugin, library, edit, testenv whole; the
changed tests in agent, provider, gateway and gui; the timing tests
-count=10 (gateway, davsync, imagemcp) and -count=5 (agent): all ok.
TestCoreScriptBudget ok: core 1,536,751 of 1,537,034, app.js
1,312,975 of 1,315,316, no budget raised.
- Red on the old code: on origin/main, TestWriteAtomicReadOnlyHardLink
at umask 077 and two Reasonix tests under an empty .git; on Linux
(wsl-run) TestProgram at umask 077 with the old program.go. With
each fix's code taken back to main's, the Gemini imageConfig tests,
TestPluginToldWhereTheAgentWorks, TestSkillRepoTraced,
TestTaggedHooksAlone, TestMainURL/TestMainView and update-auto,
plugin-github-hooks, plugins-more-discover, plugin-namesake were
red. Broken by hand: claudeKeyed always true (both
OwnEndpointNeverAsked tests red), claudeAsk a no-op
(TestClaudeFirstWriteAsksTheProxy red), GitAt taking any .git folder
(the three TestGitOnDisk tests red).
- GUI: 123 files (plugins*, update-*, panel/tray/start/context, i18n,
gui-zh-tw/ja/de and every file that evals app.js parts) in WebKit on
Linux (wsl-run). 11 files had reds (click-scroll, panel-fold,
plugin-card-update, plugin-github, plugin-move*, segs-glide,
tray-totals, update-*), and run again side by side they fail the
same on origin/main d80d75f30 (79 pass, 26 fail here; 78 and 27
there). They are click-scroll guards ("the click must not scroll
the page"), varying by language from run to run (#4385).
copilot-ghe's route-after-close red is #1949, seen on main 244d80e23
too. In Chromium on mote, Chromium segfaulted partway through files
(#4125): context-map, context-scroll-end and context-tune fail the
same on origin/main 0911a65e7, so the batch's own files
(plugin-namesake, update-auto, plugins-more-discover,
plugin-github-hooks) ran in Chromium on Linux: 62 of 62.
- Full suite (go test -tags nogui -count=1 -timeout 45m ./..., mote)
at 472a0608f (on 70a0c387c): every package ok but internal/gateway,
whose five reds were #4362's (Antigravity turned-away and
TestCodexSpentGrokFailingIsTold), fixed on main in d80d75f30. After
the rebase on 244d80e23 the five pass, and gofmt, the three vets
and the targeted runs above were run again: ok. In Linux the
sign-in, copilot, plugin-github*, plugins-more-discover,
plugin-namesake, plugin-gateway, update-auto, quota-refresh-order
and i18n files ran in both engines: 475 pass, 4 fail (copilot-ghe
#1949, plugin-github's click scroll, both red on main too).
- Rebased again on c7171a256, over its budget fix e94bf7a08: gofmt, vet of
gui, gateway, provider and plugin, TestCoreScriptBudget (core
1,536,265 of 1,536,586 with the batch's last commit, statusTErr and settingsErr), the Gemini,
GitOnDisk and plugin tests, and in Linux both engines i18n-keys,
update-mirror, plugin-namesake, plugins-more-discover,
plugin-github-hooks and update-auto (138 of 138): ok.
Not tried: the whole GUI suite (mote's WebKit wouldn't launch and its
Chromium segfaulted, #4125); macOS WebKit; the real app's window.
plugins/ holds one package of a name, so plugin.Add installs another
source of an installed plugin's package in its place: the old one is
removed, its options and Off carry over, and the sign-ins saved for the
providers it served stay with those providers (plugin-auth.json keeps
them by provider id) for whichever code serves them next. The Plugins
page did that with no word: a listing's card over a git install of its
package, a tagged repository's card over npm's package of the name its
package.json gives, and the field's Install ("Have one in mind?") over
either. EchoChan314 (#3685) had github:mu-zi-lee/magpie-our-free-model
installed, and worried that a click on the card of Gyarados4157's
repository, of the same package, would switch the source quietly. Once
that card reads Install, as it should, its Install would do just that,
sign-ins included.
Now Install asks first when it would take another source's place, and
names both by their source, a git spec or npm:<name> (resolve's word for
npm's own package). For #3685's two repositories it asks "Replace
github:mu-zi-lee/magpie-our-free-model with
github:Gyarados4157/magpie-our-free-model?" (in the field; the card asks
the same once the next commit has it read Install), and says only one of
them can be installed, that the old one is removed and its options and
sign-ins pass to the new one, and, when the old one is off, that the new
one is installed off too. Cancel installs nothing. The same repository
by another spec, npm's package at another version, and a package nothing
installed has, install at once as before.
The field asks the same for a repository the page has read, npm:<name>
and a scoped name. A bare name, which resolve may take for a community
plugin's, and a repository the page hasn't read are known only once
installed, so they install at once as before; #3927 has them, with
`magpie plugin add` and a backup's or a sync's plugins, which replace
the same way.
Not covered: npm's cards still send the bare name, so where it is also a
name a community plugin goes by, the dialog names npm:<name> while the
community package is what gets installed (#3928).
The strings are in zh, zh-TW, ja and de. plugins.js grows 1,834 bytes,
the core's scripts to 1,530,149 of 1,530,449, in the room the commit
before makes.
What was run (tree 7ca08da4, on origin/main 174250b2, go1.26.8,
linux/amd64, Linux 5.15), outside graftcp, the Go tests at umask 077:
- plugin-namesake, new, with Node 22.22.1 and Playwright 1.62.1, in
Chromium and WebKit, en, zh, zh-TW, ja and de, at 980 and 440px:
green, all ten cases in each engine. In each: with npm's package
installed, the repository's card asks, Cancel installs nothing,
Replace installs it, and the card of a package nothing has installs at
once; with a repository installed and off, npm's card asks and says
the new one is installed off, and after Replace its card offers Switch
on; the field asks for the other repository, installs the installed
one by its page's URL at once, and asks for npm:<name>. The dialog
fits at 440px, a click scrolls nothing, and no page error.
- the commit before's plugins.js under it (174250b2's but for the room's
statusErr and NO_SCROLL), in Chromium: red in all ten, at the first
case: Install on Gyarados4157's card, with npm's package installed,
opens no dialog.
- Broken by hand, in Chromium, each red, then put back:
- npm's installs left out of namesakeOf's search: red in all ten, as
with the commit before's
- what a tagged repository's package.json names left unread: red in
all ten, the same way
- the field's Install not asking: red in all ten, at the field, no
dialog for the other repository typed in
- npm's package named by its bare name, not npm:<name>: red in all
ten, the dialog's title reading "Replace magpie-our-free-model with
github:Gyarados4157/magpie-our-free-model?" in en
- namesakeOf not reading the old one's Off: red in all ten, at the
second case, the dialog not saying the new one is installed off
- the same repository by another spec taken for another plugin: red in
all ten, "the same repository installs at once"
- i18n-keys, which reads the strings with no browser: 4 of 4 pass.
- TestCoreScriptBudget: pass.
- The Plugins page's other GUI files, old-webkit, vet and the full suite
ran at the last commit's tree, which holds this one.
Not tried: the real app (WebKitGTK, Wails), and a real install from
GitHub; the API is faked.
Landed by yetone in a batch of Coffemon's patches from the issues.
What was run, go1.26.8, on origin/main cc81ad4ea, then again at
70a0c387c (gofmt, the three vets, the changed tests, umask 077):
- mote (macOS 27): gofmt -l clean; go vet, GOOS=linux go vet -tags
nogui and GOOS=windows go vet ./...: ok. edit and testenv at umask
077; agent, provider, library and gateway with an empty .git above
TMPDIR; davsync, imagemcp, plugin, library, edit, testenv whole; the
changed tests in agent, provider, gateway and gui; the timing tests
-count=10 (gateway, davsync, imagemcp) and -count=5 (agent): all ok.
TestCoreScriptBudget ok: core 1,536,751 of 1,537,034, app.js
1,312,975 of 1,315,316, no budget raised.
- Red on the old code: on origin/main, TestWriteAtomicReadOnlyHardLink
at umask 077 and two Reasonix tests under an empty .git; on Linux
(wsl-run) TestProgram at umask 077 with the old program.go. With
each fix's code taken back to main's, the Gemini imageConfig tests,
TestPluginToldWhereTheAgentWorks, TestSkillRepoTraced,
TestTaggedHooksAlone, TestMainURL/TestMainView and update-auto,
plugin-github-hooks, plugins-more-discover, plugin-namesake were
red. Broken by hand: claudeKeyed always true (both
OwnEndpointNeverAsked tests red), claudeAsk a no-op
(TestClaudeFirstWriteAsksTheProxy red), GitAt taking any .git folder
(the three TestGitOnDisk tests red).
- GUI: 123 files (plugins*, update-*, panel/tray/start/context, i18n,
gui-zh-tw/ja/de and every file that evals app.js parts) in WebKit on
Linux (wsl-run). 11 files had reds (click-scroll, panel-fold,
plugin-card-update, plugin-github, plugin-move*, segs-glide,
tray-totals, update-*), and run again side by side they fail the
same on origin/main d80d75f30 (79 pass, 26 fail here; 78 and 27
there). They are click-scroll guards ("the click must not scroll
the page"), varying by language from run to run (#4385).
copilot-ghe's route-after-close red is #1949, seen on main 244d80e23
too. In Chromium on mote, Chromium segfaulted partway through files
(#4125): context-map, context-scroll-end and context-tune fail the
same on origin/main 0911a65e7, so the batch's own files
(plugin-namesake, update-auto, plugins-more-discover,
plugin-github-hooks) ran in Chromium on Linux: 62 of 62.
- Full suite (go test -tags nogui -count=1 -timeout 45m ./..., mote)
at 472a0608f (on 70a0c387c): every package ok but internal/gateway,
whose five reds were #4362's (Antigravity turned-away and
TestCodexSpentGrokFailingIsTold), fixed on main in d80d75f30. After
the rebase on 244d80e23 the five pass, and gofmt, the three vets
and the targeted runs above were run again: ok. In Linux the
sign-in, copilot, plugin-github*, plugins-more-discover,
plugin-namesake, plugin-gateway, update-auto, quota-refresh-order
and i18n files ran in both engines: 475 pass, 4 fail (copilot-ghe
#1949, plugin-github's click scroll, both red on main too).
- Rebased again on c7171a256, over its budget fix e94bf7a08: gofmt, vet of
gui, gateway, provider and plugin, TestCoreScriptBudget (core
1,536,265 of 1,536,586 with the batch's last commit, statusTErr and settingsErr), the Gemini,
GitOnDisk and plugin tests, and in Linux both engines i18n-keys,
update-mirror, plugin-namesake, plugins-more-discover,
plugin-github-hooks and update-auto (138 of 138): ok.
Not tried: the whole GUI suite (mote's WebKit wouldn't launch and its
Chromium segfaulted, #4125); macOS WebKit; the real app's window.
Room for #3685, which did not fit the core script budget. The budget
is not raised; two repeated forms move into one name each.
- NO_SCROLL: `{ preventScroll: true }` was written out at 90 focus
calls (89 in app.js, 1 in plugins.js). It is one const at the top of
app.js now.
- statusErr(e): `status(e.message, "err")` was written out for 68
failed calls (app.js 61, plugins.js 3, context.js 4), 15 of them as
a `e => status(e.message, "err")` callback that now passes statusErr.
renderSync is left alone: `status` is a local string there (#4066).
Saves 2,016 bytes: core 1,536,751 of 1,537,034 and app.js 1,312,975 of
1,315,316 with #3685 on top. quota-refresh-order.test.cjs evals parts
of app.js in a vm and gets both names as stubs.
The idea is Coffemon's (JoeyWu-tech) e7af88774, which no longer
applied to main; it was redone on the current tree.
Landed by yetone in a batch of Coffemon's patches from the issues.
What was run, go1.26.8, on origin/main cc81ad4ea, then again at
70a0c387c (gofmt, the three vets, the changed tests, umask 077):
- mote (macOS 27): gofmt -l clean; go vet, GOOS=linux go vet -tags
nogui and GOOS=windows go vet ./...: ok. edit and testenv at umask
077; agent, provider, library and gateway with an empty .git above
TMPDIR; davsync, imagemcp, plugin, library, edit, testenv whole; the
changed tests in agent, provider, gateway and gui; the timing tests
-count=10 (gateway, davsync, imagemcp) and -count=5 (agent): all ok.
TestCoreScriptBudget ok: core 1,536,751 of 1,537,034, app.js
1,312,975 of 1,315,316, no budget raised.
- Red on the old code: on origin/main, TestWriteAtomicReadOnlyHardLink
at umask 077 and two Reasonix tests under an empty .git; on Linux
(wsl-run) TestProgram at umask 077 with the old program.go. With
each fix's code taken back to main's, the Gemini imageConfig tests,
TestPluginToldWhereTheAgentWorks, TestSkillRepoTraced,
TestTaggedHooksAlone, TestMainURL/TestMainView and update-auto,
plugin-github-hooks, plugins-more-discover, plugin-namesake were
red. Broken by hand: claudeKeyed always true (both
OwnEndpointNeverAsked tests red), claudeAsk a no-op
(TestClaudeFirstWriteAsksTheProxy red), GitAt taking any .git folder
(the three TestGitOnDisk tests red).
- GUI: 123 files (plugins*, update-*, panel/tray/start/context, i18n,
gui-zh-tw/ja/de and every file that evals app.js parts) in WebKit on
Linux (wsl-run). 11 files had reds (click-scroll, panel-fold,
plugin-card-update, plugin-github, plugin-move*, segs-glide,
tray-totals, update-*), and run again side by side they fail the
same on origin/main d80d75f30 (79 pass, 26 fail here; 78 and 27
there). They are click-scroll guards ("the click must not scroll
the page"), varying by language from run to run (#4385).
copilot-ghe's route-after-close red is #1949, seen on main 244d80e23
too. In Chromium on mote, Chromium segfaulted partway through files
(#4125): context-map, context-scroll-end and context-tune fail the
same on origin/main 0911a65e7, so the batch's own files
(plugin-namesake, update-auto, plugins-more-discover,
plugin-github-hooks) ran in Chromium on Linux: 62 of 62.
- Full suite (go test -tags nogui -count=1 -timeout 45m ./..., mote)
at 472a0608f (on 70a0c387c): every package ok but internal/gateway,
whose five reds were #4362's (Antigravity turned-away and
TestCodexSpentGrokFailingIsTold), fixed on main in d80d75f30. After
the rebase on 244d80e23 the five pass, and gofmt, the three vets
and the targeted runs above were run again: ok. In Linux the
sign-in, copilot, plugin-github*, plugins-more-discover,
plugin-namesake, plugin-gateway, update-auto, quota-refresh-order
and i18n files ran in both engines: 475 pass, 4 fail (copilot-ghe
#1949, plugin-github's click scroll, both red on main too).
- Rebased again on c7171a256, over its budget fix e94bf7a08: gofmt, vet of
gui, gateway, provider and plugin, TestCoreScriptBudget (core
1,536,265 of 1,536,586 with the batch's last commit, statusTErr and settingsErr), the Gemini,
GitOnDisk and plugin tests, and in Linux both engines i18n-keys,
update-mirror, plugin-namesake, plugins-more-discover,
plugin-github-hooks and update-auto (138 of 138): ok.
Not tried: the whole GUI suite (mote's WebKit wouldn't launch and its
Chromium segfaulted, #4125); macOS WebKit; the real app's window.
yetone (#3579): in the tray panel, the add sheet's More in Plugins, and
its search's "look for a plugin", asked the window for Plugins with no
more than the view's name (window/main?view=plugins). The window opened
on the tab of Plugins kept from before, Installed or Built-in, with
nothing looked for. 894ec960 made both open Discover in the window
itself; this is the panel's half.
The panel now asks for view=plugins&q=, with what its add sheet looked
for, empty when nothing was. More in Plugins sends the sheet's search,
lowercased, when it shows beside one (a search naming a subscription a
plugin serves, kiro say), and look for a plugin sends the search that
found nothing. mainView passes q on for Plugins whenever it is there,
empty too, since its being there is what says Discover; a q with a
control character (a newline, a tab) or over 100 code points goes on
empty. The window
opened on that address does what its own More in Plugins does
(pluginQuery): Discover, looking for q. start.js does it when the
window's first show() is done, so after show() has sent a window with a
plugin's update waiting to Installed, as the window's own More in
Plugins calls pluginQuery after show() too. It does it once: syncURL,
which show() calls, now takes q out of the address, so a reload, or the
window opened on Plugins again without a q, shows the tab kept, as
before. In the same window Plugins stays on Discover until another tab
is picked, as after the window's own More in Plugins. The GUI tests'
README describes the new half.
The deprecation note's Review in Plugins (several deprecated
subscriptions signed in) goes through openPlugins too, so from the
panel it now opens Discover as well, as it has in the window since
894ec960. openPlugins is the only sender of window/main?view=plugins.
plugins.js is not changed. app.js grows 94 bytes and start.js 182; with
the previous commit the core's scripts are 3 bytes under main's,
1,527,969 of 1,528,076, and app.js is 1,309,997 of 1,310,460.
Not changed: the window's own More in Plugins, and every other page the
panel opens the window on. mainView takes the view's own value
unchecked, so a q inside it skips mainFind (#3846); q goes no further
than Plugins' search field and its npm search, as typed there.
What was run (tree 7dce6444, on origin/main 56602426, go1.26.8,
linux/amd64, Linux 5.15), outside graftcp, the Go tests at umask 077:
- plugins-more-discover (Node 22.22.1, Playwright 1.58.2), its panel and
window halves new, in English and Chinese, 5 times in Chromium and 5
in WebKit: 3 of 3 pass each time. The panel, on a first use (where it
shows the add sheet), asks for ?view=plugins&q= from More in Plugins
and ?view=plugins&q=fake%20co%26x from "look for a plugin" after a
search for "fake co&x" found nothing. The window, at what mainView
makes of those (?view=plugins&q=fake+co%26x, and &q=) with Installed
the tab kept, shows Discover with the search in its field, and its
address keeps no q, so a reload shows Installed. With a plugin's
update waiting (the test holds start.js until the update's answer is
sent; WebKit has it by the first show(), Chromium not always, see the
breaks), Plugins opened without a q shows Installed, and the window
the panel opened shows Discover.
- TestMainView's new cases: Plugins with no q, an empty q, a word,
"fake co&x", Chinese with &view=settings in it, a newline, a tab, 100
and 101 characters, 100 and 101 Chinese characters, and Settings with
a q. TestMainURL's: "智谱 glm" reads back from the window's address as
it was sent. With TestCoreScriptBudget, -count=50: 150 of 150 pass.
- Broken by hand, each red in plugins-more-discover:
- the panel asking for view=plugins alone, as on main: 0 of 3 in
each engine, at the panel's asks (?view=plugins for
?view=plugins&q= and for ?view=plugins&q=fake%20co%26x);
- start.js not looking for q, as on main: 0 of 3 in each engine, the
window the panel opened on Installed (已安装 in Chinese) for
Discover;
- Discover asked as start.js loads, before show(): WebKit 0 of 3 in
each of 5 runs, en and zh at "the window the panel opened, an
update waiting", Installed for Discover; Chromium red there in 2
of the 5 (en in both, zh in one). 25e1d038's record, its window
half in plugins.js, had Chromium red in 4 runs of 4 (en every run,
zh in 2);
- q left in the address (syncURL's q.delete taken out): 0 of 3 in
each engine, the address after the window opened still
?view=plugins&q=fake+co%26x for ?view=plugins.
- Every GUI file that reaches Plugins, the panel's add sheet or the
window the panel opens (the same 53 as 25e1d038's record, by a grep
for view=plugins, window/main, more-plugins, pluginQuery, pluginTab,
lookFor, look for a plugin, show("plugins") and #view-plugins), and
i18n-keys, each alone in both engines: 94 of 108 runs green. The
other 14 are red at 56602426 too, alone, and none is in what this
changes. Playwright here is 1.58.2, older than the 1.62.1 the GUI
tests' README names, so some of these may be red with this
Chromium or WebKit only; those with no issue named have none yet:
- builtins, WebKit: Plugins › Built-in, the Observability switch's
click times out; the stuck Plugins head intercepts the pointer.
- i18n-keys, run twice (it needs no browser): "a plugin's words are
its own", for plugins/routing/i18n.js's "masking…" (#4053).
- mobile-web, both engines: its "desktop matches origin/main" cases
compare with BASE_REF, origin/main by default, as git has it at
the run, which had moved on from 56602426 (the Gateway page's
screenshots differ). A copy with BASE_REF set to 56602426 passes
15 of 15 in each engine.
- modal-centred-late, WebKit: 820px and 560px, the dialog reaches its
README's height with fewer than 3 frames between
([407,575,676,674,672] and [407,466,519,520,520,520]).
- plugin-card-update, WebKit: en and zh, the wait for the Update
button times out, in 4 runs of 4; at 56602426 the same in 3 runs
of 4, and zh alone in the other (#3079 has en).
- plugin-github, WebKit: de 440, a click moves #view-plugins from 73
to 135 (#3218 has the same check red in Chromium, by 1px).
- plugin-github-wait, Chromium: de 440, a press on Try again
moves #view-plugins by 2.
- plugin-release, WebKit: en and zh read the line with a trailing
newline ("Serves Zed\n").
- settings-lines-wrap, both engines: de 440px, a row's line is cut
short, Usage's in Chromium and General's in WebKit.
- title-bar-tools: in Chromium, de, the wait for the Plugins head
times out; in WebKit, all five languages, here and at 56602426:
zh, zh-TW, ja and en for page errors from the fetches a reload cut
off (/api/agents/cli, /api/agents/install, /api/update and
/api/whatsnew; #2740 has /api/providers'), and de for that same
wait.
- gofmt -l clean. go vet -tags nogui for linux, windows and darwin, go
vet for windows, go build -tags nogui for linux and darwin and go
build for windows: exit 0 each. go vet and go build without the tag
on linux: exit 1 (no libsoup-3.0 or gio-unix-2.0 here).
- go test -tags nogui -count=1 -timeout 45m ./... (Bun 1.4.2, log
kept; 8m41s, load 40 at its start): 72 packages ok, and 12 tests red
in 5 packages, none of them this commit's tests or what they cover
(internal/gui's are its gateway tests): agent TestInstalledVersion,
TestCursorFolderFromTheEditorIsNotTheCLI,
TestCopilotFolderFromAnIDEPluginIsNotTheCLI, TestOmpDetectedWithPiDir
and TestZedAppPath (#3141);
TestReasonixCLIRequiresSupportedNativeVersion and
TestReasonixCLIRecoversAfterProbeTimeout (#3641); edit
TestWriteAtomicReadOnlyHardLink and testenv TestProgram
(umask 077, #3640); gateway TestPluginToldWhereTheAgentWorks
(the /tmp/.git of #3675); gui TestGatewayHeldByAContainer and
TestGatewayFixQuitsOnlyAMagpie (#3649).
The rest is what was run for 25e1d038, at tree ffc1adb1 on origin/main
02cbdf5b, the same Go code, tests and README (its window half was in
plugins.js, where this one's is in start.js; not this tree):
- Broken by hand in the Go, each red in the Go tests named:
- mainView passing no q: TestMainURL, and TestMainView's every
Plugins case with a q;
- mainView passing any q: TestMainView's newline, tab, 101
characters and 101 Chinese characters;
- mainFind as ^.{0,100}$: TestMainView's tab;
- mainFind counting bytes too: TestMainView's 100 Chinese characters.
Not tried: the real app's tray panel and window, on macOS, Windows or
Linux.
Landed by yetone in a batch of Coffemon's patches from the issues.
What was run, go1.26.8, on origin/main cc81ad4ea, then again at
70a0c387c (gofmt, the three vets, the changed tests, umask 077):
- mote (macOS 27): gofmt -l clean; go vet, GOOS=linux go vet -tags
nogui and GOOS=windows go vet ./...: ok. edit and testenv at umask
077; agent, provider, library and gateway with an empty .git above
TMPDIR; davsync, imagemcp, plugin, library, edit, testenv whole; the
changed tests in agent, provider, gateway and gui; the timing tests
-count=10 (gateway, davsync, imagemcp) and -count=5 (agent): all ok.
TestCoreScriptBudget ok: core 1,536,751 of 1,537,034, app.js
1,312,975 of 1,315,316, no budget raised.
- Red on the old code: on origin/main, TestWriteAtomicReadOnlyHardLink
at umask 077 and two Reasonix tests under an empty .git; on Linux
(wsl-run) TestProgram at umask 077 with the old program.go. With
each fix's code taken back to main's, the Gemini imageConfig tests,
TestPluginToldWhereTheAgentWorks, TestSkillRepoTraced,
TestTaggedHooksAlone, TestMainURL/TestMainView and update-auto,
plugin-github-hooks, plugins-more-discover, plugin-namesake were
red. Broken by hand: claudeKeyed always true (both
OwnEndpointNeverAsked tests red), claudeAsk a no-op
(TestClaudeFirstWriteAsksTheProxy red), GitAt taking any .git folder
(the three TestGitOnDisk tests red).
- GUI: 123 files (plugins*, update-*, panel/tray/start/context, i18n,
gui-zh-tw/ja/de and every file that evals app.js parts) in WebKit on
Linux (wsl-run). 11 files had reds (click-scroll, panel-fold,
plugin-card-update, plugin-github, plugin-move*, segs-glide,
tray-totals, update-*), and run again side by side they fail the
same on origin/main d80d75f30 (79 pass, 26 fail here; 78 and 27
there). They are click-scroll guards ("the click must not scroll
the page"), varying by language from run to run (#4385).
copilot-ghe's route-after-close red is #1949, seen on main 244d80e23
too. In Chromium on mote, Chromium segfaulted partway through files
(#4125): context-map, context-scroll-end and context-tune fail the
same on origin/main 0911a65e7, so the batch's own files
(plugin-namesake, update-auto, plugins-more-discover,
plugin-github-hooks) ran in Chromium on Linux: 62 of 62.
- Full suite (go test -tags nogui -count=1 -timeout 45m ./..., mote)
at 472a0608f (on 70a0c387c): every package ok but internal/gateway,
whose five reds were #4362's (Antigravity turned-away and
TestCodexSpentGrokFailingIsTold), fixed on main in d80d75f30. After
the rebase on 244d80e23 the five pass, and gofmt, the three vets
and the targeted runs above were run again: ok. In Linux the
sign-in, copilot, plugin-github*, plugins-more-discover,
plugin-namesake, plugin-gateway, update-auto, quota-refresh-order
and i18n files ran in both engines: 475 pass, 4 fail (copilot-ghe
#1949, plugin-github's click scroll, both red on main too).
- Rebased again on c7171a256, over its budget fix e94bf7a08: gofmt, vet of
gui, gateway, provider and plugin, TestCoreScriptBudget (core
1,536,265 of 1,536,586 with the batch's last commit, statusTErr and settingsErr), the Gemini,
GitOnDisk and plugin tests, and in Linux both engines i18n-keys,
update-mirror, plugin-namesake, plugins-more-discover,
plugin-github-hooks and update-auto (138 of 138): ok.
Not tried: the whole GUI suite (mote's WebKit wouldn't launch and its
Chromium segfaulted, #4125); macOS WebKit; the real app's window.
MengXiangxi (#3821): a GitHub repository tagged magpie-plugin whose
package.json has magpie.hooks and no main, exports or index.js, a gateway
request hook alone that installs and runs, never showed in the Plugins
page's "Unofficial, on GitHub". readTagged read the magpie block's
middleware, agent and page but not hooks, so such a package was taken for
a provider: the file #1327's check looks for in the repository was its
entry as Bun resolves it, index.js, which it hasn't, and the 404 left it
out without a word. An inert index.js, as the reporter tried, lists it,
as a provider.
readTagged reads magpie.hooks. A package with hooks, no main or exports,
and none of middleware, agent or page is of kind "hooks", and the
file #1327's check looks for is its hooks file, so one whose hooks file
isn't committed (a dist built only to publish) is still left out, as a
middleware's is. The Plugins page picks "hooks" out with middleware, as
both run in the gateway (kindOf), and its chip says Request hook, as an
installed one's row does, through the word kindChip takes since the
previous commit. docs/subsystems/gateway-request-hooks.md says so. Not
changed: a raw 404 that GitHub's cache answers just after a push is
still kept for that push in this process (the reporter's second
point, #4067).
plugins.js grows 51 bytes for it. With the previous commit the core's
scripts are 24 bytes under main's, 1,527,948 of 1,528,076.
What was run (tree 79884772, on origin/main 56602426, go1.26.8,
linux/amd64, Linux 5.15), outside graftcp, the Go tests at umask 077:
- TestTaggedHooksAlone, new. IvanXxxxyyuffff/magpie-system-prompt-file's
package.json as it is (a repository the report names) is kept, of kind
hooks, with its spec, package and version 0.3.0, and its hooks file is
the file asked for, never an index.js. someone/hooks-gone, whose hooks
file is only in a dist it doesn't commit, is left out. With
TestTaggedRepos*, -count=50: 350 of 350 pass; -race -count=20: 140 of
140, no race.
- plugin-github-hooks.test.cjs, new. Seven repositories of
/api/plugins/github's real answer of 2026-10-27 (two providers, three
middleware, two of hooks alone): each of hooks alone has the gateway's
chip saying Request hook and is picked out under Middleware, in
English, Chinese, Traditional Chinese, Japanese and German at 980px and
420px. Chromium and WebKit, 3 runs: 22 of 22 each run.
- Broken by hand, each red:
- no kind made of magpie.hooks, as on main: TestTaggedHooksAlone,
hooks alone not kept.
- the kind made but the file looked for still the entry, index.js:
the same.
- the hooks file not looked for: TestTaggedHooksAlone, the hooks file
not among the files asked for.
- kindOf without hooks, so a Provider: plugin-github-hooks 0 of 22.
- the card's chip not given its word: 0 of 22.
- TestCoreScriptBudget: ok.
- gofmt -l clean. go vet -tags nogui for linux, windows and darwin, go
vet for windows, go build -tags nogui for linux and darwin and go
build for windows: exit 0 each. go vet and go build without the tag
on linux: exit 1 (no libsoup-3.0 or gio-unix-2.0 here).
- The Plugins page's GUI files near the change, 24 with the new one and
i18n-keys, each run by itself in Chromium and in WebKit: 42 of 48 runs
green. The other 6 are red the same at 56602426, each file run the
same way, and none is in what this changes:
- i18n-keys, both engines: "a plugin's words are its own", for
plugins/routing/i18n.js "masking…", which internal/masking/masking.go
says too (#4053).
- builtins, WebKit: Plugins › Built-in, the Observability switch's
click times out, the stuck Plugins header (.lib-head.pm-head.stuck)
over it taking the pointer.
- plugin-github, WebKit: de 440, a click scrolls #view-plugins, 74 to
139 (65 to 119 at 56602426; #3218 has the same check red in
Chromium).
- plugin-github-wait, Chromium: de 440, Try again moves #view-plugins
by 2.
- plugin-release, WebKit: en and zh read "Serves Zed\n" for "Serves
Zed".
- go test -tags nogui -count=1 -timeout 45m ./... (Bun 1.4.2, log
kept; 8m48s, load 32 at its start): 71 packages ok, internal/plugin
among them, and 16 tests red in 6 packages, none of them this
commit's tests or what they cover (internal/gui's are its gateway
tests): agent TestCodexDriftReached (#3398); TestInstalledVersion,
TestHowInstalled, TestCursorFolderFromTheEditorIsNotTheCLI,
TestCopilotFolderFromAnIDEPluginIsNotTheCLI,
TestQoderSettingsFromAnIDEPluginIsNotTheCLI, TestOmpDetectedWithPiDir
and TestZedAppPath (#3141); TestReasonixCLIRequiresSupportedNativeVersion
and TestReasonixCLIRecoversAfterProbeTimeout (#3641); davsync
TestSyncTeraCloudStillSeesOtherWrites (#3420); edit
TestWriteAtomicReadOnlyHardLink and testenv TestProgram (umask
077, #3640); gateway TestPluginToldWhereTheAgentWorks (the
/tmp/.git of #3675); gui TestGatewayHeldByAContainer and
TestGatewayFixQuitsOnlyAMagpie (#3649).
The rest is what was run for 31a99237, at tree 2dd21699 on origin/main
508911e4, the same Go change (github.go has since taken e4ccf67b's
search timeout, in askTagged, not readTagged; 31a99237's plugins.js
named the card's chip by hand, not through kindChip, and had three
lines of comment this leaves out; not this tree):
- Real use: magpie web built at 508911e4 and at that change's code
(529f07e5, the same but for the new GUI file), each in a sandbox HOME,
asked real GitHub for /api/plugins/github. 508911e4 listed 163 and left
IvanXxxxyyuffff/magpie-system-prompt-file out. That change listed 164,
it and MengXiangxi/magpie-openviking (which now has the inert index.js)
of kind hooks. cyberElar/magpie-x-search (#1327's, a command only) was
left out by both.
Not tried: macOS and Windows; the real app's window (no display here, the
page in Playwright's browsers only).
Landed by yetone in a batch of Coffemon's patches from the issues.
What was run, go1.26.8, on origin/main cc81ad4ea, then again at
70a0c387c (gofmt, the three vets, the changed tests, umask 077):
- mote (macOS 27): gofmt -l clean; go vet, GOOS=linux go vet -tags
nogui and GOOS=windows go vet ./...: ok. edit and testenv at umask
077; agent, provider, library and gateway with an empty .git above
TMPDIR; davsync, imagemcp, plugin, library, edit, testenv whole; the
changed tests in agent, provider, gateway and gui; the timing tests
-count=10 (gateway, davsync, imagemcp) and -count=5 (agent): all ok.
TestCoreScriptBudget ok: core 1,536,751 of 1,537,034, app.js
1,312,975 of 1,315,316, no budget raised.
- Red on the old code: on origin/main, TestWriteAtomicReadOnlyHardLink
at umask 077 and two Reasonix tests under an empty .git; on Linux
(wsl-run) TestProgram at umask 077 with the old program.go. With
each fix's code taken back to main's, the Gemini imageConfig tests,
TestPluginToldWhereTheAgentWorks, TestSkillRepoTraced,
TestTaggedHooksAlone, TestMainURL/TestMainView and update-auto,
plugin-github-hooks, plugins-more-discover, plugin-namesake were
red. Broken by hand: claudeKeyed always true (both
OwnEndpointNeverAsked tests red), claudeAsk a no-op
(TestClaudeFirstWriteAsksTheProxy red), GitAt taking any .git folder
(the three TestGitOnDisk tests red).
- GUI: 123 files (plugins*, update-*, panel/tray/start/context, i18n,
gui-zh-tw/ja/de and every file that evals app.js parts) in WebKit on
Linux (wsl-run). 11 files had reds (click-scroll, panel-fold,
plugin-card-update, plugin-github, plugin-move*, segs-glide,
tray-totals, update-*), and run again side by side they fail the
same on origin/main d80d75f30 (79 pass, 26 fail here; 78 and 27
there). They are click-scroll guards ("the click must not scroll
the page"), varying by language from run to run (#4385).
copilot-ghe's route-after-close red is #1949, seen on main 244d80e23
too. In Chromium on mote, Chromium segfaulted partway through files
(#4125): context-map, context-scroll-end and context-tune fail the
same on origin/main 0911a65e7, so the batch's own files
(plugin-namesake, update-auto, plugins-more-discover,
plugin-github-hooks) ran in Chromium on Linux: 62 of 62.
- Full suite (go test -tags nogui -count=1 -timeout 45m ./..., mote)
at 472a0608f (on 70a0c387c): every package ok but internal/gateway,
whose five reds were #4362's (Antigravity turned-away and
TestCodexSpentGrokFailingIsTold), fixed on main in d80d75f30. After
the rebase on 244d80e23 the five pass, and gofmt, the three vets
and the targeted runs above were run again: ok. In Linux the
sign-in, copilot, plugin-github*, plugins-more-discover,
plugin-namesake, plugin-gateway, update-auto, quota-refresh-order
and i18n files ran in both engines: 475 pass, 4 fail (copilot-ghe
#1949, plugin-github's click scroll, both red on main too).
- Rebased again on c7171a256, over its budget fix e94bf7a08: gofmt, vet of
gui, gateway, provider and plugin, TestCoreScriptBudget (core
1,536,265 of 1,536,586 with the batch's last commit, statusTErr and settingsErr), the Gemini,
GitOnDisk and plugin tests, and in Linux both engines i18n-keys,
update-mirror, plugin-namesake, plugins-more-discover,
plugin-github-hooks and update-auto (138 of 138): ok.
Not tried: the whole GUI suite (mote's WebKit wouldn't launch and its
Chromium segfaulted, #4125); macOS WebKit; the real app's window.
The Installed tab's row of a gateway request hook made its chip as
middleware's and then wrote "Request hook" over the chip's word, in
five lines. kindChip now takes a word to say in place of its kind's,
and the row asks for its chip in one line. Behaviour is unchanged: the
same chip, class, glyph and tooltip, its word translated as before.
This makes room under TestCoreScriptBudget for the next commit without
raising the budget: the core's scripts go from 1,527,972 to 1,527,897
of 1,528,076.
plugin-gateway.test.cjs, which opens such a row, now checks its chip
says Request hook in each of its five languages; nothing checked it.
What was run (tree 0b0ba0c9, on origin/main 56602426, go1.26.8,
linux/amd64, Linux 5.15), outside graftcp, the Go tests at umask 077:
- plugin-gateway.test.cjs, Chromium and WebKit: 12 of 12 pass. With
56602426's plugins.js under it: 12 of 12, so the chip said the same
before this change.
- kindChip ignoring the word given (t(word) for t(name || word)): 0 of
12, the chip saying Middleware, translated, in every language.
- TestCoreScriptBudget: ok.
- The GUI files near the change, vet and the full suite ran at the next
commit's tree, which holds this one.
Not tried: the real app's window (no display here, the page in
Playwright's browsers only).
Landed by yetone in a batch of Coffemon's patches from the issues.
What was run, go1.26.8, on origin/main cc81ad4ea, then again at
70a0c387c (gofmt, the three vets, the changed tests, umask 077):
- mote (macOS 27): gofmt -l clean; go vet, GOOS=linux go vet -tags
nogui and GOOS=windows go vet ./...: ok. edit and testenv at umask
077; agent, provider, library and gateway with an empty .git above
TMPDIR; davsync, imagemcp, plugin, library, edit, testenv whole; the
changed tests in agent, provider, gateway and gui; the timing tests
-count=10 (gateway, davsync, imagemcp) and -count=5 (agent): all ok.
TestCoreScriptBudget ok: core 1,536,751 of 1,537,034, app.js
1,312,975 of 1,315,316, no budget raised.
- Red on the old code: on origin/main, TestWriteAtomicReadOnlyHardLink
at umask 077 and two Reasonix tests under an empty .git; on Linux
(wsl-run) TestProgram at umask 077 with the old program.go. With
each fix's code taken back to main's, the Gemini imageConfig tests,
TestPluginToldWhereTheAgentWorks, TestSkillRepoTraced,
TestTaggedHooksAlone, TestMainURL/TestMainView and update-auto,
plugin-github-hooks, plugins-more-discover, plugin-namesake were
red. Broken by hand: claudeKeyed always true (both
OwnEndpointNeverAsked tests red), claudeAsk a no-op
(TestClaudeFirstWriteAsksTheProxy red), GitAt taking any .git folder
(the three TestGitOnDisk tests red).
- GUI: 123 files (plugins*, update-*, panel/tray/start/context, i18n,
gui-zh-tw/ja/de and every file that evals app.js parts) in WebKit on
Linux (wsl-run). 11 files had reds (click-scroll, panel-fold,
plugin-card-update, plugin-github, plugin-move*, segs-glide,
tray-totals, update-*), and run again side by side they fail the
same on origin/main d80d75f30 (79 pass, 26 fail here; 78 and 27
there). They are click-scroll guards ("the click must not scroll
the page"), varying by language from run to run (#4385).
copilot-ghe's route-after-close red is #1949, seen on main 244d80e23
too. In Chromium on mote, Chromium segfaulted partway through files
(#4125): context-map, context-scroll-end and context-tune fail the
same on origin/main 0911a65e7, so the batch's own files
(plugin-namesake, update-auto, plugins-more-discover,
plugin-github-hooks) ran in Chromium on Linux: 62 of 62.
- Full suite (go test -tags nogui -count=1 -timeout 45m ./..., mote)
at 472a0608f (on 70a0c387c): every package ok but internal/gateway,
whose five reds were #4362's (Antigravity turned-away and
TestCodexSpentGrokFailingIsTold), fixed on main in d80d75f30. After
the rebase on 244d80e23 the five pass, and gofmt, the three vets
and the targeted runs above were run again: ok. In Linux the
sign-in, copilot, plugin-github*, plugins-more-discover,
plugin-namesake, plugin-gateway, update-auto, quota-refresh-order
and i18n files ran in both engines: 475 pass, 4 fail (copilot-ghe
#1949, plugin-github's click scroll, both red on main too).
- Rebased again on c7171a256, over its budget fix e94bf7a08: gofmt, vet of
gui, gateway, provider and plugin, TestCoreScriptBudget (core
1,536,265 of 1,536,586 with the batch's last commit, statusTErr and settingsErr), the Gemini,
GitOnDisk and plugin tests, and in Linux both engines i18n-keys,
update-mirror, plugin-namesake, plugins-more-discover,
plugin-github-hooks and update-auto (138 of 138): ok.
Not tried: the whole GUI suite (mote's WebKit wouldn't launch and its
Chromium segfaulted, #4125); macOS WebKit; the real app's window.
CandyACE (#3893, a screenshot of Settings › About): Automatic updates
said "Checks for a newer magpie and downloads it" (zh "自动检查 magpie
新版本并下载"), and Download updates automatically, a few rows below,
says "Downloads a newer version as soon as it is found", so the two
read as one setting shown twice.
They are two: Automatic updates (noAutoUpdate) is whether magpie asks
for a newer version by itself, and how often (#472); Download updates
automatically (noAutoDownload, #2296) is whether a version found, by
those checks or the version row's Check, downloads at once. With
downloads off, Automatic updates' line was also wrong. It now says
"Checks for a newer magpie by itself", in en, zh, zh-TW, ja and de,
and the comment above it no longer says it downloads. The rows, their
names and what they save are as they were. app.js is 26 bytes smaller
(1,309,417), so the core budgets keep their room.
What was run (tree 93eeed7e, on origin/main f8cd964a, go1.26.8,
linux/amd64, Linux 5.15), outside graftcp, umask 077:
- update-auto.test.cjs (Node 22.22.1, Playwright 1.58.2), Chromium and
WebKit: 3 runs, 2 of 2 each, the line read in en and zh
- the same test with f8cd964a's app.js and i18n.js: red in both
engines, en and zh, "the switch says it checks, not that it
downloads"
- the other 14 update-*.test.cjs, both engines, at load 29: Chromium
20 of 20, WebKit 13 of 20. The 7 WebKit reds are main's:
update-download-percent, update-hide, update-notes-ask (3) and
update-wait on WebKit's "ResizeObserver loop completed with
undelivered notifications." counted as a page error (#3942), and
update-download on "the click scrolled the page". The five files in
WebKit, here and on f8cd964a in turn, 3 runs each at load 28 to 56:
here 6, 6 and 5 of 10 red, on main 7, 6 and 6, the same cases
- i18n-keys, gui-zh-tw, gui-ja and gui-de, both engines: 12 of 13, the
red i18n-keys' "a plugin's words are its own" on plugins/library's
"Runs as" (#3897, as on main)
- go test -tags nogui -count=1 -timeout 45m ./internal/gui (log kept):
ok but TestGatewayHeldByAContainer and TestGatewayFixQuitsOnlyAMagpie
(#3649)
- go test -tags nogui -count=1 -timeout 45m ./... (tools/suite.sh, Bun
1.4.2): 69 packages ok and 7 red, none in what this changes: agent
TestCodexDriftReached (#3398), TestInstalledVersion, TestHowInstalled,
TestCursorFolderFromTheEditorIsNotTheCLI,
TestCopilotFolderFromAnIDEPluginIsNotTheCLI,
TestQoderSettingsFromAnIDEPluginIsNotTheCLI, TestOmpDetectedWithPiDir
and TestZedAppPath (#3141), the two Reasonix tests (#3641) and
TestWSLColdPlaceOpensNothing (#3924); edit
TestWriteAtomicReadOnlyHardLink and testenv TestProgram (umask 077,
#3640); gateway TestPluginToldWhereTheAgentWorks (#3675); gui
TestGatewayHeldByAContainer and TestGatewayFixQuitsOnlyAMagpie
(#3649); provider TestCodexAppServersOnHome (#3906), then "close of
synctest channel from outside bubble" (#3632); tui
TestTUIFetchesSubscriptionModels/agent (#3919)
Not run: gofmt, vet and the builds; no Go file changes.
Not tried: zh-TW, ja and de read by a native speaker; the new lines
are shortened from the old ones, which were theirs.
Landed by yetone in a batch of Coffemon's patches from the issues.
What was run, go1.26.8, on origin/main cc81ad4ea, then again at
70a0c387c (gofmt, the three vets, the changed tests, umask 077):
- mote (macOS 27): gofmt -l clean; go vet, GOOS=linux go vet -tags
nogui and GOOS=windows go vet ./...: ok. edit and testenv at umask
077; agent, provider, library and gateway with an empty .git above
TMPDIR; davsync, imagemcp, plugin, library, edit, testenv whole; the
changed tests in agent, provider, gateway and gui; the timing tests
-count=10 (gateway, davsync, imagemcp) and -count=5 (agent): all ok.
TestCoreScriptBudget ok: core 1,536,751 of 1,537,034, app.js
1,312,975 of 1,315,316, no budget raised.
- Red on the old code: on origin/main, TestWriteAtomicReadOnlyHardLink
at umask 077 and two Reasonix tests under an empty .git; on Linux
(wsl-run) TestProgram at umask 077 with the old program.go. With
each fix's code taken back to main's, the Gemini imageConfig tests,
TestPluginToldWhereTheAgentWorks, TestSkillRepoTraced,
TestTaggedHooksAlone, TestMainURL/TestMainView and update-auto,
plugin-github-hooks, plugins-more-discover, plugin-namesake were
red. Broken by hand: claudeKeyed always true (both
OwnEndpointNeverAsked tests red), claudeAsk a no-op
(TestClaudeFirstWriteAsksTheProxy red), GitAt taking any .git folder
(the three TestGitOnDisk tests red).
- GUI: 123 files (plugins*, update-*, panel/tray/start/context, i18n,
gui-zh-tw/ja/de and every file that evals app.js parts) in WebKit on
Linux (wsl-run). 11 files had reds (click-scroll, panel-fold,
plugin-card-update, plugin-github, plugin-move*, segs-glide,
tray-totals, update-*), and run again side by side they fail the
same on origin/main d80d75f30 (79 pass, 26 fail here; 78 and 27
there). They are click-scroll guards ("the click must not scroll
the page"), varying by language from run to run (#4385).
copilot-ghe's route-after-close red is #1949, seen on main 244d80e23
too. In Chromium on mote, Chromium segfaulted partway through files
(#4125): context-map, context-scroll-end and context-tune fail the
same on origin/main 0911a65e7, so the batch's own files
(plugin-namesake, update-auto, plugins-more-discover,
plugin-github-hooks) ran in Chromium on Linux: 62 of 62.
- Full suite (go test -tags nogui -count=1 -timeout 45m ./..., mote)
at 472a0608f (on 70a0c387c): every package ok but internal/gateway,
whose five reds were #4362's (Antigravity turned-away and
TestCodexSpentGrokFailingIsTold), fixed on main in d80d75f30. After
the rebase on 244d80e23 the five pass, and gofmt, the three vets
and the targeted runs above were run again: ok. In Linux the
sign-in, copilot, plugin-github*, plugins-more-discover,
plugin-namesake, plugin-gateway, update-auto, quota-refresh-order
and i18n files ran in both engines: 475 pass, 4 fail (copilot-ghe
#1949, plugin-github's click scroll, both red on main too).
- Rebased again on c7171a256, over its budget fix e94bf7a08: gofmt, vet of
gui, gateway, provider and plugin, TestCoreScriptBudget (core
1,536,265 of 1,536,586 with the batch's last commit, statusTErr and settingsErr), the Gemini,
GitOnDisk and plugin tests, and in Linux both engines i18n-keys,
update-mirror, plugin-namesake, plugins-more-discover,
plugin-github-hooks and update-auto (138 of 138): ok.
Not tried: the whole GUI suite (mote's WebKit wouldn't launch and its
Chromium segfaulted, #4125); macOS WebKit; the real app's window.
registry.json's `icon` can be an https URL: Kilo Code
(https://github.com/Kilo-Org.png), Search1API (https://s1.dev/icon.png),
PowerContext (a raw.githubusercontent SVG) and GoAnyAPI
(https://goanyapi.com/logo.png). It reached the page as it was, and app.js
icon() took any name for a bundled file (icons/<url>.svg), so the Discover
card, the plugin's page and Kilo's agent row showed the generic cube.
A market picture now goes through the path a plugin's own picture already
takes (pluginOwnIcon / RepoIcons). Only a public https host is fetched,
the size is capped, and the file is kept as file:<hash> and served from
/api/icons. The page never loads a remote URL. Until the picture is in,
the icon is "", which the page draws as the cube.
- provider.MarketIcon / MarketPicture. PluginIcon (installed plugins)
uses them.
- agent pluggedIcon (an agent plugin's row, which is Kilo's case) uses
them too.
- gui listingIcons: /api/plugins/listings and /api/plugins/market keep
the market's picture icons and the npm icons in one RepoIcons call
(the market waits up to 3s, the listings don't wait). The market's own
slice is not changed.
- app.js icon(): a name with ':' or '/' that isn't file:/data: is drawn
as the cube, never asked for as icons/<url>.svg. A kept picture that
fails to load already falls back to the cube through the img's onerror.
app.js stays under its budget: two comments were shortened, with no
raise.
Tests:
- TestMarketIconURLKept (provider): an https icon becomes file: and is
fetched once, a bundled name is unchanged, and http:// is refused.
- TestRegistryIconPictureKept (gui): listings give file: for a data:
icon, keep a bundled name, and give "" for javascript:. The market's
listing is not mutated.
- plugin-registry-icon.test.cjs: Chromium and WebKit, en/zh/zh-TW/ja/de
at 980 and 420. A kept picture is drawn on the card and on its page. A
URL shows the cube. A 404 picture shows the cube, not a blank. A bundled
icon stays bundled. Nothing is asked of another host.
What was run:
- Before the rebase (mote):
- focused Go tests: ok.
- plugin-registry-icon: 22/22.
- real use, sandbox HOME, the four real registry URLs: each fetched
and kept as file: (Kilo png 1455 B, s1 png 4426 B, PowerContext svg
40309 B, goanyapi png 21878 B).
- At the rebased fix (on dca3e2d71), on mote:
- go vet ./..., GOOS=linux go vet -tags nogui ./...,
GOOS=windows go vet ./...: ok.
- Linux and Windows builds: ok. gofmt clean.
- go test -tags nogui -count=1 -timeout 45m: internal/gui, provider,
agent and plugin all ok.
- GUI on mote: the 58 Plugins-page files were run twice. Both runs were
red by browsers crashing or failing to launch (#4125: pboard crashes,
SEGV, newContext "browser has been closed"). origin/main's
agent-plugin-agents fails the same way there.
- GUI on the Linux box (wsl-run), at this head:
- plugin-registry-icon, icon-tile, i18n-keys and plugin-card-update:
ok, except plugin-card-update in WebKit, which is red the same at
origin/main 46fb0c1b9 (#3079, commented).
- plugin-registry-icon was first red there in WebKit: the Discover
list is drawn again as the market comes in, so a card could detach
mid-scroll. The test's scroll now looks again; it passes 20/20 in
both engines.
- The Chromium reds plugin-github (80 -> 79) and plugin-move-unserved
(Model 1) are red the same at origin/main 46fb0c1b9 (#3218,
#4410/#4392).
Broken by hand:
- MarketIcon returning its input made both Go tests red. The listing
gave the raw data URI and javascript:alert(1), and PluginIcon gave the
https URL.
- Without the app.js guard, plugin-registry-icon was 0/22: it asked
for http://magpie.test/icons/https://s1.dev/icon.png.svg.
Not run yet: the whole GUI suite, the full go test ./..., Windows test
runs and the real GUI app. They run after the push, and each red gets
its own issue.
101775657 (a key's rest that ends on another day says its date) put
app.js at 1,315,507 bytes, 191 over its budget of 1,315,316, and
TestCoreScriptBudget red on main; its body said the budget test passed,
from a run before the rebase that brought app.js up to the line. restBack
is now one line with no comment (the reason is in key-rest-date.test.cjs
and 101775657), and app.js is 1,315,290, with no raise.
Run (mote-run, at this change on origin/main 88e6fb9cf): go test -run
Budget ./internal/gui ok; node --test key-rest-date.test.cjs, Chromium:
10 of 10 (en/zh/zh-TW/ja/de at 1100 and 420px). WebKit not run: a bare
webkit.launch() times out on mote now (#4125).
The full go test ./... that found it ran on the pushed changes: red
otherwise only on #4362's gateway tests and the real-window AppKit tests
(#2645, #4125), plus TestClientPathCoversHandler and
TestRequestDiskNamesItsSource, both of which pass alone at this head (the
suite's copy was taken while this worktree was mid-rebase).
士奇 on Discord (Simplified Chinese GUI, the third report of this): with
routing groups off, Hermes Agent's and WorkBuddy's model lists had the
ChatGPT subscription's GPT models. With routing groups on, they were gone.
Cause: the user's group names those models and lists itself alone
(Group.Unlists, the routing plugin's option for that, #1783). While the
group is on, catalogKeeping drops what it names from Catalog(), and every
agent's list starts from Catalog(). With groups gated off the group's
Unlists goes away, so the models came back. a3ee00c05 kept them for the
Codex agent only; its body said other agents still didn't see them.
Fix, at the one point every agent's list starts from: catalogOf(agent)
keeps a signed-in subscription's own models (SubscriptionKept: no group
entry, Provider.Account set, the provider not kept for routing groups)
for every agent, so a group is added on top of what agents had. A client
that is no agent ("" on /v1/models) still gets the group alone, as #1783
asked. Provider.Unlisted ("Only through routing groups") still hides the
provider's models from agents other than Codex. Unlisted() no longer names
a kept subscription model, so the picker's note doesn't call it kept for
groups.
Siblings: every agent writer reaches catalogOf through CatalogFor and
ListedFor. Two gateway lookups read Catalog() directly and now use the
agent's catalog (CatalogOf): /v1/models/{id} and Claude Desktop/Science's
alias lookup. agent.go and codex.go read Catalog() only for error text or
a fallback and are left alone. The routing plugin's hint for that option
says, in every language, that a signed-in subscription's models stay in
agents' lists.
Test: TestSubscriptionModelsStayInEveryAgentsListWithGroupOn signs in a
ChatGPT account in a sandbox and switches on a group naming its 5 models
that lists itself alone. For every agent that lists the group (68,
including hermes, workbuddy, claude and codex), the agent's list and
CatalogFor have the models, and a picker offering the group offers them.
Catalog() and CatalogFor("") still don't. With the provider set to
Unlisted, Hermes doesn't list them. TestCodexOwnModelsListedOnlyThroughGroups
now expects Claude Code to keep the models under a group alone.
Run (on mote):
- Broken by hand: catalogOf reverted to a3ee00c05's Codex-only version.
The new test went red with 340 errors across 68 agents, e.g.
"codex/gpt-5.5 not in hermes's list map[group/mygpt:true]", and the
same for workbuddy, claude and claude-desktop. Green with the fix back.
- gofmt -l; go vet on darwin, linux (nogui) and windows; builds: clean.
- go test -timeout 45m ./... at 035d87b80 (this change on 4a4a90c23,
before a test comment was reworded): every package ok except
- internal/gui TestMainWindowCorners/macOS_26_SDK: #3949, red on
origin/main accb951ab on mote too (macOS 27);
- internal/provider TestClaudeAccountServesModelsListedSinceItsFetch:
#3174 (red in a full run, green alone). 5 of 5 green alone and
green in a whole internal/provider run at that head.
- At this commit on b26fa0903: gofmt -l on the
changed Go files, go vet of provider, gateway and gui on darwin, linux
(nogui) and windows: clean. internal/provider whole: ok.
internal/gui and internal/gateway with -run
"Codex|Group|Subscription|Unlist|Catalog|AgentModel": gui ok; gateway
red on TestAntigravityTurnsCodexsGPT5ThreadAwayOnce and
TestCodexSpentGrokFailingIsTold, both red the same way on origin/main
b26fa0903 (3 of 3) and filed as #4362.
- GUI files the change reaches, on b26fa0903: agent-model*, group-unlists and
i18n-keys: every Chromium case and i18n-keys pass (46); every WebKit
case timed out launching the browser (180s, #4125: WebKit doesn't start
on mote right now). The same files at 035d87b80 passed in both engines
but i18n-keys, whose one red (the new test quoted a routing-plugin
word) is fixed here.
- Rebased on 101775657 (main had moved models.go and gateway.go): gofmt,
go build for darwin, linux (nogui) and windows, go vet of provider,
gateway and gui on all three: clean. go test -run
"Codex|Group|Subscription|Unlist|Catalog|AgentModel" ./internal/gui
./internal/provider and -run "Model|Desktop|Alias|Catalog"
./internal/gateway: ok.
- The whole GUI suite (1004 files) at fd50ed116 was still running when
this was pushed (mote shared with other sessions' suites). Reds it
shows get their own issue unless already red on main.
Not tried: no live ChatGPT account and no real GUI app run (the test signs
in a sandbox account). No separate gateway test for /v1/models/{id} or the
Desktop alias lookup. Provider.Unlisted stays honoured, on purpose.