providersState asked GroupFinder for a group's members once for every
agent on that group, and again for the gateway's group list, and each
ask built every member anew (a Member is 1408 bytes). groupsOnce keeps
what was found for the page's build; the page only reads it.
/api/providers grew five lists by append, each of large elements:
a group's members (Member, 1408 bytes) in membersFound, the picks a
vendor list lacks (catalog.Model) in providerInfoWith, and the
Providers and Presets lists of providersState. Each is now made once
at its count. membersFound also clones a member's path and builds its
key only after the checks that pass it over, and a group with no
member found still gives nil.
A Codex turn kept on a Responses WebSocket sends only the new items as a
delta, but the row's ↑ was the whole HTTP body magpie built before the
transport ran, so a long conversation read as ~13MB up per turn
(matrix0487 on Discord). overSocket now records what each socket write
carried (wroteSocket) and, when the turn went out on the socket alone,
replaces the HTTP figure with those bytes (sentOnSocket); a turn that fell
back to HTTP keeps the HTTP body and adds any socket write made before the
fallback. errCodexSocketAgain's retry on a new socket counts both writes.
The row remembers that it went over the socket: Record.Socket (json "ws"),
packed as Flags bit 16384 (rowSocket, added to TestRowFlagsApart). The
Requests table's protocol badge says "Responses · WS" and the details'
Protocol line "Responses · WebSocket".
Run on mote at this commit (rebased on origin/main b4a0a2a1a): gofmt -l
clean; GOOS=linux and GOOS=windows go vet of internal/gateway and
internal/usage; go test ./internal/usage ./internal/gui ok; go test
./internal/gateway -run 'Codex|UpBytes|Ledger|Socket' ok; node --test of
every ledger-*, usage-ledger* GUI file and i18n-keys, 502 of 511, both
engines. The reds are filed and untouched by this change: ledger-swipe
webkit (#5223) and usage-ledger's "newest live route needs no
return-to-live button" (#3104, #4078, #4626, #5048).
Broken by hand: without the deferred sentOnSocket,
TestCodexSocketRowCountsWhatTheSocketSent reads 50,360 B for a 253 B
delta; without the Flags set, TestRowKeepsSocket's packed rows lose
Socket.
Not tried: a real Codex Pro account over the socket, and the full suite
(it runs after the tag). There is no "saved by the socket" figure yet,
since PlainBytes isn't packed.
Reported-by: matrix0487 (Discord)
The Memory tab gets a second row under Learn from conversations. It is
off by default. Switched on, the first tidy is due at the next 03:00.
Tidy now runs one at once, and Undo puts the last one back. While
distillation is off, the row has its own model picker; both rows share
one model.
Routes: POST /api/memory/dream {on}, /dream/run and /dream/undo.
GET /api/memory/distill carries "dreaming", so a tidy no longer shows
as conversations being read.
The prompt's stale rule is narrower. On the first real run it set aside
two decisions because "the work is done". Now only a note that later
notes contradict, one past its date, or one about a finished one-off
task is stale; a decision, direction or preference stays.
docs/subsystems/memory.md gets a Dreaming section.
Real run: a sandbox memory.json of 62 real distilled memories, 12 active
and one each user-written and pinned, with auto/claude-haiku-5-5 through
the live gateway.
- Before the prompt change: 12 changes in 48s, 10 merges and 2 set aside.
Both set-aside notes were decisions.
- After: 12 merges in 46s, none set aside. Each merge joins real
duplicates (three ~/.codex/sessions cleanup rules into one, the
TestFlight 1.66/1.68 pair). One went into the fixed memory, whose text
was kept word for word.
- Undo: 25 restored. memory.json's ids and statuses equal the backup
taken before the run, and every merged memory is gone.
Broken by hand, each red:
- Undo not reloading the list: library-memory 22 failed.
- Ignoring DreamSince: TestDreamsOnceANight.
- A plan applied after an error: TestDreamFailureChangesNothing.
- Tidy's fixed guard and Untidy's status check: their memory tests.
Run on mote at this tree:
- go test internal/memory, memdistill, library: ok.
- internal/gui -run 'Distill|Dream|I18n|Budget': ok.
- library-memory.test.cjs: 22/22 in both engines.
- i18n-keys and i18n-en-no-cjk: 4/4 each.
- go vet (darwin), GOOS=linux -tags nogui, GOOS=windows: ok.
Not run yet: the full suite at this head.
370d2fd5f gave the Library plugin its own "no model" string, and
internal/agent's antigravity_test.go says those words too, so i18n-keys'
"a plugin's words are its own" went red. The note now uses the core
"No models", which is already translated.
Run on mote: i18n-keys 4/4, i18n-en-no-cjk 4/4 and library-memory 22/22,
all with the P3 GUI change in the tree too.
The Memory tab gets a row that reads finished conversations into
candidate memories (To review). It is off until switched on; switched
on it reads at once, then hourly (5 minutes after start, then every
hour), through the gateway this process serves under the agent
"memory", with the automatic model unless one is picked through the
app's menu. Read now runs it again; a run that stopped says why.
- memdistill: Keep (the hourly loop) and Running.
- gui: /api/memory/distill (GET, POST {on, model}), /distill/run;
distillComplete posts /v1/messages to the served gateway's handler
with the memory agent's token.
- library client: the row, its poll while a run goes, and the
memories reloaded when it ends; strings in zh, zh-TW, ja, de.
- docs/subsystems/memory.md: a Distillation section.
Run (mote, at this tree):
- go vet ./internal/gui ./internal/memdistill ./internal/memory; GOOS=linux
-tags nogui and GOOS=windows vet of gui and memdistill: clean.
- go test ./internal/gui ./internal/memdistill ./internal/memory
./internal/library: ok.
- node --test internal/gui/tests/library-memory.test.cjs: 22/22, Chromium
and WebKit, 5 languages, 980 and 420.
Broken by hand:
- the memories not reloaded after a run: the GUI test is red waiting
for the proposed memory.
- the token not the memory agent's (earlier): TestDistillCompleteThroughGateway
red on the Trace's agent.
Not tried yet: a real model's run (next), the whole GUI suite (queued
behind the suite lock on mote), the full Go suite.
A tab after Instructions lists what the agents remember, in use, to
review (what an agent only guessed) and archived, pinned first then
newest; searches it, narrows it by where it applies, and adds, edits,
pins, keeps, archives and deletes memories (Delete asks with a second
click). Kind and scope are picked from the app's menu, never a <select>.
A card on top switches the digest in the ticked agents' instructions on
or off and names those agents, and offers Magpie Memory while it isn't
in the Library.
/api/memory (GET; POST saves the user's own or edits by id),
/api/memory/remove and /api/memory/digest; a change publishes the digest
at once and its reply carries `problem` when that failed.
Words other code also says (Archived, Pin, Keep, the kinds…) are in core
i18n.js; the rest in the library plugin's, in zh, zh-TW, ja and de.
docs/subsystems/memory.md describes the layer.
Run (mote-run):
- node --test internal/gui/tests/library-memory.test.cjs, Chromium and
WebKit, 5 languages, 980 and 420 wide: ok
- whole GUI suite: not run at this commit; it is queued on mote for the stack head (034f249af before the rebase)
- go vet ./internal/gui, GOOS darwin, linux, windows: ok
Broken by hand: the pinned sort read `b.pinned - a.pinned` (NaN for an
unpinned one) and the test was red in every language until `!!`.
Looked at: screenshots en light 980, zh dark 980, en 420.
precis1onz (iOS Safari, dark, English, Usage) saw the page move sideways
and a dark band stay at the screen's foot.
- Sideways: Usage → Requests' "Split by" row (label and five choices) is
one unwrapped span, 393 to 558px wide at 375 to 430px. It was the only
thing wider than a phone in any view or language. On the phone layout
it now wraps inside the screen (app.css, phone block only).
- The band: the Requests table's stand-in scrollbar (#799) is sticky at
the view's foot, and a touch screen draws no bar in it, so it stood
there as an empty 12px band. ledHScroll now leaves it hidden on
(hover: none) and (pointer: coarse); a finger moves the table itself.
A desktop keeps it as before.
New test, phone-no-sideways.test.cjs: every view (Agents, Sessions,
Providers, Routing, Groups, Gateway, Library, Plugins, Masking, each
Usage tab, Settings' tabs) on an iPhone at 375 in en, zh, zh-TW, ja, de
and at 390 and 430 in en, in Chromium and WebKit, with long ids, emails
and paths; nothing may be wider than the screen and no empty band may
stay sticky at a view's foot. ledger-swipe now expects no bar on a
phone, and that the swipe moves the table.
Run (mote, through mote-run):
- phone-no-sideways: red on the old assets (803d7747e) in every run,
led-split too wide plus the empty #ledHScroll at the foot; green on
the new in both engines, again at the rebased head with ledger-swipe
and usage-ledger-leave.
- mobile-web 14/14 in both engines with a real git base in the copy,
so the desktop layout matches the base.
- Every GUI file the change can reach (1485 tests, both engines): the
reds are all red on base and filed: mobile-web desktop subtests in a
copy without .git (#5013), phone-connect-menu 420 (#4706),
usage-agents-hide (#2276), usage-computers sync tick in Chromium
(#5224), usage-fold (#3415), usage-ledger Requests (#5048).
ledger-swipe in WebKit flakes on base too (#5223).
- go test -tags nogui ./internal/gui ok (size budgets), also at the
rebased head; gofmt clean; go vet for darwin, linux and windows ok.
Not run: the whole GUI and Go suites. The run was queued over two
hours behind mote's suite.lock and never started; the change touches
no Go code.
9won on Discord: WorkBuddy's Credits and Extra credits (and the intl
build's) could not be given a cap. The plugin sets those two aside
(the account stops at "Total credits"), and 51bdc985b let a window set
aside keep a cap set on it before, but offered no new one. Routing
already holds at such a window's own cap (WindowCaps.own, allowanceOf),
so only the meter refused.
Now a window set aside with a total (limit > 0) is a button too. Its
menu has no "Account's cap" item, since such a window never counts the
account's cap: "No cap on this window" is first and posts 0, and the
note says it has no cap. A window set aside with no total (Loomy's
永久积分, a bare balance) stays plain: there is no share or spent
amount a cap could read.
app.js pays for itself by five comments cut shorter; no budget raised
(TestCoreScriptBudget ok again at the rebased head, on origin/main
c3f91f449).
Run on mote: node --test window-cap (chromium and webkit, 420 and 1100,
en zh zh-TW ja de): 120 pass; window-cap-pool 40, account-cap 16,
i18n-keys 4 pass. go test ./internal/gui: ok after the last comment cut
(TestCoreScriptBudget 5 bytes over before it, the only red).
Broken by hand: the old guard back, window-cap's new test 20 of 20 red.
Not tried: a real WorkBuddy account with a cap on Credits.
Reported-by: 9won_25273 (Discord)
40cbdaa7e's German for "{window} has a cap of its own: … used {n} of
{window}, until it renews" said {window} a third time ("bis {window} sich
erneuert"), so gui-de's "de has every zh string, with its placeholders and
tags" has been red on main since. It now says "bis es sich erneuert", as
the percentage cap's German beside it does, and "Klicken" as that one does.
Run on mote (macOS 27): gui-de and i18n-keys 7/7, TestCoreScriptBudget ok.
Red before: the same gui-de test failed on a clean origin/main 0d99261dc
copy (one {window} too many).
Subscription accounts (account discovery) are turned off in Settings ›
Privacy, and every subscription then stops working, but the Providers
page said nothing of it (the scattered settings audit after netube99 on
X). A line over the list, in the deprecation notices' quiet style, now
says they are off, with Settings › Privacy opening the switch, lit, and
Back to Providers. With MAGPIE_NO_ACCOUNTS set it says so instead. While
they are on there is no line. The core script budget is paid with three
comments cut, no raise.
Run on mote (macOS 27), Chromium and WebKit:
- new providers-discovery-off.test.cjs (every language, 1100 and 420
wide), account-discovery, i18n-keys, settings-back: 76/76.
- TestCoreScriptBudget and the app.js budget: ok.
- every file touching #movable (deprecated-subscriptions,
deprecation-notice, library-chip-fan, plugin-move, plugin-movable-review,
retired-move): green. plugin-move-unserved's "Try again takes the models
unticked" is red 4/4, the same 4 at a clean origin/main 0d99261dc copy
(the editor's model chip never shows); not this change.
Broken by hand, each red: no line drawn; the link opening Sign-in pages'
row instead; the MAGPIE_NO_ACCOUNTS wording dropped.
Not tried: the real app window.
Which agents' session history magpie reads is set in Settings › Privacy,
and the Sessions page it is about led there only through its first ask's
words (the scattered settings audit after netube99 on X). Its head now has
a Settings › that opens Privacy at those rows, lit, with Back to Sessions.
Gateway mode reads no agent's history and has no such rows, so no link.
Two things it found on the way:
- Privacy's session-history rows are drawn again when their read comes
back (loadSessionReads), which took the light off a row a link had just
lit; in Chromium it was gone before it showed. The redraw now keeps the
light on the row at the same place.
- The link takes ~70px of the head (en), and eight agents' tabs, which
fit a 1200px page (面条 on Discord), had 34px to spare. The search
now gives way to the tabs, down to its 110px least, before the agent
menu takes them; a narrow window's grid head is as before. The fit
watches the head, not the tabs' box the search's width changes, so no
ResizeObserver loop.
New test sessions-to-settings.test.cjs: the link's words, inside the head,
over nothing, the page fits; it lights Privacy's row; Back returns to
Sessions; none in gateway mode. Every language, Chromium and WebKit, at
1100 and 420 wide. sessions-toolbar now counts the link among the head's
controls that must fit.
Run on mote: every Sessions GUI file (13), gateway-conversations,
gateway-mode-sessions, i18n-keys and settings-back: 192 of 192.
Broken by hand: without the link, sessions-to-settings red; without the
redraw keeping the light, red in Chromium (timeout on the lit row);
without the search giving way, sessions-toolbar red ("a wide window keeps
the one-click agent tabs").
Not tried: the real app window.
providersState read provider.Catalog() only for its length and its
routing groups, and Catalog copies every listed model's Entry (1.6 KB
each): catalogKeeping was 11.5MB of 128.5MB allocated over 40 asks of
/api/providers on the real account. provider.CatalogGroups gives the
groups (the caller's own copy) and the count Catalog would have, by
the same Unlisted and group-unlisting rules, with no model copied.
Measured on mote with the real account copy (aalloc.sh, 40 asks,
alloc_space delta): 128.5MB (v0.1.3452) -> 115.4MB, -10%; 213.4MB
before v0.1.3446.
Run: go vet ./internal/provider ./internal/gui; go test -count=1
-timeout 45m ./internal/provider ./internal/gui (ok, ok) on mote. New
TestCatalogGroupsIsCatalogs compares it with Catalog with no groups, a
group listing alone beside an unlisted provider, and that group off;
counting the unlisted models too, by hand, makes it fail in all three.
Not tried: Windows and Linux (no OS-specific code).
A gateway key's limit is the Key limits built-in's (budget). With it
switched off, the editor under the key's row drew as usual, and Save was
refused with "turn the plugin on" without saying where (the scattered
settings audit after netube99 on X). The editor now has a line, shown
only while budget is off (data-feature-off), saying "Off in Plugins ›
Built-in" with a Turn on that switches it on in place; the line goes and
the editor stays open with its draft.
New test gateway-key-limit-off.test.cjs: off, the line shows inside the
editor with its words and the page fits; Turn on posts {id: budget, on:
true} once and hides it; on, it is hidden. Every language, Chromium and
WebKit, at 1000 and 420 wide.
Run on mote: gateway-key-limit-off 20 of 20; gateway-key-limit,
gateway-key-limits, gateway-key-cycle and i18n-keys 38 of 38.
Broken by hand: without data-feature-off the line shows when on, red;
without Turn on's call the line never goes, red (timeout).
Not tried: the real app window.
b72256b59 met the budget at its base, but a8aeb2cad, landed meanwhile, put
the core 21 bytes over it at the pushed head (1,533,823 > 1,533,802).
One comment in app.js cut to a line (the config reload on return), no raise.
Run on mote: TestCoreScriptBudget ok at this head (red at b72256b59).
The owner (11-10): "点击设置链接跳转到设置页面之后,最好有一个返回按钮来返回到上一页,
类似于浏览器的返回按钮。" A link into a setting (openSettingsAt: the Usage
page's and Routing's Settings ›, the Gateway page's, a provider's, Plugins ›
Built-in's) and Plugins › Built-in's link to a page now leave a chevron
Back in the title bar, before the crumb (beside the sidebar) or after the
brand (the header's tabs), named "Back to {page}". It goes to that page:
the provider that was open, or Settings' tab and search. One step, like
a browser's first; going to another page by hand drops it. fitTop counts
it as the header's lead, so the tabs keep clear of it.
And (the owner, 11-10): "绿色边框的四个圆角会被切掉,这个很丑的". A lit row's
inset ring was square inside the list's rounded clip, so the first and
last rows lost their ring's corners. A lit row is rounded as the list is
inside its border (11px; 10px in the panel, whose lists have no border).
New test settings-back.test.cjs: Usage's Settings › lights the row with
rounded corners, Back shows with its name, fits, overlaps nothing in the
title bar, and goes back; Routing's the same; a page picked by hand drops
Back. Every language, Chromium and WebKit, 1100 and 420 wide.
The core's script budget pays for Back with five long comments in app.js
cut to a line each (Back's own, Built-in's rows, the refresh, its spin's
stop, a growing part's hold), no raise; TestCoreScriptBudget ok on mote.
Run on mote: settings-back, i18n-keys, settings-places, title-bar-tools:
53 of 54; the red is title-bar-tools' known WebKit flake (#2740, #4716),
red 1 run in 3 alone, the same at the base.
Broken by hand: without renderBack in show, settings-back red; without the
11px radius, red with row 0 vs list 11.
Not tried: the real app window.
blrbrzkj on Discord asked to see usage from one time to another, not
only whole days. The range menu has a start and an end time under its
month (empty is the whole day; 9:30, 0930 and 09:30 all read 09:30).
Picked with the days, the period is "2026-10-01T09:30..2026-10-01T18:00";
Enter applies new times to the days already picked. A time that isn't
one, or an end not after the start on one day, is marked and asks for
nothing. The opt says "Oct 1 09:30 – 18:00".
The backend reads either end as a date or a date with its minute
(usage.RangeOf, bounds); an untimed end is its next midnight. A timed
range of 48 hours or less is drawn by the hour from the first's hour.
CSV names drop the colons.
Run (mote): node --test usage-range-times (new, chromium + webkit, en +
zh), usage-range, i18n-keys, credit-days: 26/26 ok. go test
./internal/usage ./internal/gui ok (TestCoreScriptBudget fits, the
periodDays comment cut to pay for its regex); gofmt clean; go vet
native, GOOS=windows (usage, gui), GOOS=linux (usage) ok.
Broken by hand: a timed end read as its day's midnight turns
TestPickedMinutesArePeriod red. The page's own typedTime first clashed
with app.js's hhmm and stopped the Usage page mounting; the GUI run
caught it.
Not tried: the real app with a real ledger; ja/de/zh-TW screens.
Reported-by: blrbrzkj (Discord)
00af08e7b made a renamed group answer to its old id (Former), so
TestGroupSaveRenames' "auto-gpt-6-astra is back" went red: FindGroup of
the old id now finds the renamed group, as it is meant to. The check is
now that what answers is gpt-6-astra, never a found auto- group back.
Run (mote): go test ./internal/gui ok, ./internal/usage ok; red at
3d49ac069 before this, 00af08e7b's own suite never ran (its log empty).
With 600 accounts the Claude provider editor took 7.9s to open in WebKit
(2.3s in Chromium). Each account's segmented control placed itself, and its
thumb, in a microtask of its own: a read after the last control's write, so
every control laid the editor out again. The thumb's place was read from
offsetLeft/offsetTop, scrollLeft and getComputedStyle. In a long list WebKit
answers those by walking every sibling before the element (~0.3ms each at
600 accounts), where getBoundingClientRect, offsetWidth and client/scroll
sizes are cheap.
- segs() queues its control. One microtask (segsFlush) places every control
due and slides them all together, with each container's controls counted
once (segsPlace takes a shared map).
- slides() reads every thumb's target, then writes them all. thumbsPut puts
them all with one reflow.
- thumbTo measures with rects (unscaled by offsetWidth) and reads scrollLeft
or scrollTop only when the strip overflows.
- thumbNow trusts the place it last put (thumbPlaced) unless a glide is
running, so it doesn't use computed style.
Measured at 600 accounts (time to open the editor, probe on mote):
| | WebKit | Chromium |
| --- | --- | --- |
| before | 7.9s | 2.3s |
| after | 1.13s | 0.58s |
What's left in WebKit is the editor's own two renders and openModal
(~670ms), which this commit doesn't touch.
The core scripts stay inside TestCoreScriptBudget: comments were cut to pay
for the code, and the budget wasn't raised.
New test: editor-thumbs-batched.test.cjs. It opens the editor with 40 and
with 160 accounts, in both engines and in en/zh/zh-TW/ja/de. It counts
forced layouts and the sibling-walking reads, holds 160 to 40's count +24,
and checks every thumb lies under its option within 1px.
Run at this head (rebased on ab3710de3), on mote:
- TestCoreScriptBudget: ok.
- editor-thumbs-batched, i18n-keys and quota-fit-batched: all ok, in both
engines.
- tencent-cloud: the "strip scrolled" test is red 4 of 4, as it is on main
(#4321). It fails before any click, at "the strip scrolls (0px)".
Run on the tree before the last comment trims (base 7e5cebb86):
- The 109 GUI files that touch thumbs, .segs, slide() or segsPlace, plus
i18n-keys: 2,099 tests, 39 red.
- The 7 files with reds were rerun at both the fix and the base. They give
the same reds on both (40 at fix, 39 at base; the extra one is skill-where
webkit, which is red only at base). Each is filed: tencent-cloud #4321,
settings-groups #5828, gateway-mode #3586, s3-sync #2448, skill-where
#5154, and masking-records #5830 (new). The panel-usage reds are the same
32 at fix and base.
Broken by hand, with the new test:
- Old assets: forced layouts 294 → 654 (WebKit), 296 → 656 (Chromium).
- thumbTo reading offsetLeft/offsetTop again: slow reads 650 → 1132
(WebKit), 787 → 1267 (Chromium).
- thumbNow on computed style again: slow reads 290 → 415 and 352 → 456.
Each goes red.
Not tried: the real app with 600 real accounts. The numbers come from the
page under Playwright's WebKit and Chromium with fake accounts. Not tried
in WebKitGTK either; there is no new browser API and no new motion.
The owner (11-09): "这两个卡片为什么贴在一起?" The Recent calls list and
the gateway's own settings card touched with no gap. The settings card now
has a Settings row-head of its own above it (the page's 14px head margin),
hidden with the card when the gateway built-in isn't found.
Run on mote: gateway-own-settings.test.cjs and i18n-keys.test.cjs, Chromium
and WebKit, every language, 1100 and 420 wide: 24 of 24.
Broken by hand: with the head and its hide line taken out, 20 of 20 red
(the head's text and the gap of at least 10px are checked).
Not tried: the real app window; the full GUI suite runs with the next commit.
The Usage page's periods were Today, 7 days, 30 days and All. "Today"
starts at midnight, so early in the day it shows almost nothing
(mahiro233 on Discord). A "24 hours" period now sits after Today and
asks the server for its rolling window, last:24h (#2075), with an
hourly chart. Its empty state says "No calls in the last 24 hours."
(en, zh, zh-TW, ja, de). The menu bar's credit days count it as 2.
The period picked from the list is kept in localStorage and the page
opens on it next time. Picked day ranges aren't kept (they go stale),
and neither is a period the URL brings (?period=7d from the menu bar).
Tests: usage-24h.test.cjs (new; Chromium and WebKit, en and zh, 900px):
24 hours sits after Today and asks for last:24h, its empty note, a
reload opens on the kept pick, ?period=7d is not kept. Five usage
tests counted the period list by index and were moved one along.
Run on mote at be2d2db5c + this change: usage-24h, usage-range,
usage-phone-head, usage-ledger, usage-ledger-chart,
usage-ledger-open-settled, usage-refresh-flight, credit-days,
tray-totals, usage-head-steady: pass 148, fail 6. The 6 are
usage-ledger's "newest live route needs no return-to-live button"
(en/zh, both engines), which fail the same 6 on be2d2db5c without
this change (#3104). i18n-keys ok; go test -run "Budget|I18n|Script"
./internal/gui ok. No budget raised.
Broken by hand: none beyond the index shifts the old tests caught.
Not tried: the real app with a day of real calls.
Reported-by: mahiro233 (Discord)
7d177985f put the four alert rows under an Alerts heading and hides the
heading and its list as one in gateway mode, not each row. gateway-mode's
agentRows still read each row's own hidden, so it went red in both engines
in the full GUI run ([false,true,true,true,true]). A row now counts as shown
when neither it nor its list and heading are hidden. What the user sees was
right; only the test read the old layout.
Run on mote: gateway-mode.test.cjs 6 of 6.
Broken by hand: with the heading and list left out of the gateway-mode
hide, chromium en and webkit en go red on "agents' rows in gateway mode".
The Sessions page asks /api/sessions/overview on every poll, and each
ask summed every session again (Stats.Overview: days, shapes, tool and
skill use, the top sessions) and encoded it, to the same answer while the
stats stood. The answer is now kept, encoded, by statsForGen's gen (it
moves only when the stats do) and the filters, the last 8 of them; the
Codex top rows' model and effort are added again only when
CodexModelEffort hands back another map (the map itself is held, so a
new one can't take the old one's address).
Measured on mote with the owner's real account copy (network blocked),
30 asks of /api/sessions/overview: 0.92s of CPU on v0.1.3435's tree,
0.24s with this (~31 ms -> ~8 ms an ask).
Run on mote: go vet + go test ./internal/gui, ok. TestOverviewSummed-
OncePerStats is red with the kept answer ignored by hand ("two asks of
the same stats summed 2 times, want 1").
Not tried: the GUI suite; the answer's bytes are json.Marshal plus a
newline, as the Encoder wrote them.
37c247d1f made the least the heap grows by 16 MB. TestSteadyGCRetunes-
AfterACollection waited for GOGC 100, which holds only for a live heap
under the room; a whole internal/gui run leaves ~22 MB, so it waited
for 100 against 72 and was red in the package run (alone it passed,
which is all 37c247d1f ran). It now waits for steadyPercent of the heap
the last collection left.
Run on mote: go test ./internal/gui, ok (red before at warm_gc_test.go:220,
"GOGC after collections = 72, want 100"); -run SteadyGCRetunes -count=3 ok.
steadyGCStart let a window's heap grow by half of what it holds (32 MB at
least) between collections. On a real account's history, ~100 MB live,
that rested at a 171 MB footprint with a 200 MB peak. A quarter (16 MB at
least) costs the polls nothing measurable and gives the memory back.
Measured on mote (macOS 27, M5 Pro) with the owner's real account copy,
network blocked, the v0.1.3435 tree:
- idle 115s: footprint 171 -> 146 MB, peak 200 -> 166 MB, CPU 0.33s both
- 60 busy rounds of state/providers/drift/sessions/overview: CPU 5.12s
-> 5.14s, footprint 157 -> 151 MB, peak 177 -> 169 MB
Run: go test -run 'Steady|GC|Tight' ./internal/gui on mote, ok; gofmt
clean. TestSteadyPercent's cases follow the new numbers.
ecc16fe97 ran TestCoreScriptBudget at fc9ce34d8; 3b550a99c, rebased in
under it, left 19 bytes, and the panel's unpriced wording (249 bytes)
took the core to 1,534,032, 230 over. Four of the quick panel's
comments cut, no raise.
Run on mote at this head: go test -run TestCoreScriptBudget
./internal/gui ok; panel-usage and i18n-keys 8/8; gofmt clean.
Reported-by: tenacious_eagle on Discord
The advanced fold takes its label column from edAlign, a ResizeObserver
that sets --ed-lab a frame or two after the editor opens. The test
measured the frame before: "the pattern field spans the models' column"
was red 1 of 3 runs on origin/main f37de8cc4 in chromium on mote (770 en,
333 vs 343). It now waits up to 2s for the pattern field and the models
to start at the same x, then asserts as before.
Run on mote: group-editor-fits.test.cjs 5 runs x both engines, 10/10 ok.
Broken by hand: the fold's column 10px narrower than --ed-lab, red.
Xerxes754 on X asked to bind a routing group to one or two gateway
keys, so other keys neither see nor use it. Before this a key could only
be held to models from its own side (naming group/<id> in its Models);
a key with no limits reached every group, and nothing on a group could
keep it from one.
A group now has Keys (key ids). Set, only those keys, and keys issued
under one of them, may use it:
- groupBarred/groupGiven in key_models.go answer it for every route that
reaches a group: chat, responses, messages, count_tokens, embeddings,
images, video, the decider and the subagent and image MCP paths. Any
other key gets 403 "bound to other gateway keys", naming the group and
the Routing page, and nothing goes upstream.
- /v1/models and /v1/models/{id} leave it out for any other key, a key
held to models that names it included. provider.GroupsBound keeps an
unbound magpie's list as before.
- A keyless request from this computer uses it, as key limits never
hold one; callerGuard now names a loopback request's key when it
sends one, so a key used locally is held too.
- SaveGroup keeps the stored keys when a save doesn't name them (the
CLI, the TUI, the card toggles); an empty list clears them. Ids are
trimmed, deduped and capped. Sharing a group leaves its keys out;
importing over one keeps them.
- GUI: Routing, a group's Edit, row "Gateway keys" (网关密钥) with a
button "Any gateway key" (任意网关密钥) that opens the app menu of the
user's keys (multi-pick); a bound key since deleted shows "key
deleted" (密钥已删除). The row shows once there is a key to bind.
/api/groups lists gatewayKeys (no browser, read-only or issued keys).
zh, zh-TW, ja, de strings.
- Not covered: a bound group nested in another group is reached through
the outer one (documented in gateway-routing.md).
Run (mote unless said), at this head rebased on ac4af5823:
- gofmt -l clean; go vet darwin for provider, gateway, gui; GOOS=windows
go vet for those and access; GOOS=linux go vet -tags nogui; go build.
- go test ./internal/gateway (full package, 905s), ./internal/gui,
./internal/access, ./internal/provider: ok. One provider run died on
workspaceSwitchReadsApart's concurrent map writes in its fake server,
#5800 already open; the rerun was ok.
- New: TestGroupBoundToKeysIsTheirsAlone, TestGroupKeysKeptBySaves-
ThatDontNameThem, TestGroupKeysListedAndSaved, and group-keys.test.cjs
(5 languages x 2 widths x chromium + webkit, deleted key, hidden row).
- GUI on mote: group-keys, i18n*, rt-*, *routing*, *group*, *budget*
files in both engines: ok. That run found a new group's editor
throwing on its missing keys (group-editor-align red); the draft now
gets keys like accounts. group-editor-fits was flaky on origin/main
too and is fixed in the next commit.
- Whole GUI suite on the Linux box (wsl-run, concurrency 4): still
running at push; its reds so far are in account-eye,
accounts-own-signin and accounts-switch-alone (webkit), files this
change doesn't reach.
- Real binary, sandbox HOME on mote, fake upstream, group bound in
providers.json: key A lists and uses group/team; key B doesn't list
it, gets 403 on chat (group/team and "team"), messages, count_tokens
and responses, 404 on /v1/models/group/team, and still uses fake/m1;
keyless local lists and uses it; upstream got 3 calls.
Broken by hand, each turned its Go test red: the issuer chain not
walked; an unheld key let through (groupGiven true); a held key's
groupAllowed ignoring the binding; SaveGroup not keeping nil keys.
Not tried: binding from the real app's window end to end (the e2e
bound by file), Windows and Linux runs of the Go tests; the CLI and TUI
can't set keys (they keep them).
The quick panel's Cost said "15 个没有价格" while the Usage page's
said "15 次调用没有已知价格,未计入". Both now say "{n} calls unpriced"
("15 次调用未计价"), as the page's other cost heads already did, with
the whole sentence on hover.
Reported-by: tenacious_eagle on Discord
The Usage page's plugin already had the two count keys; they live in the
core's i18n.js now that the quick panel says them too (i18n-keys: no key
twice, a plugin's words are its own). The Overview calls tile says the
same words, so usage-unpriced-sum's tile wording follows.
Run on mote at origin/main fc9ce34d8 + this: gofmt -l internal clean;
node --test i18n-keys, i18n-en-no-cjk, panel-usage, tray-totals,
usage-unpriced-names, usage-unpriced-sum, usage-stat-sub-wrap, currency,
usage-compact-counts 126/126; go test ./internal/gui ok (TestCoreScriptBudget
under its budget, not raised). usage-ledger's "newest live route needs no
return-to-live button" is red alone on fc9ce34d8 too (#3104, #5048).
With Settings › Privacy › Sign-in pages' "Open sign-in pages in the
browser" off, adding an account says "magpie didn't open the sign-in
page, as set in Settings" and gave no way to that setting (the
scattered settings audit after netube99 on X). That line now ends in a
Settings › link that opens Privacy and lights the row. The row stays
in Privacy: it is there for max2020's reason, a vendor seeing which
browser a user signs in from.
app.js's core budget is met by one comment cut beside it, no raise
(38 bytes over before the cut).
Run (mote, through mote-run, Chromium and WebKit): signin-link-only
(every language, both a link-only and an opened sign-in, which has no
link), video-gen-pick and i18n-keys, 78 of 78; TestCoreScriptBudget ok
after the cut.
Broken by hand: no link, signin-link-only red in Chromium.
Not tried: a real sign-in in the app; the whole GUI suite runs after
the last of these changes.
With no model that makes videos, Settings › Models › Images' Video
generation says to right-click a model in its provider's Model settings
and mark it a video model, on another page, with no way there (the
scattered settings audit after netube99 on X). The line now ends in a
Providers › link that opens that page. It is drawn in videogen.js, so
the core script doesn't grow.
Run (mote, through mote-run, Chromium and WebKit): video-gen-pick
(every language it covers, 1100 and 400), signin-link-only and
i18n-keys, 78 of 78; TestCoreScriptBudget and the I18n Go tests.
Broken by hand: no onclick, video-gen-pick red in Chromium.
Not tried: the real app's window; the whole GUI suite runs after the
last of these changes.
A skill check that ran into GitHub's 60-an-hour limit says "Add a
GitHub token in Settings → Network and sharing", in a status line that
fades and a tag's tooltip, and nothing there went to Settings (the
scattered settings audit after netube99 on X). The Not checked tag is
now a link when the limit was the one without a token: it opens
Settings › Network and sharing and lights the GitHub token's row. A
token's own limit has nothing to add there, so its tag stays plain.
github-token.test.cjs swaps its route between rounds with
unrouteAll({ behavior: "ignoreErrors" }): the click leaves Settings'
lazy files being served, and the old unroute made the next round's
handler fulfil a route already handled.
Run (mote, through mote-run): github-token.test.cjs, Chromium and
WebKit, en and zh, 8 of 8; github-token plus every
library-*.test.cjs before the route fix: 1211 pass, the one red that
route race.
Broken by hand: the tag never a link, 4 of 8 red (each limited case).
Not tried: the real app's window; the whole GUI suite runs after the
last of these changes.
The Usage page draws the allowances, but how they are shown (used or
left, the menu bar's figures) and their alerts are set in Settings ›
Allowances, and nothing on the page said so (the scattered settings
audit after netube99 on X). The allowances' head now has a Settings ›
link, as the Routing page has, that opens that tab and lights the
Allowance display row (now #quotaLeftRow). Wired in the usage plugin,
so the core script doesn't grow.
Run (mote, through mote-run, Chromium and WebKit, every language, 1100
and 420): settings-places, mobile-web (with an origin/main baseline;
the button is taken out until the baseline has it, as rtToSet is),
account-mask, quota-curve, i18n-keys: 89 of 89, twice. A first run had
one red whose name a tail cut off; the next two runs of the same files
were 89 of 89, so it is unnamed and not seen again.
Broken by hand: no onclick, settings-places 2 of 2 red (no row lit);
no #quotaLeftRow, 1 of 1 red.
At the pushed head (rebased on f37de8cc4, which changed plugin pages and
the core budget): Budget and I18n Go tests ok; settings-places,
i18n-keys, plugin-page 30 of 30.
Not tried: the real app's window; the whole GUI suite runs after the
last of these changes.
A plugin's page can now read one day's usage and share an image it
drew. This is for the day card (JungleyYeh on X asked for a "daily AI
statement"); the card itself is an optional community plugin,
@magpie-community/page-day-card.
- A page that asks for the "usage:day" read gets that day as
magpie.read("usage:day", {date, tz}): totals, each agent and its
models, the streak and the average active day (usageapi/day.go,
gui/pageday.go). The Plugins page names the read before it is granted.
- magpie.image.copy(png) and magpie.image.save(png, name) share a PNG
of at most 16 MB. In the window they go through
POST /api/plugin-pages/image (pageimage.go): copy puts the picture on
the clipboard (clipimage.go: osascript PNGf on macOS, PowerShell
PNG + Bitmap on Windows, wl-copy or xclip on Linux), and save writes
it to Downloads under a name made safe. In magpie web, the browser
saves or copies the picture itself.
- The window's side, pageshare.js, is imported the first time a page
shares a picture. The core grows by its one call only, paid for by
comments cut, so the budget is not raised.
Tests:
- New: TestDayOf, TestPluginPageReadsADay, TestPluginPageSharesAPicture,
TestPageImageName and TestClipImageCommand. plugin-page.test.cjs
covers the bridge, both engines and a refused SVG.
What was run (mote):
- gofmt, plus go vet on darwin, linux and windows: clean.
- Full go test ./... at the pre-rebase base: 369 packages ok, 3 FAILs.
- TestEveryRouteHasACommandOrIsNamed and TestCoreScriptBudget were
this change's own reds. The new route now has a parity entry, and
the share code moved into lazy pageshare.js with no raise.
- TestGatewayModeStatsNameTheGatewaySessions is #5690, the red in the
first hour of the day (it ran at 00:32).
- GUI suite (affected and plugin files, both engines): 1160 of 1179
passed. Every red is filed and none touches this change:
- i18n-keys "a plugin's words are its own": #5332, #5426, #5482.
- page-width-steady: #5013.
- plugin-card-update in WebKit: #3079.
- plugin-move-unserved "Try again": #4410.
- At this head, after the rebase on bc8b01d60:
- gofmt clean; go vet ./internal/... on darwin, linux (nogui) and
windows ok.
- internal/usageapi, internal/plugin and internal/cli ok.
- internal/gui: TestCoreScriptBudget, the TestPluginPage* tests and
the TestPageImage/TestClipImage tests pass.
- plugin-page and old-webkit (both engines): 12 of 12.
Real use:
- A sandbox HOME with a copy of real usage, through the real GUI
server, in Chromium and WebKit, light and dark, en/zh/zh-TW/ja/de, at
420 and 1100 px. The card showed 87.9M tokens, $9.85 and 4076 calls
with a 22-day streak.
- Picking an earlier day and WebKit's Copy ("Copied") worked, with no
page errors.
- Not tried at push: Chromium's Copy (its headless clipboard was
denied) and magpie web's Save as a captured download. A second real
run that grants both was still queued on mote's suite lock.
- Clipboard: checked live on macOS (osascript) and Windows
(PowerShell). Not tried live on Linux: WSLg had no display.
The scattered settings audit after netube99 on X. Short Claude system
prompt and Claude Code's interactive mode changed only Claude
subscription runs, yet sat in Settings › Models › Replies, while the
Claude Code editor already had its own "Claude Code runs as" switch for
the second, whose card said "Switched here or in Settings › Models ›
Replies".
Both rows now go in a claudeRunList in the Claude editor (PROV_PREFS), so
Settings' search still finds them and Open goes to the editor. In the app
the editor's own "runs as" switch is the one shown, and the duplicate
interactive mode row is hidden by CSS; in magpie web as a gateway, where
that switch is disabled, the row shows (the list gets a gw class from
renderReplies: body.gateway-mode is set only on a change, not at boot).
provPrefsField lets Claude's run list through in gateway mode, without
the warm-ups, which are this computer's. The card and the "off" reason
no longer name Settings (zh, zh-TW, ja, de written with them), and the
bridge's subsystem page names the editor.
Run (mote, mote-run, origin/main ddd6c649b as BASE_REF):
- claude-lean-prompt-setting, claude-tui-setting, claude-mode,
provider-prefs, settings-places, i18n-keys, bare-ids and mobile-web,
both engines: 170 of 170.
- go test -run 'Budget|I18n|Strings' ./internal/gui: ok.
Broken by hand (chromium):
- both rows back in Replies: claude-lean-prompt-setting and
provider-prefs 18 of 18 red;
- the editor's duplicate row not hidden: claude-tui-setting 8 of 8 red;
- no gw class in gateway mode: claude-tui-setting 8 of 8 red.
Not tried: the real app with a real Claude subscription.
The scattered settings audit after netube99 on X. Ask again after a
refusal, the Retry-After cap and the intent classifier's timeout were
under Models › Replies beside rows about a reply's content, and Busy
models last sat in Network and sharing, far from the routing it changes.
The four are now one Routing section under Models, after Replies, and the
Routing page's header has a Settings › button that opens Settings at that
section with its first row lit. The docs (reference.md, the site's
plugins page in en, zh and ja) name the new place.
Run (mote, mote-run):
- settings-places, retry-after-cap-setting, refusal-retries-setting,
classify-timeout-setting, model-load, i18n-keys and bare-ids, both
engines: all pass.
- mobile-web against origin/main fdabddeb4 (a git repo made in the copy
from git archive, since mote-run carries no .git): 30 of 30. It now
takes the new Settings › button out of the Routing page until main has
it, as it does for other new rows.
- go test -run 'Budget|I18n|Strings' ./internal/gui: ok. gofmt clean.
Broken by hand:
- the three rows back in Replies and busyLoadRow left where it was:
settings-places and retry-after-cap-setting 20 of 20 red (chromium);
- the Settings › button's click handler off: settings-places 10 of 10 red.
Not tried: the real app; the GUI suite beyond these files runs with the
rest of this audit's changes.
The scattered settings audit after netube99 on X found Task done alert
filed among the allowances' display rows, with nothing saying why, and
magpie web drawing Menu bar cost as a row with no control (it has no
menu bar, and renderTrayUsage returns before filling it there).
- Allowance alert, Low balance alert, Reset reminder and Task done alert
are now a list of their own under an "Alerts" heading (#alertHead,
#alertList), after the display rows. Gateway mode hides the heading
and the list, as it hid the four rows.
- #trayCostRow is app-only, as #trayUsageRow is.
- "Alerts" in zh, zh-TW, ja, de.
Run (mote, at this tree):
- settings-places (new), bare-ids, turn-done, usage-alert,
reset-reminder, mask-alert, settings-search, i18n-keys:
122 pass, 0 fail, both engines.
- go test -run "Budget|I18n" ./internal/gui: ok.
Broken by hand: without app-only, settings-places is red 10 of 10 on
"no Menu bar cost row in magpie web"; with the heading renamed, red 10
of 10.
Not tried: the real app; the row moves are markup only.
Jevik_AI on X uninstalled magpie and rebooted, and Codex's config.toml
still had openai_base_url = "http://127.0.0.1:3425/backend-api/codex";
Rk1ngggg asked whether an update cleans it. magpie's own uninstall
(Settings › About › Uninstall magpie, `magpie uninstall`) already
disconnects every agent and takes Codex's leftovers (#3866), but on
Windows magpie wasn't in Settings › Apps › Installed apps, so it was
removed the way Windows offers for a program it doesn't list: by
deleting the exe and folders, which runs no code.
shortcut.Ensure now writes
HKCU\Software\Microsoft\Windows\CurrentVersion\Uninstall\magpie
(DisplayName, DisplayIcon, Publisher, InstallLocation, UninstallString,
URLInfoAbout, NoModify, NoRepair) at every installed start, beside App
Paths, and Remove (uninstall's System step) takes it out the same way:
only while it names this exe, or an exe that is gone. Its Uninstall
runs `magpie.exe uninstall --window` (shortcut.UninstallArgs). magpie.exe
has no console, where the terminal's `magpie uninstall` would refuse
for want of one to ask on, so those exact args open the app's window
(or forward to the running app, OnSecondInstanceLaunch) on Settings ›
About with Uninstall magpie's question asked (uninstallView,
?uninstall=1). It asks once: a redraw of Settings doesn't ask again,
and Cancel removes nothing. magpie web opened at that link asks
nothing. Deleting the app by hand still runs no code (macOS
drag-to-Trash included); agent-wiring.md says so.
Run on mote at the pushed head (rebased onto be9dbce02):
- gofmt -l clean; 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.
- go test -tags nogui ./internal/gui ./internal/cli ./internal/shortcut
./internal/uninstall: ok (TestCoreScriptBudget included).
- uninstall-settings.test.cjs and i18n-keys.test.cjs: 40 of 40
(chromium and webkit; the new Installed-apps cases in en and zh at
1100 and 420).
At d3f40bedd, the same change on c7ebb6f8d, under suite.lock:
- go test -tags nogui -timeout 45m ./...: ok, every package.
- The whole GUI suite (--test-concurrency=4): 22518 of 22800; the 282
reds are in 53 files the change doesn't reach (model-chip-steady 40,
usage-agents-hide 22, zero-priced-free 20, provider-fetch-again 14,
...), the full-suite reds of #5475; the numbers are on that issue.
Their run at c7ebb6f8d alone is queued behind other sessions' suites.
- The first full run found the core scripts 147 bytes over
TestCoreScriptBudget; the page's part was cut to one line (the
budget is not raised).
On xiaomi-gpu (win-run): go test ./internal/shortcut, incl.
TestInstalledAppsEntry on the real HKCU registry under a test key: ok.
Broken by hand, each red:
- registerAppPath not calling registerUninstall: TestInstalledAppsEntry
(UninstallString = "") on Windows.
- main.go not taking UninstallArgs to the window:
TestInstalledAppsUninstallOpensTheWindow (unknown "--window").
- app.js not asking on ?uninstall=1: 4 of 4 Installed-apps GUI cases.
- app.js asking without its once guard (params.delete): the same 4
("asked again").
Not tried: a real Settings › Apps › Uninstall click on Windows with an
installed magpie (the test box's install belongs to other sessions); the
second-instance forward (OnSecondInstanceLaunch) has no test of its own.
baranwang on X asked to keep Claude Desktop's own (1P, Anthropic) sign-in
while using magpie. Turning on "Separate app" in Claude Desktop's row on
the Agents page (or `magpie claude-desktop launcher add`) moves magpie's
3P wiring into ~/Library/Application Support/Claude-Magpie-3p and adds
~/Applications/Claude Magpie.app. That launcher opens Claude.app with
--user-data-dir on that folder, so it runs side by side with the user's
own Claude.app. Its icon is Claude's icon with a magpie badge. Off is the
default, and turning it off (`launcher remove`) moves the wiring back
and removes the app. It is macOS only: Desktop's packaged app strips
CLAUDE_USER_DATA_DIR, and on Windows it hardcodes LOCALAPPDATA\Claude-3p.
The folder ends in -3p because Desktop adds -3p to any other name.
Restarting the isolated app ends only its own process (pkill on its
--user-data-dir) and opens the launcher again.
Run at 1b25cda26 (this change on origin/main be9dbce02); rebased onto
fdabddeb4 (catalog only), then go build ./..., vet and the budget and
launcher tests again: ok. All
on mote:
- gofmt -l clean; go vet ./internal/...; GOOS=linux go vet -tags nogui
and GOOS=windows go vet on agent, cli, desktopiso, desktopdir, gui.
- go test (whole packages) desktopiso, desktopdir, settings, settingsapi,
proc: ok. -run Isolated|TestDesktopInstance|TestAddStartsDesktopOnTheFolder|
TestScript|TestAddLeavesTheirs|ClaudeDesktop|Restart in agent;
TestClaudeDesktopLauncher|TestEveryRouteHasACommandOrIsNamed|Help in cli;
TestCoreScriptBudget|TestSettingsSaveKeepsWhatItDoesNotSend|Budget|Desktop
in gui and gateway: ok.
- An earlier full `go test ./...` at fef23255f had four reds, all from
this change and fixed here: the route without a command (now in
notYet), settings_keep's DesktopIsolated, os/exec instead of proc, and
the core script budget (paid by sharing the switch helper with the
largest-window line and cutting comments; no raise). A second full run
of the touched packages queued ~7h on mote's suite lock behind other
sessions and was stopped; the targeted runs above replace it.
- GUI on mote, both engines: desktop-isolated (new; en, zh, zh-TW, ja,
de; 1100 and 640; aria-checked, posts, status text, no scroll, no
select, absent without `isolated`), desktop-longest, click-scroll,
plain-names, i18n-keys: ok. page-width-steady, panel-fold and
zero-priced-free are red, the same 33 tests at origin/main be9dbce02
(diffed): #4541/#5013, #5796, #5262. i18n-keys' "a plugin's words are
its own" is red on main too (#5332).
- Whole GUI suite on WSL at an older head: 400 of 22778 red across
~100 files of other pages, in line with #5559 (478 of 21666 on main
there). Not rerun on mote.
Real use, on mote in a sandbox HOME with Claude.app 4.23118 linked in:
`claude-desktop magpie`, then `launcher add`, moved the wiring to
Claude-Magpie-3p (deploymentMode 3p, mcpServers and locale carried).
Opening Claude Magpie.app started Claude with
--user-data-dir=.../Claude-Magpie-3p; it wrote configLibrary and
model-catalog there (3P mode) and no -3p-3p folder. A second, 1P Claude
ran beside it on its own sandbox folder. Opening the launcher again
kept one instance; the pkill pattern matched only the isolated pid; both
quit on SIGTERM. `launcher remove` put the wiring back and removed the
app.
Broken by hand: a folder without -3p (Desktop made -3p-3p), the
CLAUDE_USER_DATA_DIR env route (ignored by the packaged app), os/exec in
the quit (TestNoCommandBypassesProc red).
Not tried: a screenshot of the running app (screencapture fails over
ssh); a model request through a gateway from the isolated app; Windows
and Linux (not offered there). Known: the Dock shows Claude's own icon
for the running isolated app, and Chrome pairing is off in a moved
userData folder.
A built-in's switch and the settings it keeps in Plugins › Built-in or on
its own page (Gateway's Recent calls at a time) were found by nothing in
Settings' search, and one switched off took its Settings tab and rows
with it, so searching "Observability" with it off said no setting
matched (the scattered settings audit after netube99 on X). The search
now lists, after Settings' own rows and under "Plugins › Built-in", each
built-in whose name, line or schema setting has the words, in the
language shown or English, one off saying Off. Open goes to Plugins ›
Built-in and lights that row, again when the list is drawn a second time
as the plugins are read.
The list is drawn by a lazy setfeats.js the first time a search runs,
and only when what it finds changes, as Settings' observer runs the
search again on each change under the view.
Run (mote, at f98e954ce's tree plus this): settings-search,
old-webkit, builtin-places, provider-prefs, i18n-keys: 170 pass, 0 fail,
Chromium and WebKit, every language; TestCoreScriptBudget ok. Broken by
hand: without the row's light, and with the match always false, the new
case went red in Chromium (7 pass, 2 fail each).
steven_4422 (Discord #feedback, 11-09): a weekly window refilled early at
Nov 9 02:00 kept its deadline, yet the Cycle trend began at Nov 4 10:40, the
vendor's own start. quotaCycle took the recorded early reset only when the
card's resetsAt equalled the last reading's exactly. History keeps whole
seconds and a vendor's deadline can drift a little between reads, so the
two rarely matched. Now a reset minutes apart counts as the same one.
Run (mote): new quotaCycle test red on the old code (actual
2026-11-04T10:40:00.437Z, the reporter's start), green after;
quota-curve.test.cjs 31/31; go test -run Budget ./internal/gui ok.
Not tried: the reporter's own account; the full GUI suite (mote's suite
lock queue is hours long).
Reported-by: steven_4422 (Discord #feedback)
Settings' search lists each provider's own settings (warm-ups, check-ins
and the like) as rows that open the provider's editor. It listed them
for every provider magpie knows, so a search for "warm up on reset"
offered ChatGPT and Claude to a user with neither, and Open did nothing
(the scattered settings audit after netube99 on X). A row now remembers
its providers and is left out while none is added, and a row whose
built-in plugin is off is left out as the others are.
Those rows are drawn by a lazy provlinks.js the first time a search
wants them, not on each Settings draw: app.js was 399 bytes over
TestCoreScriptBudget with the change, and is now 956 under its size at
the base, with the budget unchanged.
Run in the tree with this change and the rest of the audit's fixes
(mote, base cd0ba05c2): settings-search, provider-prefs, old-webkit,
i18n-keys, builtin-places: 168 pass, 0 fail, Chromium and WebKit;
TestCoreScriptBudget ok. Broken by hand: without the set-miss line the
new case was red with ['ChatGPT','Claude'].
Routing groups have no page of their own: theirs is on Routing. With
Routing off and Routing groups on, Plugins › Built-in showed the groups
switch on and nothing anywhere to set them, and the quick start's
routing step still counted groups alone (netube99 on X, and the
scattered settings audit after it). The groups row now says "Their page
is on Routing, which is off" with Turn on Routing, which flips Routing's
own switch on the same list, and the quick start's step leaves with
either one off.
The hook lives in a new plugins/routing/settings.js, loaded after app.js,
whose featWho it extends (plugin client files load before app.js; the
first try in client.js threw "featWho is not defined" in every test).
Run in the tree with this change and the rest of the audit's fixes
(mote, base cd0ba05c2): builtin-places, mask-alert, settings-search:
162 pass, 0 fail, Chromium and WebKit, every language, 1100 and 420
wide; i18n-keys pass. Broken by hand: the hook returning at once,
builtin-places' groups case went red in all 20 runs.
The Masking alert was the one masking setting on the Masking page, under
the request list, away from every other one in Settings › Privacy (and
in Settings › Usage before that, where nb5p looked for it). It is now
the first row of Privacy's "when a value is found" list, out in gateway
mode as before. The Masking page is the list of masked requests alone.
Masking turned on with no kind, no personal data and no word of the
user's masks nothing, and its Plugins › Built-in row said only where
its settings are. It now says "Nothing is masked yet" before the link
(the scattered settings audit after netube99 on X).
Run in the tree with this change and the rest of the audit's fixes
(mote, base cd0ba05c2): mask-alert, builtin-places, settings-search:
162 pass, 0 fail, Chromium and WebKit, every language, 1100 and 420
wide; i18n-keys pass. The builtin-places file committed here is the
one run minus the routing-groups case, which comes with its change.
A web page listed under Settings › Network and sharing › Web pages that
may call magpie is refused without a gateway key, shared or not, and the
row says to use "a gateway key from Gateway". But the Gateway page drew
its keys only while Share on local network was on, so that user found a
line saying keys come with sharing and no way to make one (the scattered
settings audit after netube99 on X). The keys now show while sharing is
on or a web page is listed, the off line names web pages too, and the
Web pages row links to Gateway's keys once it has a page.
The guard in renderGatewayOwn's settings callback also redraws the whole
view only while its box is still in the page, as 5efe0e195 does for the
first draw.
Run in the tree with this change and the rest of the audit's fixes
(mote, base cd0ba05c2): gateway-keys-off, cors-origins,
gateway-own-settings, old-webkit, i18n-keys: pass in Chromium and
WebKit, every language, 1100 and 420 wide (72 of 72 for the first four).
Broken by hand: gwKeysShown limited to sharing alone, gateway-keys-off
went 20 pass / 20 fail.
The image models moved under Settings › Models, but the Library's Magpie
Image sheet, the MCP server's instructions to agents, the gateway's
"no image model" errors, the video tool's text and the docs still sent
users to "Settings › Images", a tab that no longer exists (the scattered
settings audit after netube99 on X). Every user-facing string now names
Settings › Models › Images in en, zh, zh-TW, ja and de, as do the site's
Qwen docs (en, zh, ja), llms-full.txt, the subsystem pages and comments.
Run in the tree with this change and the rest of the audit's fixes
(mote, base cd0ba05c2):
- go vet ./internal/gui ./internal/gateway ./internal/agent
./internal/provider ./internal/settingsapi: ok
- go test -run 'Image|Draw|Video|Hidden|Group|Settings' ./internal/gui
./internal/gateway ./internal/settingsapi: ok; ./internal/imagemcp,
./internal/library, ./internal/catalog: ok
- GUI: i18n-keys, i18n-en-no-cjk, image-models-hide,
library-browser-setup: pass in Chromium and WebKit
- gofmt -l: nothing
Not tried: a real agent reading the new MCP instructions (text only).
c9a1c557d's renderGatewayOwn, run again once settings are read, met a
window where the view was "gateway" but the page's template wasn't on
it, and threw on a null #gwOwn. old-webkit's "with Safari 15.0's
built-ins, the panel and the window draw every page" was red on main
from then on ("null is not an object (evaluating 'box.replaceChildren')").
Run on mote:
- old-webkit + gateway-own-settings on origin/main 8d80f6bc0 with only
this line added: 26 pass, 0 fail. Without it (8d80f6bc0 as is):
old-webkit 5 pass, 1 fail, the error above.
Not tried: the real app (the window has to switch views before the
settings read returns).
Go's regexp unrolls a bounded repeat into that many copies of its
class: [A-Za-z0-9.-]{0,254} (the session terminal's bundle id) was
89kB of program, kept from start to exit, and Codex's item-id refusal
`.{0,1000}?` 88kB. Measured one by one over magpie's 540 package-level
patterns (1.5MB in all), the nine largest bounded ones were ~440kB.
capre.MustCompile(expr, max) is the pattern with * or +, matching only
a string of max characters at most (rune count, so the (?i) Kelvin
sign and invalid bytes count as the regexp counted them). The nine:
settings' bundle id, library's name and agent id (now name@wsl:distro
cut in two), Anthropic tool names, the trace page's name and find,
access's MCP server, OpenClaw's profile and Codex's provider id. The
item-id refusal is a function: the tail within 1000 characters of a
head.
Run on mote (go1.26.8):
- go test ./internal/capre ./internal/access ./internal/settings
./internal/library ./internal/sessions ./internal/agent ./internal/gui
. : ok; ./internal/gateway -run 'ItemID|Undeclared|ToolName|Refus': ok
- TestCappedMatchesBounded holds each old pattern against its new one
over 14 units x 19 lengths (0..300, at each bound +-1); with the
length check taken out it is red (1586 mismatches).
TestItemIDRefusalAsTheRegexp holds the function against the old
regexp at 998..1002 characters of x, é, 日, \xff, \n; with 1001 it is
red. TestCappedIsSmall: 1304 bytes held, 49680 bounded.
- go vet native, GOOS=linux and GOOS=windows over the touched packages
(gui natively: its Linux build needs cgo); gofmt -l clean.
- Real build, GODEBUG=inittrace=1: magpie's own inits allocate
11.93MB -> 10.61MB.
- Idle on the real-account copy, 180s heap: regexp programs (sampled)
4.54MB -> 3.01MB.
Not tried: the full ./... suite; the gateway package beyond the run
above.
In a wide window a Usage breakdown row's name column is a fixed 180px
and the line under the name (the sign-in, calls, credits, failures,
TTFT, speed) was one line cut with an ellipsis there, so everything after
the provider was hidden. Only the narrow web layout let it wrap. It now
wraps at every width; the narrow rule that did the same is gone.
Reported-by: shusoyo (Discord #general, 11-09)
Run (mote): usage-stat-sub-wrap.test.cjs 8/8 (chromium, webkit; en, zh;
1440 and 1000px). Broken by hand: with the old app.css it is 0/8 ("the
line wraps, not cut").
i18n-keys' "a plugin's words are its own" has been red on main since
73c98ebc2 and was filed four times with no owner. Each red was a Go
comment citing a word from the window: search_row_archive_test.go's
"(View routing, the …", trace.go's '"No session ID")' and
skills_shared_copy_test.go's "Use the library's sets …". A comment says
nothing to the window, so whole-line // comments in .go and .js are left
out of the scan. Words in code are still found.
Run on mote at this tree (on origin/main c9a1c557d):
- node --test i18n-keys.test.cjs: 4 pass, 0 fail (was 1 fail on
e3f1efdaa, the same three words).
Broken by hand: a code line t("View routing") in app.js turns it red
("plugins/usage/i18n.js "View routing": internal/gui/assets/app.js says
it too").