Commit Graph
3423 Commits
Author SHA1 Message Date
yetone 5a44051eb5 gui: Discover's long-list hook moves into plugingrid.js, and the core budget carries the rest
TestCoreScriptBudget has been red on main since 5a0e0378c (06:00): the
core's scripts were 1,265,848 bytes against 1,265,544. 5a0e0378c added
344 bytes of code to plugins.js, and its body says the budget passed at
7583ed65c, but at 7583ed65c the core had only 40 bytes of room. CI's
first full run after it (e9e63c6d7, run 43323956017) went red on ubuntu
and macOS with those numbers.

The redraw that followed the import, and the threshold, now live in
plugingrid.js: pmVirtualGrids(page, card, body, draw) draws Discover's
body again from a microtask, once plugins.js holds what it returned, when
a list of VMIN cards or more was drawn whole before the import came. It
returns min, so plugins.js reads the threshold from it. plugins.js keeps
only the import, cardGrid and the three now() calls: 136 bytes out. The
budget carries the other 168, with why in its comment. The comment also
had ee1553913's "+1,112 for Codex's Open button" twice; the budget was
raised by 1,112 once (1,264,432 to 1,265,544), so one copy goes.

Run on mote at this tree (origin/main 390dd407b plus this), mote-run:
- go vet ./internal/gui; go test -run 'TestCoreScriptBudget|TestAppScript'
  ./internal/gui: ok. gofmt -l: nothing. node --check on both files.
- plugin-discover-virtual 22 of 22, plugin-market 6, plugin-kinds-discover
  22, plugins-more-discover 6, plugin-progressive 6, i18n-keys 4: all pass.
- old-webkit: 2 reds, the known ones (headerpresets.js #6030, :has()
  #5919), as 5a0e0378c recorded.
- Recomputed the budget's measure at 7583ed65c, 5a0e0378c and this tree
  with a copy of codeBytes: 1,265,504, 1,265,848, 1,265,712.

Broken by hand: with the microtask redraw taken out,
plugin-discover-virtual still passes 22 of 22, so the "drawn whole before
the import" redraw has no test, before this change and after it.

Not tried: the real app; a long list drawn before plugingrid.js arrives.
2026-11-13 08:18:10 +08:00
yetone 482653868b gui: a provider row's read-once test measures the row's own work apart (#6375)
TestProviderInfoReadsTheListOnce was red on main since e6184b368 on
ubuntu and macOS CI (10367939 bytes against a list of 1015856, bound
5 lists). The row still reads the list once. e6184b368 made p.Available()
8x cheaper (8572862 to 1015856 bytes on mote) while each model's own
price, window and protocol look-ups stayed at ~5.4 MB, so a bar of
"5 lists" stopped meaning anything.

The test now measures three things: the list (p.Available()), the
listing a row is built from (p.Listing()), and the row's own work with
the listing handed in (providerInfoWith). A row reading the list once
takes listing + rest; the bound leaves half a list of room, so one more
read of the list is red.

Run on mote at origin/main e9e63c6d7 + this:
- go test -run TestProviderInfoReadsTheListOnce -count=5 ./internal/gui:
  ok, a row 10358027..10447395 bytes against listing + rest
  10400727..10417507.
- Broken by hand: an extra p.Available() in providerInfo makes it red
  (11411529 against a bound of 10947066). The old bound let that pass.
- Bisected at 66f98d9d6 and ac15036ab (green, list 8.57 MB) against
  e6184b368 (red, list 1.02 MB).
- go vet ./internal/gui ok, gofmt -l clean.

Not tried: Linux. The WSL box has no gtk4/webkitgtk-6.0 dev packages,
so internal/gui doesn't build there; ubuntu CI ran the same numbers as
mote before this. Not run: the rest of internal/gui (test-only change
to this one file). TestShimWaitsPastSavedUsage/refreshed, red on macOS
CI in the same run, is a separate test and not touched here.

Fixes #6375
2026-11-13 07:05:00 +08:00
yetone 5a0e0378c0 plugins: Discover draws only the cards near the view in a long list
The owner, 11-13: "这个页面有点卡,记得做列表虚拟化" (Plugins › Discover with
Subscriptions picked, 369 cards). Every redraw of Discover's body (npm's
numbers coming in, a count changing) made all of them again.

A grid of 48 cards or more (a kind picked, a search that matches hundreds,
npm's hits) now draws only its rows near the view, 700px past each edge,
and keeps the whole list's height in its padding above and below. The rows
follow the scroll and the width (a ResizeObserver on the page): columns are
read from the grid's own computed columns, so narrow widths and every
language lay out as before. Row heights are measured as they are drawn. A
card with focus stays in the page, held where it would be, so keys go on
from it. Cards are made once per list and kept, so a click lands on the
same node. A list shorter than 48 is drawn whole, as before.

The code is in plugingrid.js, imported when Plugins first draws, so the
core doesn't grow: TestCoreScriptBudget was 3,299 bytes over with it in
plugins.js. Until the import lands, a long list is drawn whole, and the
body is drawn again once it has.

Measured with plugin-discover-virtual.test.cjs's PERF=1 on mote (load
~25 to 55, so the times are high). The time is from the Subscriptions
click to the cards drawn, with a market of 503 plugins (370 subscriptions).
- Before (origin/main): chromium 69.0ms at 1180px and 56.5ms at 420px,
  webkit 77ms and 74ms. 370 cards and 9,312 nodes in #view-plugins.
- After: chromium 6.2 to 9.7ms, webkit 10 to 13ms. 30 cards and 810 nodes
  at 1180px, 10 cards and 312 nodes at 420px (de: 9 and 285).

Guard: plugin-discover-virtual.test.cjs (new), in chromium and webkit, in
en, zh, zh-TW, ja and de, at 1180px and 420px. It checks:
- at most 72 cards are drawn, and the list keeps its whole height;
- wheeling to the middle never shows an empty stretch, and the focused
  card is kept;
- at the bottom pv-369 is in view and its Install posts its spec;
- "pv-12" lists all 11 matches, and "pv" draws at most 72;
- nothing scrolls sideways, and there are no page errors.

Broken by hand: VMIN at 1e9 (every list drawn whole) turned it 22 of 22 red.

Run on mote at this tree, before the rebase (mote-run):
- go test ./internal/gui: ok (the budget too). gofmt -l: nothing.
- plugin-discover-virtual: 22 of 22.
- Every GUI file that draws plugin cards or Plugins (the 54 that grep finds
  pm-card, view=plugins or pluginAgentsTo), with i18n-keys and
  i18n-en-no-cjk: all pass, except the reds below.
Reds, the same at origin/main be8e352a2:
- settings-lines-wrap: chromium de 440px (#6353).
- old-webkit: headerpresets.js isn't in the list (#6030), and app.css
  uses :has() (#5919). Its plugingrid.js entry is added here.
- title-bar-tools: webkit ja went red once in the first run, then passed
  10 of 10 when run again (#2740, #4716).

Run again at this commit, rebased on origin/main 7583ed65c (mote-run).
plugin-discover-virtual 22 of 22. plugin-market, plugin-kinds-discover,
plugins-more-discover, plugin-progressive, i18n-keys and i18n-en-no-cjk
all pass. TestCoreScriptBudget passes. Reds, the same at 7583ed65c run
alone:
- TestProviderInfoReadsTheListOnce: a row is ~10 lists against a bound of
  5 (#6375, filed now).
- plugin-card-update: webkit red 1 of 2 on both trees (#3079).
- old-webkit: as above (#6030, #5919).

Not tried: the real app on Linux WebKitGTK, and the real market from
usemagpie.ai.
2026-11-13 06:08:46 +08:00
yetone 5f5307ab6d gui: each embedded file is hashed once, not on every load
revalidated read each embedded file again on every request to make its
ETag, and the page "/" read and hashed every file it names to version
their URLs. A release's files never change, so each one's sum (and the
versioned page) is now kept in a sync.Map after its first read. A dev
build (-tags dev) reads from disk and keeps nothing.

Measured: TestStaticFilesHashedOnce, 20 loads each, on mote:
  with the memo   green (app.js under 1x its size, page under 6x its)
  memo off by hand  app.js 26,516,856 B; page 165,916,424 B (~8 MB a
                    page load) - red
Run on mote: go vet ./internal/gui and -tags dev; go test -run
"StaticFilesHashedOnce|VersionedFilesKept|WebCompresses|PageFilesRevalidate|Revalidat"
./internal/gui ok.
Not tried: the full GUI suite (no change to what is served).
2026-11-13 05:31:22 +08:00
yetone ac15036ab4 provider: a catalog entry points at its provider instead of copying it
Entry.Provider was a Provider value, 1,328 of an Entry's 1,760 bytes,
copied into every model of every provider each time a catalog, an
agent's list or a routing group's entries were built. It is now a
*Provider: entriesOf and decide's list give every model of one provider
the same one (sharedEntry), and a group's entry points at its first
member's. It is read only; every place that hands it on as a value
(Resolve, CanFast, ownAgent, modelAllowed, …) dereferences it, so what
they get is a copy as before. entryFor keeps its signature for the one
model ServedEntryOf builds; offEntries' entries now carry their provider
too.

Measured on mote with the owner's real accounts (acctp sandbox, page
open for 2m32s, w40 = before, w41 = this, alternating):
- catalogOf's allocations 106 MB -> 67 MB, providerEntries' 88 -> 78 MB
- CPU at the page's settle mark 3.42/3.33 s -> 3.18/3.30 s
- live heap unchanged (76.3/76.1 -> 76.7/75.9 MB): the lists are
  rebuilt, not kept, so the copies were churn for the GC, not held

Run: go build and go vet ./... and the tests compiled (go test -run ^$)
on mote; the full suite at this tree (d1e823d5f) on mica: 99 packages ok, 0 FAIL (agent 317s, gateway 972s, gui 188s, provider 220s, usage 56s).
2026-11-13 05:12:30 +08:00
yetone 66f98d9d65 gui: the add sheet's tools show in the title bar once scrolled out of sight
The owner, 11-12, on the Providers page's Add sheet: 向上滑动,然后这些区域
不在可视区域的时候,这些区域应该自动浮现在Header处. Beside the sidebar
(side-nav, a window 1024px wide or more), the sheet's search, Custom
provider and Import… now show in the title bar's empty right, left of its
buttons, once the sheet's head row has scrolled out of sight. They are put
there the way Library's, Plugins' and Settings' tools are: position: fixed
inside --tools-l/--tools-r/--top-h, which app.js tools() keeps out of the
crumb's way (its head query now includes #addSheet .add-tools.afloat).
Scrolled back up, they are in their row again. Close stays in the sheet;
the screenshot's box didn't cover it.

The group is pinned, never copied, so there is one search: the words typed
and the focus stay with it both ways. Each change is a 180ms fade in going
into the bar and 140ms coming back, cubic-bezier(.23, 1, .32, 1), opacity
only, so reduced motion keeps it. Nothing moves in the sheet: the head row
keeps its height while its tools are up.

Narrow (no sidebar, which covers 420px and the panel): the bar has no free
room, so the sheet's whole head (label, tools, Close) is held at the top of
the page while the sheet is under it, the way Settings' head is in a narrow
window. It has the same blur strip and a hairline once stuck. At 760px and
under, the tools take a line of their own under the label.

The code is in a new addfloat.js, which renderAdd imports the first time the
sheet opens. In app.js it took TestCoreScriptBudget 487 bytes over
(1266031 > 1265544); with the move the budget passes and isn't raised.
old-webkit's list of scripts loaded on demand names it.

Run at 39ac4fafe (on origin/main 2d2333cfa), then again after rebasing on be8e352a2:
- New add-sheet-float.test.cjs: 22/22 (chromium and webkit; en, zh, zh-TW,
  ja, de; 1100px and 420px). It scrolls with the real wheel. In the bar,
  it checks the search is in the title bar left of its buttons and right
  of the crumb, with Custom provider and Import… there too; narrow, that
  the head is held at the top. Then: the search is clear to press, a click
  scrolls nothing and takes the focus, typing "Relay 2" filters the tiles
  with one search kept, and scrolling back puts it in its row with the
  words and focus.
- Red on the old code (git archive of the base's internal/gui): 0/22, on
  "in the bar once out of sight" (wide) and "the head held at the page's
  top" (narrow).
- go test ./internal/gui -run Budget: ok (mica).
- Related GUI files on mote, both engines, 380 tests, 376 pass: add-sheet,
  add-sheet-custom, add-button, add-partners-shine, add-sponsor-me, the six
  providers-*, i18n-keys, provider-detect-draft, provider-env-paste,
  provider-add-gemini, provider-retrieval-only, provider-url-each-api,
  modal-title-drag, model-id-space, builtins, old-webkit. The four reds are
  filed and come from other changes:
  - add-sheet "quiet rows" chromium en: tlscerts.js reads a null draft's
    serverPin (#6216). It was red in en, and in zh after the rebase, both times
    beside other files. Alone, chromium, 2/2 green on origin/main and 2/2 here;
  - old-webkit: headerpresets.js isn't in its list (#6030);
  - old-webkit: .side-foot:has() in app.css (#5919).
- After rebasing on be8e352a2: Budget ok; add-sheet-float, add-sheet,
  old-webkit and i18n-keys 34/38, the same three filed reds.
- i18n-keys first ran out of memory under mote-run -C internal/gui: it
  walks ../../.., which there is all of ~/runs. Run from the tree's root:
  4/4.

Not tried: the real app (Wails on macOS, WebKitGTK on Linux, WebView2 on
Windows). Only Playwright's engines were run, so the title bar's dragging
around the pinned tools (--wails-draggable) wasn't checked in a real
window.
2026-11-13 05:08:10 +08:00
yetone 046a131304 gui: an agent's Long conversations is one row, and its context window is picked
The owner (11-12): an agent's sheet showed Long conversations twice, every
agent's row above the agent's own, which read as the same setting twice.
Now the sheet shows one row, the agent's own (.own-compact hides
#fullContextRow there). It shows the agent's own value, else every agent's,
and a change posts settings/agent-compact {agent, own: true, full, at}, so
it is that agent's alone. Settings keeps every agent's row for when no agent
holds one. The Context card's note says "Long conversations in {agent}" when
the agent holds its own value (context.js), in en/zh/zh-TW/ja/de.

The agent's context window (agentwindow.js) is picked, never typed as a
syntax: one size for all its models from the app's menu (Each model's own,
128K to 1M, Other size… typed as 300k), and "Set a model apart" adds a
model from the agent's model picker with its own size, a line each, with a
remove button.

Tests rewritten to the one row, keeping what each guarded:
- compact-one-value: Tuned for you and Long conversations are one window,
  now through the agent's own value and its post.
- codex-compact-held: Codex's held values are under the agent's row.
- agent-prefs: what an agent's opened row and its panel sheet show
  (#fullContextRow hidden, .row.agent-compact visible).
- compact-at: a typed size posts settings/agent-compact for Claude Code,
  and never settings/full-context.
- codex-memories-settings "no Codex, no memories row": waits on the
  merged row, lists the visible rows in its message.
- agent-compact, agent-window: the new row and the picker.

Run on mote (macOS, Playwright 1.62.0, chromium + webkit, every language
each file covers, narrow and wide), at f9bc297a5 + this change; origin/main
then rebased (main has since changed app.css and app.js; see below):
- go test -run 'TestCoreScriptBudget|TestAssetBudget' ./internal/gui: ok
- agent-window 20/20, agent-compact 8/8, compact-one-value 12/12,
  codex-compact-held 20/20, agent-prefs 56/56, claude-cache 8/8,
  context-tune 284/284, compact-at 8/8, settings-general 20/20,
  i18n-keys 4/4, i18n-en-no-cjk 4/4
- codex-memories-settings 8 pass / 10 fail; after the no-Codex fix that
  subtest passes 2/2. The other 8 (chromium "picking a model scrolled the
  page 944 !== 1056") fail the same on origin/main dbaf9d68c: #6372.
- agent-details-ready 4 pass / 32 fail, the same on origin/main dbaf9d68c
  ("Details must end without a height jump: 772.98 -> 852.92"): #6373
  (#6369 is the late-settings subtest).

Again at this commit on be8e352a2: the budgets ok, agent-window 20/20,
agent-compact 8/8, compact-one-value 12/12, codex-compact-held 20/20,
agent-prefs 56/56, compact-at 8/8, i18n-keys 4/4.

Broken by hand, each red, then put back:
- .own-compact > #fullContextRow removed and the card note back to the
  shared words: compact-one-value 12/12 red, agent-prefs red (en/zh, 1100
  and 440, panel). codex-compact-held stayed green; it checks the held
  values sit in the agent's row, which still holds them.
- own: true dropped from the agent-compact post: compact-at 4/8 red,
  agent-compact red, compact-one-value red.
- "Set a model apart" not drawn: agent-window red.

Not tried: the real app, and a real Codex or Claude Code session reading
the agent's own compaction size.
2026-11-13 05:07:32 +08:00
yetone be8e352a20 editor: Proxy takes no room unless Custom is picked
The owner (11-12, "这些空白看起来好难受"): the Custom address and its login
were visibility:hidden while not picked, so each account kept an empty
strip (43px) between its proxy segs and the next account's name. They are
display:none now, so the gaps are even. proxy-gaps measures the segs'
bottom to the next element's top at 900 and 420 in every language;
account-proxy's no-move check now covers the lines above the pick.

Run (mica, mica-run, both engines, en de ja zh zh-TW where a file takes
languages; mote was over 18 load every check):
- The four changes together: account-weight, account-proxy, routing-js
  26/26; routing-advanced, proxy-gaps, login-export, routing-save,
  key-weight green; account-arrange red as on main (#6010).
- About 40 files around the editor (prefs, check-in, warm-up, proxy,
  routing, export): 698/730. The same reds on origin/main 2d2333cfa:
  checkin-now-account (#6029), editor-advanced-align (#4615),
  settings-lines-wrap chromium de 440 (#6353), account-arrange (#6010).
  Flakes under the concurrent run: ResizeObserver page errors in
  checkin-account and codex-auto-reset-settings (commented on #6108),
  provider-advanced-fold webkit zh growth (#2552, #5417),
  proxy-login-fields chromium zh click (#6374, 5/5 alone here and on
  main). Two passes over those five files again: only proxy-login-fields
  chromium zh, once.
- i18n-keys green (no strings added).

Broken by hand, each red:
- dialog: without `.row.pref { position: relative }` account-weight
  goes red in both engines ("the dialog scrolls beside the editor
  (945,810)").
- Routing back on the editor (ed.append): routing-advanced 10/10 red.
- Export with the plus again: login-export red ("Export has the plus").
- Proxy's .off back to visibility:hidden: proxy-gaps 20/20 red ("43px
  under the provider's options").

Not tried: the whole GUI suite (another session's full suite was on
mica, mote over load), the real Linux WebKitGTK app, Windows. No Go
changed.
2026-11-13 04:51:59 +08:00
yetone c21683cbf2 editor: Export accounts is the last account row, with an export glyph
The owner (11-12): Export accounts to a file goes last of the four account
rows, after Add an account by setup-token, and has an arrow out of a tray
instead of the plus: it adds nothing. login-export checks both.

Run (mica, mica-run, both engines, en de ja zh zh-TW where a file takes
languages; mote was over 18 load every check):
- The four changes together: account-weight, account-proxy, routing-js
  26/26; routing-advanced, proxy-gaps, login-export, routing-save,
  key-weight green; account-arrange red as on main (#6010).
- About 40 files around the editor (prefs, check-in, warm-up, proxy,
  routing, export): 698/730. The same reds on origin/main 2d2333cfa:
  checkin-now-account (#6029), editor-advanced-align (#4615),
  settings-lines-wrap chromium de 440 (#6353), account-arrange (#6010).
  Flakes under the concurrent run: ResizeObserver page errors in
  checkin-account and codex-auto-reset-settings (commented on #6108),
  provider-advanced-fold webkit zh growth (#2552, #5417),
  proxy-login-fields chromium zh click (#6374, 5/5 alone here and on
  main). Two passes over those five files again: only proxy-login-fields
  chromium zh, once.
- i18n-keys green (no strings added).

Broken by hand, each red:
- dialog: without `.row.pref { position: relative }` account-weight
  goes red in both engines ("the dialog scrolls beside the editor
  (945,810)").
- Routing back on the editor (ed.append): routing-advanced 10/10 red.
- Export with the plus again: login-export red ("Export has the plus").
- Proxy's .off back to visibility:hidden: proxy-gaps 20/20 red ("43px
  under the provider's options").

Not tried: the whole GUI suite (another session's full suite was on
mica, mote over load), the real Linux WebKitGTK app, Windows. No Go
changed.
2026-11-13 04:51:59 +08:00
yetone 8f7ddb9e06 editor: Routing, Rate limited and Stays fold under Advanced
The owner (11-12): these are changed by few, so they sit at the top of the
editor's Advanced fold, collapsed by default. The fold opens on its own
when one isn't its default (routing, affinity or sink set), unless the
user already opened or closed it for this provider. Tests that pick a
routing seg open Advanced first; routing-advanced checks where the three
sit and when the fold opens, for a subscription and a relay.

Run (mica, mica-run, both engines, en de ja zh zh-TW where a file takes
languages; mote was over 18 load every check):
- The four changes together: account-weight, account-proxy, routing-js
  26/26; routing-advanced, proxy-gaps, login-export, routing-save,
  key-weight green; account-arrange red as on main (#6010).
- About 40 files around the editor (prefs, check-in, warm-up, proxy,
  routing, export): 698/730. The same reds on origin/main 2d2333cfa:
  checkin-now-account (#6029), editor-advanced-align (#4615),
  settings-lines-wrap chromium de 440 (#6353), account-arrange (#6010).
  Flakes under the concurrent run: ResizeObserver page errors in
  checkin-account and codex-auto-reset-settings (commented on #6108),
  provider-advanced-fold webkit zh growth (#2552, #5417),
  proxy-login-fields chromium zh click (#6374, 5/5 alone here and on
  main). Two passes over those five files again: only proxy-login-fields
  chromium zh, once.
- i18n-keys green (no strings added).

Broken by hand, each red:
- dialog: without `.row.pref { position: relative }` account-weight
  goes red in both engines ("the dialog scrolls beside the editor
  (945,810)").
- Routing back on the editor (ed.append): routing-advanced 10/10 red.
- Export with the plus again: login-export red ("Export has the plus").
- Proxy's .off back to visibility:hidden: proxy-gaps 20/20 red ("43px
  under the provider's options").

Not tried: the whole GUI suite (another session's full suite was on
mica, mote over load), the real Linux WebKitGTK app, Windows. No Go
changed.
2026-11-13 04:51:59 +08:00
yetone 62044305e3 editor: a check-in or warm-up row holds its hidden line, so the dialog grows no second scrollbar
A provider's check-in and warm-up rows keep a .sub line out of sight,
position:absolute under hover. Their .who is display:contents and has no
box, so the line was held against the .dialog: with Advanced open the
dialog grew a scroll of its own (e.g. 1117 over 810) beside the editor's,
and in WebKit every row was 8px narrower (de 560 "Gewicht 3 · 75%" ran
2px past its row). Happens on main whenever Advanced is opened. The row
is now the line's containing block. account-weight opens Advanced and
checks the dialog doesn't scroll.

Run (mica, mica-run, both engines, en de ja zh zh-TW where a file takes
languages; mote was over 18 load every check):
- The four changes together: account-weight, account-proxy, routing-js
  26/26; routing-advanced, proxy-gaps, login-export, routing-save,
  key-weight green; account-arrange red as on main (#6010).
- About 40 files around the editor (prefs, check-in, warm-up, proxy,
  routing, export): 698/730. The same reds on origin/main 2d2333cfa:
  checkin-now-account (#6029), editor-advanced-align (#4615),
  settings-lines-wrap chromium de 440 (#6353), account-arrange (#6010).
  Flakes under the concurrent run: ResizeObserver page errors in
  checkin-account and codex-auto-reset-settings (commented on #6108),
  provider-advanced-fold webkit zh growth (#2552, #5417),
  proxy-login-fields chromium zh click (#6374, 5/5 alone here and on
  main). Two passes over those five files again: only proxy-login-fields
  chromium zh, once.
- i18n-keys green (no strings added).

Broken by hand, each red:
- dialog: without `.row.pref { position: relative }` account-weight
  goes red in both engines ("the dialog scrolls beside the editor
  (945,810)").
- Routing back on the editor (ed.append): routing-advanced 10/10 red.
- Export with the plus again: login-export red ("Export has the plus").
- Proxy's .off back to visibility:hidden: proxy-gaps 20/20 red ("43px
  under the provider's options").

Not tried: the whole GUI suite (another session's full suite was on
mica, mote over load), the real Linux WebKitGTK app, Windows. No Go
changed.
2026-11-13 04:51:59 +08:00
yetone f9bc297a5e gui tests: TestPluginPageReadsWhatItDeclared's limiter check passes on every -count round
The check called pageSetAllowed with the fixed key "x", and its last call
stored "now + 2s" in the package's limiter. The next -count round's first
call, under a second later than that, was refused, so the test was red on
every round after the first ("pageSetAllowed"). The check now uses a key
of its own run.

Run on the Linux box (wsl-run, magpie-desktop; mote and mica were at load
58 and 72), at origin/main dbaf9d68c + this change:
- go test -tags nogui -count=30 -run 'PluginPage|PageService' ./internal/gui/: ok
Broken by hand: with the old key, the same run had 27 of 30 rounds red on
this test.
Not touched: TestPluginPageServiceProxied's ubuntu CI red at 9c33839de
(the stream ended after its first event). It passed 300 rounds alone and
30 together with the plugin page tests here; filed separately.
2026-11-13 04:23:20 +08:00
yetone 3d4c8edcea gui: Open the Codex app is in Codex's row menu, not a button on its row
ee1553913 (Yink88564391 on X) put an Open button on Codex's Agents row,
between its Details and its model picker, so that row's Details sat
further left than every other row's (the owner, 11-13: "导致整个页面在
视觉上不是对齐的"). The button is gone. Codex's row menu, beside Open in
terminal, has "Open the Codex app" where the desktop app is installed
and Open Codex with doesn't say Terminal (openApp); it posts agents/open
with the id alone as the button did. With no app, Open in terminal is
the menu's only way, as before the button. The tray panel and the web
build have neither. Its CSS and the "Open Codex in a terminal" words go;
comments and the setting's error say "Open Codex with", not the button.

codex-open-button.test.cjs now opens the menu, and checks every
connected row's Details and model picker start at one x.

Run (mica): GUI codex-open-button 62/62, agent-open-terminal 24/24,
agent-prefs 56/56, i18n-keys, i18n-en-no-cjk, chromium and webkit,
en/zh/zh-TW/ja/de, 900 and 400px; go vet internal/gui, settings,
provider; go test internal/gui, settings, provider, agent -run
"Codex|Budget|Settings" ok; gofmt clean.
Broken by hand: the button put back on the row turns the line-up check
red (codex 479 vs claude 532 at 900px, every language).
Again at 5c1c38f63 after the rebase onto dbaf9d68c (mica): codex-open-button 62/62,
i18n-keys, go test internal/gui -run "Budget|Codex" ok.
Not tried: a real Codex app open from the menu; Windows and Linux.
2026-11-13 04:22:45 +08:00
yetone 1281046a02 gui: the Library's Variables tab is called Environment variables
What it holds are environment variables an agent starts with, and
"Variables" alone read as something else (the owner: 应该叫环境变量).
The tab, its empty line, its add buttons and the new item's sheet say
environment variable in en, zh, zh-TW, ja and de (环境变量 / 環境變數 /
環境変数 / Umgebungsvariablen). "Environment variables" moves into the
core i18n.js: otel's page uses the same words, and i18n-keys keeps a
plugin's words its own.

Run (mote, at origin/main ff8b43711 plus this change): library-env 12,
library-hooks 12, library-loading 6, library-subagents 12, i18n-keys 4,
i18n-en-no-cjk 4, all ok, chromium and webkit, every language.
Broken by hand: client.js back to t("Variables") turns library-env 12
of 12 and library-loading 2 of 6 red.
library-loading was red on main before this (#6204, the Claude plugins
tab); fixed in its own commit ff8b43711.
Not tried: the whole GUI suite, the real app.
2026-11-13 04:09:39 +08:00
yetone 32d6be0d05 gui: Memory has a brain of its own, in the sidebar and on its requests
The owner (11-12): Memory should have its own icon, a brain. The
Library's Memory tab had a bookmark, and Memory's own requests (the
conversations it reads into memories, made as memdistill.Agent
"memory") were drawn in Routing's graph, Usage and Sessions with the
generic cube under their raw id, since "memory" was no client.

- icons/memory.svg: a brain, 16-grid, stroke 1.4 with round caps and
  joins, as the sidebar's marks are; drawn as a one-tone mask.
- navicons.js: the Library's Memory tab draws the same path.
- agent.others: a client "memory", named Memory, with that icon, so
  /api/state's clients and agent.Looks (Usage, Sessions) name and draw
  it. It has no User-Agent: its requests are known by their token.
- TestEveryClientHasNameAndIcon: memdistill.Agent is among the ids the
  gateway records, so it must be a client with a real icon.
- tests/memory-icon.test.cjs: the sidebar's Memory tab draws the path
  icons/memory.svg has (and no other tab does), and a request from
  "memory" in Routing is drawn with the memory mask, not the cube.
  Chromium and WebKit, en/zh/zh-TW/ja/de, 1100 and 420px (no sidebar at
  420px, so there the request only).

Run on the tree rebased onto ff8b43711 (same five-file diff; the go packages and the four GUI files first ran at fa7e466ac and again here: TestEveryClientHasNameAndIcon ok, 42 of 42) (mote; mote was at load ~27 and mica ~43, mote was the less loaded):
- go test ./internal/agent ./internal/gui ./internal/memdistill
  ./internal/usageapi: ok.
- node --test memory-icon nav-sub-icons routing-client-icons i18n-keys:
  42 of 42 ok, both engines.
- go vet: darwin agent+gui; GOOS=linux agent (gui needs cgo for wails
  on linux); GOOS=windows agent+gui: ok. gofmt -l clean.

Broken by hand (origin/main fa7e466ac with the new tests):
- TestEveryClientHasNameAndIcon: "the gateway records requests as
  memory, which isn't among the clients".
- memory-icon.test.cjs with no icons/memory.svg: 2 of 2 red; with the
  svg but the old bookmark path: 12 of 22 red, every 1100px case.

Not tried: the real app on any OS; Codex's own memories model row
(MEMORIES in app.js) keeps its notebook, as it is Codex's memories, not
Magpie Memory. The Magpie Memory MCP server keeps magpie's favicon, as
magpie's other servers do.
2026-11-13 04:08:39 +08:00
yetone ff8b437117 gui tests: library-loading's tab lists include Claude plugins (#6204)
6af54dc9a gave the Library a Claude plugins tab after Subagents, always
shown, and library-loading's two tab lists were not brought along, so
the test was red in chromium and webkit on main since 11-11.

Run (mote): library-loading 6/6 ok, chromium and webkit, 980px and
420px. Before the change, at origin/main af7edcc02: 2 of 6 red (the two
tab lists), the same red #6204 names.
Not tried: the rest of the GUI suite; only this test file changed.
2026-11-13 04:05:42 +08:00
yetone 0e181b6f88 gui: the saved-proxy form's fields are the app's own, and no field falls back to the browser's
The owner, 11-12, on Settings › Network › Proxies › Add (Name,
http://127.0.0.1:7890, Username (optional), Password (optional)): "输入框
太简陋了。根本就不是我们整个产品的输入框组件。" proxyFormRow gave its
four fields only the class proxy-credential, which sizes them in
.proxy-form and styles them nowhere, so they drew as the browser's white
inset boxes on either theme. They are input.words now, the same field as
the gateway address and the share password on that page.

The class: app.css gets a :where() base rule (zero specificity) for every
text input and textarea: 1px var(--line) border, 7px radius,
var(--card) background. Any rule that names a field still wins, so a
field only takes it where it had the browser's look before.

input-look.test.cjs opens every Settings part (Network with the
saved-proxy form open and each Custom proxy pressed), a custom provider's
editor and a signed-in Codex editor (every fold open, each Custom proxy
pressed), and a routing group's editor (every fold open). No visible
text field may have an inset/outset border, or a white background on the
dark theme, and an input no rule names, put into the group editor, must
not be inset. Chromium and WebKit, en zh zh-TW ja de, 1100 and 420px,
light and dark.

Run on mote (mote-run), at 648cd3fdb plus this change:
- node --test input-look saved-proxies settings-proxy-auth
  proxy-login-fields provider-proxy account-proxy checkbox-look
  i18n-keys: 108 of 108 ok (input-look 20 of 20, both engines).
- Computed styles (background, border, radius, padding, size) of every
  visible input on the pages above, and of every view's inputs (agents,
  providers, groups, gateway, usage, redact, library, plugins, sessions,
  routing) in dark Chromium, diffed before and after: only the four proxy
  fields changed, and the Plugins search (borderless, transparent) took a
  7px radius that draws nothing. One group-editor pattern field's width
  moved by 10px, beside a button; no field rule changed there.

Again after rebasing onto 1729e1193 (the group editor's keys and masking
moved under Advanced): input-look, i18n-keys, group-redact and
saved-proxies, 74 of 74 ok.

Broken by hand: app.css and proxies.js put back to 648cd3fdb, the test
red at en 1100px: the four proxy fields inset and white in dark and
light, and the unnamed probe field inset.

Not tried: the real app's WebKitGTK and WebView2; the TUI has no such
form. Sheets outside those listed (agent settings, sign-in sheets) are
covered by the base rule but not opened by the test.
2026-11-13 04:05:37 +08:00
yetone af7edcc02a gui: the Library's project section is titled by what it holds
The owner (11-12): the MCP tab's 项目中 ("In projects") read oddly over
the servers a project gets. The heading now says what the section is:
"Project servers" on the MCP tab and "Project skills" on the Skills tab,
which shares the section (项目服务器 / 项目技能, 專案伺服器 / 專案技能,
プロジェクトのサーバー / プロジェクトのスキル, Projektserver /
Projekt-Skills).

Run on mica, at this tree: project-servers, project-skills-groups,
project-scope, library-mcp-agentless, library-all, i18n-keys and
i18n-en-no-cjk, chromium and webkit: all ok (6, 12, 6, 22, 26, 4, 4).
project-servers checks the heading in en and zh, project-skills-groups
in every language. Broken by hand (t("In projects") back): both go red,
6 of 6 and 12 of 12.

Not tried: the real app; the change is the heading's words.
2026-11-13 04:03:55 +08:00
yetone 5c00da3b25 gui: a group's note says it is optional
The owner (11-12): the note field under a group's name read as one more
thing to fill in. Its placeholder now starts with "Optional", in every
language: 可选,例如:给工作 Key 用 and the like.

Run on mica, at this tree: group-note, group-keys, group-redact and
i18n-keys in chromium and webkit, every language, 1100 and 420px: 86 of
86 ok. Broken by hand (the old placeholder back): group-note goes red.

Not tried: nothing beyond the GUI tests; the change is the placeholder's
words.
2026-11-13 03:59:08 +08:00
yetone 109559913a gui: a group's gateway keys and masking sit under Advanced
The owner (11-12): few people bind a group to gateway keys or change how
it is masked, so the group form showed two rows most never touch. Both
rows now sit in the group's Advanced fold with the rest of what is set
rarely, and the fold opens by itself when either is set, so a bound or
masked group still shows it.

Run on mica, at this tree: group-keys, group-redact, group-note and
i18n-keys in chromium and webkit, en/zh/zh-TW/ja/de, 1100 and 420px:
86 of 86 ok. Broken by hand (the two rows back at the form's top level):
the keys, redact and note tests fail, 50 of 82 red.

group-redact now reaches its chip with reader.cjs reach(): Playwright's
scrollIntoViewIfNeeded is put back by the app's scroll hold at 420px,
which made it click the wrong place there. It also checks the click does
not move the page.

Not tried: the real app with real gateway keys.
2026-11-13 03:59:08 +08:00
yetone fa7e466acd gui: Settings' gateway row is titled a port when a port is what it takes
The owner (11-12): the row over a field that takes 3425 read 网关地址
(Gateway address). Only the port is typed there; it is titled Gateway
port (网关端口, 閘道連接埠, ゲートウェイのポート, Port des
Zugangspunkts), and the field's aria-label with it. With MAGPIE_ADDR set
the field shows the whole host:port, off, and the row keeps Gateway
address, as Chicring asked before.

Run (mote, both engines): gateway-port, i18n-keys, i18n-en-no-cjk, 14
of 14 ok.
Broken by hand: settings.js put back as on origin/main, gateway-port red
in both engines (expected 'Gateway port').
Not tried: the real app.
2026-11-13 03:55:09 +08:00
yetone 648cd3fdbb gateway: the management API leaves other keys that manage magpie alone
727e23637 added /v1/magpie/admin/ and left admin-key out of it so that "a
key can't give another more than it was given". But rotate-key was served
on any key: a key allowed to manage magpie from this computer only
(Admin local) could rotate a key allowed from anywhere (Admin any) and was
handed its new secret, or set one of its own choosing ("secret" in the
body). It then held a key that manages magpie from the network. It could
also turn off or remove that key, locking its owner out.

- internal/gui/admin.go adminMayChangeKey: a POST /gateway-keys/{action}
  naming another key that has Admin is 403. The caller's own key, keys
  without Admin and add-key go on as before. A gateway-keys file that
  can't be read is refused (unknown), not let through.
- docs/subsystems/gateway-routing.md says so.

Run (mote, at 2bcbae35e + this change):
- go test -count=1 -timeout 45m ./internal/gui/: ok 138.6s
- go vet ./internal/gui/ darwin, GOOS=linux -tags nogui, GOOS=windows: clean
- gofmt -l clean
Broken by hand: with the check skipped, TestAdminAPILeavesOtherManagingKeys
is red. A local key rotated the any key and got its secret
(sk-magpie-key-…), set "chosen-by-the-caller-1234" as its secret, turned it
off and removed it.
Not tried: a real gateway run over HTTP. The test drives serveAdmin with
the caller's identity in the context, as the gateway's admin() passes it on.
2026-11-13 03:49:41 +08:00
yetone 2bcbae35ef gui: Partners' heading in the Add sheet ends in "Become a sponsor"
The owner asked for an elegant sponsor button at the right of the Add
sheet's Partners heading (在右边加上一个优雅精致的我要赞助的按钮). It is a
quiet pill with an accent heart outline: 我要赞助 / 我要贊助 /
スポンサーになる / Sponsor werden. Hover changes colour and border with
`ease`, gated to a fine pointer, and :active scales to .97.

A click opens the same mail usemagpie.ai's "Become a sponsor" writes
(mailto:yetoneful@gmail.com?subject=Sponsoring%20magpie). /api/open lets
through that one exact link (sponsorMail), not mailto: at large. Web mode
sets location to it.

The heading and the button share a .kind-row. The heading keeps its own
box, so the Partners shine still wraps only the words. The shine test now
finds the tiles after that row.

Run on mica (mote was at load 33-57):
- node --test add-sponsor-me, add-partners-shine, add-sheet: Chromium and
  WebKit, en/zh/ja/de at 900 and 440px. The new file and the shine file
  are green.
- add-sheet chromium is red 1 of 3 with "Cannot read properties of null
  (reading 'serverPin')". It is red 1 of 3 on untouched origin/main
  f0571d7da too, and is filed as #6216.
- i18n-keys and i18n-en-no-cjk pass.
- go test ./internal/gui -run 'Budget|Sponsor|LoginNeeds' passes
  (TestCoreScriptBudget included).
- go vet ./internal/gui passes on darwin, on GOOS=windows, and on
  GOOS=linux with -tags nogui. gofmt -l is empty.
- Screenshots: zh light and dark at 900, en and de at 440, at rest and
  on hover.

Broken by hand, on mica at the rebased head (1f9d2c36c):
- With the allow taken out of /api/open and the constant changed,
  TestSponsorMailOpensThatAddressOnly goes red. It reports that the link
  opened nothing and that app.js doesn't name the link.
- Its cases also check that another address, a changed subject, an
  appended body and MAILTO in capitals stay closed.
- At the rebased head, go test -run 'Budget|Sponsor|LoginNeeds' passes
  again.

Not run: the whole GUI suite. mica was running another session's suite
and mote was over its cores. Not tried in the real Wails app: whether
the system's mail client opens.
2026-11-13 03:43:10 +08:00
yetone 41e330bdf8 gui: an agent's settings sheet opens from the panel again (#6139)
22f2759d7 (11-11, Settings › General › Sidebar pages) added
renderNavPages, which read $("#nav").querySelectorAll before it
looked at the mode. The panel has no #nav (app.js removes it), so
every Settings draw in the panel threw once navpages.js had loaded.
The second draw is the one openAgentPrefs waits on (loadSettings), so
in the panel the "Claude Code settings" and "Grok Build settings"
menu items opened nothing. #6139 was filed 46 minutes after
22f2759d7 and was seen again twice with no owner (#6311 its
duplicate).

renderNavPages now hides its row and returns before it reads #nav
outside a window. Its siblings (navHides, markNav, show) already
check mode === "window".

Found with a pageerror stack: "Cannot read properties of null
(reading 'querySelectorAll') at window.renderNavPages
(navpages.js:9)". agent-prefs' "in the panel a Settings line and the
agent's menu open its sheet" was red in both engines and all five
languages at 35aaaa4b9^, 35aaaa4b9, 8c7328f3a and origin/main
5f1a642b4^ (timeout at agent-prefs.test.cjs:192).

Run (mica, at this tree): node --test agent-prefs.test.cjs pass 56
fail 0 (both engines, every language), nav-pages-hidden pass 2,
i18n-keys pass 4.
2026-11-13 02:10:55 +08:00
yetone 926b1e7dfb provider, gui: put back what 8c7328f3a took out of main by mistake (35aaaa4b9, 2fa79aef3, 797a23cad)
8c7328f3a (remote quotas: a Remote set to Select none still tells its
cards) was committed from a stale tree. Beside its own three files
(docs/subsystems/providers-accounts.md, remote_quotas_scope.go,
remote_quotas_test.go) it wrote 21 files back to their state before
35aaaa4b9, which took out:

- 35aaaa4b9, the Codex client setting (codex_request.go, codex_tier.go,
  settings.go, settingsapi.go, api.go, app.js, i18n.js, index.html,
  codex-client.test.cjs and the rest);
- 2fa79aef3, a save of the bytes a file already holds changes nothing
  (#6289: logins.go, logins_unchanged_test.go);
- 797a23cad, the tray's words (traywords.go, traytip_words_test.go).

The 21 files are checked out from 8c7328f3a^. After this commit
`git diff 8c7328f3a^ --stat` names only the three remote-quota files,
so main is the three lost commits plus 8c7328f3a's own change.

Run (mica, at this tree): gofmt -l clean; go test -count=1 -tags nogui
./internal/provider ./internal/settings ./internal/settingsapi ok.
./internal/cli and . are red on main already, not from this: the
codex-client and codex-open routes have no notYet entry, and
catalog.go's mmddSnapshot is compiled at launch (1ca2c62c4). Both are
fixed in the next two commits.
2026-11-13 02:00:40 +08:00
yetone f1f512c1ec library: a repository's heading folds an agent's profiles into one chip, and a row's profiles chip lines up with the hand (Yanzhongixuy on X)
0.1.3926, several Hermes profiles: the Skills page's source headings
(anthropics/skills ...) drew one icon per profile, a long strip, and the one
chip 2a1111cba made on a row sat out of line. That commit said "Rows only":
groupChips never set change.rows, so headings kept every profile. The row's
chip had data-members, not data-agent, so the fan/stack translate rules in
library.css never reached it.

groupChips now sets change.rows, and its profiles chip is half lit when a
profile has some of the skills. library.css applies the fan rules to
[data-members] chips too. docs/subsystems/library.md says so.

Files: plugins/library/client.js, plugins/library/library.css,
tests/library-profile-group.test.cjs (new), docs/subsystems/library.md.

Run on mote: library-profile-group.test.cjs (new; chromium + webkit, en/zh/
zh-TW/ja/de, 420 and 980px, 22 cases): 22 of 22 green; broken by hand (old
client.js and library.css) 22 of 22 red (13 Hermes chips, not 1); old
library.css alone 22 of 22 red (chips out of line). The Library GUI files,
group-skill-chips and i18n-keys ran in both engines: the only reds are
library-loading's chromium and webkit cases, red on origin/main
8c7328f3a6 too (run there alone, 2 of 6
red), filed as #6204.
Not run: the full Go suite and the 113-file GUI run's final tally (still
running when pushed), Linux WebKitGTK, a real Hermes install with many
profiles.
2026-11-13 01:42:52 +08:00
yetone 8c7328f3a6 remote quotas: a Remote set to Select none still tells its cards (@LOYSoLuI4PG4WlN on X)
On 0.1.3929 a Remote magpie added for the Usage page's quotas showed none
of the remote's subscriptions any more. cfd49e36a made a Remote's cards
follow its enabled models, and remoteCardWanted answered no card at all for
a provider that serves no model (Select none). Select none is documented to
serve no model while its balance and usage are still read and shown
(Provider.NoModels), and a Remote kept only to read quotas is set that way.
Now every card is wanted then; picks still narrow cards by their whole
provider path (93b855d90), and a list not read leaves all shown.

Run (mote): TestRemoteSelectNoneStillShowsItsCards is red on origin/main
797a23cad's scope file put back by hand ("map[]") and green with the fix;
-run 'Remote|Quota|Card' in internal/provider and internal/gateway ok;
go vet darwin/linux/windows of both packages ok; gofmt clean. GUI: remote-*,
usage-*, routing-remote-windows, panel-usage*, name-suffix-remote and
statusline-remote files in chromium and webkit: 74 red, all in usage-agents-hide,
usage-cards-hide, usage-fold, usage-hidden-way-back, usage-ledger,
usage-range-times, usage-speed-all-models, usage-compact-counts and
remote-magpie's address test; the same files are red the same on origin/main
797a23cad (75 red), already filed (#6003, #5475, #3414). The change is Go only.
Not tried: a real second magpie in sandbox HOMEs (a fake peer in the test),
the full Go suite (started after the tag).
2026-11-13 01:25:57 +08:00
yetone 797a23cade gui: the tray holds its page words in one language, not all four
The tray's tooltip names a usage window as its card does, with the
page's own translations from assets/i18n.js. pageWords parsed all four
language blocks (zh, zh-TW, ja, de, ~20k entries) once and kept them for
the life of the process: 6.5 MB of an idle tray magpie's heap, for the
few dozen words one language needs. It now parses only the block of the
language asked for and keeps that one; a change of language reads the
file again.

Run (real account sandbox on mote, `tray`, no page, 150 s):
- w35 (before): footprint 71 MB, live heap 16.7 MB; pageWord 6.5 MB cum.
- w36 (this):   footprint 67 MB, live heap 12.4 MB; pageWord 0.5 MB cum.
On mica: go vet ./internal/gui; go test -run 'PageWords|TrayTip|Tray'
./internal/gui ok, with a new TestParsePageWordsInOneLanguage (one block
read; ja then zh each give their own word). gofmt clean.
Not run: the full suite.
2026-11-13 01:19:34 +08:00
yetone 35aaaa4b94 codex: a setting for which client the requests to ChatGPT say they come from, CLI or Codex Desktop (ouhthuo on X)
ouhthuo wants the originator "Codex Desktop", with which, they say, a
high-effort gpt-6.1-sol request is routed to a newer model. magpie sent
codex_cli_rs on every request, and codexSign even overwrote a real Desktop's
own originator.

Settings > Codex > "Codex client" (CLI, the default, or Codex Desktop; the
settings key codexClient is "" or "desktop", POST /api/settings/codex-client,
no free text). codexClientHeaders is the one place that sets originator and
User-Agent, so the model requests, the /wham usage and reset calls, the token
refresh, the device and code sign-in exchanges and "test as" all follow it.
Desktop sends originator "Codex Desktop" and the UA shape codex-rs builds for
it: Codex Desktop/<codex version> (<os>; <arch>) unknown (Codex Desktop; <app
build>). Source: codex-rs login/src/auth/default_client.rs and a captured
Desktop UA. The default is unchanged; base_instructions and the identity
prompt are untouched. The OAuth authorize URL keeps codex_cli_rs.

The row sits in the Codex agent preferences, 5 languages. The two Codex menu
buttons share one helper (codexMenuPick) so app.js stays inside its budget
without raising it.

Run (mote): TestCodexClientSetting (red with codexClientHeaders ignoring the
setting), settings, settingsapi, gui and provider Codex tests ok; gofmt clean;
go vet darwin, windows and linux nogui clean; GUI codex-client,
codex-service-tier, codex-open-button, i18n-keys, i18n-en-no-cjk,
settings-general, click-scroll in chromium and webkit ok. Real Codex account
in a sandbox HOME: gpt-6.1-sol and gpt-6-sol at high effort answer under both
identities with identical usage; the reply's model field only echoes the
requested name, so whether the served model differs can't be told from here.
Red and not mine, already filed: settings-search (#6133, #5982) and
agent-prefs "Settings line" (#6139) fail on origin/main, TestMoveToPlugin
#5524.

Not tried: the real Desktop app (not installed here); the app build number
in the UA is the newest seen in local logs and can go stale.
2026-11-13 01:17:30 +08:00
yetone 227171f69b tests: the tallies fixtures key a seat with a plan as the gateway does (RayYanOnline on X)
routing-acts-calm and routing-acts-idle wrote the day's tallies under the two-part key; tallyKey adds the plan since 2240e5b34 (d6b5f24db), so the page folded a seat's tally and its live request into two cards. They key as the gateway does now. Run (mote): both files in chromium and webkit, 11 and 7 of 7 pass; routing-day-tallies and routing-sign-in-again carry no plan.
2026-11-13 01:06:10 +08:00
yetone 1488762dae settings: MCP server addresses get the This computer / Local network switch (xzhih on X)
Settings > Models showed Image recognition's, Image generation's and Web
search's MCP server at 127.0.0.1 even on a magpie shared on the network.
While sharing is on, each address row now has a switch beside it, This
computer and the far address named as the gateway names it (addrWho: Local
network, Public address, On the internet). The far address is the one the
sidebar uses (sideLAN), so MAGPIE_PUBLIC_URL, container and LazyCat rules
carry over; nothing is copied. The pick is kept (magpie.mcpWhere); an app
starts at This computer as before, a page other machines opened (magpie
web) at the far address. Sharing off: no switch, as before. The Library hub
and the plugin tools line follow the pick through mcpAddress (no switch of
their own).

The two image rows moved from app.js into plugins/gateway/settings.js with
the switch; app.js ends smaller, and the core budget is met.

Run on mote at this tree: mcp-address-lan.test.cjs (new, 22 tests: chromium
and webkit, en zh zh-TW ja de, 1100 and 420px) 22 pass; with mcpAddress's
hook removed 11 of 11 chromium tests fail. vision-mcp, image-mcp,
search-mcp, public-url-default and 98 tests in all pass; the lan/mcp/
gateway/settings/search/vision/image GUI subset (122 files, 2181 tests): 2114 pass, 67 fail; the six failing files I reran (side-effort, settings-hints, settings-search, lan-join, images-codex-one, settings-lines-wrap) fail the same 35 tests on a clean origin/main copy, so they are not from this change; filed separately. The other failing files' names were lost to a tail (not reread). go test
./internal/gui (core budget included) ok; go vet darwin, linux nogui,
windows ok; gofmt clean.

Not run at the rebased head: the Go suite beyond internal/gui; the whole GUI suite and go test ./... (mote and mica both held a
GUI suite; queued after the tag). Not tried: a real LAN server. Library
hub address and the plugin tools line show the picked address but have no
switch of their own; they read it when drawn.
2026-11-13 01:02:07 +08:00
yetone 8097860ab1 gui: put back what 76ceff87c took out of main by mistake
76ceff87c was built on an older base and its tree dropped the Linux
backdrop-blur rule (7c37424fc) and Codex seats change (d6b5f24db) with
their tests, docs and history.go edits. This restores those files from
d6b5f24db; the diff against d6b5f24db is now only the hours feature.
Run: git diff d6b5f24db --stat lists the usage files alone.
2026-11-13 01:01:43 +08:00
yetone 76ceff87c9 usage: a number of hours the reader sets, beside the calendar (eachg0 on X)
The range menu behind Custom has a top row, "[N] hours back". Enter asks
the Usage page for the rolling window last:Nh (1 to 720), which the
backend already answers for every view (totals, chart, models, accounts,
Requests); the chip reads "Last 30 hours". The pick and N are kept on this
device (magpie.usagePeriod, magpie.usageHours). 24 stays the preset's
chip, and an empty page, the credit days and the menu-bar way in know the
new period. zh, zh-TW, ja, de strings added.

Run (mote, at the rebased head): usage-hours, usage-24h, i18n-keys in
chromium and webkit, en and zh. Broken by hand: keptPeriod limited to the
presets turned usage-hours red (expected last:30h, got today).
Not tried: the whole GUI suite (queued on mote's suite.lock behind other
sessions, still running), narrow widths by hand, the tray panel (it has no
24h chip and is unchanged).
2026-11-13 01:00:14 +08:00
yetone d6b5f24db5 routing: Codex seats of one name are not folded into one account card (RayYanOnline on X)
The accounts list on the Routing page folded accounts by provider and name, so a Team seat and a Pro Lite login (or two logins) that carry one email read as a single card, and the day's counts of all of them went to it. An account is now told apart by its plan as well: the page's foldActs key and the gateway's tallyKey add the lowercased plan when it has one; a seat with no plan keeps the two-part key, so stored tallies and fixtures are unchanged. The key still ignores the id, which flips between codex and codex@user when the live login switches.

Run (mote): routing-codex-seats.test.cjs, chromium and webkit, en zh zh-TW ja de: 5 of 5 each. Red on the old client.js (4 cards where 3 are wanted). TestTallyKeyTellsPlansApart and the tallies tests ok; go test ./internal/gui ok; go vet darwin, linux nogui and windows ok; gofmt clean.
Siblings: the TUI draws no account names (no Who use in internal/tui); the combo picker names members from groups.accounts, which already carries the backend's distinct names (email · Team, email · workspace).
Not tried: the reporter's real accounts; the whole GUI suite and the full Go suite are run after the tag.
2026-11-13 00:57:33 +08:00
yetone 7c37424fcf gui: the Linux app draws without backdrop blur, which WebKitGTK repaints on the CPU each frame (Lsheng2012 on X)
Lsheng2012 (CachyOS, KDE, i7-12700H, RTX 3070 Ti Laptop) found the UI laggy.
webkit_linux.go turns accelerated compositing off under Wayland and without a
GPU, and there every backdrop-filter is software-painted for its whole box
each frame. body.linux now drops it on .modal, .pop, the panel's profile
chips, Settings' sticky head and the confirm ::backdrop. Layout unchanged.

Measured (WebKitGTK 2.52.6, Xvfb on magpie-desktop, 240 rAF scroll frames of
600 rows, 1100x760): no blur 16.2ms, sticky head blur 16.2ms, full-window
modal blur(8px) 25.0ms with compositing off (16.4ms with it on).
Run: linux-no-backdrop-blur.test.cjs in chromium and webkit on mote (green;
red with the rule removed by hand), go test ./internal/gui asset tests.
Not tried: NVIDIA, Wayland/KDE, the omarchy VM, a full suite. The sticky head
cost nothing in the probe, so the modal is the measured gain; if the reporter
is still laggy the cause is elsewhere (CPU painting at HiDPI), and we ask for
their session type, driver and version.
2026-11-13 00:47:41 +08:00
yetone 65f1fdd1d1 gui: the history's warm-up starts with the app's page, not at start
sessionRoutes started warmSessions when the routes were made, so a
magpie started at login, by `magpie tray`, or as `magpie web` with no
page read every session's stats, the Requests page's whole history and
Codex's effort for nobody. What those reads kept went two minutes later
(statsIdle, requestIdle), so the reads were pure cost unless a window
opened in those minutes. The warm-up now starts when the app's page is
first served (GET / or /index.html, not mode=panel); the steady GC
setting is still made with the routes. On Linux and Windows the main
window is still made at start, so the warm-up runs there as before.

Measured on mote with the real account's history (~15.6k sessions),
the sandbox HOME at ~/r2278/acct, proxies to 127.0.0.1:9:
- `tray` start, CPU in the first 30 s: w34 2.67 s, w35 0.96 / 1.04 s.
- `web` with no page, at 150 s: footprint 104 -> 64 MB, live heap
  62 -> 9 MB, CPU 2.52 -> 0.65 s.
- normal launch (window shown): the warm-up still runs in the first
  30 s (warmStart 0.84 s, warmStats 0.47 s, QueryPage 0.31 s), as on
  w34 (0.73 s).
- `panel` start: no warm-up in the profile, 1.62 s CPU, no panic.

Tests: TestWarmsSessions (app page, panel page, assets, HEAD), and
-run 'TestWarmsSessions|TestPanelOnFirstOpen|TestMainOnFirstOpen|Warm|Cold'
./internal/gui ok on mica; go vet ./internal/gui and GOOS=windows go vet
./internal/gui ok.
Not run: the full suite, the GUI suite (no page script changed), Linux
GUI vet (no gtk4 dev packages in WSL).
Not tried: a first Sessions page asked within seconds of opening the
window after a hidden start; it takes turns with the warm-up
(coldTurns), as a first start's window did before.
2026-11-13 00:32:17 +08:00
yetone 6acf5ee5c3 providers: StepFun's logo is the current mark, five squares in a circle (zzstar101 on X)
magpie drew StepFun's old stepped-S in blue. StepFun's own sources show
the new mark: stepfun.com's favicon (step_favicon.svg), the Hugging Face
org avatar of stepfun-ai (the step-5-preview card), and lobe-icons'
`stepfun` (mono). lobe's `stepfun-color` is still the old mark, so there is
no colour one to take; the mark is one tone, so it is stored as the mono
icons are (icons/stepfun.svg, currentColor, drawn as a mask that follows
light and dark). The presets (StepFun, StepFun China), the "step" model-maker
rule (IconForCatalog's table) and Step Code use "stepfun". A provider saved
with "stepfun-color" keeps working: that file now holds the same new mark
in black, which the one-tone check draws as a mask too.

Run (mote): go test of internal/provider and internal/agent ok; go test
-tags nogui ./internal/gui ok; GUI files stepfun-per-provider, icon-one-tone,
mono-icon-redraw, models-add-and-icons, icon-tile, nav-sub-icons ok in
chromium and webkit; a screenshot of the Providers list in chromium and
webkit, light and dark, shows the new mark for both icon names.
usage-cards-hide's "de 560" sideways scroll is red in chromium and
webkit, and the same on origin/main aa744b9ed without this change
(#6294). Broken by hand: the old mark in stepfun.svg makes
TestStepFunLogoIsTheCurrentMark red.
Not tried: the Linux WebKitGTK window; the full suite before the tag.
2026-11-13 00:11:37 +08:00
yetone ee1553913d gui: Codex's Agents row has an Open button, for the app or the terminal by a setting (Yink88564391 on X)
The Codex row on the Agents page now has an Open button beside the start
button. It opens the Codex desktop app (mac and Windows) when it is
installed, else Codex's CLI in a terminal. "Open Codex with" in Codex's
details (Automatic, Codex app, Terminal) picks which; it is this computer's
own setting (settings.CodexOpen, kept across a sync and a Settings save).
The row menu's Open in terminal still opens the terminal. The web build has
no button.

Run (mica): go test internal/gui, agent, settings, settingsapi, provider
ok; gofmt clean; GOOS=windows vet and GOOS=linux -tags nogui vet clean;
GUI codex-open-button (62), agent-open-terminal (24), i18n-keys,
codex-service-tier in chromium and webkit, en/zh/zh-TW/ja/de, narrow.
agent-prefs lists the new row.
Broken by hand: codexOpensApp always false turns TestCodexOpenButton red.
Budget: coreScriptBudget +1,112 for this code, packed small, no page to
move it to.
Reds on main before this change, same count at e18aca103 without it:
agent-details-ready (16 chromium), gui-ja and gui-de (one string),
agent-prefs panel-sheet test (5 chromium), and from 4e0026661
plugin-signed-out-account, plugin-signin-no-url, saved-signedout-remove,
signin-proxy. Not caused here; not fixed here.
Not tried: a real Windows launch of the Codex app, a real macOS app open,
Linux.
2026-11-13 00:11:20 +08:00
yetone 6edf7a69e5 usage: hide and show single quota rows of an Overview card (wangshaowei39 on X)
Antigravity's card lists Claude & GPT, Gemini and more. A row group can now be
hidden from Usage > Overview the way a card can: right-click or long-press a
row, or use the card's "..." menu, and choose "Hide <group> from Overview". The
"Hidden" line under the cards lists hidden cards and rows with an Unhide button
and Show all. The last group of a card cannot be hidden (use the card's own
hide). Persisted as settings usageWindowsHidden ("<card>|<group>"), changed
through /api/usage/arrange { windowsHidden } and kept by the Settings save.
Table view and tray panel are untouched.

Run (on mote):
- go test: TestUsageArrange*, TestUsageArrangeWindowsHidden (new), TestSettingsSave*,
  settings_keep guard, TestCoreScriptBudget, ./internal/settings, ./internal/settingsapi;
  gofmt clean; go vet darwin, linux nogui, windows.
- GUI, chromium and webkit: usage-rows-hide (new, 5 languages x 1200/560/390;
  32/32), usage-card-more 32/32, usage-arrange, usage-all-accounts 24/24,
  i18n-keys 4/4.
- usage-cards-hide and usage-hidden-way-back: "de 560" red (no sideways scroll
  635 vs 560); the same red on a clean origin/main a5e5f539a, filed as #6294.
Broken by hand: withoutHiddenRows returning its input turns usage-rows-hide
16/16 red in chromium.
Not tried: a real Antigravity account (fixtures only); full suite starts after
the tag.
2026-11-12 23:45:43 +08:00
yetone 8c9676c98d gui: the Mac's main window is made when first shown, on a hidden start
Started without its window (at login, `magpie tray`; for the panel; for
a magpie:// link), magpie still made the main window hidden, and its
page kept a WebContent process (~66 MB) until the user opened it, which
after a boot can be never. On the Mac it is now made by openMain the
first time it is shown, the path lightweight mode already takes for a
window it let go (madeAgain). A start that shows the window is as
before, and Linux and Windows are unchanged (Windows' readiness waits
on the main window's page; see #6340 for the panel there).

Measured on mote, real window app, real account sandbox HOME, at 30s:
- `magpie tray`: v0.1.3916 (w33) WebContent 66 MB; this change none.
  magpie itself 154-174 MB vs 185-194 MB.
- `magpie panel`: one WebContent (the panel's, 70 MB) where w32 had two.
- a magpie:// link: the main window made later shows on screen in the
  same place and size (1540x959 at 190,31, CGWindowList), WebContent
  77 MB vs 80 MB.
- Start-up CPU in 30s varies 2-10 s for both builds (start-time jobs),
  no difference between them.

Run: go test -run 'Panel|Light|Tray|Main|Window|Dock|Reopen'
./internal/gui (mica, ok, with TestMainOnFirstOpen), go vet ./internal/gui
darwin and GOOS=windows. Every h.main use outside the start is
nil-guarded already (lightweight mode lets it go).
Not run: a real Dock click or tray-menu Open after a hidden start (no
ssh-driven click; both go to openMain/reopenMain, which make it when
nil, as the link start above did).
2026-11-12 23:24:29 +08:00
yetone f4f104d1cc gui: a sign-in kept to its link shows Copy link with Open in browser beside it (Yink88564391 on X)
With Settings > Privacy > "Open sign-in pages in the browser" off, the
add-account window shows the link and opens nothing. The Open button sat
in a row under the link; it now sits in the link's own row, right of the
copy button, labelled "Open in browser" until the page has been opened
(then "Open again"). Every account sign-in goes through openSignIn, so
Codex, Claude and the rest follow it; MCP server sign-ins are not
account sign-ins and are unchanged. The default is unchanged.

Also: signin-close's "nothing else was changed" filter ignores
/api/update/using, which the page's in-use ping (10c4dc109) had turned
red on origin/main.

Run (mica): signin-*, i18n*, gui-* GUI files, chromium and webkit, en zh
zh-TW ja de: all pass; TestCoreScriptBudget ok. signin-link-only was red
on the old assets (no Open button in .signlink) and green after.
Not tried: a real Codex sign-in; Windows/Linux webviews.
2026-11-12 23:04:51 +08:00
yetone e18aca1038 agents: an agent's own context window, and a routing group's own Compact at (ul3140773077392, NovaStudiosss on X)
ul3140773077392 on X: dsh compacts earlier than other harnesses at the same
window, so one global size per model fits none. An agent's sheet (Agents,
the agent's Settings line) now holds "Context window": a size for every
model, or model=size pairs (provider/model, group/<id>, provider/*, a bare
model id, *). Empty follows each model's own window. It is applied in
provider.CatalogFor, the choke point every agent's model list goes through,
so dsh's contextWindow, Codex's catalog and Claude Code's window all read
it, and a window set this way makes Codex/Claude compact at that window
(Entry.WindowSet). Stored in settings.AgentContexts, kept by a general
save (settingsapi); POST /api/settings/agent-contexts and
`magpie model window <agent> [model=size...|off]`.

NovaStudiosss on X: Routing, a group's Edit, Advanced already had "Context"
(the window agents are told). It now has "Compact at" beside it
(Group.Compact; compactSet reads it before the members' smallest), also
`magpie group ... compact=`.

GUI: agentwindow.js, loaded on demand through agentcompact.js so app.js
stays inside its budget (TestCoreScriptBudget passes; the "Context window
in {agent}" label reuses the existing "Context window" key). Every agent
with fields now has a sheet; agent-prefs' Pi expectation says so.

Run at the pushed head, on mote: go vet (darwin; linux -tags nogui;
windows) on provider, agent, cli, gui, settings, settingsapi; gofmt clean;
go test provider, cli, settings, settingsapi, gui (TestCoreScriptBudget
and cli's route table fixed here), agent -run Dsh; node --test agent-window
and group-compact (chromium and webkit, en zh zh-TW ja de, 900 and 420px),
agent-compact, agent-prefs, compact-at. Reds seen identically on a
detached origin/main 4e0026661: agent-prefs webkit "in the panel a
Settings line..." (#6139) and old-webkit "compat.js is the first" / "styles
hold up in Safari 15.0" (#5919, #3403).

Broken by hand, each red then restored: withAgentWindows out of CatalogFor
(TestAgentOwnContextWindow, TestDshOwnContextWindow); the group branch in
compactSet (TestGroupOwnCompactAt); the settingsapi keep line
(TestSettingsSaveKeepsWhatItDoesNotSend); the window row in the sheet
(agent-window tests); compact dropped from the group save
(group-compact tests).

Not tried: a real dsh with a real account (its compaction is dsh's own;
the test reads the window magpie hands it), the full GUI suite (queued
behind another run on mote), Windows and Linux runs of the new tests.
2026-11-12 23:01:29 +08:00
yetone 182803ea7d gui: the Mac's tray panel is made the first time it is opened
magpie made the quick panel as it started, hidden, so its page kept a
WebContent process of its own (~65 MB) for as long as magpie ran, for a
user who never opens the panel too. On the Mac it is now made by
panelWin on first open, the path lightweight mode already takes when it
let the panel go (madeAgain names it and hangs it on the tray icon).
Linux and Windows still make it at start: the made-again path hasn't
been run in a real window there.

Measured on mote, real window app, real account sandbox HOME:
- started plainly, at 40s: w32 (main) WebContent 69 MB + 65 MB;
  this change 65 MB alone, the panel's process gone.
- started as `magpie panel` (OpenPanel): both show the panel on screen
  (layer 101, 439x268 at 0,36, CGWindowList), with 2 WebContent
  processes of 65-66 MB each; magpie itself 175 MB vs 192 MB.
- a second `magpie panel` on the Mac only hands over (runningAlready);
  it never opened the panel, before or after.

Run: go test -run 'Panel|Light|Tray' ./internal/gui (mica, ok, with
TestPanelOnFirstOpen), go vet ./internal/gui darwin and GOOS=windows.
Not run: Linux GUI vet (no gtk4 dev packages in the WSL distro; the
Linux path is unchanged), a real tray click (no ssh-driven click; it
calls the same togglePanel as OpenPanel and the panel hotkey).
2026-11-12 22:28:44 +08:00
yetone 7dbfc9f2fe usage: FlowDown and Bob are clients drawn with their own app icons (shannnnnks on X)
Their requests were unnamed in Usage and Routing. FlowDown (wiki.qaq.flow)
sets no User-Agent in its sources (checked Lakr233/FlowDown), so the system's
"FlowDown/<build> CFNetwork/..." is what arrives; Bob (com.hezongyidev.Bob) is
closed source and is matched the same way, by "bob/". Icons are the apps' own
App Store icons at 64px, as color SVGs wrapping the PNG, so app.js's size
budget is untouched.

Run: TestFlowDownAndBobAreClients (agent), see push notes for the rest.
Not tried: real traffic from Bob (its UA is the CFNetwork default for its
executable name, not captured); FlowDown/Bob are not wired as agents, since
neither reads a config file magpie can write.
2026-11-12 22:24:45 +08:00
yetone c96f33d659 agent: Hermes is one entry in the Agents list and the model pickers; its profiles are not rows (geekbb on X)
7050da0a4 (Norethcy on X) made each other Hermes profile an agent
hermes#<name> so the Library could give it its own skills and MCP servers,
and that also put one row per bot, each with its own model pick, in the
Agents list. geekbb: Hermes should have one entry; the bots Hermes made are
Hermes's to manage.

The profile agents stay, as the Library's targets (Norethcy's request keeps
working), but are now marked Agent.Nested: DetectedIn (the Agents list, the
tray panel and every picker built from it) and ClientsIn leave them out.
All and Find still reach hermes#<name> by id.

Existing settings: a model a user set on a profile lives in that profile's
config.yaml and is not touched, so it keeps applying; a profile on magpie
still follows the connected config's model unless it was picked, and a
picked one stays picked (hermes:<path>:picked). Nothing is dropped or
rewritten; what goes is only the extra row and its picker.

Run on mote: go test ./internal/agent ./internal/library; new
TestHermesProfilesAreNotListedAsAgents, red with Nested off and green with it;
GUI hermes-profile-row (rewritten: one Hermes row, no "Hermes ·" text),
hermes-profiles, i18n-keys in chromium and webkit, five languages; gofmt;
go vet darwin, linux, windows for agent and library.
Not tried: a real Hermes with several bots; the full suite before the tag.
2026-11-12 22:23:54 +08:00
yetone f57da2b5b9 gui: a test posted with an account is sent to that account or key (tmr11235 on X)
"Test on account..." posted the pick as `account` with provider/test, but
the test action never read it: the body's Account was only used by other
actions, so provider.TestOn was never called from the GUI and every test
went with routing's pick (d96403141 tested TestOn in the provider package
only). Now the action puts req.Account on the context for both the model
tests and the provider's Test, for every kind TestOn covers (keys, pool
sign-ins, plugin accounts), as one handler.

Run: gofmt clean; mote-run go test ./internal/gui (new
TestProviderTestIsPinnedToTheAccountPosted, TestProviderTestStops,
TestProviderInfoSaysTestPicks) ok. Broken by hand: with the TestOn line
back to r.Context() the new test is red (pinned to the second key came
back Account:first, 503 wrong key), which is the report.
Not tried: a real ChatGPT or plugin account pair; their path is the
provider package's, already covered by TestModelTestPinnedToAnAccount.
2026-11-12 22:12:32 +08:00
yetone 10a27651f0 usage: a window's whole is kept across its reset until the new one tells its own (Musikrv77852 on X)
After Kimi Code's 7-day window reset with nothing used, the card lost its
"Whole ≈ N tokens" until the new week passed 5% used. The reckoning is
every provider's (usage.WithWindowHolds), so the fix is too: carryHolds
keeps the last whole told for each account's window (window-holds.json,
temp-and-rename) and, where the new window is under the floor or has none
routed yet, shows it with holds.prevAt set. The tooltip reuses the past
cycle's "Estimated from the window that began X, read Y" line; no new
label. The new window's own figure replaces it as soon as it can be told.

Run (mote): TestWholeKeptAcrossReset (reset with 0% and 2% used, restart
from disk, same-window under floor, other account, new window with data),
go test ./internal/usage ./internal/provider ./internal/gui (only
TestCoreScriptBudget red until its +10 here), quota-holds and quota-curve
GUI files in chromium and webkit (all 5 languages x 360/1000px for the new
case), gofmt, go vet darwin/linux/windows for usage and provider.
Broken by hand: carryHolds returning early reds the Go test and the GUI
case; dropping the prevAt branch in app.js reds the GUI case.
Not tried: a real Kimi account across a real weekly reset; a full
./... suite before the tag.
2026-11-12 21:48:04 +08:00
yetone f97415bc0c gui: Report a problem's version line compiles on first use, and its route is named
4519eea71 (Settings › About's Report a problem) left main red on
ubuntu and macOS at d0a4e0be6 (run 43215704825) in two guards outside
the packages it ran:
- TestNoEagerPackageRegexps: feedback.go's osVersionRE was a
  package-level regexp.MustCompile; it is lazyre.New now.
- TestEveryRouteHasACommandOrIsNamed: GET /api/feedback had no command
  and wasn't in notYet. It is the window's own (it builds the block the
  About row copies), so it goes in notYet as W.

Run on mote at this tree: TestNoEagerPackageRegexps ok,
TestEveryRouteHasACommandOrIsNamed ok, internal/gui -run Feedback ok
(TestFeedbackBlockHoldsNoPrivateFacts), go vet of gui and cli plus
GOOS=linux nogui (cli) and GOOS=windows (gui) clean. Red before: both
guards in run 43215704825.
2026-11-12 20:53:53 +08:00
yetone 11a7e50bd4 gui: Add magpie for Cindy and the other apps opens their link on the host (Jealousy_Du on X)
In a browser tab (magpie web, or the app served to a browser) api("open")
always ran window.open in the viewer's browser, so a cindy:// import link
opened the viewer's own Cindy while the "added" status is read from the
host's Cindy database. App import links now go to /api/open and webHost
opens them with the host's system opener (openOnHost); http(s) links stay
the page's. Fixes Cindy, Lody, AionUi and Cherry Studio rows alike.

Run (mote, at this head): go test -tags nogui ./internal/gui ok; go vet nogui,
windows, darwin ok; gofmt clean; GUI import-web-host, import-row, click-scroll,
i18n-keys: 27 pass / 0 fail in chromium and in webkit.
Broken by hand: old app.js, new import-web-host test in chromium: red (the
page tried to launch cindy:// itself, no /api/open request). The Go test does
not compile on the old web.go (no openOnHost).
Not tried: a real remote host with a real Cindy; the old-code run in webkit.
2026-11-12 20:09:27 +08:00
yetone 09e2eef0d2 gui: the core script budget carries withScheme's 113 bytes (eachg0 on X)
6055f626e (v0.1.3899) fit the budget at fd9033cbf, but the base moved
under the rebase (a2feeb11a, 4519eea71) and TestCoreScriptBudget read
1264422 against 1264309. withScheme was already cut to one expression
and respellURL's /i flags dropped; nothing on the page has a plugin to
move to, so the budget rises by the 113 bytes over, as the entries
before it did. Run: TestCoreScriptBudget ok on mica.
2026-11-12 19:51:02 +08:00