1ccacad63281094de8a3372d5a507d38f9969e5c
713
Commits
| Author | SHA1 | Message | Date | |
|---|---|---|---|---|
|
|
29d37b4a6c |
gui: Library's sidebar list is in sections: every agent, one agent, magpie (@ConatusMoon2222 on X)
The list under Library in the sidebar was one flat column mixing what every
agent shares, what one agent has and magpie's own add-ons. It now has three
quiet section names, as a Mac source list's: "Every agent" (Instructions,
Memory, MCP servers, Skills, Hooks, Subagents), "One agent" (Claude plugins,
Pi packages) and "magpie" (RTK, billion-context). Same pages, same strip,
same routes; the page's own strip is unchanged. A section with no tab showing
has no name, and a list of one section (agentless) has none at all. The names
are said in zh, zh-TW, ja and de ("One agent" is new; "Every agent" was
already there); no colour, no gradient, no border.
The grouping and the sort live in navicons.js (loaded with the first list,
which then draws again), so the core script budget holds; a few navSubs
comments were cut for the bytes.
Run:
- library-groups.test.cjs (new): the three names and the rows' order in en
zh zh-TW ja de, no names in the strip, a name is no tab, quiet style, a tab
still opens, hidden-only section loses its name, one section none, 420px and
dark: Chromium and WebKit, 16 of 16 on mote before the rebase, 100 of 100
with library-bili on Windows (xiaomi-gpu) after it, and with sidebar.test.cjs
on WSL.
- Broken by hand: names always shown made the hidden-section case red in both
engines.
- go test -run Budget ./internal/gui: ok before the rebase.
- Screenshots zh light/dark at 900 and 420, before and after, in
magpie-wt/library-groups-scratch/shots.
- Wider sidebar and library set on mote: 302 of 304; the 2 reds were
library-bili in WebKit, a click by an index read before the redraw
(fixed in the next commit). mote could not launch browsers afterwards.
Not tried: the whole GUI suite (mote refused connections and then browser
launches for hours; run after the tag), the real Linux WebKitGTK app.
|
||
|
|
61a04f42a2 |
library: a project's Skills menu groups the skills by source, a heading ticks the whole group (Elorynth on X)
The project card's Skills menu listed every library skill flat. It now
lists them as the Library does (skillGroups(true): by repository or the
user's own group, this computer's last, whatever sort the list has), with
a heading over each group. Pressing a heading ticks all of the group's
skills, or unticks them when all are in; it is half-ticked while some are.
A typed filter keeps a group's heading over the skills it finds, and
matches a skill by its group's name. One group only stays the flat list.
openProtoMenu takes a `group` option (the values it ticks) for this.
Paid for in app.js by five comments cut, no budget raise.
Run on the Windows box (mote's Chromium launch hung, SSH refused at
times): project-skills-groups.test.cjs, new, in chromium and webkit,
en/zh/zh-TW/ja/de at 400px wide: red on the old code (6 of 6), green
after. With project-*, i18n-*, menu-*, proto-menu-overflow and
skill-group* GUI files in both engines: all green except
menu-input-scroll and menu-scroll (14 chromium, 13 webkit), which are
red the same at origin/main
|
||
|
|
4ddc150c66 |
gui: a hover hint beside the account switch says how it works and why it is the agent's own use
The owner (11-11): "在这个切换开关旁边有一个 hover 的提示,提示这个原理是啥,
以及它为什么不会让你的账号被封禁". Beside Switch {agent}'s account
automatically, an ⓘ mark; resting on the row (or a key reaching the
switch) shows settingshints.js's card with three lines:
- how: the next account's sign-in is written where the agent keeps its
own, as /login or codex login does; what is left is read by Claude
Code's own /usage, or where Codex's /status reads it; sessions already
open keep their account until restarted;
- why it is the agent's own use: Claude Code still sends every request
itself, straight to Anthropic, unchanged, and magpie sends none (an
account's own proxy kept); for Codex, only which of your own accounts
it is signed in to changes;
- the limit: the same as switching by hand; use only your own accounts,
sharing one is against the vendor's terms. It promises nothing about
bans: that is the vendor's call.
Only where the switch moves the sign-in. Under the gateway it moves
Claude Code's requests instead, and the "straight to Anthropic" line
would be false, so SignInMovesOf now says `routed` on a kept Claude
whose requests go through the gateway, and the hint shows for `moves`
and for `kept` without it.
The lines and mark are in autoswitchtip.js, imported when the switch is
drawn; app.js gets the one import line, paid for by cutting this branch's
own two comments: the core is 1,533,771, under 1,533,802, no raise.
Strings in zh, zh-TW, ja and de.
Run (xiaomi-gpu, Windows 11, win-run; mote refuses ssh):
- node --test sign-in-moves, keep-login, pool-ends, old-webkit, i18n-keys,
i18n-en-no-cjk, settings-hints, editor-hints: 148/152. The 4 reds are
the same at the base
|
||
|
|
fc24a89183 |
gui: switching the agent's account is a switch of its own
The owner (11-11): "这个轮换做成一个开关". The used-up switch was off
behind a "Keep Claude Code signed in to" tick box, and the tick box read
as something else. Under the accounts of a Claude Code or Codex with
more than one account there is now a "Switch Claude Code's account
automatically" switch:
- on: the line from the previous commit sits under it, saying when the
sign-in moves and whether it comes back;
- off: "Keep Claude Code signed in to [account]", the picker that was
the tick box's (first account, or the one picked);
- switch-only: held on and disabled, with a title saying why, since
switch-only always moves the sign-in.
The switch posts provider/keeplogin as the tick box did (keepLogin is
the switch off), so nothing on the server changes and a user's saved
keepLogin reads as the switch off. The name is a label for the switch:
clicking it flips it too. `.editor label`'s text-align: right is undone
for it, so its words start at the left. The two "Automatic switching is
off" strings give way to the switch's name and title in zh, zh-TW, ja
and de. docs/subsystems/providers-accounts.md says it under "Used-up
switch".
Run (Windows box, win-run; mote refused ssh and WSL's GUI runs failed
with E_UNEXPECTED):
- sign-in-moves, keep-login, pool-ends, i18n-keys, i18n-en-no-cjk,
routing-signin, account-return in chromium and webkit, en and zh:
100 pass
- after the alignment fix: sign-in-moves, keep-login, pool-ends: 72 pass
- TestCoreScriptBudget (wsl-run): PASS
- screenshots, chromium en and zh, on and off: name at the left, switch
at the right, line or picker under it
- after rebasing on origin/main: see the push
Broken by hand:
- posting !on from the switch: sign-in-moves red 4 of 16;
- dropping the text-align fix: the "words start at the left" check red
(160 to 224px in), where the old box check had passed.
Not run: the whole GUI suite with the switch (mote and WSL down). At the
previous commit it was cut short on mote with load timeouts; the account
reds there (account-arrange, agent-switch-accounts, claude-switch-only's
"page doesn't move") also fail on origin/main
|
||
|
|
8a3dbf0232 |
gui: the accounts list says what magpie does with the agent's sign-in
A user with two Claude accounts read the used-up switch as gone. Their "Keep Claude Code signed in to" box was ticked, which turns the switch off, and nothing on the page said so. Under the accounts of a Claude Code or Codex with more than one account, a line now says what the switch does, as NextLogin decides it: - kept: switching is off, the agent stays on the first account (or the one picked) even once it runs out; - gateway: Claude Code's requests go through magpie, which picks an account per request; its own sign-in stays put; - moves: the share it moves at (98%, or used up for In order / Until used up), and whether it comes back to the first (returnsToFirst). provider.SignInMovesOf gives the mode from the same checks NextLogin makes (leftAlone, keep, ClaudeThroughMagpie && !SwitchOnly, SpentShareOf, returnsToFirst). /api/providers carries it as signInMoves on the agent's own provider row. The Routing tab's sign-in note says the gateway case too. Strings in zh, zh-TW, ja and de. Run (mote, through mote-run): - go test -run 'TestSignInMoves|TestClaudeRouted|TestKeepLogin| TestClaudeSwitched|TestNextLogin|TestCodexLogin' ./internal/provider: ok - go test -timeout 45m ./internal/gui ./internal/provider: ok (script size budgets included) - gofmt -l clean; go vet darwin, GOOS=linux -tags nogui, GOOS=windows on provider and gui: ok - GUI: sign-in-moves, keep-login, i18n-keys, i18n-en-no-cjk, routing-signin, account-return in chromium and webkit: 60 pass - whole GUI suite (make test-ui): see below - screenshots in WebKit, en and zh: the line sits inside the list at the rows' inset; zh sentences join with no space Broken by hand: dropping NextLogin's keep case from SignInMovesOf turns TestSignInMovesSaysWhatSwitchDoes red; not appending the line turns sign-in-moves.test.cjs red 4 of 4. Not tried: the real app with the owner's accounts; the user's own keepLogin is left as it is. |
||
|
|
58fb070953 |
settings: named proxies, chosen as inherit, direct or a saved one anywhere a proxy is (@tsingchao on X)
Settings > Network keeps named proxies (name, address, optional login)
with a Test that says reachable and the latency. Everywhere a proxy can be
chosen (global, plugin downloads, a provider, a key, a Claude account) now
has a Saved mode beside the others; the value is "@<id>". Addresses typed
before are read exactly as before, nothing is migrated or overridden.
netproxy.Parse/Resolve/Redact/EnvWith/Dispatch resolve a reference at the
lowest layer, so a proxy edited once reaches the gateway, usage reads,
sign-ins and the plugin host at the next request; Claude Code's
settings.json env (a snapshot) is rewritten by provider.ProxyEdited.
A reference this computer lacks fails closed (DeadProxy), says the proxy's
name in the request error and as "Proxy missing: {name}" on the provider
row, and never goes direct. The password lives in settings.json (0600), is
never read back by the page, logged, or put in Settings sync. The list
rides with the providers part of a sync (Bundle.Proxies, MergeProxies by
id, passwords only with keys). A proxy in use can't be deleted (409).
The saved list's page code is in proxies.js, loaded when Settings draws it;
app.js grew by Saved-mode helpers only, paid for by 16 long comments cut
(core budget unchanged, no raise).
Run (mote refused ssh all session, so Go and GUI went through win-run on
xiaomi-gpu, Windows 11; gofmt and darwin/linux-nogui/windows go vet were
clean on mote before it went down, at the pre-sync tree):
- go test settings, netproxy, backup, settingsapi, davsync: ok on Windows
(earlier on mote: also gui, provider, plugin with real Bun, gateway).
- saved-proxies.test.cjs 20 of 20 (chromium+webkit, en zh zh-TW ja de,
420px) twice more on Windows; provider-proxy-missing.test.cjs 20 of 20.
One webkit de 420px run of saved-proxies failed once under 4-way
concurrency and passed 3 of 3 alone; not reproduced.
- TestCoreScriptBudget ok after the move (it was 3.4KB over before).
Red on this tree and on origin/main alike (Windows run, not mine):
settings TestSharedCheckedReadsOnceAndKnowsUnknown; provider
Codex keychain/Git tests; plugin TestHostRunsAsMagpieBun, TestPiPackage;
gui TestGatewayHeldByAContainer and others; old-webkit "compat.js is the
first" (headerpresets.js) and ":has() (Safari 15.4)" on origin/main
|
||
|
|
914fcf59b0 |
gui: Sessions' Settings › no longer scrolls the whole window (kalicyh on X)
Settings' explanation lines are held out of sight with position:absolute (hover mice), but their row had no positioned ancestor, so each sat at the window's top-left corner, below the fold for the rows far down a page. The document (body is overflow:hidden, still scrollable by script) then had ~870px of scroll, and Sessions' Settings › (openSettingsAt -> scrollIntoView on the Privacy session-history rows) scrolled the window as well as the page: Settings' top, the header, was pushed off the screen. The row's .who is now the line's box (position:relative), in Settings and in the provider editor's prefs (same rule, same hole). Every other openSettingsAt link (Privacy rows, General's name row) shared it. Run (win-run xiaomi-gpu; mote refused SSH all session, WSL tar errors): - sessions-to-settings, all 5 languages x 1100/420 x chromium+webkit: 20 of 20 ok. The new check (window scrollTop 0, Settings top >= 0, document no taller than the window) is red on the old CSS, 4 of 4 in zh (both engines, both widths). - settings-hints/-lines-wrap/-places/-back/-search/-tabs-stick, editor-hints/-roomy, provider-prefs: 15 failures on this change against 18 on the old CSS, the same names minus three the fix cleared (webkit de 440 line-wrap, webkit hover hints); the remaining 15 (chromium de 440 line-wrap, Settings' search, both engines) fail the same on the old CSS on the Windows box. Not run: the full GUI suite, go test, macOS/Linux WebKitGTK. |
||
|
|
eb56de0b59 |
gui: a model's Same as can be picked from models.dev's list, filtered (timfang4162 on X)
In Model settings the Same as box, which binds a provider's model to
another model's metadata (window, reply limit, levels, images, list
price), was a bare text field. A button beside it now opens the app's own
menu (not a <select>) with the models of the models.dev catalog magpie has
already synced: id, name, window and price on each line, a Filter… box over
id, name and maker, the current one ticked. A pick fills the box, so it is
staged and saved with the editor's Save like a typed id, and a value typed
afterwards still wins; nothing about how Same as is read changed.
GET /api/catalog/models lists the cache with one entry per model
(catalog.SameModel), taken from the provider that lists its window and
price. It fetches nothing. The picker lives in modellimits.js, loaded with
the model rows, so the core script budget is not raised (five comments in
renderModels cut to pay for the strings, 613 bytes of room before).
Run on mote at this tree:
- TestCatalogModelsListsTheSyncedCatalogOnce; broken by hand (last
provider wins instead of the one with window and price) it fails with
"kimi-k3 = {ID: ... }; want the provider that lists its window and
price".
- model-same-pick.test.cjs, 22 cases (chromium and webkit, en zh zh-TW ja
de, 400 and 900px): filter by maker, name and id, Enter picks, the
current one ticked, one catalog read, no scroll, no <select>, saved as
modelPrefs same; a failed read says so. With the filter argument taken
out of openProtoMenu it fails. provider-same-as.test.cjs still passes.
- gofmt, go vet (darwin, linux nogui, windows) on internal/gui,
TestCoreScriptBudget.
Full GUI suite at this tree (rebased on
|
||
|
|
88c417392e |
usage: a sortable model speed ranking on the Requests tab (@flying_crp on X)
Usage's Requests tab gets a "Model speed" card: per model, the median output tokens/s, the median wait for the first token and the request count, over the selected range, sortable by every column (aria-sort header buttons, quiet table, no gradients). A request counts when it was answered (not rejected, handed on, failed or canceled), its first token was timed and it wrote 100 tokens or more (usage.MinRankTokens; the tooltip says so). Computed locally: each chunk keeps a 2% log-bin histogram per model beside its cells (speed_rank.go, chunkPart.speeds), a page merges the chunks' histograms, so there is no per-request sort and medians are within ~1%. The settled chunks' histograms are in the page file; its key salt is now page-v2, so the first load after upgrade recounts settled history once. /api/ledger sends speeds and speed_min. Run (mote): gofmt clean; go vet darwin, linux nogui, windows for the touched packages and ./... earlier; go test internal/usage, internal/usageapi, internal/gui ok at this head; usage-model-speed.test.cjs 12 of 12 (chromium and webkit, en/zh/zh-TW/ja/de, 400px: order, sort by every column, aria-sort, focus kept, no horizontal overflow, ellipsis, hidden when empty); with i18n-keys and i18n-en-no-cjk 20 of 20; the whole GUI suite once on the branch before the rebase: every red is in a file unrelated to this change (account-arrange #6010, account-refresh-holds #5814, account-eye #5052, agent-switch-accounts #5925, bulk visibility and disconnect previews #5982 fixed in |
||
|
|
ae449f8e4f |
gui: the sidebar's tab lists give each tab a mark of its own
Library's, Usage's, Plugins' and Settings' tabs, listed under their page
in the sidebar (navSubs), were names alone while every page above them
has an icon (the owner, with a screenshot of Library's list). Each tab
now has a 14px line mark before its name, from NAV_SUB_IC by page and
tab id: segs gives its buttons data-seg (Usage's own strip too), and
Settings' tabs have data-set. A tab with no mark (none today) keeps an
empty slot, so the names stay in one column. The mark is muted, and
takes the row's ink when the row is hovered or picked.
The marks are in navicons.js, imported with the first list drawn, which
then draws again with them. Its one line in app.js is paid for by two
navSubs comments cut, so the core's script budget is not raised
(1,533,751 of 1,533,802).
German's longest Settings names ("Synchronisierung und Backup") were
cut with an ellipsis at 1100 before this; "Netzwerk und Freigabe" now
is too (7px). Left as is: shortening the word would change it in five
other German sentences that name the tab.
Run:
- nav-sub-icons.test.cjs (new): every row of the four lists has its
mark, 14px, before its name and level with it, one column per list,
names whole (not German); en zh zh-TW ja de, Chromium and WebKit, on
WSL (magpie-desktop): 12 of 12. Red with Library's memory mark taken
out by hand ("library: Memory has a mark").
- go test ./internal/gui on Windows: 8 reds, the same 8 alone on
origin/main
|
||
|
|
9212185a73 |
gateway keys: Model names is a row of name and a picked model, not a textarea (tsingchao on X)
The key's Model names editor was one textarea of "name = provider/model" lines. It is now a row a name: the name typed, the model picked in the app's menu (search by name or id), x to remove, Add a name for another, the Headers editor's row. A row with a name and no model, or the reverse, holds Save off; a row with neither is left out. aliases-key's body and the saved data are as before; the line-format message is gone, so is its key. Run (mote): gateway-key-search-names (rewritten for the rows) + i18n-keys, 24 ok, chromium and webkit, en/zh/zh-TW/ja/de, 1100 and 440. Broken by hand: half-row check off, the test goes red in all 10 chromium cases. Screenshots before and after in chromium, dark and light, 900 and 420. Not tried: Windows/Linux GUI run; the whole GUI suite runs after the tag. |
||
|
|
47e30d0e97 |
gui: the Mac's title bar drags while a dialog is open, and the bar's middle does everywhere (ssuuuuooo on X)
v0.1.3624 added the .modal-grip strip but it could not work on the Mac: there the scrim begins under the bar (body.window.mac .modal top: 50px), so the strip sat below the bar, while the bar itself (header, sidebar top) is inert whilst a dialog is open (modalBackground), and an inert element is not hit, so nothing there carried --wails-draggable. On Windows and Linux the strip worked only at the sides: the dialog's 16-28px top padding let a tall dialog (the provider editor) lie over the strip's middle. Now on the Mac the strip reaches up over the bar (top: -grip height; a fixed child would not do, the scrim's backdrop-filter is its containing block), and off the Mac the scrim's top padding is at least the strip's height so no dialog lies over it. docs/subsystems/gui-shell.md updated. Run (mote-run, chromium and webkit): modal-title-drag.test.cjs gains "the middle of the title bar drags with a tall dialog open" (web and mac classes, 5 x 3 points along the bar, header inert): 0 of 4 on the old css, 4 of 4 now. With modal-*, dialog-*, add-sheet*, signin-closes-sheet, sidebar*, click-scroll, panel-drag-linux, title-bar-tools, i18n-keys, popover-mac-chrome, editor-roomy: 351 pass; the 3 reds of that run (modal-centred-late, sidebar-overlay-scrollbar webkit, title-bar-tools zh-TW webkit) pass 36 of 36 rerun alone at this tree, and sidebar-overlay-scrollbar webkit also failed once on the base (load). Not tried: a real drag in the signed macOS app (the test checks the --wails-draggable value under the pointer, which Wails reads); the confirmation (action-confirm, top layer) still has no strip. |
||
|
|
71c4ef2d07 |
gui: Bark push target for every alert, and a daily spend summary (EV_John_Liu on X)
Settings > Usage has a Bark row: a server (default https://api.day.app, or
a self-hosted one) and the device key, then Test and Remove. Every alert
that goes through notifier.sendAs (allowance, balance, reset reminder, task
done, masking, sign-in) is also pushed to Bark when a key is set, whether or
not the system lets this computer notify. A second row, once a key is set,
turns on a daily summary at a time of day: today's cost and request count,
and each window or balance near its cap (the Allowance alert's share, else
80%), capped at 8 lines. It is pushed once a day (a restart does not resend;
a failed push is retried every 15 minutes; one more than 6 hours late is
left), in the page's language (en, zh, zh-TW, ja, de).
The device key is a key: the page only gets barkKeySet, never the key; it has
its own route (POST /api/settings/bark, key omitted keeps it, "" removes it),
a Settings save carries it (settingsapi.Merge), and a backup or sync without
keys leaves it out and keeps this machine's. No log line or error names it
(the Bark client replaces it with "..." in what the server or client says).
bark.js is a lazy module so app.js (budget) gains one line.
Run (mote, at the pushed tree before the rebase onto
|
||
|
|
fd568caf7d |
plugins: Discover is one market, with this week's picks on top
The owner asked for one market instead of three (magpie's community, other npm authors and repositories tagged magpie-plugin on GitHub) and approved the mockup: every plugin is the same card, its source said under its name, a strip picks the kind and a menu the source. The top is the week's picks: one a day from the community's most downloaded not installed yet, the most downloaded and the most starred. A search looks through every source at once, most used first. GitHub's slower answer shows a word that it is being asked, and a failed ask a quiet line with another go. The GUI tests that named the three sections now find the cards by source. plugin-manual-float picks Subscriptions so all 40 cards draw (Discover's shelves cap at 6). plugin-github waits for WebKit's wheel scroll to come to rest after reaching a card: it went on after the last wheel, and the scroll that was measured as the click's was its own (logged before, settled, open and closed: it moved before the click, never after). Run at 563b3dd92, the pushed head's tree (only messages changed since), on origin/main |
||
|
|
c4da9a97dd |
gui: the window drags from the title bar strip while a dialog is open (ssuuuuooo on X)
On the Mac the main window couldn't be dragged by its title bar while a dialog was open: #modal's scrim covers the whole window, including the bar, and had no drag region (--wails-draggable is read from the element under the pointer). #modal is the one overlay every dialog of the window uses (provider editor, new provider, what's new, sign-in, ...), so one strip fixes the class: .modal-grip, last child of #modal (app.js keeps the dialog the first child), as high as the title bar, drag. The dialog has z-index 1 over it and so is never a drag region, nor is the scrim below the strip, which still closes the dialog on a click; the strip counts as backdrop for modalBackdrop, so a click there closes it too. Not covered: the confirmation (action-confirm, a top-layer <dialog>); its ::backdrop hit-tests to the dialog element, which can't carry a strip. The add sheet is part of the page, not an overlay. Run (mote-run, chromium and webkit): new modal-title-drag.test.cjs (en, zh, 1100 and 440px; the provider editor and a new provider's editor): 8 of 8 pass; with the grip's drag style taken out it is 0 of 8. Also modal-*, dialog-*, add-sheet*, signin-closes-sheet, sidebar, click-scroll, panel-drag-linux, title-bar-tools, i18n-keys: 162 pass. go test ./internal/gui ok; go vet darwin, gofmt clean. Not tried: a real drag in the macOS app (the test checks the --wails-draggable value under the pointer, which is what Wails reads); windows/linux go vet of internal/gui (no assets-only Go change). |
||
|
|
5b28e85999 |
gui: the open-source licenses text takes the dialog's whole width (JiuLiaowkvn on X)
The notices <pre> sat in the editor grid's first column (fit-content 132px, or 35% at 420px) once framed, so only a narrow strip of the dialog showed text. It now spans both columns. Run (mote, chromium + webkit): about-notices.test.cjs, 20 pass. The new width assertion fails on the old CSS (15% of the dialog at 1100, 35% at 420), passes after. Not run: the rest of the GUI suite, full go suite. |
||
|
|
4623f54190 |
gateway: HTTPS for other computers, from magpie's CA or an imported certificate (zhangly1 on X)
zhangly1 on X: Claude on another computer on the LAN needed magpie at https://. Settings → Network and sharing → HTTPS (magpie https on) serves other computers TLS on the gateway's own port, with a certificate magpie's CA (the mTLS one, in ~/.config/magpie/mtls) signs for this computer's names and addresses; this computer keeps plain http://. The switch is read per connection, so no restart. - Certificate row: Import… takes the user's own PEM certificate (with chain) and unencrypted key, in any files and order; a pair that can't be served (no key, no cert, a stranger key, a passphrase, run out, nothing PEM) is refused with the reason in the page's language and leaves nothing behind. Remove goes back to magpie's CA. --tls-cert still comes first. - magpie's CA row: SHA-256 shown, Save puts magpie-ca.crt in Downloads; the gateway serves it without a key at /magpie-ca.crt to any address the share lets in. Rows under it give curl -kO, macOS, Windows, Linux and NODE_EXTRA_CA_CERTS steps with Copy. - A page open from another computer can't turn HTTPS on or off under itself (it would lose its own address). - magpie https status|on|off|import|remove|ca --out; the serve banner names magpie's CA or the imported file instead of "(mTLS)". - docs/reference.md and gateway-routing.md say all of it, and that Windows' curl.exe needs --ssl-no-revoke for any private CA. Run: - gofmt -l clean; go vet linux -tags nogui ./internal/..., GOOS=windows and GOOS=darwin -tags nogui vet of the touched packages (WSL, mote refused ssh all evening). - WSL: go test -tags nogui gateway -run HTTPS|MTLS|ClientCert|CAFile|TLS|LAN ok; gui -run HTTPS|MTLS|Keep ok; settings, settingsapi, mtls ok; cli -run Help|HTTPS|TLS|Serve|Banner|Flag|Unknown ok. The whole cli package hit its 40m timeout in TestEveryAgentFieldNameWritesNothing (#5234, #4247, not this change). - GUI (WSL Playwright, chromium + webkit): https-settings (en, zh, 390px, strings in all four languages) ok, plus mtls-settings, allow-ips, browser-access, cors-origins, gui-de/ja/zh-tw, i18n-keys, i18n-en-no-cjk, lan-*, public-url*, api-key-theme, connect-address-kept, gateway-connect-keys, gateway-caller-keys, side-gateway-lan, menu-scroll. Reds at load ~130: api-key-theme (#5044), connect-address-kept (#5972), gateway-caller-keys (#2572), gui-ja (#5943), lan-docker (#4692), all red the same at base |
||
|
|
6bac8f8a59 |
gui: magpie web on a phone has a tab bar with More (geraldpppppp on X)
On a phone, magpie web's pages sat in a strip under the header that scrolled sideways, with nothing to show that more pages lay past its edge. Agents, Library and the rest looked missing. The pages are now a tab bar at the foot, as an iPhone app's (HIG): each tab its mark over its word, the page open marked. Five tabs at most: with more pages than that, the fifth is More, and its menu lists the rest with their marks and a tick on the open one. More is marked while one of them is open, and it carries the dot when one of them has one. phonetabs.js does this. app.js loads it lazily only on a phone, so the core script doesn't grow. A status line comes up over the bar. The bar is only for the window, never the tray panel (body.panel). Agents still isn't shown in gateway mode on a machine with no agents, as designed (Settings > General > Gateway mode brings it back). Library has been shown in gateway mode since |
||
|
|
4d95d81eae |
providers: Custom provider beside the add sheet's search (jackutan on X)
The add sheet drew "+ Custom provider" only under every preset section (vendors, relays, local, remote), and only while the search was empty, so it was hard to find. It is now a text button in the sheet's head, right after "Find a vendor…", there as the sheet opens and kept while searching; its old hint is its title. A search that finds nothing still offers "Add it as a custom provider" in its line. Below 760px the head wraps: the title, Import… and Close on the first line, the search and Custom provider on a line of their own, so no language clips them. The foot line and its styles are gone; app.js is 248 bytes smaller. Run (WSL magpie-desktop, Playwright 1.62.0, Chromium + WebKit): - add-sheet-custom.test.cjs (new): en, zh, zh-TW, ja, de at 980, 761 and 420px, 32/32 pass. Against origin/main's assets (MAGPIE_ASSETS) 0/32: no button in the head. - add-sheet, provider-detect-draft, provider-add-gemini, model-id-space, provider-curl-paste, system-one, provider-add-models, provider-url-each-api, provider-retrieval-only, i18n-keys (selectors moved from .custom-foot to .row-head) pass, but for reds that are red the same at origin/main |
||
|
|
e7a08dcea0 |
usage: a long plan name gives its room up, and ChatGPT's self_serve_business_prolite reads Business (visamzh on X)
visamzh's Usage card showed a Codex seat's plan as "Self_serve_business_prolite": ChatGPT's raw plan_type from /wham/usage and the token, capitalised by CSS. `.plan` was `flex: none`, so the account's email beside it was squeezed to nothing. - Names: planName() maps a plan id to what ChatGPT.app's own bundle calls it (self_serve_business_prolite and self_serve_business_usage_based are Business, ent26 and enterprise_cbp_* are Enterprise, free_workspace Free, prolite Pro Lite, promax Pro Max, edu_plus/edu_pro). Only what is shown changes; q.plan stays the raw id, so quota-all still averages per plan. Used everywhere a plan is shown: the Usage card's account rows and head, the panel's group note and card titles, the quota-all line, the Providers editor's account line, the tray-usage option note, Routing (row subtitle, account row, group quota line, account pickers) and gateway keys' account pickers. - Layout: a plan shrinks first and ellipsises (`flex: 0 100 auto; min-width: 3em`), with its full text as its title: .subscription-account .plan, .subscription-head .plan, .pq-gnote and .acct .plan. Run (mote, macOS, Playwright 1.62.0): - New plan-name-fits.test.cjs, chromium and webkit x en, zh, zh-TW, ja, de: the Usage page at 1100/760/420 (four Codex rows, one with an unnamed long plan; a Volcengine head with a long plan), the panel at 440/360 and the Providers editor at 1000/560. 10 of 10 rebased on |
||
|
|
9c39edb92c |
agent: Avibe, magpie as a model source through its Model Hub (alex_metacraft on X)
Avibe (avibe-bot/avibe, avibe-os on PyPI, the `vibe` CLI) runs its own
agent, Vibey, and Claude Code, Codex and OpenCode, all on models from its
Model Hub. Its sources live in model_hub.sources of config/config.json in
$AVIBE_HOME (else ~/.avibe, else a legacy ~/.vibe_remote), but a source
can't be written there by hand: its key is sealed in the hub's credential
store and Avibe puts it into its agents' route chains as it is made.
So the Avibe row adds "magpie" the way Avibe's Models page does, through
its internal API (POST /internal/model-hub on state/dispatch.sock, or on
Windows the loopback port + bearer of runtime/control-ipc/endpoint.json):
create_source with kind api_key, vendor custom, base_url the gateway's
/v1, key agentKey("avibe"), protocol openai_chat and save_unverified.
Avibe then lists the models from /v1/models and adds the source to
Vibey's, Claude's, Codex's and OpenCode's chains itself.
- openai_chat, not openai_responses: for a Responses source Avibe's
CLIProxyAPI runs Codex's executor, which sends codex-tui headers the
gateway would take for Codex.
- Off is delete_source with force, sent again with the would_remove_hops
and would_interrupt Avibe answers, as its page confirms them. Sync is
refresh_source the same way; on a moved gateway the source is made
again (the key goes with the address; patch_source can't change it).
- The source id is stashed; a custom source at the gateway's /v1 counts
as magpie's too and is stashed once seen.
- Every change needs Avibe running; otherwise the switch says to run
`vibe start` (errAvibeDown). Nothing is written to config.json.
- A sync moves the source only from the gateway's own address on an
older port (avibeMoved). One the user pointed at a NAS's or the LAN's
magpie, a local proxy's route, or a WSL distro's way to Windows stays,
as kept.away keeps every file-written agent's; a Rewire after a port
move sets it again through the field's Set.
- Every test of the package but Avibe's own finds an Avibe running for
each home (runningAvibe, served in-process), so the tests that connect
every agent (gateway moved, LAN and proxy addresses kept, drift,
ListOnly) take Avibe in too.
- The logo is a tile solid to its edges, so it joins app.css's tile rule
(icon-tile.test.cjs went red without it).
- AVIBE_HOME joins agentenv and the ~-expanding path vars (Avibe expands
it). Icon from Avibe's assets/logo.png (MIT), 64px.
Run:
- Real Avibe 3.2.5 (uv tool install avibe-os) in a sandbox HOME in WSL
magpie-desktop, with a fake OpenAI server as the gateway: magpie's own
code (a throwaway test, AVIBE_HOME + MAGPIE_ADDR) connected it, Avibe
discovered both fake models with "Authorization: Bearer magpie-avibe"
and put the source in vibey/claude/codex/opencode chains; Sync
refreshed; a gateway move to :3592 made the source again there and
stashed the new id; a second run found the source by address alone
and still followed the move; off removed it (list_sources []).
Earlier, by hand: Anthropic /v1/messages and /v1/responses through the
hub reached the fake as chat completions.
- wsl-run, at this head rebased on origin/main
|
||
|
|
07af9f86a6 |
providers: mark a provider and a routing group on a plan or pay as you go (EV_John_Liu on X)
EV_John_Liu on X asked for pay-as-you-go and token plans to be marked on providers and routing groups. A provider row now carries a quiet grey badge, Plan, Pay as you go, or Plan + pay as you go when its keys are on both (Volcengine's Coding Plan beside a pay-as-you-go key). It is read from what magpie knows: a signed-in subscription is a plan; a plan preset (Kimi Code, Qwen/Bailian token plans, OpenCode Go, ClinePass) is a plan; a preset region's own name (Coding Plan, Token Plan, Pay as you go) decides; other vendor and relay presets are pay as you go. Presets whose billing magpie can't tell (MiniMax, Ollama Cloud, ModelScope and others) and custom endpoints show nothing until the user says: the provider editor's Advanced has Billing (Auto / Plan / Pay as you go), and `magpie providers set <id> billing=plan|payg|auto`. The user's word always wins. A routing group gets the same tag when every on member is known; its title lists each member. Run on mote with these changes on origin/main ccc96b4a7; pushed rebased on |
||
|
|
79f5c15e91 |
agents: tick or clear a provider's models from the model list's rail (coolAndyHe on X)
coolAndyHe on X: an agent ticks every channel by default; they want only one or two, with select all and clear all. The model list already had Show all / Hide all in its foot and per provider group, but in the rail of providers (more than two, a window 600px or wider) a provider had to be picked first, then its header's button found. Each rail row now has a tri-state tick at its right: ticked, part ticked (mixed) or clear. A click ticks every model of that provider, or clears them, without picking it. "All providers"' tick is the foot's Show all / Hide all, asked twice as before. A model in use stays ticked, as Hide all keeps it. The default stays every model shown. An agent with nothing ticked can't connect (AllHiddenError opens the list), so "none ticked" would make a new user's first Connect fail. An agent with no saved list can't be told apart from a new one, so a new default would change what existing users' agents get. Clearing everything then ticking one or two providers is now two clicks plus one per provider. Run on mote with these changes on origin/main ccc96b4a7; pushed rebased on |
||
|
|
b358677305 |
gui: open a server's magpie in a window of the app (xuanwo on X)
xuanwo runs magpie on a server and wants the desktop app to show that
magpie's routing and usage. Browser access in Settings › Network and
sharing goes the other way: it serves this app's page to a browser.
Settings › Network and sharing has a new section, Another magpie. It takes
an address and a key. You can paste the whole link the server printed
(`magpie daemon install --web`, `magpie web`, or another app's Browser
access), and its k= becomes the key. The app then opens that magpie's own
web page in a window of its own. The window signs in through the server's
own webGuard with ?k=, the same way a browser does, and is traded for its
cookie. Nothing new is served here: the page in the window talks to the
server alone and gets no bound calls from this app.
- remoteAddr:
- https:// is used when no scheme is typed.
- Plain http is allowed only to an IP, localhost, a .local name or a
one-word name, so the key never crosses the internet in the clear.
This is also the rule a Mac's webview applies.
- userinfo and other schemes are refused.
- remoteProbe: before the window opens, it asks for the link without
following redirects. Only a 303 that sets a magpie_web_* cookie counts
as success. A 401, a 403 (allowed addresses), an untrusted certificate,
no answer, or any other reply is reported in Settings, translated.
- remote-magpie.json:
- It sits beside settings.json, mode 0600, and the key is never in
settings.json.
- GET /api/remote returns the address and hasKey, never the key.
- POST with no key reuses the key kept for the same address.
- POST /api/remote/forget removes the file.
- The routes are on the app's own windows' API only (!isWeb). A host that
can't open windows refuses.
Run (on mote, at this tree):
- go test -count=1 ./internal/gui/: ok.
- Go tests:
- TestRemoteAddr
- TestRemoteOpensTheOtherMagpie: real webHandler; wrong or missing key
refused, nothing kept; the pasted link opens; 0600; the key is not
returned; a cookie-jar client following the opened link reaches the
page behind the key; the kept key is reused; forget.
- TestRemoteNotMagpie
- TestRemoteNotOnBrowserPages
- GUI test, new: another-magpie.test.cjs. Covers 5 languages, 360px,
and a browser page with no section that never asks /api/remote.
- GUI suite: every GUI file that draws Settings › Network (18, the new one included), plus
i18n-keys, i18n-en-no-cjk and gui-de/ja/zh-tw. Chromium and WebKit:
307/307 pass. Also remote-magpie.test.cjs (the Remote magpie
provider's add sheet), run with the new file at the rebased head.
- gofmt -l: clean.
- go vet: darwin, GOOS=linux -tags nogui, and GOOS=windows on
internal/gui; ok.
Broken by hand:
- A 303 without the magpie cookie taken as signed in:
TestRemoteNotMagpie red.
- remoteRoutes outside !isWeb: TestRemoteNotOnBrowserPages red (200).
- renderRemote drawn on a browser's page, and errors not translated:
another-magpie.test.cjs red in zh/zh-TW/ja/de and the browser case,
in both engines.
Not tried:
- The real Wails window on macOS, Windows or Linux.
- A real server over https.
- Links on the remote page that open a new window (target=_blank,
window.open) inside the remote window.
- Settings › Text size does not rezoom a remote window that is already
open.
|
||
|
|
6b92824ff5 |
usage: a window's whole also at base rates, without long-context premiums (#5861, Norethcy on X)
A window's whole (WindowHolds) is priced at API list prices, which charge
GPT-6.1 Sol's input above 272K at a premium a subscription's own use
doesn't pay. A cycle with more long calls then reads as a larger
allowance: NorethSea's previous week came to $76.56, $53.52 without the
premium, against $56.99 for the current one.
Each priced call is now also costed at its model's base rates, the
long-context tiers left out and a peak hour's price kept (baseRates), and
the window's whole sent as BaseCost beside Cost, only when the two differ.
Past cycles get it too (HistoricalWindowHolds goes through windowHolds).
On the card the figure then says which it is ("≈ $76.56 API") and is a
button: a click switches every card, past cycles too, to the base figure
("≈ $53.52 base") and back, moves nothing, and is kept in the browser.
Its tooltip names both and says neither is an official dollar allowance
or a fixed quota. A window that paid no premium is drawn as before. The
ledger's and the API's real cost are unchanged. #4181 (auto-review calls
counted in the whole) is not part of this.
app.js and the core stay in their budgets with holdsLine's and holdsWhy's comments cut, no raise.
Run (mote's sshd reset every connection, so on the Linux box through
wsl-run; the package run at base
|
||
|
|
40ca0c88de |
gui: a model's price is set from the Usage page (soilzhu80 on X)
A model an agent runs is often in no provider's list, so no provider's
Model settings could price it. A model's row on the Usage page (its "…"
or a right-click) and its bar in the Sessions tab's Models card (a
right-click) now offer "Set price…": a sheet with input, output, cache
read and cache write in $ / 1M tokens, the maker's list price greyed in
the empty boxes. It sets the model's price from any provider (*/model),
the key `magpie model price '*/model'` writes, through GET/POST
/api/model-price (modelprice.go). A provider's own price for the model
still comes first. Restore default takes the price away. Sessions' stats
are forgotten on a save, so past calls are counted at the new price too.
A Sessions bar prices the id after its last "/", the id sessions'
priceOf looks up.
Run (mote): go test -run ModelPrice ./internal/gui; node --test
usage-model-price (chromium + webkit, 420px wide, en/zh/zh-TW/ja/de),
usage-clear (its menu now has Set price… above Clear usage…),
i18n-keys; gofmt -l; go vet ./... for darwin, linux -tags nogui and
windows.
Broken by hand: SetModelPrice skipped, TestModelPriceFromAnyProvider red
("set: 200 {Price:<nil>}"); Set price… taken out of the row menu,
usage-model-price red.
Not tried: a real gateway call priced after setting it in the real app.
|
||
|
|
35fb5ad1bd |
gui: Model settings searches and expands a long list (soilzhu80 on X)
A relay's Model settings, hundreds of models, was a small box to scroll
with no way to find one. A list of more than five now has a search field
in its head, matching each row's id, name and typed names (every word
typed, each anywhere), and an Expand that lets the list be as tall as its
rows while the editor scrolls. Escape clears the search before it closes
anything; a list of five or fewer has neither. The code is modelfind.js,
imported when such a list is drawn, so app.js gains one line.
Run (mote): node --test model-find (chromium + webkit, en/zh/ja/de, 420px
wide), names-fold, old-webkit, i18n-keys; gofmt -l; go vet ./... for
darwin, linux -tags nogui and windows.
Broken by hand: the modelFind call turned off, model-find red in every
language.
Red not mine: old-webkit's "styles hold up in Safari 15.0" fails on
.side-foot:has(> .nav-sub) from
|
||
|
|
286e3b6d5f |
gui: the tray panel's Usage tab puts a vendor's account first from its count (RealZeroP27 on X)
RealZeroP27 asked to switch the Codex account in use from the menu bar panel's quota page, not from the Providers page. A vendor group with several accounts on the panel's Usage tab now draws its count as a button (the count and a chevron). It opens the app menu (openProtoMenu) with the accounts the provider editor can put first, the first one ticked, and Manage accounts… at the foot, which opens the window's Providers page. Picking one does what the editor's Make first or Use does, through the same code: putFirst, now shared by the editor and the panel. Kept signed in to one, that is provider/arrange with the account first in the order; otherwise login/switch. The first account's card gets a small tick. It works for any subscription with several signed-in accounts (Codex, Claude, a plugin's), not only Codex. Setup-token, access-only and lapsed accounts are left out, as in the editor; kept signed in, so are paused or off ones. A vendor with one account that can be first keeps its plain count. The panel's provider list (panelAccts) is now also read when the Usage tab has two accounts of one vendor, one read at a time. The menu reads a fresh list first when only the kept one is drawn. pluginSubs falls back to that list, since the panel has no window list (it threw on null before). Budget: the menu is in panelfirst.js, loaded when the count is pressed, and the Allowances tab's arranging (panelArrange, hidePanelUsage) moved out to panelarrange.js, loaded when Arrange is pressed. That pays for the rest with no comments cut and no raise (#5918); the core is at 1,533,604 of 1,533,802. old-webkit's lazy list names both files. Run (mote, at this change on origin/main 662546e78; rebased after onto |
||
|
|
cec267f902 |
gui: a field's long explanation shows on asking, in the editor and Routing groups (yujezhang on X)
yujezhang on X (11-10): "现在界面好多描述都太繁琐了 ... 界面只保留完成
操作必需的信息". The longest always-visible lines left were in a
provider's editor (100 to 666 characters a field) and Routing groups'
settings (69 to 318). They now work like Settings' rows since 11-02:
with a mouse, the explanation rests out of sight and the row's hover
(450ms) or keyboard focus shows it in the shared .set-hint card. A touch
screen keeps every line. No layout moves, no new page, no info icon
(the owner chose hover on the row for Settings).
Removed or moved:
- Routing's empty caption ("Every request an agent sends to magpie
shows up here, routed for real.") is gone from the empty state: the
mode line above it says the same. The key stays, the panel uses it.
- A provider editor field's explanation (.fld > .hint.expl): Headers,
Certificate, Compaction, the routing and rate-limit fields and the
rest: in the card. A line with a link or control in it, a warning and
an error stay in sight.
- Two fields keep one short line in sight for what turning them on
costs: Certificate ("Turn it on only on a network you trust.") and
Compaction ("A conversation compacted this way continues only on
this provider and account."). New keys in zh, zh-TW, ja and de.
- The editor's own settings rows (.prov-prefs: warm-up, check-in,
resets) hide their lines as Settings' do; a result line (.say) stays.
- Routing groups: Found, Names and the three defaults' small lines: in
the card. The no-names line stays.
- settingshints.js listens on document, so the editor (in #modal) and
Routing get the card; the card grows from its row in 150ms, strong
ease-out, a fade alone under reduced motion.
A line held out of sight is position: absolute in its field's box
(.fld and .hint-row > .txt are position: relative): placed against the
page, deep in the editor's scroll, it grew the page a scrollbar and
made the editor 10px narrower, and account-weight's de 390 in WebKit
ran an account line 3px past its row. Its sr-only -1px margin is
dropped, so it no longer sits 1px left of its row (warm-at-times,
warm-now and checkin-now-account check every .sub is inside its row).
Tests:
- New editor-hints.test.cjs (chromium + webkit, en/zh/zh-TW/ja/de,
1100 and 420): at rest the explanation is out of sight and still
described; Certificate's lead is in sight on one line; a hover shows
the card with the text, inside the window, not over the name, nothing
moving, taking no pointer; leaving hides it; Tab onto a field shows
it; every out-of-sight line is placed in its own field; Routing
groups' lines the same. 42/42 with account-weight on the Linux box.
- Broken by hand: the hide rule replaced and ROWS without the editor
and groups: 0/20 red. The position: relative rule removed: 20/20 red
(the placement check), then restored.
- vertex-editor: a hint resting out of sight isn't "cut".
group-found-off: rows carry hint-row.
- 271 GUI files (every editor/edit= test, hints, visibility, prov-prefs,
rt-gset/rt-cap, i18n-keys, old-webkit) in both engines on the WSL box
(magpie-desktop), mine against a copy of
|
||
|
|
93a33d8174 |
agent: OpenBot's icon, its requests named its own, its skills in the Library (SSNQT on X)
SSNQT on X, magpie 0.1.3503 on macOS, OpenBot (
|
||
|
|
d374168d04 |
gui: Settings stays where it was clicked in the sidebar (jen_celeus on X)
In the sidebar layout Settings sits at the sidebar's foot, and opening it
listed its eight tabs under the button. The foot is anchored at the
window's bottom, so it grew upward and the button rose about 223 points,
out from under the pointer, and dropped back when another page folded the
list.
Settings' tabs now open above its button and grow up from it, so the button
and the gateway's line stay where they were. The foot is laid from its end
(`.side-foot` is `column-reverse`, its rows ordered tabs, Settings, gateway
and kept whole). A window too short for the list scrolls the foot from its
end, so the button stays in sight, and the foot may take 80% of the sidebar
while the list shows instead of 55%. The list's DOM order is the order
shown, so Tab reads tabs, Settings, gateway. The rows rise from the button,
nearest first. The overlay bar's thumb math takes the reversed scroll
origin. Nothing else in the layout changes: pages' own tabs still open
under their rows. The core-script budget is paid by cutting two sidebar
comments, with no raise.
Run (mote, at this head after rebasing on
|
||
|
|
efb75ad1f0 |
gateway: client certificates (mTLS), and Remote Magpie can show one (hhdaxia on X, #5596)
hhdaxia on X asked for mTLS so a shared magpie isn't open to the internet on a key alone; clxsh's #5596 asks Remote Magpie to send a client certificate and key (PEM) to an Nginx doing mTLS, the server still verified, the Gateway Key still sent, for models, the test and streaming. Server side (magpie's own CA, internal/mtls): - Settings -> Network and sharing -> Require a client certificate, or `magpie mtls on|off|issue <device>|list|revoke`. Issue saves client.pem, client-key.pem and ca.pem to ~/Downloads/magpie-<device>; the key is kept nowhere else. - With it on, a peer that isn't this computer or a WSL distro must finish the TLS handshake with a certificate the CA issued and hasn't revoked (RequireAndVerifyClientCert + VerifyConnection -> Admits). The TLS config is chosen per connection, so the switch needs no relisten; without --tls-cert the server certificate is made by the CA in memory. - lanGuard and ClientCertGuard (magpie web's page) refuse 403 what still arrives without a verified one: plain HTTP, a proxy or tunnel on loopback (unless MAGPIE_TRUST_PROXY=1), the page port, a connection from before the switch, a certificate revoked since its handshake. - Loopback, this computer's own address and a WSL agent with its key are answered as before. - A page open from another computer can't shut itself out: without a certificate it can't turn mTLS on, and it can't revoke or reissue the certificate it came with. Client side: a provider with a base URL of the user's own (Remote Magpie included) takes ClientCert, ClientKey and ServerCA paths (editor: Advanced -> Client certificate). netproxy.WithClientCert shows them to that provider's own hosts only, on a transport per identity keyed on the files' mtimes; through an https:// proxy such a request is refused. Save refuses half a pair, a pair that doesn't match and a CA that isn't one. Run (on mote, at 4024df0f9, this commit before its rebase): - gofmt -l clean; go vet darwin, GOOS=linux -tags nogui, GOOS=windows. - go test -count=1 ./internal/mtls ./internal/netproxy ./internal/provider ./internal/settings ./internal/settingsapi ./internal/cli ./internal/gui ./internal/gateway: ok (gateway 893s). The first run had three reds of this change, each green at base and fixed here: TestEveryRouteHasACommandOrIsNamed (the mtls routes now name `magpie mtls`), TestSettingsSaveKeepsWhatItDoesNotSend (MTLS kept), and TestGoroutineDumpAnswersWhileRequestsWait (mtlsRefuses asks whether the peer is remote before reading settings, so a local request never waits on the settings lock). TestHandedOffGatewayAnswersAConnectionNotedLate was reset because ServeTLS now always wraps the listener: tlsListener hands a connection it took as Close came to the server instead of dropping it. -count=3 of these and every TLS/MTLS/Handover/Relisten test ok. - Every route without a certificate, with a foreign one, a revoked one and a good one: TestMTLSOtherComputerHandshake, TestMTLSGuardEveryRoute, TestMTLSThisComputerAndProxies, TestMTLSToggleWithoutRelisten, TestMTLSRevokeMidConnection, TestClientCertGuardPage. Remote Magpie against an httptest server asking RequireAndVerifyClientCert: models and the connection test fail without the certificate and pass with it (TestRemoteMagpieClientCert). - GUI: the 92 files near the change (settings-*, provider-*, editor-*, lan-*, i18n*, allow-ips, remote-*, mtls-settings new) in Chromium and WebKit: 2904 pass, 74 fail, all in nine files red the same way at base |
||
|
|
0a44c1c845 |
usage: a dragged card moves alone, a slot shows where it lands, and it lands there (jen_celeus on X)
jen_celeus (macOS 27 beta 3, 0.1.3511): the first drag of a Usage card
moved the whole card area, nothing showed where it would go, and on
release it landed after a different card.
- dragScroll: an edge scrolls only once the pointer has left it. With
the page scrolled a little, a first-row logo sits inside the 36px top
edge, so pressing it scrolled the whole view at once. dragRows shares
it.
- dragCards takes a layout: each frame it picks the order that puts the
card nearest where it is held (8px hysteresis) and moves the others to
where that order puts them. The Usage page passes usageLayout, the
packing's own columns (usagePlace, split out of packUsage), so cards
of different heights no longer overlap in the preview. The panel's
pq-alist keeps the default (card k where card k is now).
- A dashed .drag-slot under the cards shows where the card will land
(ease-out .22s move, .15s fade in, no movement under reduced motion).
- packUsage's column-count key is the sorted card keys: a reorder used
to re-choose 3 columns or 2, so the card landed somewhere other than
where the preview showed it.
- TestCoreScriptBudget: comments in the Usage and tray-usage code were
shortened to stay in the core budget with no raise (within
1,533,802 at this head).
Run at this head: internal/gui/tests/usage-drag.test.cjs (new) in
chromium and webkit, en and zh, 4 of 4, on mote; the 25 related GUI
files (usage-*, drag/grip/arrange/order/sort tests, click-scroll,
view-middle-autoscroll, i18n-keys) on Linux (wsl-run), 424 of 426:
the two reds are click-scroll's webkit "a wheel the page hears of after
its scroll" and its parent, red the same with this change's app.js and
app.css taken out (#4385, open); after rebasing on
|
||
|
|
9e51c5c2a8 |
gateway keys: account groups a key may use or keep out (LeiWang_2000 on X)
LeiWang_2000 asked for account groups, so a gateway key can be limited to
a group of accounts, or keep a group out, instead of picking accounts one
by one (on top of v0.1.3504's "Keep accounts out").
An account group is a named set of accounts of any providers, kept in
account-groups.json beside caller-keys.json (access.AccountGroup). A key's
account list names one as "@<id>" (use only its accounts) or "!@<id>"
(every account but its). identityOf expands the groups of the key and of
its issuer on every request, so every route that reads the Identity
(AllowsAccount, HeldModels, the routes' model checks) holds to the group
as it is now: a membership change reaches every key naming it at once, and
an account signed out since matches nothing. Fails closed: a group gone,
or a used group with no account, holds the key to nothing
(heldToNothing); unreadable groups refuse a key naming one and leave other
keys alone. A group a key names can't be removed (the error names the
keys); ReplaceAccount moves a rotated key in the groups too. Groups are
backed up and synced (WebDAV) with the gateway keys. A magpie older than
the mark reads "@<id>" as an account of no provider and fails closed.
CLI: `magpie gateway-key groups add|set|rename|remove`, and
`gateway-key accounts <id> @Work` / `!@Work`.
GUI: an "Account groups" editor (modal, rows of name + accounts picked in
the app menu) from the keys' header; the key's account menus list the
groups as options; the badge says "Work" / "Not Work". No layout change to
the rows.
Tests:
- internal/access TestAccountGroupHoldsAKey / ...AnIssuedKey: save rules,
name->id, used+kept-out refused, held/kept-out allows and models, a
change reaching both keys, rotate, remove refused, empty group, groups
gone, unreadable groups.
- internal/gateway TestGatewayKeyAccountGroupsKeyedRoutes: a held and a
kept-out key on 7 routes, flipped by a group change, and nothing asked
once the group is gone.
- internal/cli TestGatewayKeyAccountGroupsCLI.
- GUI gateway-key-account-groups.test.cjs: 5 languages x chromium/webkit
x 1100/440.
Broken by hand (each red, then restored):
- identityOf not expanding groups: access test red, gateway test 403.
- a gone/empty held group not becoming heldToNothing: access test red
("held to an empty group"), gateway test asked kA with the group gone.
Run on mote at this tree: gofmt -l clean; go vet darwin (touched
packages), GOOS=linux -tags nogui ./..., GOOS=windows ./... clean;
go test -count=1 access, cli, gui (size budgets included), backup,
davsync, gateway: all ok;
GUI: every gateway-*.test.cjs plus i18n-keys, i18n-en-no-cjk, key-page,
plugin-kernel, readable-focus, chromium + webkit: 571 of 574 at
--test-concurrency=6. The 3 reds: gateway-caller-keys and
gateway-key-models chromium en (the 560px read, red on main too, fixed in
the next commit), and gateway-key-groups zh once, 12 of 12 alone (#1974).
Rebased on
|
||
|
|
8287e24c79 |
usage: a card is as tall as what it holds, none stretched to the tallest (jen_celeus on X)
jen_celeus: the Usage cards didn't size to their content but filled the whole height, leaving a large empty space. packUsage gave the last card in each column a min-height down to where the tallest column ended (ikunbots on X, |
||
|
|
add47afd82 |
usage: a card's ⋯ opens its menu, Hide from Overview where it is seen (jen_celeus on X)
jen_celeus asked to hide providers with no usage information, OpenCode
Zen and the like, from Usage. The hide was already there
(UsageCardsHidden, Hide from Overview, the "n hidden" line with Unhide
and Show all), but it sat behind a right-click, a long press or the drag
handle's menu, and nobody found it. Each card's head now has a ⋯ button
(quotaCardMore), the Agents row's pattern: shown on hover and keyboard
focus, always shown where nothing hovers, opening the same menu
(quotaCardMenu, now anchored on the ⋯), a second click closing it. On a
phone it keeps 22px with a 44px-high hit area that stops at the card's
edge (an even -11px inset spilled past it: usage-accounts-fold,
usage-keys-fold and usage-shared-balance said "card spills"). The long
press leaves the ⋯ alone. Its label reuses "Actions for {name}", already
in every language.
Run (mote): usage-card-more.test.cjs (new: Claude beside a Zen card with
a plan and no windows; en, zh, zh-TW, ja, de at 1200, 560 and a 390 web
phone; chromium and webkit): the ⋯ is there with its label, hidden at
rest where hover is, shown on hover, never over the head's text where
nothing hovers, menu = Hide from Overview, toggles, the hide posts
{cardsHidden:["opencode-zen-free|plan"]}, no scroll, the "1 hidden"
line's Unhide brings it back, no page errors. The 154 GUI files that
load the Usage page plus i18n-keys, both engines: see the next commit's
record. gofmt; go vet darwin, linux -tags nogui, windows;
go test ./internal/gui/ (budgets) ok.
Broken by hand: without head.append(quotaCardMore(...)) the new test is
red in every subtest (chromium 0 of 16).
Not tried: the real app's WebKitGTK and Windows WebView2 windows; the
web page on a real phone.
|
||
|
|
b922e51685 |
agents: nanobot gets magpie as a provider of its own (Niapyaya on X)
nanobot (HKUDS/nanobot, pip install nanobot-ai) is now an agent magpie connects. Its config is read from its own source (5c72ced, 0.4.1): ~/.nanobot/config.json, camelCase or snake_case keys, any extra key under providers an OpenAI-compatible endpoint whose name is stripped from the model. magpie adds providers.magpie (apiBase at the gateway's /v1, its key, and extraHeaders User-Agent nanobot), and sets agents.defaults provider magpie, model magpie/<id> and contextWindowTokens when the window is known. What the user had there, both spellings, and a modelPreset that would go over magpie's model, is stashed and put back on disconnect, the window as a number. A file magpie made goes again. Also in WSL distros, with a notice in every language, the icon (a tile in app.css's rule), READMEs, site list, docs/reference.md and agent-wiring.md. Run: - real nanobot 0.4.1 on mote in a sandbox HOME (~/nbsb), a sandbox gateway on 47812 over a fake OpenAI upstream: `magpie nanobot magpie/fakeup/m1` wrote the config and kept the user's relay provider and channels; `nanobot agent -m ping` answered "pong from fake upstream"; the upstream saw POST /v1/chat/completions, model m1, UA nanobot; `magpie nanobot default` put relay/glm-4.6 back exactly. - go test ./internal/agent ./internal/gui ok; ./internal/gateway and ./internal/cli -run 'Client|UA|Agent|Empryo' ok; go vet darwin, linux -tags nogui, windows ok; gofmt -l clean. - GUI, chromium 110/110 and webkit 65/65: i18n-keys, i18n-en-no-cjk, agent-notice-lang, gui-de, gui-ja, gui-zh-tw, icon-one-tone, icon-tile, routing-client-icons, usage-agent-filter-icons, agent-connect, agent-models, agent-layout. Broken by hand, each red in TestNanobot: modelPreset not stashed (preset left over magpie's model), the made file not removed, and the window restored as a string. Not tried: a real vendor behind the gateway (fake upstream only), nanobot's long-running `nanobot gateway`/WebUI picking the change up live, and WSL. |
||
|
|
0549e5301a |
masking: Send requests unmasked is found from Settings › Privacy and holds on every route (CrazyMouse_TT on X)
CrazyMouse_TT runs a model of their own and wanted masking off for it.
The switch already existed (the provider editor's Advanced › Send requests
unmasked, provider.Unredacted), but nothing near masking pointed to it,
and it held only on chat-shaped routes.
- Settings › Privacy has a "Sent unmasked" row: each provider set so is a
button that opens its editor with Advanced open; with none, the row says
where the switch is (settingsJSON.UnmaskedProviders, redact plugin's
unmaskedRow).
- Images (draw.go), videos (video.go) and Ark's own API (native.go) go as
written when every model they may go to is such a provider
(unmaskedMembers); a group with one member left on stays masked, as a
chat's route does (unredactedRoute).
- A Remote magpie may be set so too (SkipsRedaction no longer refuses
it): it is sent the request as written with no X-Magpie-Masked-As, so
it masks by its own Settings and switches, once, before any vendor
(1d6d263ee's hop). Left off, it is masked here, as before. The editor
says so for a remote magpie.
- Default stays off for every provider: nothing changes for anyone who
hasn't ticked it.
app.js stays under TestCoreScriptBudget by a shorter unmaskRow call and
three trimmed comments (app.js -51 bytes vs base).
Run (mote, at this tree): gofmt -l clean; go vet darwin, GOOS=linux
-tags nogui, GOOS=windows clean; go test -count=1 ./internal/gateway
./internal/provider ./internal/cli ./internal/masking ./internal/gui ok.
GUI (chromium + webkit, 5 languages, 1100/440px):
provider-unmasked, unmasked-providers, i18n-keys, i18n-en-no-cjk,
redact-route: 126 pass, 0 fail. masking-records.test.cjs is red the same
on origin/main
|
||
|
|
3cfbc19b05 |
gui: the wheel over a short model list scrolls the provider editor on
A provider's model chips held the wheel with overscroll-behavior: contain on .mchips itself. Chromium holds the wheel in such a box even when it doesn't overflow, so with the pointer over a short list (the chips fit) the editor's body never scrolled on to the Advanced fields under it. The chips now hold the wheel only while they overflow, through the app's :where(.holds) (set by holds() on pointerover and wheel), like every other scrolling list. A long list still scrolls on its own and keeps the wheel at its ends. Test: editor-chips-wheel.test.cjs, Chromium and WebKit at 900x700. Three chips: the wheel over them scrolls the editor's body, the page never. Two hundred: the chips scroll to their end, then three more wheels leave the body where it was. Broken by hand, each red, then put back: - the old .mchips rule: Chromium red, the body stayed at 0 under the short list. - .holds not given to the chips (contain removed with nothing in its place): red both engines, the body ran on 173 -> 353 past the long list's end. Run (mote, at this tree on |
||
|
|
ca5e537ecb |
usage: traffic over time in Requests' chart, and how fast it flows now (songlairui on X)
songlairui on X asked for the gateway's bandwidth: many LLM calls, base64
images above all, weigh on the network. Each request's row already kept
its bytes up (UpBytes) and down (DownBytes), shown in its details and as
the period's "↑ · ↓" under the Requests card. What was missing was
bandwidth over time and right now.
- The Requests chart's metrics take Traffic: each hour's/day's bytes up and
down, stacked by model, provider or agent. Its axis is in bytes ("4 MB"),
its tooltip splits a column into "↑ up · ↓ down", and the ranking's
values are bytes with the same split under each. A period with none
says "No traffic counted in this period". A chart point's Part now
carries up_bytes/down_bytes, from rows (Part.add) and from the request
page's cells (Part.plus). The cells already kept Totals, so no cache
version bump is needed.
- While requests are in flight, the Requests card says how fast traffic
flows now: "↑ 1.0 MB/s · ↓ 40 KB/s", over the last ~3s, read from the
new GET /api/usage/traffic a second apart. That route reports the
gateway's running totals (Server.Traffic) and its requests in flight.
The totals are atomics added where a row's bytes are added (sentUp,
downCount.Read). So a stream counts as it arrives, nothing is buffered
or scanned, and the totals and rows count the same bytes once. Polling
runs only while Usage → Requests is shown and the window is visible.
The line goes when nothing is in flight and nothing flowed. When another
magpie serves the gateway, the route answers {} and the page shows no
rate.
A Codex turn on the Responses WebSocket (
|
||
|
|
ab084fdf25 |
gateway: a model's own system prompt, added after the agent's on every route (liucl on X)
liucl asked for a system prompt per model rather than per agent. A provider's editor now has a System prompt box in each model's Model settings row (Providers > a provider > Model settings). The gateway adds the text after the agent's own system prompt on every request for that model, whatever agent sends it. Empty, the default, sends the body byte for byte as before. It is only ever appended. Codex's base_instructions, Claude Code's identity block and any agent's prompt stay first and unchanged (withModelSystem in internal/gateway/model_system.go), in the agent's protocol, in serve's candidate loop after triedOn, so before translation and before a plugin's fetch: - Anthropic: string system + "\n\n" + text; a block array gets one more text block; none gets system. - Chat: the last leading system/developer message gets it after a blank line (or one more text part); none gets a system message first. - Responses: a developer message after the leading system/developer items, instructions untouched; a string input becomes that message plus the user's; none when previous_response_id is set (the turn it follows had it). - Gemini: systemInstruction / system_instruction gets one more part. count_tokens counts it (countOn). magpie's own asks (search and vision side calls, Codex titles, the router's classifier) get none. A fallback to another model gets that model's own, or none. Stored as settings.modelSystemPrompts["pid/model"] (SetModelSystemPrompt: trimmed, at most 64KB, no NUL, a model the provider serves), saved through modelPrefs[id].system; renames carry it (perModelFields). The Restore default title now says it takes the system prompt away too; the four tests that pin that title follow it. app.js stays in its budget with one comment cut, no raise. Run, on mote at this head: - TestModelSystem* (every wire format with exact bytes, empty unchanged, own asks skipped, messages/chat/responses/gemini/count_tokens routes, another model sent byte for byte as before, a plugin's model), TestProviderSaveModelPrefs, settings keep test. - Broken by hand, each red then restored: no call in serve, no call in countOn, prepend in Anthropic, empty not guarded, own asks included, any model of the provider; SetModelPrefs ignoring system; the GUI not staging it. - GUI: model-system-prompt.test.cjs (Chromium and WebKit, en zh zh-TW ja de, 1200 and 420px), model-limits, model-headers, provider-same-as, provider-detect, provider-listed-as, i18n-keys. - Real run: Claude Code 2.1.321 -p in a sandbox HOME and CLAUDE_CONFIG_DIR, through a sandbox `magpie serve` built from this tree, to a fake Anthropic upstream recording bodies. Its /v1/messages system had 3 blocks, Claude Code's own first, the prompt once, at the end of the last block; count_tokens sent "Be terse.\n\nAlways answer in Chinese." - gofmt; go vet ./...; GOOS=linux go vet -tags nogui ./...; GOOS=windows go vet ./...: clean. - The full go test -timeout 45m ./... and the whole GUI suite were queued on mote at this head and run after the tag (the owner's ship-now rule); what they find goes in follow-up commits. Not tried: Codex or any agent other than Claude Code for real; a real vendor upstream; the Responses, chat and Gemini shapes only through the gateway tests' fake upstreams. |
||
|
|
b03a374763 |
gui: a subscription's resets, warm-up, check-in and Claude run are its editor's own fields under Advanced
The owner (11-09): the block of cards these lists made under Routing took most of the provider editor. Each list is now a field of the editor's Advanced, beside its own label (Resets, Warm up, Check in, Claude Code), first in it, and a field with nothing to show is hidden from the first draw, before the prefs have loaded. Settings' search still finds them: the hit opens the editor with Advanced open, brings the row into sight and lights it. In the editor's narrower column a row's name and control share the first line and its description goes under both (a grid), so a description that grows after a click moves nothing under the pointer. An account's own warm-up time goes under its Same/Own/Off picks, not before them, so picking Own at 440 wide no longer pushes the picks a line down. Tests: - In the editor a click holds what was pressed where it was (modalHold), and the editor may scroll to do it, so checkin-account, warm-at-own and codex-reset-lead check the pressed row's place on the screen, and that the page itself never scrolls, instead of every scrollTop. Each target is brought into sight first, so Playwright's own scroll before a click isn't counted. - reader.cjs's inEditor scrolls the editor's body with the wheel until the element is inside it and not covered, and checks again after the editor draws anew. - settings-groups: Claude's editor has Claude Code's run row too; the Usage part names alertHead and alertList (missed by |
||
|
|
98c4b2e814 |
usage: a request opens on a page of its own
geesehowardt7 on X clicked a request on the Usage page to see where it came from. The click on its time opened Routing, which they hadn't asked for, and the row's details had no source address. A row's click, or Enter or Space on it, now pushes that request's own page (#ledReqPane, ledReqOpen/renderLedReq) over the list. The page gives the model and status, then ledDetail: time, agent, source IP (the previous commit's client_ip: loopback reads "This computer · 127.0.0.1", a gateway row from before the field "Not recorded", rows read from session files, other computers and magpie's own calls none), requested, provider, account, sent, served, effort, then status, error, duration, tokens, cost, credits, speed and the archive. Routing is the View routing link in it, and the time cell no longer links there. "Requests ‹" or Escape (not while a menu, dialog or field takes it) goes back to the list where it was left, with the row focused (ledReqClose). Leaving the Usage page closes it (ledLeave(true)), and a refresh keeps it. The in-table expanding row (ledOpen, tr.led-detail) and its narrow-window lc-opt copies are gone, since the page shows every field at every width. It slides in 200ms with the ease-out curve, and only fades with reduced motion. "Source IP" and "Not recorded" are added in zh, zh-TW, ja and de. The 20 ledger test files that opened a row's details now open the page. usage-request-page.test.cjs covers the page, the address, the way back, focus and a 560px window. docs/subsystems/gui-shell.md describes it. Run at this commit's tree (rebased on origin/main |
||
|
|
9d4c338a67 |
gui: magpie web on a phone no longer scrolls sideways or keeps a band at its foot (#4943)
precis1onz (iOS Safari, dark, English, Usage) saw the page move sideways
and a dark band stay at the screen's foot.
- Sideways: Usage → Requests' "Split by" row (label and five choices) is
one unwrapped span, 393 to 558px wide at 375 to 430px. It was the only
thing wider than a phone in any view or language. On the phone layout
it now wraps inside the screen (app.css, phone block only).
- The band: the Requests table's stand-in scrollbar (#799) is sticky at
the view's foot, and a touch screen draws no bar in it, so it stood
there as an empty 12px band. ledHScroll now leaves it hidden on
(hover: none) and (pointer: coarse); a finger moves the table itself.
A desktop keeps it as before.
New test, phone-no-sideways.test.cjs: every view (Agents, Sessions,
Providers, Routing, Groups, Gateway, Library, Plugins, Masking, each
Usage tab, Settings' tabs) on an iPhone at 375 in en, zh, zh-TW, ja, de
and at 390 and 430 in en, in Chromium and WebKit, with long ids, emails
and paths; nothing may be wider than the screen and no empty band may
stay sticky at a view's foot. ledger-swipe now expects no bar on a
phone, and that the swipe moves the table.
Run (mote, through mote-run):
- phone-no-sideways: red on the old assets (
|
||
|
|
a1f2c37ea8 |
gateway: a key's limit editor says Key limits is off and turns it on
A gateway key's limit is the Key limits built-in's (budget). With it
switched off, the editor under the key's row drew as usual, and Save was
refused with "turn the plugin on" without saying where (the scattered
settings audit after netube99 on X). The editor now has a line, shown
only while budget is off (data-feature-off), saying "Off in Plugins ›
Built-in" with a Turn on that switches it on in place; the line goes and
the editor stays open with its draft.
New test gateway-key-limit-off.test.cjs: off, the line shows inside the
editor with its words and the page fits; Turn on posts {id: budget, on:
true} once and hides it; on, it is hidden. Every language, Chromium and
WebKit, at 1000 and 420 wide.
Run on mote: gateway-key-limit-off 20 of 20; gateway-key-limit,
gateway-key-limits, gateway-key-cycle and i18n-keys 38 of 38.
Broken by hand: without data-feature-off the line shows when on, red;
without Turn on's call the line never goes, red (timeout).
Not tried: the real app window.
|
||
|
|
b72256b599 |
gui: a Back in the title bar after a link into a setting, and a lit row keeps its corners
The owner (11-10): "点击设置链接跳转到设置页面之后,最好有一个返回按钮来返回到上一页,
类似于浏览器的返回按钮。" A link into a setting (openSettingsAt: the Usage
page's and Routing's Settings ›, the Gateway page's, a provider's, Plugins ›
Built-in's) and Plugins › Built-in's link to a page now leave a chevron
Back in the title bar, before the crumb (beside the sidebar) or after the
brand (the header's tabs), named "Back to {page}". It goes to that page:
the provider that was open, or Settings' tab and search. One step, like
a browser's first; going to another page by hand drops it. fitTop counts
it as the header's lead, so the tabs keep clear of it.
And (the owner, 11-10): "绿色边框的四个圆角会被切掉,这个很丑的". A lit row's
inset ring was square inside the list's rounded clip, so the first and
last rows lost their ring's corners. A lit row is rounded as the list is
inside its border (11px; 10px in the panel, whose lists have no border).
New test settings-back.test.cjs: Usage's Settings › lights the row with
rounded corners, Back shows with its name, fits, overlaps nothing in the
title bar, and goes back; Routing's the same; a page picked by hand drops
Back. Every language, Chromium and WebKit, 1100 and 420 wide.
The core's script budget pays for Back with five long comments in app.js
cut to a line each (Back's own, Built-in's rows, the refresh, its spin's
stop, a growing part's hold), no raise; TestCoreScriptBudget ok on mote.
Run on mote: settings-back, i18n-keys, settings-places, title-bar-tools:
53 of 54; the red is title-bar-tools' known WebKit flake (#2740, #4716),
red 1 run in 3 alone, the same at the base.
Broken by hand: without renderBack in show, settings-back red; without the
11px radius, red with row 0 vs list 11.
Not tried: the real app window.
|
||
|
|
a8aeb2cad2 |
usage: picked days can start and end at a minute
blrbrzkj on Discord asked to see usage from one time to another, not only whole days. The range menu has a start and an end time under its month (empty is the whole day; 9:30, 0930 and 09:30 all read 09:30). Picked with the days, the period is "2026-10-01T09:30..2026-10-01T18:00"; Enter applies new times to the days already picked. A time that isn't one, or an end not after the start on one day, is marked and asks for nothing. The opt says "Oct 1 09:30 – 18:00". The backend reads either end as a date or a date with its minute (usage.RangeOf, bounds); an untimed end is its next midnight. A timed range of 48 hours or less is drawn by the hour from the first's hour. CSV names drop the colons. Run (mote): node --test usage-range-times (new, chromium + webkit, en + zh), usage-range, i18n-keys, credit-days: 26/26 ok. go test ./internal/usage ./internal/gui ok (TestCoreScriptBudget fits, the periodDays comment cut to pay for its regex); gofmt clean; go vet native, GOOS=windows (usage, gui), GOOS=linux (usage) ok. Broken by hand: a timed end read as its day's midnight turns TestPickedMinutesArePeriod red. The page's own typedTime first clashed with app.js's hhmm and stopped the Usage page mounting; the GUI run caught it. Not tried: the real app with a real ledger; ja/de/zh-TW screens. Reported-by: blrbrzkj (Discord) |
||
|
|
bc8b01d603 |
claude: the short system prompt is set in the Claude Code editor, not Settings › Replies
The scattered settings audit after netube99 on X. Short Claude system
prompt and Claude Code's interactive mode changed only Claude
subscription runs, yet sat in Settings › Models › Replies, while the
Claude Code editor already had its own "Claude Code runs as" switch for
the second, whose card said "Switched here or in Settings › Models ›
Replies".
Both rows now go in a claudeRunList in the Claude editor (PROV_PREFS), so
Settings' search still finds them and Open goes to the editor. In the app
the editor's own "runs as" switch is the one shown, and the duplicate
interactive mode row is hidden by CSS; in magpie web as a gateway, where
that switch is disabled, the row shows (the list gets a gw class from
renderReplies: body.gateway-mode is set only on a change, not at boot).
provPrefsField lets Claude's run list through in gateway mode, without
the warm-ups, which are this computer's. The card and the "off" reason
no longer name Settings (zh, zh-TW, ja, de written with them), and the
bridge's subsystem page names the editor.
Run (mote, mote-run, origin/main
|
||
|
|
39569d5604 |
claude desktop: an optional Claude Magpie app beside your own Claude (#5671)
baranwang on X asked to keep Claude Desktop's own (1P, Anthropic) sign-in while using magpie. Turning on "Separate app" in Claude Desktop's row on the Agents page (or `magpie claude-desktop launcher add`) moves magpie's 3P wiring into ~/Library/Application Support/Claude-Magpie-3p and adds ~/Applications/Claude Magpie.app. That launcher opens Claude.app with --user-data-dir on that folder, so it runs side by side with the user's own Claude.app. Its icon is Claude's icon with a magpie badge. Off is the default, and turning it off (`launcher remove`) moves the wiring back and removes the app. It is macOS only: Desktop's packaged app strips CLAUDE_USER_DATA_DIR, and on Windows it hardcodes LOCALAPPDATA\Claude-3p. The folder ends in -3p because Desktop adds -3p to any other name. Restarting the isolated app ends only its own process (pkill on its --user-data-dir) and opens the launcher again. Run at 1b25cda26 (this change on origin/main |
||
|
|
88b541a25c |
images: every pointer names Settings › Models › Images, where the page is
The image models moved under Settings › Models, but the Library's Magpie
Image sheet, the MCP server's instructions to agents, the gateway's
"no image model" errors, the video tool's text and the docs still sent
users to "Settings › Images", a tab that no longer exists (the scattered
settings audit after netube99 on X). Every user-facing string now names
Settings › Models › Images in en, zh, zh-TW, ja and de, as do the site's
Qwen docs (en, zh, ja), llms-full.txt, the subsystem pages and comments.
Run in the tree with this change and the rest of the audit's fixes
(mote, base
|