8fa91a852 wrote its new test over the existing dsh_idle_test.go, which
held the tests that magpie's dsh routes carry streamIdleTimeoutMs
(544b91ca8), so they were deleted with it. They are back as they were,
and the parses' idle test moves to dsh_parses_idle_test.go.
Run on mote at this head: go test ./internal/agent ok (255s), go vet ok.
Startup's RenameLegacy parses every dsh profile's patch list and entries
(dshNodes and filememo's "dsh list"; ~2 MB of YAML nodes in the t60 idle
heap with real accounts), and KeepDshWired's round reads none of them
while nothing changed, so they were kept for the life of the process for
nobody. Two minutes after the last look they are let go (dsh_idle.go, the
same pattern as usage, sessions and catalog); the drift poll and a round
that writes parse them again.
Run on mote at this head: go test ./internal/agent ok (255s); gofmt
clean; GOOS=windows go vet and GOOS=linux go vet -tags nogui
./internal/agent ok.
Broken by hand: without the dshNodes reset, TestIdleDshParsesLetGo fails
("idle: 1 parsed entries kept"); without DropKind("dsh list") it fails
("the patch list kept while idle").
Not tried: a fresh real-account heap at this head (next acrss run).
dropEffortPeriods let go of every period's kept CodexModelEffort answer,
but effortOlds (each period's effort before the cut, ~2.1 MB in the t60
idle heap with real accounts, under effortSplit) stayed for the life of
the process. It is in effort-v1.json and effortSplit reads it back from
there when the entry is missing, so it now goes with the rest, under
codexEffortBuilding (TryLock: a build under way keeps it).
Run on mote at this head: go test ./internal/usage ./internal/usageapi
./internal/gui ok; gofmt clean; GOOS=windows go vet and GOOS=linux go
vet -tags nogui ./internal/usage ok.
Broken by hand: without clear(effortOlds),
TestIdleCodexEffortLetGoAndBuiltAgain fails ("0 periods' answers and 1
periods' effort before the cut kept while idle").
Not tried: a fresh real-account heap at this head (next acrss run).
bf4d8f3e5 let a key's model be a re: pattern, and covered() tried that
pattern on an issued key's glob as text. A regex's '.' or a class like
[^-] takes the glob's '*' too, so an issuer holding "re:^openai/[^-]*$"
(openai/o3, not openai/gpt-4o) could issue "openai/*", and at the
gateway foldModels kept "openai/*": the issued key used openai/gpt-4o,
which its issuer may not. "re:^gr" covered "gr*", which names group/…
ids a pattern never does. The other way, a child's glob "r*" matched
the text "re:^openai/" and so took the issuer's whole pattern.
Now a pattern covers a glob only when it matches the glob's text before
the first '*' and asserts nothing about what follows ($, \z, \b, \B),
which makes it a match in every id the glob names, and when the glob
can't name a group. A pattern is covered only by itself or by "*". The
same check runs at issue time (IssueKey) and at each request
(foldModels). It is stricter than needed in one way: "re:gpt" no longer
covers "*gpt*" (only the text before the first '*' is judged).
Run on mote at this tree:
- TestPatternCoversAGlobOnlyForAll: red on origin/main ce5e5964d (7 of
its checks, the openai/gpt-4o fold among them), green here.
- go test -tags nogui ./internal/access: ok.
- go test -tags nogui -run "Key|Issue|Pattern|Alias" ./internal/gateway
./internal/gui . : ok.
- GOOS=linux and GOOS=windows go vet ./internal/access, gofmt -l: clean.
Not run: the full suite, and the GUI (no GUI change).
The Headers editor gets a small Presets button beside + Add header. It
opens the app menu (openProtoMenu) with Codex CLI, Gemini CLI, OpenCode,
Kilo Code, Cline, Roo Code and Cherry Studio. A pick adds that client's
headers: a header the draft already has with a value keeps the user's own,
one with no value is filled, the rest become rows. The list lives in
headerpresets.js, imported when Presets is pressed, so the core's script
budget is not touched. No Claude Code preset and nothing that imitates it.
Where each value comes from (another app's values come from that app):
- Codex CLI: originator codex_cli_rs and the User-Agent shape from
codex-rs login/src/auth/default_client.rs (as internal/provider
codex_request.go sends them), version 0.167.0 = @openai/codex on npm.
- Gemini CLI: GeminiCLI/<ver>/<model> (<platform>; <arch>; terminal) as
internal/provider/google.go userAgent has it, 0.67.0 = @google/gemini-cli
on npm.
- OpenCode: opencode/latest/<ver>/cli (packages/core/src/app.ts,
internal/provider/opencode_client.go), 2.2.7 = @opencode/cli on npm.
- Kilo Code: HTTP-Referer, X-Title, User-Agent, X-KILOCODE-EDITORNAME from
Kilo-Org/kilocode request.ts and headers.ts (internal/provider/kilo.go),
7.8.27 = @kilocode/cli on npm.
- Cline: cline/cline sdk/packages/llms/src/providers/cline-client-headers.ts
(internal/provider/cline.go), desktop client, 3.5.54 as cline.go has it.
- Roo Code: DEFAULT_HEADERS in RooCodeInc/Roo-Code
src/api/providers/constants.ts, RooCode/3.53.0 = src/package.json on main.
- Cherry Studio: defaultAppHeaders in CherryHQ/cherry-studio
src/main/utils/http.ts, read from main on 2026-11-11.
Run (mote, at the pushed head, rebased on origin/main):
- new header-presets.test.cjs: 20 of 20 in chromium and webkit, en, zh,
zh-TW, ja, de, 900px and 420px. With the user-value rule broken by hand
(a preset overwrote a set value) it was 0 of 20.
- header-session-hint, model-headers, i18n-keys, i18n-en-no-cjk: green.
- TestCoreScriptBudget: ok. app.js is smaller than before.
- editor-hints.test.cjs webkit: 10 red here and on a clean origin/main
copy alike ("Tab didn't come back to Certificate's box"), filed in
#5872.
- The whole GUI suite is running on mote after the tag; reds will be
filed.
Not tried: a real request through a preset's headers against a vendor
that checks them. Codex's and Gemini's User-Agents carry macOS and arm64
as magpie's own Go code does.
The model picker of a gateway key gets a search box (name or id) and takes
"re:<regexp>" typed then Enter; the row menu gets Model names (aliases-key).
Docs: gateway-routing.md "A key's model patterns and names".
Run (mote): go vet darwin, windows, linux nogui on access/gateway/cli/gui;
go test internal/access, gateway (937s), cli, gui all ok at the pre-rebase
base; after rebasing on origin/main: go build ./..., the new Go tests,
TestCoreScriptBudget, and GUI gateway-key-search-names + gateway-key-models
+ i18n-keys (28 ok, chromium and webkit, en/zh/zh-TW/ja/de, 1100 and 440).
Broken by hand: pattern match off (gateway + access tests red), aliasRequest
off (alias test red), search argument removed (all 20 chromium GUI red).
Not tried: Windows/Linux GUI run, a real client against a real key; the
full suite runs after the tag.
Access layer, CLI and gateway; GUI and docs follow. Tests: access pattern and alias tests; gateway TestGatewayKeyModelPatternHoldsEveryRoute and TestGatewayKeyAliasRenamesAModel, each red with the pattern match or aliasRequest switched off by hand.
CodexModelEffort kept each period's answer (every Codex thread's
consumption by model and effort) for the life of the process. On a real
history it was ~6.9 MB of the idle heap after one visit to the Sessions
page (t59 measured on mote, heap at 10 idle minutes:
usage.keptCodexModelEffort).
Each ask now notes itself with derivedUsed, as the pairing and heatmap
reads do, and dropDerived lets go of every period's answer but one being
built. The page polls every 15 s while open, so it keeps them; the first
ask after derivedIdle (3 minutes) builds the answer again, waiting for it
as a first ask does.
Run on mote (go1.26.8):
- go test -count=1 ./internal/usage ./internal/usageapi ./internal/gui: ok
- gofmt -l, go vet, GOOS=windows go vet, GOOS=linux go vet -tags nogui
for internal/usage: clean.
- Broken by hand: with dropEffortPeriods left out of dropDerived,
TestIdleCodexEffortLetGoAndBuiltAgain fails ("1 periods' answers kept
while idle").
On a real history (~15k Claude Code sessions), the idle heap after one
visit to the Sessions page still held two things:
- ccUUIDMemo's set of message uuids per file, as map[string]bool with
the strings gjson copied out: ~5.1 MB. It is now a uuidSet,
map[[16]byte]struct{}: an 8-4-4-4-12 uuid (any case) is parsed into
its 16 bytes, anything else is hashed with FNV-128a.
- ccListed, every Claude Code folder's last listing (path and key per
file): ~2 MB, kept for the life of the process. dropIdleCache now
clears it with the other memos it lets go; the next listing builds it
again from the folder.
Run on mote (go1.26.8):
- go test -count=1 ./internal/catalog ./internal/sessions
./internal/provider ./internal/agent ./internal/codexcat: ok
(before the ccListed line); ./internal/sessions again after: ok.
- gofmt -l, go vet and GOOS=windows go vet for internal/sessions: clean.
- Broken by hand: with ccListed.Clear() commented out,
TestIdleParsesLetGoAndComeBackFromDisk fails ("3 Claude Code
listings kept").
Not tried: the real-account idle measurement of this change alone; it
runs with the catalog change's measurement.
An idle magpie's heap (real-account copy, 600s idle on mote, t58) held
two copies of models.dev's catalog for the life of the process:
- the shipped copy, unpacked by Seed at start into a sync.OnceValue:
5.7 MB of io.ReadAll, though Seed has nothing to write once a newer
catalog file is there, and nothing else reads it then;
- the parsed catalog (loadGen, ~6.7 MB with its votes and indexes),
loaded at start and by dsh's five-minutely rebuild.
Seed now looks at the file before unpacking, and the copy is unpacked
for each call and kept by no one. The loaded catalog, with what is built
and indexed of it, is let go once nothing has read it for two minutes
(load_idle.go, like the sessions' cacheIdle). The next read parses the
same file again. Forget is not told: the provider package's lists stay
right, since a changed file is Reset by whoever wrote it.
TestIdleCatalogLetGoAndReadAgain and TestSeedUnpacksNothingOverANewerCatalog
are red with dropIdleLoad returning false and with Seed unpacking first
(broken by hand in a copy).
TestListedByReadsAnIndex is red under -race at the base too (#6023).
Each dsh round (every 30s, for dsh's home and dsbot's) kept the model
list it last built between rounds, for the life of the process, though a
round that finds nothing changed only compares its sum. With a copy of
the real accounts the end heap of an idle v0.1.3641 still held 9.7 MB of
catalog (catalogKept, keptFit) after the held/kept sweep let its own
copy go: the dsh rounds' lists shared it. Now a round keeps the stamp,
the time and the sum, and builds the list again only for a round that
writes, which is what it did when a file changed anyway.
Ten docs pages (docker, remote, intent, plugins, import, integrate,
library, mcp-router, masking, start) had one-word titles like "Docker ·
magpie docs", in en, zh and ja. Docker and remote are among the most
read docs pages, and Search Console shows searches such as "局域网远程"
and "magpie docker" with no title matching them. Each <title> now names
what the page does; h1, og tags and the article are unchanged.
Run (mote): node --test worker.test.mjs install.test.mjs: 71 pass,
0 fail.
Not tried: how Google rewrites the titles in results.
4921bf5a9 (#5892) put provider.UsageNamesKey into usagePriceCacheKey,
the check every GatewaySessions ask, summary and Codex model/effort read
makes before using its kept view. UsageNamesKey reads usageGroupNames,
which asked sharedGroups outside a catalog hold, so each ask built every
provider's entries and the found groups again. In the test sandbox that
was ~130 KB more per ask, enough to take TestGatewaySessionsHandOutTheKeptProjection
over its bar on macOS CI and Windows (547208 / 671560 > 552000). With
real providers it is a whole catalog build on every Sessions poll.
usageGroupNames now holds the catalog (provider.Hold), and so does
usagePriceCacheKey, so provider.All and the group names it reads share
one build. A held catalog is checked against the providers' and
settings' files at the first hold and dropped on any write, as for every
GUI request.
Found by bisect on mote over TotalAlloc per ask: 44732325e 407218,
4921bf5a9 537040.
Run at 9522288b1 plus this change:
- mote (macOS): go vet -tags nogui and go test -count=1 -tags nogui
./internal/provider ./internal/usage: ok. Before the rebase, the same
plus ./internal/sessions ./internal/usageapi ./internal/gui: ok.
An ask allocates 381834 bytes (was 547208); the Codex effort build
271472 against 456152.
- xiaomi-gpu (Windows): both allocation tests pass, 399501 and 371480
(were 699558 and 488640 at origin/main 87dfc0d0b, both red).
The package run of ./internal/usage ./internal/provider is red on
18 tests there; each one that also ran at origin/main 87dfc0d0b is red
the same there (Codex keychain, TestDesktopSessionAccountMetadata,
TestGitOnDisk*, TestResolveKeptAcrossRequests, TestSavedButSignedOut,
TestPricerAllocatesNothingPerModel, TestLANNeighbours), and
TestUsageReadAndReadAgain is #4796 (equal clock readings). Filed the
two with no issue: #6024, #6025.
- gofmt -l: clean.
Broken by hand:
- both holds out (origin/main): 547208 on mote, red.
- only usagePriceCacheKey's hold out: 414295, green; it is the
provider-side hold that fixes the class (UsageAlias and PublicRefs
read usageGroupNames too).
Not tried: a real config with many providers (the saving there is a
catalog build per ask, not measured), and Linux.
Qoder, Qoder CN and Trae merge by one model id: a found group is every
model more than one provider serves under the same id (autoGroups,
mergeKey), with no pairing of editions anywhere. WorkBuddy AI's account
lists deepseek-v4.1-flash under its paid id, deepseek-v4.1-flash-sg (the
owner's plugin-providers.json has only that one), so the two editions'
one model stayed two rows. mergeKey now reads a small table of editions'
twins (editionTwins) after the user's own same-as; it holds that one pair.
Run: TestAutoGroupsEditionTwins (red with the table entry removed, green
with it), TestAutoGroups*, TestGroupImages* through mote-run.
Not tried: a real WorkBuddy AI account's picker. The other id gaps in the
owner's lists (WorkBuddy kimi-k3-1 vs AI kimi-k3, auto vs default-model)
are not known to be one model and are left.
6af54dc9a (internal/library/plugin.go, pluginName) and b9f8548d2
(internal/provider/login_export.go, exportUnsafe) each added a
package-level regexp.MustCompile, so TestNoEagerPackageRegexps was red
on main on ubuntu and macOS CI (run 42893454569 at 51da6f1f5). Both go
through lazyre.New now, like the rest since e4197144a. The patterns and
callers are unchanged. yinwu01 found it and had the same patch on a
fork branch.
Run on mote at this tree (on origin/main d2a80b317):
- go vet -tags nogui of internal/library, internal/provider and the
root package: ok; gofmt -l clean;
- TestNoEagerPackageRegexps: ok (red on main in CI's run above);
- internal/cli TestEveryRouteHasACommandOrIsNamed: ok at this head
(red in the same CI run, already fixed by 91d4eaa70 and 966ddff20);
- go test -tags nogui ./internal/library ./internal/provider: ok.
Not run: the full suite, and Windows and Linux vet (a two-line change
of how a variable is declared, with no OS-specific files).
Co-authored-by: yinwu01 <yinwu01@users.noreply.github.com>
New /docs/claude-code-chatgpt and /docs/troubleshooting in en, zh and
ja, aimed at queries Search Console shows with impressions and no page
for them ("claude code use chatgpt subscription", "opencode 502",
"workbuddy wsl", "局域网远程"). The first walks through signing in to
ChatGPT, picking a codex/... model for Claude Code, tier mapping,
effort, usage windows, several accounts and switching back. The second
covers 401/403, 429 and rests, 502/504, unknown models, a model the
agent doesn't list, port 3425, WSL, the LAN and moved subscriptions.
Claims were checked against internal/gateway, internal/provider,
internal/agent, internal/agentenv and i18n.js; unsupported ones were
dropped (WorkBuddy is not a WSL agent, no ChatGPT Business). Linked
from subscriptions, claude-code-models and start in each language,
sitemap.xml, llms.txt and the rebuilt llms-full.txt.
Run (mote): node --test worker.test.mjs install.test.mjs: 71 pass,
0 fail. Each new page's JSON-LD parsed with node.
Not tried: the pages in a real browser beyond the deployed 200 check.
takomitkm (plugins#438) hit two problems. The busy hold armed with one
account and one agent. A GLM Coding Plan model's weekly or monthly limit
(1310) also rested the whole account, so its -Trial models got the
cached 1310 without being asked. zcode 0.1.58 (ea3573bf in the plugins
repo, on npm) fixes the first in the plugin and lists the -Trial entries
free. magpie's PaidBesideFree then rests only the refused coding-plan
model. Raising the min brings every moved user up to 0.1.58.
TestZCodeCodingPlanLimitLeavesTrials holds both sides. With the trials
free, the 1310 rests GLM-5.3 alone and GLM-5.3-Trial is still sent. With
no free entries, or with another vendor, the same refusal still rests
the account. The fake plugin's $FAKE_ZCODE_FREE marks the trials free,
as 0.1.58 does.
Run (mote): go test ./internal/gateway -run 'TestZCode' -count=1, ok;
go test ./internal/provider ./internal/plugin -count=1, ok; go vet of
the three packages on mote, in WSL (magpie-desktop) and on Windows
(xiaomi-gpu), ok; gofmt -l is clean. All of this at this head, rebased
on origin/main. A whole-tree Linux vet in WSL stops at Wails' cgo
(webkitgtk-6.0 and gtk4 aren't installed there), so it doesn't cover
the GUI.
Broken by hand: with the fake's free mark dropped, the zcode 0.1.58
subtest fails, because the 1310 rests the account key.
Not tried: a real dual ZCode account that has reached its weekly limit.
Reported-by: takomitkm
13a9f1263 added GET /api/plugins/counts and POST /api/plugins/like,
with no command or notYet line, so TestEveryRouteHasACommandOrIsNamed
went red again right after 91d4eaa70. Both are plugin routes past what
`magpie plugin` does (stage 2).
Run on mote: go test -count=1 ./internal/cli/ ok at 13a9f1263's child
91d4eaa70 plus this; red on 91d4eaa70 alone, naming the two routes.
TestEveryRouteHasACommandOrIsNamed was red on origin/main: 6af54dc9a
added POST /api/library/plugins/probe and 71c4ef2d0 added POST
/api/settings/bark and POST /api/bark/test, none with a command or a
notYet line. plugins/probe goes with skills/probe (stage 3, the
library); Bark's server, key, daily time and test push are a setting
with its own route (stage 2).
Run on mote (macOS 27, Go 1.26.8): go test -count=1 ./internal/cli/ ok
at 6fa02550a plus this. Without it, the test fails naming the three
routes.
Discover showed npm's weekly downloads, which CI, mirrors and magpie's
own keepMovedCurrent updates inflate. Now each card and the hero say
how many people use a plugin, counted by magpie itself, and a plugin's
page has a like.
- The daily stats send (stats.Send) also POSTs usemagpie.ai
/api/plugins/report with the install id and the installed, switched-on
plugins Discover lists, by their Discover key: the npm name, or
github:owner/repo for a repository tagged magpie-plugin
(plugin.Public). A folder, a private repository or an unlisted
package is never named. It goes only while "Share the agents,
providers, models and plugins I use" is on (noUsageStats), and only
where the day's event goes at all (Count me as a user, DO_NOT_TRACK,
MAGPIE_NO_STATS, release builds).
- site/pluginstats.js on D1 magpie-plugins: users are the ids that
reported a plugin in the last 7 days, reports drop after 30 days, a
caller's address is kept only as a hash for an hour (60 asks an
hour). /api/plugins/stats carries no id and is cached for an hour.
- A like (POST /api/plugins/like through the GUI's /api/plugins/like)
is taken only for a plugin installed and on here, can be taken back,
and is kept in plugin-likes.json.
- "Most liked" sorts by likes once a plugin has 20, below that by
GitHub's stars.
- plugincounts.js is loaded with the Plugins page, not the core, and
redraws the cards only when the counts changed.
- The privacy text follows: README.md, README.zh-CN.md, docs/reference.md,
the site's privacy and start pages in en, zh and ja, llms-full.txt,
and the Privacy switch's label and description in every language.
Run at this tree (on origin/main 51da6f1f5):
- Windows box (win-run): gofmt -l clean; go vet of internal/stats,
internal/plugin, internal/gui ok for windows and linux (-tags nogui);
node --test site/pluginstats.test.mjs site/worker.test.mjs 44 of 44;
TestCoreScriptBudget, TestPluginCountsAndLikes ok; GUI old-webkit,
i18n-keys, privacy-usage-stats, plugin-git, plugin-local,
plugin-github in both engines: 45 of 46, the one red is #5919
(.side-foot:has, d374168d0).
- mote, one commit before the rebase onto 51da6f1f5 (Go unchanged
since): go vet darwin ok; TestSendPlugins, TestPublicPlugins,
TestPluginCountsAndLikes, TestCoreScriptBudget ok.
- Windows, at 7bc7af1d0 (one rebase earlier): go test internal/stats
ok; internal/plugin and internal/gui red only in TestPiPackage and
eight gui tests that fail the same at origin/main 72f2deebe on that
box (#4115, #5928; TestCherryStudioImportRow added to #4115 with its
cause). Every plugin*, market*, privacy*, i18n*, old-webkit* and
discover* GUI file (83 files, both engines, concurrency 4): the reds
left after the fix below match origin/main 6d7862769 on the same box,
or are flakes red there too under concurrency: plugin-update-button
(#4500), plugin-proxy-page (#6017, new), privacy-agent-telemetry
(#6018, new).
- Broken by hand, caught: the first run had `const like = !local && …`,
so a local plugin's page called false?.sync() every 600ms; 136
"like?.sync is not a function" errors across plugin-git, plugin-local,
plugin-github and the sign-in files. Fixed before this commit.
- Live: D1 magpie-plugins created and the worker deployed;
/api/plugins/stats answers {"plugins":{}}, a bad report or like 400,
/api/latest and / 200. No test data was written to production.
Not tried: the full Go suite and the full GUI suite. mote had 28 suites
waiting for its lock, and WSL on the Windows box failed with
E_UNEXPECTED while another session uninstalled a distro. Not tried
either: a real like or report from a release build (source builds
never send), so the first real counts come with this release.
ListenAndServe sets s.ln, then loads rests, acks, observers and groups,
and only then takes gwtool.Gate(), before the HTTP server starts. The
test waited for s.ln and checked Served at once, so on a loaded machine
it checked in that gap and read web search as still served. That was
the one red in a full -race run of internal/gateway on mote (2272s).
No user sees the gap: nothing is served before the gate is taken. So
the test now waits, up to its own 10s, for the gate to close, and still
fails if it never does.
Run on mote:
- with time.Sleep(300ms) injected after `s.ln = ln`: the old test red
(search_plugin_test.go:151), this one green, -count=3 each;
- go vet -tags nogui ./internal/gateway; gofmt -l clean;
- go test -tags nogui -race -count=5 -run 'TestServingGatesTools$|Gate'
./internal/gateway: ok (150s).
Not run: the full suite again; the full -race gateway run before this
had this test as its only red.
71c4ef2d0 added BarkServer, BarkKey and BarkDaily, which the Settings
page doesn't send (POST /api/settings/bark sets them), and left them
unset in TestSettingsSaveKeepsWhatItDoesNotSend, so it was red on main
at 47e30d0e9 ("BarkServer: not sent by the Settings page; set it in
this test").
Run on mote: go test -run TestSettingsSave ./internal/gui ok; without
the change, red on origin/main 47e30d0e9 with the three Bark lines.
10c4dc109 posts /api/update/using on the window's first pointer or key
event. library-bar-more recorded every POST and compared the list to
["/api/library/skills/check"], so it went red in every subtest.
Run on mote, at 90f4a377b: library-bar-more.test.cjs, BROWSER=chromium 11/11 and
BROWSER=webkit 11/11. Before the change: 22 failures, the same at
origin/main 459405960.
A memory search now finds what means the same in other words or another
language ("什么时候上线" finds "Releases go out on Tuesdays"), for the
MCP server's memory_search and the Library's Memory tab alike. It is off
until switched on under Memory → Search by meaning, since it downloads
paraphrase-multilingual-MiniLM-L12-v2 (Xenova's int8 ONNX, ~135 MB,
pinned revision, size and sha256 checked); switched off, the model is
deleted.
- internal/pii/guard: the BERT code runs the embedder too (LoadEmbedder,
mean pooling; the tokenizer reads 250,002 pieces and WhitespaceSplit).
Its vectors match ONNX Runtime's int8 to cosine >= 0.995 and are no
further from fp32 than ORT's own; testdata carries both.
- internal/memembed: the switch, the download, vectors.bin keyed by each
memory's sha256 (read once, again when the text changes, a cut-short
file read as none), Keep reading in the backend, the model let go after
10 minutes unused.
- internal/memory: memory.Semantic fuses the meaning ranking with the word
ranking by reciprocal rank; a tie goes to the nearer in meaning, since
a first word hit may hold one common word ("when do we release" had
"Never delete images when..." first). Near 0.30 / Within 0.15 come from
97 real memories and 16 queries, half Chinese for English memories:
12 of 16 sought found with ~4 others each. Rank searches without noting
memories used.
- GUI: the Search by meaning row (download %, memories read, failures),
and the tab's search lists what the backend ranked first
(POST /api/memory/rank), then word matches. zh, zh-TW, ja, de.
- docs/subsystems/memory.md: the section, out of "Not built yet".
Why not multilingual-e5-small, which this was built on first: run for
real, its cosines sat at 0.78-0.89 for everything, and a Chinese search
ranked Chinese memories over the English one it meant. e5-small, e5-base
and MiniLM were compared in ONNX Runtime on the same 97 memories; MiniLM
put the sought one first 9 of 16 and in the top 3 12 of 16, with the
rest at a median cosine of 0.16.
Run before the rebases (mote, on origin/main as of the work):
- gofmt -l internal/ clean; go vet of memembed, memory, pii/..., gui,
library; GOOS=linux and GOOS=windows vet of memembed and pii/guard.
- MAGPIE_EMBED_DIR=~/models/pml go test -run Embedder ./internal/pii/guard:
7 texts (CJK, full width, emoji, digits before runs of spaces) at
0.9962-1.0000 with ORT int8.
- go test memembed, memory, memdistill, pii/..., library, browsermcp.
- Linux (magpie-desktop, -tags nogui, mote's disk was full): go test
memembed, memory, pii/guard, gui (461s), cli (1228s, past the default
10m timeout, so -timeout 30m); gateway -run 'MemoryMCP|OwnMCP'.
- Rebased on origin/main 3ebb1ba2c, on mote at this tree: gofmt -l
internal/ clean; go vet of memembed, memory, pii/..., library, gui,
gateway, and GOOS=linux and GOOS=windows vet of the first four; go
test memembed, memory, pii/..., library, browsermcp (Embedder test on
~/models/pml); gateway -run 'MemoryMCP|OwnMCP'; cli -run
'Settings|Parity|Budget'.
- Rebased again on origin/main 5d6935b11 (title bar, cli parity,
account export, provider catalog): go vet of gui and cli; go test -run
'Settings|Parity|Budget' of cli and gui, ok with the Bark test fix two
commits up (TestSettingsSaveKeepsWhatItDoesNotSend, red on main).
- GUI on mote, this commit plus the next (90f4a377b, which fixes
library-bar-more for #5982): every library-*.test.cjs, i18n-keys and
i18n-en-no-cjk, BROWSER=chromium and webkit, 701/702 each. The red is
library-loading's tab list, which has no "Claude plugins" (6af54dc9a)
and is red alone at origin/main faffb1e95 (#5997). library-bili's
webkit saved count times out about 1 run in 3, on main too (#6015).
- A real switch-on: the pinned files downloaded from Hugging Face and
checked in 11s, 5 memories read; 什么时候上线, 端口被占用怎么办, 清理磁盘,
回复用什么语言 and "when do we release" each find their memory first.
缩进用什么 finds nothing (0.23 to the tabs memory, under Near).
- Broken by hand: without the tie rule, TestSearchFindsByMeaning's new
case is red (images first).
Not run: the whole Go suite and the whole GUI suite; go test of
internal/gui and the whole of internal/cli after the rebases (WSL kept
restarting, and they passed on Linux before).
What a request held (heldFor) and what was kept across requests (keptFor:
the catalog, the switched-off providers' models, the groups) were dropped
only when the next request looked. With no request after it they stayed
for the life of the process: with a copy of the real accounts, an idle
magpie's end heap held 7.5 MB of catalog built at start by RenameLegacy
(catalogKept and entriesOf, through piOffered), 16.8% of a 47 MB heap,
for nothing that would read it again.
Now a request that holds or keeps something arms a sweep for when the
first of it is past its time; the sweep drops what is past and arms again
for the next of the rest, or stops when nothing is left. It reads the
durations as the arm read them, so a test setting heldFor meanwhile is
not raced, and a sooner time arms a sooner sweep than one already armed.
TestHeldAndKeptGoWithNoRequestAfter is red with the arm removed (6 held
and 1 kept 10s after the request).
-race on internal/provider: TestSignInDoneOnceTheAccountIsBack (#3100)
and TestPluginCheckinAsksAgainAtUntil (#6014, filed now) race the same
way on origin/main 72f2deebe; the new test passes under -race -count=3.
Ran on mote: go test ./internal/gateway ./internal/agent ./internal/gui
ok at the base 72f2deebe; ./internal/provider ok alone there (in the
four-package run TestCodexListTagNotKeptOverAFreshFile was red under load,
#4216; it passes -count=20 alone). Rebased on 47e30d0e9 (internal/provider
changed): go test ./internal/provider ok, GOOS=windows go vet ./... and
GOOS=linux go vet -tags nogui ./... ok at this head.
Not measured yet: the idle footprint with the real-account copy.
v0.1.3624 added the .modal-grip strip but it could not work on the Mac:
there the scrim begins under the bar (body.window.mac .modal top: 50px),
so the strip sat below the bar, while the bar itself (header, sidebar top)
is inert whilst a dialog is open (modalBackground), and an inert element
is not hit, so nothing there carried --wails-draggable. On Windows and
Linux the strip worked only at the sides: the dialog's 16-28px top padding
let a tall dialog (the provider editor) lie over the strip's middle.
Now on the Mac the strip reaches up over the bar (top: -grip height; a
fixed child would not do, the scrim's backdrop-filter is its containing
block), and off the Mac the scrim's top padding is at least the strip's
height so no dialog lies over it. docs/subsystems/gui-shell.md updated.
Run (mote-run, chromium and webkit): modal-title-drag.test.cjs gains
"the middle of the title bar drags with a tall dialog open" (web and mac
classes, 5 x 3 points along the bar, header inert): 0 of 4 on the old css,
4 of 4 now. With modal-*, dialog-*, add-sheet*, signin-closes-sheet,
sidebar*, click-scroll, panel-drag-linux, title-bar-tools, i18n-keys,
popover-mac-chrome, editor-roomy: 351 pass; the 3 reds of that run
(modal-centred-late, sidebar-overlay-scrollbar webkit, title-bar-tools
zh-TW webkit) pass 36 of 36 rerun alone at this tree, and
sidebar-overlay-scrollbar webkit also failed once on the base (load).
Not tried: a real drag in the signed macOS app (the test checks the
--wails-draggable value under the pointer, which Wails reads); the
confirmation (action-confirm, top layer) still has no strip.
Claude Code's chats on Antigravity answered 429 "Resource has been
exhausted" again. Reproduced on the owner's real Antigravity account with
Claude Code 2.1.316's own system blocks (claude -p captured through a
local server): both x-anthropic-billing-header and "built on Anthropic's
Claude Agent SDK" are still turned away, and the first-letter break the
cloak made ("x", U+200B, "-anthropic...", "b", U+200B, "uilt on ...") is
turned away too, so the cloak did nothing. Bisected on the account:
a break after the second character, two breaks, or a break in each word
of the line go through (3 of 3 each); a break after the third character
of "x-a" does not. Codex's and Hermes' lines now go through as written.
antigravityCloak now puts a zero-width space after the first and the
second character of every run of three or more letters or digits in each
matched line. The full captured Claude Code prompt with that transform
was answered 3 of 3 on the real account. The refusal is still told
against the prompt as written (hint, 400, no rest), unchanged.
Run: go test -run Antigravity ./internal/gateway on mote (ok), gofmt,
go vet darwin, linux nogui, windows. New TestAntigravityCloakClaudeCode2316
pins the real prompt's output. antigravity_codex_test.go and the Codex
check in antigravity_cloak_test.go read the sent prompt past the breaks.
The old test expectation (first letter only) was changed, not broken by
hand: the old code can't compile against the new helper.
Not run: the full suite (started after the tag), a sandbox magpie binary
(the transform was sent through the live gateway's real account), Hermes
and Codex lines against the real account beyond "as written goes through".
The community plugins carry the same cloak and are fixed in
magpie-community/plugins (antigravity 0.1.1, antigravity-cloak 0.1.3).
Vertex AI could only be signed with gcloud credentials and a project id.
A provider now takes one API key instead: a Key with no project is Vertex
express mode, asked at https://aiplatform.googleapis.com/v1/publishers/
google/models/<model>:streamGenerateContent with the key in x-goog-api-key
(Google's docs), no project, no token minted. Express serves Gemini
models only, so Base(Chat)/Base(Anthropic) are empty and the models list
drops partner and Claude models. A key with a project is asked at the
project's address, signed by the key. Vertex.BaseURL (optional, /v1
stripped) replaces Google's host for a keyed provider, such as a proxy.
Security: a Google token or gcloud credentials go only to Google's own
address. A BaseURL is honoured only with a key, and the key is the only
credential sent there; without a key Save refuses it and a providers.json
holding one has it dropped on load.
Wired through: provider.Save/normalize/Sign/Base/planModels, `magpie
provider add google-vertex <key>`, `provider key`, `provider set ... url=`,
`provider <id>` and the list, the editor's API key and Base URL fields
(app.js, 4 translations each), the Providers row pill, and the
providers-accounts subsystem page.
Run (mote-run): gofmt -l clean; go vet for darwin, linux -tags nogui and
windows over ./...; go test -run Vertex for provider, cli, gui, gateway
and tui, all green, with new tests TestVertexExpressKey,
TestVertexExpressBaseURL, TestVertexExpressEditor (fake server) and the
gateway's TestVertexExpressStreams (chat, streamed and whole, asks
/v1/publishers/google/models/... with the key header, no token minted);
vertex-editor, i18n-keys and ledger-protocol GUI files in chromium and
webkit (en and zh editor flows; the i18n check covers zh, zh-TW, ja, de).
Broken by hand: Sign without x-goog-api-key turns the provider, gui and
gateway express tests red. The existing tests that pinned "a key is
refused" now pin the new rules.
Not tried: a real Vertex AI key (no account on hand; the endpoint and
header are from Google's express-mode docs, the tests use fakes), the
full GUI suite in webkit, Windows and Linux runs of the tests.
Run: go test ./internal/library full (only TestEveryAgentInLibrary red, fixed here), ./internal/agent ok, vet darwin/windows/linux nogui ok, via mote-run.
The Antigravity app (agent "antigravity", the one magpie takes over) had no
Library target: only agy did, so the app's row offered no MCP servers,
skills or rules. antigravity.google/docs/skills and /mcp put the App's and
the CLI's user-wide skills and mcp_config.json in the same ~/.gemini/config,
so the app uses agy's paths (also in a project's .agents/skills).
Run: TestAntigravityAppTarget red on the old code (target nil), green now;
go test ./internal/library ./internal/agent and darwin/windows/linux vet via
mote-run (see push). Not tried: the real app reading a magpie-written
mcp_config.json (no app on this machine; the docs say it does).
askTranslated's event goroutine can outlive the request that started it:
probeTranslated (a model test) returns at the first word and leaves the
reader to see the cancel. The reader, and the keepThroughSilence ticker
it starts, read the globals keepaliveEvery and keepaliveGap themselves,
so a later test's keepFast wrote them with no order between the two, and
-race failed TestQueuedStreamKeptAliveForTheMinute/chat on ubuntu CI
(run 42866003708, at 90f9f01a2). keepThroughSilence now takes the
interval as an argument; askTranslated reads both values on the
request's goroutine before starting the reader, and continuation.go
(whose reader runs on its handler) passes keepaliveEvery.
TestTranslatedReaderReadsNoKeepaliveLater asks a translated round, reads
the first word, then writes the intervals while the reader still runs,
as a model test leaves it.
Run on mote (macOS), -tags nogui:
- go vet ./internal/gateway: ok.
- go test -race -count=3 -run 'TestTranslatedReaderReadsNoKeepaliveLater|
TestQueuedStreamKeptAlive|TestTranslatedStreamKeepsClientAlive|
TestAntigravityModelTest' ./internal/gateway: ok (67.7s).
- Broken by hand: the new test on the old search.go, gateway.go and
continuation.go goes red under -race (DATA RACE, FAIL in 0.01s).
- go test -race -timeout 45m ./internal/gateway: every test ok except
TestServingGatesTools (0.04s), which passes alone -race -count=5 on
this tree and does not touch the changed code. It is filed on its own
issue; its full output was lost when the log was rewritten.
Not tried: Linux and Windows (wsl-run failed with E_UNEXPECTED).
Settings > Usage has a Bark row: a server (default https://api.day.app, or
a self-hosted one) and the device key, then Test and Remove. Every alert
that goes through notifier.sendAs (allowance, balance, reset reminder, task
done, masking, sign-in) is also pushed to Bark when a key is set, whether or
not the system lets this computer notify. A second row, once a key is set,
turns on a daily summary at a time of day: today's cost and request count,
and each window or balance near its cap (the Allowance alert's share, else
80%), capped at 8 lines. It is pushed once a day (a restart does not resend;
a failed push is retried every 15 minutes; one more than 6 hours late is
left), in the page's language (en, zh, zh-TW, ja, de).
The device key is a key: the page only gets barkKeySet, never the key; it has
its own route (POST /api/settings/bark, key omitted keeps it, "" removes it),
a Settings save carries it (settingsapi.Merge), and a backup or sync without
keys leaves it out and keeps this machine's. No log line or error names it
(the Bark client replaces it with "..." in what the server or client says).
bark.js is a lazy module so app.js (budget) gains one line.
Run (mote, at the pushed tree before the rebase onto 6d7862769):
- go test ./internal/bark ./internal/settings ./internal/settingsapi
./internal/backup ./internal/davsync ./internal/provider: ok.
- go test -run 'Bark|AlertsGoTo|GitHubToken' ./internal/gui: ok. go vet
darwin, GOOS=linux -tags nogui and GOOS=windows over gui, bark, settings:
clean. gofmt -l: clean.
- GUI: bark.test.cjs (5 languages x 900/380px x chromium/webkit), i18n-keys,
i18n-en-no-cjk, usage-alert: pass. Whole GUI suite started; reds so far are
in account/agent/checkin tests that do not touch Settings or Bark, filed
separately after this tag; old-webkit's Safari 15.0 :has() is #5919.
- All against fake servers; nothing reaches the network.
Broken by hand, each went red: no barkPush in sendAs
(TestAlertsGoToBark), BarkKeySet forced true / key shown (TestBarkSettingAndTest),
no same-day check in the daily step (TestBarkDailyStep).
Not tried: a real Bark device or the real api.day.app; win-run and wsl-run
(vet only for those OSes); a self-hosted Bark server.
Alma on Responses to Antigravity's Gemini 3.8 Flash got "an empty reply"
now and then in multi-turn tool turns, and each account's in-place
re-asks plus the next account took 8 to 9 tries over 10+ minutes. A reply
that said nothing on a second account of the same provider's model is
about the request, not the account: the model's remaining accounts are
not asked (emptyAccounts = 2, `emptied` in the candidate loop). Other
providers and a group's other members still are, and nobody rests (the
#1221 branch is unchanged).
Cause of the empty reply itself: NOT found. Chat and Responses build
byte-identical Code Assist contents for a tool conversation (compared),
and about 50 real-account runs in a sandbox HOME (Antigravity login only)
across efforts none to xhigh, multi-user-turn tool loops over both
protocols, gave no empty reply. It looks like upstream's occasional
behaviour (#667 / #1221), so this commit bounds the cost and does not
claim a translation fix.
Run (mote-run): TestEmptyReplyOnTwoAccountsEndsTheRequest (Responses and
Chat; 5 accounts), TestGeminiEmpty*, TestLateRests*, full
./internal/gateway, gofmt, go vet darwin/linux/windows (nogui).
Broken by hand: with gateway.go's change reverted the new test is red
(12 asks, 5 accounts tried; 8 asks and 2 accounts with it).
Not tried: a real Alma turn on an account that returns the empty reply.
opencode-grok-auth 0.2.7 (npm, confirmed with npm view --prefer-online)
sends /v1/audio/transcriptions to api.x.ai/v1/stt, the route Grok Build's
voice dictation uses, so a moved user gets it through keepMovedCurrent.
Images already reach Grok: a real 64x64 PNG through the plugin's fetch
answered "Red", and the models declare image input.
Run: gofmt -l clean; go vet darwin, linux nogui, windows on
internal/provider; go test -run TestMovedBuiltins|Mover|Grok on
internal/provider; the plugin's own bun suite (112 pass) in the plugins
repo with a real ~/.grok sign-in transcribing a wav. Broke by hand: the
plugin's transcription branch removed, 4 of its 5 new tests red.
Not tried: a built magpie gateway end to end; the full suite before
the tag (started after).
A Claude Code plugin (.claude-plugin/plugin.json, skills/, agents/,
hooks/hooks.json, .mcp.json) can be installed into the Library from a
folder, a git address or a marketplace.json, and is one row: turned on, off
or removed as a whole, and given to the agents picked with the chips every
tab has. Its skills, MCP servers, hooks and subagents are ordinary library
items tagged Bundle: <plugin>, so each agent gets them through the code of
its kind and the Skills, MCP servers, Hooks and Subagents tabs go on
working. Off clears every part's agents and keeps them for on; Remove
removes the parts. A part whose name the library has gets the plugin's name
as a prefix, never over the user's own. Claude hook events and matchers map
to the portable ones; others become claude:<Event>, for Claude Code only.
Slash commands, LSP servers and non-command hooks are listed as not
carried, not dropped. internal/library/plugin.go, POST /api/library/plugins/*,
the Claude plugins tab in plugins/library/client.js (en, zh, zh-TW, ja, de),
docs/subsystems/library.md.
Run (mote): go test -tags nogui ./internal/library ./internal/gui
./internal/backup ./internal/davsync ok; gofmt clean; go vet darwin, linux
(-tags nogui) and windows clean. GUI, chromium and webkit, en zh zh-TW ja de
at 420 and 1100: library-plugins (new), library-hooks, library-subagents,
i18n-keys, i18n-en-no-cjk, click-scroll all pass. Whole GUI suite started
and cut short at ~460 of its tests: failing only account-dragging and
accounts-sheet (routing, untouched by this), not compared on origin/main.
Broken by hand: dropping the Off handling in givePlugin and the hookTakes
filter each turned the new Go tests red.
Not tried: a real Claude Code plugin from a marketplace, a git source
(tests use folders), WSL, Windows. Not carried yet: commands/*.md, LSP
servers, a plugin's folder across computers (a backup carries the parts, not
the plugin record).
stampedLists (each agent's magpie models, options, Codex's picks) builds
a list again once it is older than magpieModelsFor, but never let the old
one go. Every agent's list a window poll asked for once stayed for the
life of the process, though it would never be served again: with real
accounts, Pi's alone was 10.9 MB of an idle heap and dsh's 4.1 MB
(piOffered.sharedModels, dshRounds.magpieModels). Now a sweep, armed when
a list is kept, drops the lists past their minute and looks again when the
next of the rest will be; it stops when none is left.
Ran on mote at this head (rebased on 459405960; internal/agent again ok at 5df062f0f): go test ./internal/agent
./internal/gui ./internal/gateway ok; GOOS=windows and GOOS=linux go vet
./... ok. TestKeptListsPastTheirMinuteLetGo is red with the delete removed.
Measured with a copy of the real accounts, 600s idle, two runs each order:
Footprint at the end 114/91 MB before, 109/104 MB after, within the noise.
The end heaps of both still hold 7.5-11 MB of these lists: KeepDshWired
asks for dsh's every 30s, inside the minute, so they are rebuilt and kept
while it runs. The gain is for lists only a window asked for (Pi's
thinking levels, an agent's options) once the window is gone.
Not tried: a run without dsh wired, where the sweep would show.
Kunlin03 (Pro subscription, "Claude Code" switch off): the account's card
said "暂无额度数据". LoginUsage returns nothing for a provider magpie leaves
alone (switched off or removed, leftAlone), so /api/login/usage answered {}
and the card had neither a reading nor an error, although left_alone.go says
what was last known is still shown. Pro versus Max is not the cause: the
read itself (Claude Code's /usage) is the same for both.
LoginUsageShown, used by /api/login/usage and `magpie accounts`, answers such
an account from keepLast (its last reading, readDeferred, "not refreshed this
time") and, with none kept, errLeftAlone, which the card words as "Switched
off, so no allowance is read — switch it on and refresh" (4 languages).
LoginUsage itself is unchanged: warm-ups and switching act on it and must
not take a kept reading for a fresh one. Nothing is requested for a provider
left alone.
Not changed: the Usage page and a card refresh for an off provider (they
read through loginReading as before). Not tried with a real Claude Pro
account; the sandbox has none.
Run (mote): TestLoginUsageShownOfSwitchedOffClaude (red without errLeftAlone
in readDeferred), claude-off-usage-card.test.cjs in chromium and webkit, 5
languages, 2 widths (red with the quotaError branch removed), gofmt, vet
darwin/linux nogui/windows, the provider, cli and gui packages, i18n and
account/usage GUI files.
OipsAnthony on X: "magpie 设置 - 隐私,支持统一关闭所有 Agent 的遥测功能,
这个统一管理的地方优先级最高". v0.1.3562 gave Codex, Claude Code, Gemini
CLI and Qwen Code a Telemetry row each; there was no one switch for all.
Settings › Privacy now has "Turn off telemetry for all agents"
(settings.AgentTelemetryOff, POST /api/settings/agent-telemetry,
agent.SetTelemetryAll in internal/agent/telemetry_all.go):
- On: every agent found here with a telemetry switch is turned off through
its own switch and that switch's rules (only keys the file lacks are
written; a value of the user's own that keeps telemetry on is never
written over: the agent stays on and the reply's "refused" names it
and why). Each agent the switch turned off gets a stash marker,
<id>.telemetry.all. An agent found later is turned off on the next
state the window reads and by a one-minute gateway loop
(KeepTelemetryAllOff, in WhileServing).
- While on, each agent's own Telemetry row shows off, says "Off for all
agents in Settings › Privacy" and its buttons are disabled; the API
refuses it too (ErrTelemetryAllOff).
- Off: only the marked agents are turned back on, which takes out only
magpie's keys. An agent off by its own row or the user's own config
before stays off.
- An unreadable settings.json is unknown: nothing is written.
- The setting is per computer (KeepOwn) and the generic settings POST
can't change it (settingsapi.Merge carries it).
app.js pays for its ~650 bytes with ten Privacy-section comments cut
(core 1,533,550, under its 1,533,802 budget, no raise).
Run (mote, first on 10bef5fe0):
- go test -count=1 ./internal/agent ./internal/gui ./internal/cli
./internal/settings ./internal/settingsapi: ok, except gui's
TestSettingsSaveKeepsWhatItDoesNotSend, red as it should be for a new
field; with AgentTelemetryOff in its fixture it and the budget and
parity tests pass (-run).
- go vet ./..., GOOS=linux go vet -tags nogui ./..., GOOS=windows go vet
./...: clean. gofmt -l: clean.
- GUI, chromium and webkit: privacy-*.test.cjs (new
privacy-agent-telemetry: 5 languages x 1100/640px plus a refused case
in each engine, no scroll on click, no native select), i18n-*,
agent-telemetry, settings-search, click-scroll: 218 of 218 pass.
- The whole GUI suite (1,367 files) was started under ~/suite.lock and
never got it: lockf gave up after 4h with the lock held by other runs.
- Rebased on 6a81a3c62 (this commit's parent), again: go vet
./internal/... (darwin) and GOOS=windows vet of agent, gui, cli; the
Telemetry, budget, settings-keep, CLI parity and route tests; GUI
privacy-agent-telemetry, agent-telemetry, i18n-keys and
privacy-usage-stats in both engines: 64 of 64.
Broken by hand:
- no stash marker in keepTelemetryOff: TestTelemetryAllOff red, "Gemini
CLI not back on".
- SetTelemetry without the ErrTelemetryAllOff check: TestTelemetryAllOff
red, "Gemini CLI's row turned on under the switch".
Not tried: a real agent's config on this computer (sandbox HOME only);
Windows runs of the new Go tests (they skip there, a #! stand-in isn't a
command on Windows; the switch's code has no OS-specific path).
v0.1.3386 (ff7d84b9b) put "Settings › Privacy" in Insights › Masking's
head as a second button.text beside Turn off masking. The whole GUI
suite, run on mote after the tag, went red on it:
- mask-alert and masking-records "masking on, the page turns it off and
on again" found two button.text where Turn off is the only one
(all languages, both engines);
- masking-records "the card says what was kept" at de 640px: the two
buttons and the 7/30 days switch left the title a column ~60px wide,
the head 276px tall, and the first request at 907px, past 760.
Now the link is a .link (as on Plugins › Built-in), and .msk-head wraps
whenever its title would be narrower than 16em, in place of the
600px media query. de 640px: head 107px, first request 738px.
Run on mote: node --test masking-records, mask-alert, builtin-places
(Chromium and WebKit, every language): 218 pass, 0 fail. Red before
this on the same files (gui-full.log of the post-tag run).
The rest of that post-tag GUI run is triaged separately; mote rebooted
mid-run twice, and its other reds are in files this change doesn't
reach.
The switch (#1642) only narrowed the Agents page's pickers. Codex's own list,
which the gateway hands it beside its sign-in and as the Codex app's list
file, kept every model of the ChatGPT account, also with the Codex provider
switched off. codexMerged now leaves the sign-in's visible models out when the
switch is off (provider.CodexOwnLeftOut); the model Codex is set to, models
magpie serves on a ChatGPT account and hidden jobs stay, and the list's ETag
carries the switch so Codex asks again. Codex has one openai_base_url for every
model, so one it is still set to goes through the gateway to OpenAI on its own
sign-in; a model of it can't be sent direct beside magpie's models.
Run: TestCodexListWithOwnModelsOff, red with the filter turned off (own models
all listed, ETag unchanged); gateway, provider tests at this tree.
Not tried: a real Codex app against the list.
Discover and the new Install button took TestCoreScriptBudget 2,766
bytes over. The README's Markdown renderer moves to pluginmd.js,
imported once plugins.js has run; the core is 1,531,323 of 1,533,802,
no raise. markdown and mdLoad stay function declarations: as consts,
window.mdRender = markdown at the top of plugins.js threw "Cannot
access 'markdown' before initialization" and every page failed (the
first WSL run). The Library's skill files read through window.mdRender
too, so the import isn't left for the Plugins page to open.
old-webkit lists pluginmd.js with the other lazily loaded files.
Run record: the Discover commit's (same push).
The owner picked option C of four: "一个个大安装像一个个补丁". Install,
Move and a list's Sign in are a 1px ring (--ring-act, the text colour
at 15%) round body-coloured text, with a download arrow before
Install; hover fills it grey; Update is the same ring in green; the
detail page's main action keeps its accent fill. Browsers without
color-mix() (Safari before 16.2) get --line for the ring, which
old-webkit's check asked for.
plugin-update-button and plugin-market assert the ring and the fill
of the new look. Run record: the Discover commit's (same push).
The owner asked for one market instead of three (magpie's community,
other npm authors and repositories tagged magpie-plugin on GitHub) and
approved the mockup: every plugin is the same card, its source said
under its name, a strip picks the kind and a menu the source. The top
is the week's picks: one a day from the community's most downloaded
not installed yet, the most downloaded and the most starred. A search
looks through every source at once, most used first. GitHub's slower
answer shows a word that it is being asked, and a failed ask a quiet
line with another go.
The GUI tests that named the three sections now find the cards by
source. plugin-manual-float picks Subscriptions so all 40 cards draw
(Discover's shelves cap at 6). plugin-github waits for WebKit's wheel
scroll to come to rest after reaching a card: it went on after the
last wheel, and the scroll that was measured as the click's was its
own (logged before, settled, open and closed: it moved before the
click, never after).
Run at 563b3dd92, the pushed head's tree (only messages changed since),
on origin/main 40fbec705:
- mote: gofmt -l internal/gui empty; go vet ./internal/gui,
GOOS=linux go vet -tags nogui, GOOS=windows go vet; go build,
GOOS=linux go build -tags nogui, GOOS=windows go build: ok.
go test ./internal/gui ./internal/plugin ok (TestCoreScriptBudget
in it).
- mote GUI, plugin*, old-webkit, market*, builtins, skill-edit, i18n*,
gui-*, about*, agent-plugin* files: 1,283 ok, 50 not ok, in
plugin-move-unserved (#4410), market-have (#5997), old-webkit's
app.css :has() (#5919), gui-ja's {model} (#5943),
plugin-signin-no-url (#5938), plugin-signed-out-account (#5998) and
plugin-card-update once; each red the same alone at origin/main
90f9f01a2, where plugin-card-update was red too.
- Rebased onto 459405960 (c4da9a97d's title-bar drag in app.js and
app.css among it): gofmt, go vet ./internal/gui and the Budget and
Script tests of internal/gui again: ok.
- Before the rebase (on 783cd0f84): the whole GUI suite on
magpie-desktop (WSL), its 132 red files again beside main: 95 red the
same on main (#4600, commented), key-replace red 3 of 3 alone on main
too; old-webkit's color-mix and plugin-github were this change's and
are fixed; library-hooks, -items, -loading and -subagents red the
same alone on main (#5997).
Not tried: the real app; screenshots come from the GUI test pages.