382c8c0bdfdcedadbfa35ce1df7bd34f583ec17b
3423
Commits
| Author | SHA1 | Message | Date | |
|---|---|---|---|---|
|
|
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 |
||
|
|
482653868b |
gui: a provider row's read-once test measures the row's own work apart (#6375)
TestProviderInfoReadsTheListOnce was red on main since |
||
|
|
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 |
||
|
|
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).
|
||
|
|
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). |
||
|
|
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 |
||
|
|
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
|
||
|
|
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
|
||
|
|
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
|
||
|
|
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
|
||
|
|
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
|
||
|
|
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
|
||
|
|
3d4c8edcea |
gui: Open the Codex app is in Codex's row menu, not a button on its row
|
||
|
|
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 |
||
|
|
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 |
||
|
|
ff8b437117 |
gui tests: library-loading's tab lists include Claude plugins (#6204)
|
||
|
|
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 |
||
|
|
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.
|
||
|
|
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. |
||
|
|
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. |
||
|
|
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. |
||
|
|
648cd3fdbb |
gateway: the management API leaves other keys that manage magpie alone
|
||
|
|
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 |
||
|
|
41e330bdf8 |
gui: an agent's settings sheet opens from the panel again (#6139)
|
||
|
|
926b1e7dfb |
provider, gui: put back what 8c7328f3a took out of main by mistake (35aaaa4b9, 2fa79aef3, 797a23cad)
|
||
|
|
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 |
||
|
|
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. |
||
|
|
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. |
||
|
|
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. |
||
|
|
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 (
|
||
|
|
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. |
||
|
|
8097860ab1 |
gui: put back what 76ceff87c took out of main by mistake
|
||
|
|
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). |
||
|
|
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. |
||
|
|
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. |
||
|
|
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. |
||
|
|
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
|
||
|
|
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 |
||
|
|
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
|
||
|
|
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). |
||
|
|
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 (
|
||
|
|
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
|
||
|
|
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). |
||
|
|
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. |
||
|
|
c96f33d659 |
agent: Hermes is one entry in the Agents list and the model pickers; its profiles are not rows (geekbb on X)
|
||
|
|
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 (
|
||
|
|
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. |
||
|
|
f97415bc0c |
gui: Report a problem's version line compiles on first use, and its route is named
|
||
|
|
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.
|
||
|
|
09e2eef0d2 |
gui: the core script budget carries withScheme's 113 bytes (eachg0 on X)
|