ac4af582301a4e8a29245dbba767eba31334ddf9
2153
Commits
| Author | SHA1 | Message | Date | |
|---|---|---|---|---|
|
|
3b550a99c7 |
providers: a sign-in kept to its link leads to the setting that kept it
With Settings › Privacy › Sign-in pages' "Open sign-in pages in the browser" off, adding an account says "magpie didn't open the sign-in page, as set in Settings" and gave no way to that setting (the scattered settings audit after netube99 on X). That line now ends in a Settings › link that opens Privacy and lights the row. The row stays in Privacy: it is there for max2020's reason, a vendor seeing which browser a user signs in from. app.js's core budget is met by one comment cut beside it, no raise (38 bytes over before the cut). Run (mote, through mote-run, Chromium and WebKit): signin-link-only (every language, both a link-only and an opened sign-in, which has no link), video-gen-pick and i18n-keys, 78 of 78; TestCoreScriptBudget ok after the cut. Broken by hand: no link, signin-link-only red in Chromium. Not tried: a real sign-in in the app; the whole GUI suite runs after the last of these changes. |
||
|
|
cedacf1aea |
settings: Video generation's how-to leads to the Providers page
With no model that makes videos, Settings › Models › Images' Video generation says to right-click a model in its provider's Model settings and mark it a video model, on another page, with no way there (the scattered settings audit after netube99 on X). The line now ends in a Providers › link that opens that page. It is drawn in videogen.js, so the core script doesn't grow. Run (mote, through mote-run, Chromium and WebKit): video-gen-pick (every language it covers, 1100 and 400), signin-link-only and i18n-keys, 78 of 78; TestCoreScriptBudget and the I18n Go tests. Broken by hand: no onclick, video-gen-pick red in Chromium. Not tried: the real app's window; the whole GUI suite runs after the last of these changes. |
||
|
|
8607a7a029 |
library: a skill GitHub's limit left unchecked leads to the token's row
A skill check that ran into GitHub's 60-an-hour limit says "Add a
GitHub token in Settings → Network and sharing", in a status line that
fades and a tag's tooltip, and nothing there went to Settings (the
scattered settings audit after netube99 on X). The Not checked tag is
now a link when the limit was the one without a token: it opens
Settings › Network and sharing and lights the GitHub token's row. A
token's own limit has nothing to add there, so its tag stays plain.
github-token.test.cjs swaps its route between rounds with
unrouteAll({ behavior: "ignoreErrors" }): the click leaves Settings'
lazy files being served, and the old unroute made the next round's
handler fulfil a route already handled.
Run (mote, through mote-run): github-token.test.cjs, Chromium and
WebKit, en and zh, 8 of 8; github-token plus every
library-*.test.cjs before the route fix: 1211 pass, the one red that
route race.
Broken by hand: the tag never a link, 4 of 8 red (each limited case).
Not tried: the real app's window; the whole GUI suite runs after the
last of these changes.
|
||
|
|
92be1d779b |
usage: the allowances' head opens Settings › Allowances
The Usage page draws the allowances, but how they are shown (used or
left, the menu bar's figures) and their alerts are set in Settings ›
Allowances, and nothing on the page said so (the scattered settings
audit after netube99 on X). The allowances' head now has a Settings ›
link, as the Routing page has, that opens that tab and lights the
Allowance display row (now #quotaLeftRow). Wired in the usage plugin,
so the core script doesn't grow.
Run (mote, through mote-run, Chromium and WebKit, every language, 1100
and 420): settings-places, mobile-web (with an origin/main baseline;
the button is taken out until the baseline has it, as rtToSet is),
account-mask, quota-curve, i18n-keys: 89 of 89, twice. A first run had
one red whose name a tail cut off; the next two runs of the same files
were 89 of 89, so it is unnamed and not seen again.
Broken by hand: no onclick, settings-places 2 of 2 red (no row lit);
no #quotaLeftRow, 1 of 1 red.
At the pushed head (rebased on
|
||
|
|
623e797fde |
plugin pages: read a day's usage and share a picture they drew
A plugin's page can now read one day's usage and share an image it
drew. This is for the day card (JungleyYeh on X asked for a "daily AI
statement"); the card itself is an optional community plugin,
@magpie-community/page-day-card.
- A page that asks for the "usage:day" read gets that day as
magpie.read("usage:day", {date, tz}): totals, each agent and its
models, the streak and the average active day (usageapi/day.go,
gui/pageday.go). The Plugins page names the read before it is granted.
- magpie.image.copy(png) and magpie.image.save(png, name) share a PNG
of at most 16 MB. In the window they go through
POST /api/plugin-pages/image (pageimage.go): copy puts the picture on
the clipboard (clipimage.go: osascript PNGf on macOS, PowerShell
PNG + Bitmap on Windows, wl-copy or xclip on Linux), and save writes
it to Downloads under a name made safe. In magpie web, the browser
saves or copies the picture itself.
- The window's side, pageshare.js, is imported the first time a page
shares a picture. The core grows by its one call only, paid for by
comments cut, so the budget is not raised.
Tests:
- New: TestDayOf, TestPluginPageReadsADay, TestPluginPageSharesAPicture,
TestPageImageName and TestClipImageCommand. plugin-page.test.cjs
covers the bridge, both engines and a refused SVG.
What was run (mote):
- gofmt, plus go vet on darwin, linux and windows: clean.
- Full go test ./... at the pre-rebase base: 369 packages ok, 3 FAILs.
- TestEveryRouteHasACommandOrIsNamed and TestCoreScriptBudget were
this change's own reds. The new route now has a parity entry, and
the share code moved into lazy pageshare.js with no raise.
- TestGatewayModeStatsNameTheGatewaySessions is #5690, the red in the
first hour of the day (it ran at 00:32).
- GUI suite (affected and plugin files, both engines): 1160 of 1179
passed. Every red is filed and none touches this change:
- i18n-keys "a plugin's words are its own": #5332, #5426, #5482.
- page-width-steady: #5013.
- plugin-card-update in WebKit: #3079.
- plugin-move-unserved "Try again": #4410.
- At this head, after the rebase on
|
||
|
|
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
|
||
|
|
a6e4cf7635 |
settings: what routing does sits under Models › Routing, and the Routing page opens it
The scattered settings audit after netube99 on X. Ask again after a
refusal, the Retry-After cap and the intent classifier's timeout were
under Models › Replies beside rows about a reply's content, and Busy
models last sat in Network and sharing, far from the routing it changes.
The four are now one Routing section under Models, after Replies, and the
Routing page's header has a Settings › button that opens Settings at that
section with its first row lit. The docs (reference.md, the site's
plugins page in en, zh and ja) name the new place.
Run (mote, mote-run):
- settings-places, retry-after-cap-setting, refusal-retries-setting,
classify-timeout-setting, model-load, i18n-keys and bare-ids, both
engines: all pass.
- mobile-web against origin/main
|
||
|
|
7d177985f6 |
settings › allowances: the alerts under an Alerts heading, and no empty Menu bar cost row in magpie web
The scattered settings audit after netube99 on X found Task done alert filed among the allowances' display rows, with nothing saying why, and magpie web drawing Menu bar cost as a row with no control (it has no menu bar, and renderTrayUsage returns before filling it there). - Allowance alert, Low balance alert, Reset reminder and Task done alert are now a list of their own under an "Alerts" heading (#alertHead, #alertList), after the display rows. Gateway mode hides the heading and the list, as it hid the four rows. - #trayCostRow is app-only, as #trayUsageRow is. - "Alerts" in zh, zh-TW, ja, de. Run (mote, at this tree): - settings-places (new), bare-ids, turn-done, usage-alert, reset-reminder, mask-alert, settings-search, i18n-keys: 122 pass, 0 fail, both engines. - go test -run "Budget|I18n" ./internal/gui: ok. Broken by hand: without app-only, settings-places is red 10 of 10 on "no Menu bar cost row in magpie web"; with the heading renamed, red 10 of 10. Not tried: the real app; the row moves are markup only. |
||
|
|
92e8edd7fc |
windows: magpie is listed in Installed apps, and its Uninstall puts every agent back
Jevik_AI on X uninstalled magpie and rebooted, and Codex's config.toml still had openai_base_url = "http://127.0.0.1:3425/backend-api/codex"; Rk1ngggg asked whether an update cleans it. magpie's own uninstall (Settings › About › Uninstall magpie, `magpie uninstall`) already disconnects every agent and takes Codex's leftovers (#3866), but on Windows magpie wasn't in Settings › Apps › Installed apps, so it was removed the way Windows offers for a program it doesn't list: by deleting the exe and folders, which runs no code. shortcut.Ensure now writes HKCU\Software\Microsoft\Windows\CurrentVersion\Uninstall\magpie (DisplayName, DisplayIcon, Publisher, InstallLocation, UninstallString, URLInfoAbout, NoModify, NoRepair) at every installed start, beside App Paths, and Remove (uninstall's System step) takes it out the same way: only while it names this exe, or an exe that is gone. Its Uninstall runs `magpie.exe uninstall --window` (shortcut.UninstallArgs). magpie.exe has no console, where the terminal's `magpie uninstall` would refuse for want of one to ask on, so those exact args open the app's window (or forward to the running app, OnSecondInstanceLaunch) on Settings › About with Uninstall magpie's question asked (uninstallView, ?uninstall=1). It asks once: a redraw of Settings doesn't ask again, and Cancel removes nothing. magpie web opened at that link asks nothing. Deleting the app by hand still runs no code (macOS drag-to-Trash included); agent-wiring.md says so. Run on mote at the pushed head (rebased onto |
||
|
|
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 |
||
|
|
be9dbce02c |
settings search: built-ins are found too, off or on, and Open goes to their row
A built-in's switch and the settings it keeps in Plugins › Built-in or on its own page (Gateway's Recent calls at a time) were found by nothing in Settings' search, and one switched off took its Settings tab and rows with it, so searching "Observability" with it off said no setting matched (the scattered settings audit after netube99 on X). The search now lists, after Settings' own rows and under "Plugins › Built-in", each built-in whose name, line or schema setting has the words, in the language shown or English, one off saying Off. Open goes to Plugins › Built-in and lights that row, again when the list is drawn a second time as the plugins are read. The list is drawn by a lazy setfeats.js the first time a search runs, and only when what it finds changes, as Settings' observer runs the search again on each change under the view. Run (mote, at f98e954ce's tree plus this): settings-search, old-webkit, builtin-places, provider-prefs, i18n-keys: 170 pass, 0 fail, Chromium and WebKit, every language; TestCoreScriptBudget ok. Broken by hand: without the row's light, and with the match always false, the new case went red in Chromium (7 pass, 2 fail each). |
||
|
|
07a06617e1 |
quota: an early reset starts the Cycle chart though the card's reset has milliseconds
steven_4422 (Discord #feedback, 11-09): a weekly window refilled early at Nov 9 02:00 kept its deadline, yet the Cycle trend began at Nov 4 10:40, the vendor's own start. quotaCycle took the recorded early reset only when the card's resetsAt equalled the last reading's exactly. History keeps whole seconds and a vendor's deadline can drift a little between reads, so the two rarely matched. Now a reset minutes apart counts as the same one. Run (mote): new quotaCycle test red on the old code (actual 2026-11-04T10:40:00.437Z, the reporter's start), green after; quota-curve.test.cjs 31/31; go test -run Budget ./internal/gui ok. Not tried: the reporter's own account; the full GUI suite (mote's suite lock queue is hours long). Reported-by: steven_4422 (Discord #feedback) |
||
|
|
89d8b4d5f9 |
settings search: a provider's settings are found only while that provider is added
Settings' search lists each provider's own settings (warm-ups, check-ins
and the like) as rows that open the provider's editor. It listed them
for every provider magpie knows, so a search for "warm up on reset"
offered ChatGPT and Claude to a user with neither, and Open did nothing
(the scattered settings audit after netube99 on X). A row now remembers
its providers and is left out while none is added, and a row whose
built-in plugin is off is left out as the others are.
Those rows are drawn by a lazy provlinks.js the first time a search
wants them, not on each Settings draw: app.js was 399 bytes over
TestCoreScriptBudget with the change, and is now 956 under its size at
the base, with the budget unchanged.
Run in the tree with this change and the rest of the audit's fixes
(mote, base
|
||
|
|
4064c10362 |
routing groups: on while Routing is off, their Built-in row says their page went with it
Routing groups have no page of their own: theirs is on Routing. With
Routing off and Routing groups on, Plugins › Built-in showed the groups
switch on and nothing anywhere to set them, and the quick start's
routing step still counted groups alone (netube99 on X, and the
scattered settings audit after it). The groups row now says "Their page
is on Routing, which is off" with Turn on Routing, which flips Routing's
own switch on the same list, and the quick start's step leaves with
either one off.
The hook lives in a new plugins/routing/settings.js, loaded after app.js,
whose featWho it extends (plugin client files load before app.js; the
first try in client.js threw "featWho is not defined" in every test).
Run in the tree with this change and the rest of the audit's fixes
(mote, base
|
||
|
|
7cb437ee16 |
masking: its alert sits with its other settings, and its Built-in row says when nothing is masked
The Masking alert was the one masking setting on the Masking page, under
the request list, away from every other one in Settings › Privacy (and
in Settings › Usage before that, where nb5p looked for it). It is now
the first row of Privacy's "when a value is found" list, out in gateway
mode as before. The Masking page is the list of masked requests alone.
Masking turned on with no kind, no personal data and no word of the
user's masks nothing, and its Plugins › Built-in row said only where
its settings are. It now says "Nothing is masked yet" before the link
(the scattered settings audit after netube99 on X).
Run in the tree with this change and the rest of the audit's fixes
(mote, base
|
||
|
|
17a94a1b00 |
gateway: its keys show for a web page listed in Settings, and Settings links to them
A web page listed under Settings › Network and sharing › Web pages that
may call magpie is refused without a gateway key, shared or not, and the
row says to use "a gateway key from Gateway". But the Gateway page drew
its keys only while Share on local network was on, so that user found a
line saying keys come with sharing and no way to make one (the scattered
settings audit after netube99 on X). The keys now show while sharing is
on or a web page is listed, the off line names web pages too, and the
Web pages row links to Gateway's keys once it has a page.
The guard in renderGatewayOwn's settings callback also redraws the whole
view only while its box is still in the page, as 5efe0e195 does for the
first draw.
Run in the tree with this change and the rest of the audit's fixes
(mote, base
|
||
|
|
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
|
||
|
|
ffbc45eac5 |
usage: a breakdown row's second line wraps at every width, not cut at 180px
In a wide window a Usage breakdown row's name column is a fixed 180px
and the line under the name (the sign-in, calls, credits, failures,
TTFT, speed) was one line cut with an ellipsis there, so everything after
the provider was hidden. Only the narrow web layout let it wrap. It now
wraps at every width; the narrow rule that did the same is gone.
Reported-by: shusoyo (Discord #general, 11-09)
Run (mote): usage-stat-sub-wrap.test.cjs 8/8 (chromium, webkit; en, zh;
1440 and 1000px). Broken by hand: with the old app.css it is 0/8 ("the
line wraps, not cut").
|
||
|
|
331f4a1393 |
gui tests: a comment line doesn't say a plugin's words (#5332, #5327, #5426, #5482)
i18n-keys' "a plugin's words are its own" has been red on main since |
||
|
|
c9a1c557d0 |
plugins: every built-in's row leads to where it is used, and the Gateway page holds its own setting
netube99 on X: one feature's settings are spread over pages that don't
say where the rest are. Plugins › Built-in had six rows (Key limits,
Groups, Rotation, Warm-ups, Middleware, Tools) with no page and no link,
so a user who turned one on was left to find where it shows. And the
Gateway page's one setting, Recent calls at a time, was a form under its
row in Plugins › Built-in, two pages from the calls it is about.
- pluginrt.Manifest gets Opens: the window page a built-in without a page
of its own is used on. budget → gateway (keys' limits), groups →
groups, rotation and warmups → providers (a provider's editor),
middleware and tools → plugins. builtinJSON sends it; featGo links to
that page by its sidebar name, as for a page plugin.
- A plugin with a page draws its settings there, not under its row
(renderBuiltins). The Gateway page draws its schema under Recent calls
(renderGatewayOwn), saves through /api/plugins/builtin as before, and
ends with a row "Port, allowed addresses and model ids" that opens
Settings › Network and sharing at the gateway's rows (4 languages).
Tests:
- TestBuiltinSaysWhereItsSettingsAre holds SetAt, Page and Opens per
built-in.
- builtins.test.cjs: no form in Built-in, and each Opens row's link says
its page's sidebar name. Its row reached by the wheel now counts the
window's bottom too, and frees a switch under the view's floating To
the bottom button by wheeling toward the window's middle: the rows grew
with their links, and WebKit de 420 left Usage's switch under it.
- gateway-own-settings.test.cjs (new): the setting under the calls,
translated, 20, picking 50 posts {id: gateway, config: {callsPage: 50}},
the row opens Settings › Network at #portList flashed; every language,
Chromium and WebKit, 1100 and 420, nothing past the window.
- builtin-places.test.cjs: Library's row now leads to Library.
Run at this tree (on origin/main
|
||
|
|
7000b23b88 |
gui: a reset's time is said by a formatter kept per language, not made each call (#5310)
resetClock and resetText called toLocaleTimeString/toLocaleDateString/ toLocaleString, which build a new Intl formatter on every call. The Usage page says every account window's reset on each render, so 600 accounts made thousands of formatters per render. dateFmt(opts) in i18n.js keeps one Intl.DateTimeFormat per intlLang() and options. resetText's past time gives toLocaleString's default fields (year/month/day/hour/minute/second numeric) by name, which is what toLocaleString uses when given no options. Probe (mote, 600 accounts open, W=520, names wrapping, 8 renders, median sync ms, before → after): WebKit ~431 → ~377 Chromium ~327 → ~279 Test: reset-clock-formats.test.cjs compares resetClock and resetText with what the old toLocale*String code said word for word. It covers a time every 5h from a week back to eight days ahead, in en, zh, zh-TW, ja, de and then system (a language switch after the cache is warm), Chromium and WebKit, in a Tokyo time zone with an en-GB system. 2/2 green. Broken by hand: a cache key without the language is red in Chromium (zh said "02/11/2026, 20:29:01" for "2026/11/2 20:29:01"). Run at this change on |
||
|
|
7a2a05c7a3 |
routing: Accounts and keys keeps each provider's heading while it says the same
freefcw on X (11-09, v0.1.3373 and v0.1.3375): magpie at 32% CPU with 2,250 idle wakeups and its webviews at 80 to 223MB; lemonkillergame and laincatx say the same of CPU and memory. The Routing page draws Accounts and keys again each second while it is in sight (countdown: its rests and resets count down). Each drawing made every provider's heading anew, icon <img> included, and patch then kept the old heading in the page. But an <img> asks for its picture as soon as its src is set, in the page or not, and the app's icons go out no-cache (revalidated), so every provider's icon was asked for again each second: through the Wails asset server in the app (a read and a sha256 of the file each time), and each a new SVG document in the webview (~0.6MB, #909). Over `magpie web` on mote, a seeded HOME with five providers on Routing: 322 requests a minute, 155 of them icons every 30s; every other page asks for 4 to 13 in 45s. A heading is now kept per provider while its icon, name and routing mode are the same, and a heading with its first row are a list of nodes, no longer a box they were moved into: the move took a kept heading or keys row out of the page each second, so patch never found it in place. Measured on mote (M5 Pro, load 50 to 90 from other sessions), the 0.1.3377 build vs this one, `magpie web` in Playwright WebKit on ?view=routing, 60s, twice each: - requests: 322 and 325 a minute -> 7 and 7 (icons: 31 each per 30s -> 0) - magpie's CPU: 0.78% and 0.73% -> 0.32% and 0.32% - magpie's RSS: 225-227MB both Test: routing-acts-idle.test.cjs, in Chromium and WebKit, en, zh, zh-TW, ja, de at 1100px and en at 420px: a resting key's countdown redraws the list, and over 3.5s no icon is asked for again and each heading is the node drawn before. 14/14 pass; with client.js before this change 0/14 (each heading is a new node). Its icon count alone passes on the old code there, since page.route's replies are kept in the browser's memory cache; the real server's requests are the numbers above. Run on mote: - every GUI file that opens Routing (181 files, both engines, at origin/main |
||
|
|
74017e0b87 |
gui: a card of many accounts is laid out once a render, not once an account (#5310)
fitQuota stacks each window's counts and gives side-by-side names one height. It ran group by group: clear the names' min-height, then read their offsetTop. Every read after a write lays the card out again, so one Usage render with N accounts in full laid the card out N times, O(N²). With 600 accounts at 520px wide and the names wrapping (a long window name), one render held WebKit's WebContent at 100% CPU: 1.7-2.3s of script and 10-13s to the second frame after it. Chromium took 1.2-1.4s. fitQuota now takes every group. It reads all the sizes first, then writes the classes and clears the heights. It reads each name's row and height in one pass, then sets the heights. packUsage's heights() passes the card's groups in one call; the ResizeObserver path already passed a set. Probe (600 accounts, all open, W=520, wrapped names), on mote: WebKit: 0.5s sync, 0.7s to two frames (was 1.7-2.3s, 10-13s) Chromium: 0.45s (was 1.2-1.4s) Wide layout, both engines: 0.3-0.4s before and after. Scrolling 600 accounts was smooth before and after (2 frames ~30ms). Test: quota-fit-batched.test.cjs counts the layouts forced in one render: a read of a layout getter while MutationObserver records are pending. The count must be the same at 160 accounts as at 40 (+4 room for a frame's observer). It also checks that every group was drawn, the names' heights were written, and each group was evened. Chromium and WebKit, en/zh/zh-TW/ja/de, 10/10 green. Broken by hand: the test pointed at HEAD's app.js (MAGPIE_FIT_ASSETS) is red 10/10: 243 forced layouts at 40 accounts, 963 at 160, both engines. Run (mote, load ~30; first at base |
||
|
|
c056b7c8c3 |
provider: a Responses provider's turns may go over the Responses WebSocket (#5781)
A provider the user added with an http(s) Responses address can now send its Responses turns over the Responses WebSocket that magpie already speaks to chatgpt.com (codexSocket), with `socket=auto|on|off`: - off, or absent: today's behaviour exactly. Provider.Via hides any socket value an outer context carried, so such a provider never dials. - auto: tries the socket, falls back to HTTP when the handshake is refused or the socket ends before the reply, and speaks HTTP to a host for 10 minutes once it refused the handshake (codexShun). - on: the same fallback, but never shuns; the socket is tried each turn. Provider.Via puts the provider's Responses host and path in the request's context (withSocket); codexSocket's gate is provider.SocketTurn, which takes a ChatGPT turn as before, or a POST to that host at <Responses>/responses. The rest is the ChatGPT leg's: the kept socket and its delta (codexKeepKey now also hashes the scheme, X-Api-Key and Api-Key), the error frames, 1009 handling. A provider's reply with no Content-Type is marked text/event-stream, since it is read as one. Routing, keys, limits, usage and masking are unchanged: only the transport under the request differs. Set with `magpie provider set <id> socket=auto|on|off` (refused on a provider with an account, no http(s) Responses address, or Vertex, TakesSocket), saved in providers.json as "socket", shown by `provider show`, and in the editor's Advanced as a WebSocket tick beside HTTP version (ticked saves auto, keeps a CLI's on, unticked saves off; shown only while the Responses address is http(s) and there is no account). docs/subsystems/providers-accounts.md describes it. app.js pays for its rows by three long comments cut to one line (renderMove, the vendors' status pages, header rows): the core's scripts are 478 bytes smaller than on |
||
|
|
7cabf0da98 |
sessions: one place says which ids a ZCode request names, and drafts are one group (#5754)
On top of Flandern1211's cherry-picked fix (the commit before this one).
GatewayKeys gave the bare id of a ZCode session (sess_<id> in ZCode's
database, <id> in the gateway's record), but NativeIDs kept its own copy
of the keys: the management page still counted every ZCode session sent
through the gateway as a gateway-only session, its delete listed them,
and its search read them a second time. requestIDs is now the one place
that says which ids a request names a session by; GatewayKeys (Sessions
list, its spend, the stats' native set, viaOf, the manage search) and
NativeIDs (the manage page's count and delete) both read it.
ZCode runs a session started without a project in a folder it makes for
that session alone: <workspaceDirectory>/draft-<id> or <ms>-<uuid>, with
workspaceDirectory = ~/.zcode/workspace (read from ZCode 3.17.2's
out/host/index.js, downloaded from cdn-zcode.z.ai; never the live
~/.zcode). The reporter's group is renamed from "Scratch sessions" to
"Draft sessions" (草稿会话 / 草稿會話 / 下書きセッション /
Entwurfssitzungen), after ZCode's own word for them, with a GUI test of
its own. Comments no longer quote "Seen through the gateway", which
i18n-keys' plugin-words guard read as the core saying the word.
Run (mote, at this tree, rebased on
|
||
|
|
2b8ad61468 |
routing: a group's header counts its members on, not who one request was held to
adorable_piglet on Discord: the group magpie found for GPT-6 Astra, In order, three of its five members on (two on providers switched off), read "GPT-6 Astra · routing group · 1 on" over a Codex request answered by one member. The header counted the request's order, who that one request was weighed among. A conversation held to one member (native compaction, Strict, a sealed task, a key's models) has an order of one, so the group read as having one on. It now counts the route's group.members (GroupRef: the group's ready members as the request came); why the request went to one alone stays the first line's to say. Routing itself was not at fault: a gateway repro with five members, two providers off, routed In order over all three on. Run on origin/main |
||
|
|
b62117287b |
gui: a moved plugin's first question offers its other ways, the API key among them
mahiro233 on Discord (v0.1.3372, Kiro plugin 0.1.34): Kiro's account sheet asked "Choose a sign-in method" with three choices and Cancel, and offered no API key. The plugin has one (its third way, "Kiro API key (ksk_…)"), but a moved subscription opens its plugin's first way at once (#777), and when that way asks a question first, as Kiro's does since plugin 0.1.21, the question had no way to the others: "Other ways to sign in…" and "Use an API key instead" are on the waiting box only, which the question comes before. Kiro CLI's or IDE's sign-in was out of reach too. The first question of a moved subscription's way, when the plugin has other ways, now has "Other ways to sign in…" (already in every language), which shows the way picker, as the waiting box's does. A later question (Kiro's Start URL) doesn't: the user chose that way already. Test: plugin-ask-ways.test.cjs, en and zh, Chromium and WebKit: the question's choices and hint, the link, the picker with the key way, the key field titled by its label, nothing signed in before a key, no link on the Start URL question, and the plugin's words in Chinese where it gives them. Run on mote at the pushed head, Chromium and WebKit: plugin-ask-ways, plugin-other-ways, -moved-signin, -key-hint, -password-prompt, -signin, -keyless-signin, signin-paste-plugin, deprecated-subscriptions, i18n-keys and i18n-en-no-cjk, 49 of 50 each; the one red is i18n-keys' "a plugin's words are its own", the same 3 words on origin/main |
||
|
|
40cbdaa7e8 |
provider: an account's window can be capped at a fixed amount of its unit
A window magpie reads with a total and a unit (a day's 1000 credits, a
plan's requests) can now be capped at an amount of that unit, not only
a share: 9won_25273 asked to stop an account at 300 of its day's credits.
- AccountWindowAmounts keeps it per account and window (capId). An
amount and a window's own share replace each other.
- WindowCaps.limitShare turns it into a share of the total for the mark
and NearCap. CapHeld and capReached hold the account once the window's
count reaches the amount (past), and rest it as the percentage cap
does: the next account takes the request. cappedError and the trace
say "has used 300 credits ... past its cap of 300".
- A reading with no total ignores the amount; the account's share
applies.
- GUI: the window meter's menu has one more item, Amount..., typed in
place (provider/windowcap with amount). It shows only on a window
with a unit and total. Strings in zh, zh-TW, ja, de.
- CLI: magpie provider account-cap <id> <account> --window <name>
--amount <n|off>.
Usage outside magpie counts: every cap reads the vendor's own count, so
what the account spent in the vendor's app or on another machine counts
from the next reading on. magpie can only hold back its own requests.
Run, at this head on Linux (wsl-run, magpie-desktop):
- gofmt -l: clean; go vet ./... for linux (-tags nogui) and windows: ok (darwin
vet needs cgo, so it runs with the full suite on mote afterwards)
- go test -run 'Lang|ToolLoop|LoopGuard|Cap|Amount' ./internal/gateway
./internal/provider ./internal/cli: ok (TestWindowAmountCapHeld,
TestSetWindowAmount, TestWindowAmountHoldsTheAccount, the CLI cases)
- GUI window-cap, window-cap-pool, account-cap in chromium and webkit,
420 and 1100 wide, en zh zh-TW ja de: 78 of 78 in each engine. An
earlier webkit run lost the amount test's page once ("Target page,
context or browser has been closed"); it passed in 2 more full-file
runs and 60 of 60 alone
- i18n-keys: only "a plugin's words are its own" red, words that aren't
this change's (#5332, #5426, #5482)
Broken by hand: limitShare ignoring amounts (of < 0): TestWindowAmountCapHeld
and TestWindowAmountHoldsTheAccount go red.
Not tried: the full go test ./... at this head (queued on mote, runs
after); a real account at an amount cap.
iFlytek: 9won's 讯飞 overshoot isn't covered. Loomy's daily window sends
used as a count and amount as what is left (plugins#889); AStudio's
wallets tell a balance only, which no cap can hold (#5770).
Reported-by: 9won_25273 (Discord)
|
||
|
|
f5f68b4335 |
routing: with routing groups switched off, their sidebar tab goes
yyddbds (Discord) turned Routing groups off in Plugins > Built-in and the sidebar still showed its tab. The tab was tagged with the routing plugin only (data-feature="routing"), so only switching Routing off hid it. It is now tagged "routing groups", like Routing's own "Routing groups >" button and the two "Make a routing group" buttons. The page also holds each provider's accounts and keys (pools), which stay editable with groups off. So with groups off: - ?view=groups, or a page open when groups are switched off, opens Routing (offView in app.js), not Agents; - the groups' section moves under Routing's requests, with the "turn on routing groups" note and the pools; turning them on opens the groups page again and moves the section back. Every other sidebar tab (sessions, library, routing, gateway, usage, masking) was already tagged with its own plugin; only groups was wrong. Run, on mote (macOS 27): - routing-groups-off.test.cjs (rewritten: 1200, 900 and 420px, both engines, every language): 12 of 18 red on the old code, 18 of 18 green on this one. - routing-groups-off, builtins, sidebar at the rebased head 3930a3917: green in Chromium and WebKit. - Whole GUI suite at the old base |
||
|
|
ff7d84b9b2 |
gui: a built-in's switch, settings and page lead to each other (netube99 on X)
netube99 (X, 2119721422918742222): masking is switched on in Plugins ›
Built-in, set in Settings › Privacy and seen in Insights › Masking, and
none of the three leads to the others. Web search had the same split.
One pattern for every built-in whose switch, settings and page are apart:
- pluginrt.Manifest.SetAt ("privacy #redactList") says where Settings has
its settings: redact, search, gateway and otel set one. builtins.go
sends setAt and page (its nav.page Part).
- Its Built-in row (featGo): "Settings › <tab>" and, while on, its page
("Masking"). No settings link while off when those settings hide with
the plugin (Observability).
- Its settings, while off (featOff): a first row "Off in Plugins ›
Built-in", what being off means, and Turn on. Privacy and Web search
use it; search's own off row went.
- Insights › Masking's head: "Settings › Privacy", unless Turn off
already goes there. At 600px and under its buttons wrap below the title.
- docs/subsystems/plugin-runtime.md documents SetAt.
Proposal for the owner, not built: give each feature one home with its
switch, settings and page together. This commit only links the three.
Core budget: no raise. +~1.9KB of code is paid for by shortening six
app.js comments (logo mask shelf, copy, sidebar, account models,
fitSend, the hold room).
Run on mote at fe672ce69's tree (origin/main
|
||
|
|
9dd7aabca8 |
gui: an account's refresh stays where it was pressed, and a sheet held low rises as it scrolls
墨雨藏锋 on Discord (#feedback, 11-09): pressing an account's quota refresh in a plugin provider's sheet (MonkeyCode) moved the view down, and the accounts showed only a few rows while the window had room. The jump: every account's refresh shares the aria-label "Refresh this card". openModal gave a redraw's focus back to the first element with that label, which is the first account's, and the focusin listener then marked the hold on that button. WebKit's fallback focus did the same. So the row pressed was let go, and it moved with the rows above it as they grew (186px in the test). And since quotaRefresh keeps the same button across redraws, holdModal never took it as a copy, and cap() never scrolled the list back to it. Now openModal finds the focused element by its place among elements with that label. A redraw giving focus back does not mark a new hold (modalRefocus). The held element (or its redrawn copy) is handed to holdModal (modalHold.copy), so it stands in and the list is scrolled to hold it. The short list: there is no fixed cap. A sheet pressed while short and centred keeps its top (calc(100% - off)) when its content then grows to the window's foot, so its one scroll box shows a few rows. Now scrolling that box first lifts the sheet into the room above, its foot staying, until it has what it needs (modalClimb); then the box scrolls. Nothing moves on a click, and no CSS or layout changed. Core budget: app.js 1,310,953, core 1,533,711 (budget 1,533,802), paid for by comments cut in startImport, openProtoMenu, hold(), the click handler and navMorph; no raise. Run on |
||
|
|
136178803b |
gui: Escape closes a plugin's details dialog on Discover (#3779)
On Plugins › Discover, Escape left a plugin's details dialog open and only showed Install's focus ring. detail() opened #modal without setting confirmAsk, unlike every other dialog that borrows #modal outside Providers, so Escape reached only the Providers page's handler, which closes nothing there. detail() now sets confirmAsk and its Close goes through closeConfirmAsk. show() clears confirmAsk when leaving a page closes the modal: the dialog's Sign in goes to Providers through show(), and a leftover confirmAsk would take the next Escape there. This is sevtdy's patch from the issue. Side effect: cfgblocked.js steps back to the dialog under a Repair only when confirmAsk is unset, so a Repair opened over the plugin details no longer goes back to them, the same as over the other confirmAsk dialogs. New test: plugin-detail-escape.test.cjs (en, zh): Escape closes the details twice, Close still closes them, and after Install, then Sign in, then Providers, Escape closes the add sheet. Run (mote, via suite.lock): - plugin-detail-escape.test.cjs: chromium 3/3, webkit 3/3 Broken by hand: - plugins.js and app.js at the base: red in both engines (the first Escape leaves the dialog open) - only show()'s clear taken out: red in both engines (after Sign in, Escape on Providers leaves the add sheet open) Wider GUI run (every plugin*, modal-*, i18n-keys, update-wait and the files testing Escape on #modal: 114 files, both engines): running at push time; any red gets its own issue. Not tried: the real app (Wails webview) by hand. Reported-by: sevtdy <16433683+sevtdy@users.noreply.github.com> Co-authored-by: sevtdy <16433683+sevtdy@users.noreply.github.com> |
||
|
|
b475004d52 |
library: Pi's extensions and packages, switched and copied between Pis
leokon3 runs Pi on Windows and in WSL and asked for magpie's Library to manage Pi's extensions and packages. A new "Pi packages" tab in the Library lists each Pi here (this computer's and each WSL distro's), with the extensions and packages it loads, read by Pi's own rules (@earendil-works/pi-coding-agent 1.4.0). Each has a switch, written as `pi config` writes it, and a "Copy to…" menu for the other running Pis. - A package is copied as its settings.json entry; Pi installs it itself when it next starts. node_modules is never copied. A local package, and one the other Pi already has by Pi's identity (npm name, git host/path), is refused. - An extension file or folder is copied as files, without node_modules, .git or symlinks, never over one of the same name. The page says to run npm install there when it has dependencies. - A package that already picks some parts (filtered in `pi config`) shows its switch disabled. A settings.json that can't be parsed lists nothing and is never written; a stopped distro is never started; every write is backed up first. - GET/POST /api/library/pi, POST /api/library/pi/copy (notYet in the CLI parity list, stage 3: the library). Run at 29d63e2dd (this tree on origin/main c7ebb6f8d; rebased after onto |
||
|
|
c7ebb6f8d9 |
settings: Video generation picks the model Magpie Image makes videos with
The same Discord (#feedback) user: a custom provider's video model still couldn't be chosen. A custom provider's video model was already found (seedance, kling, veo, wan, hailuo ids by name, or marked by hand with right-click › Makes › Video model, #1399), but generate_video always used AutoVideomaker's pick, the first video model of the first provider, with nowhere to choose another, as Settings › Images does for images. settings.VideoGen (provider/model or a routing group) is now the model a request that names none makes its video with, while it resolves; else AutoVideomaker's, as before. Image generation turned off turns video off with it, as before. Settings › Models › Images gets a Video generation row under Image generation: Automatic (naming the automatic pick) and every model Magpie Image can make videos with. A pick that no longer makes videos (provider gone or off, model unmarked) says so and the automatic one is used in its place; the settings API refuses a model that makes none, and keeps the pick when a save doesn't send it. The row is drawn by videogen.js, imported when Settings draws Image generation, with one call in app.js: drawn in app.js it put the core scripts 616 bytes over TestCoreScriptBudget (1,534,418 > 1,533,802, found by the first full run), and the budget is not raised. Run on mote: - At this change on |
||
|
|
c630d9a29c |
gateway: the key page's Claude Code setup keeps each tier on its own family
The /me page's Claude Code tab wrote the picked model into
ANTHROPIC_MODEL and into ANTHROPIC_DEFAULT_OPUS_MODEL, _SONNET_ and
_HAIKU_ alike, so picking Opus sent every Haiku background call to Opus
too (and picking a GPT model made "haiku" a GPT model).
The pick now sets only ANTHROPIC_MODEL. /v1/magpie/me returns `tiers`,
built by keyPageTiers from the models this key may use: for opus,
sonnet and haiku, the newest model of that family (claudeTier and
claudeVersionOf; routing groups and fable are skipped). A tier the key
has no model for is left out of the snippet, so Claude Code keeps its
own default for it.
Siblings: the agent writer (internal/agent/claude.go) has its own tier
design (tiers follow the main model, haiku to the provider's Haiku, the
user's own tiers kept) and writes the user's real config; it is a
different situation and is left as is. OpenMausBot's snippet writes
only ANTHROPIC_MODEL.
Run (mote, via suite.lock):
- go test -count=1 -run KeyPage ./internal/gateway/: ok
- GUI key-page.test.cjs: chromium 13/13, webkit 13/13
- gofmt -l: clean; go vet ./..., GOOS=linux go vet -tags nogui ./...,
GOOS=windows go vet ./..., and go build for darwin, linux (nogui) and
windows: ok
Broken by hand:
- old keypage.html: the new GUI test is red in both engines
(ANTHROPIC_DEFAULT_HAIKU_MODEL 'claude/claude-opus-5', want
'claude/claude-haiku-4-5')
- keyInfo without keyPageTiers: TestKeyPageTiersAreTheirFamilys red
("tiers map[]")
Full suite (go test -tags nogui -timeout 45m ./...): queued behind
other sessions on suite.lock at push time; its result goes on the
follow-up, with an issue for any red.
Not tried: a real Claude Code against the page's snippet, and the
gateway binary in a sandbox HOME.
Reported-by: strinah (Discord)
|
||
|
|
bceeabd93a |
gui: a subscription's warm-up, check-in and resets are in its provider's editor
The owner, 11-07: "这些配置难道不是应该在对应的Provider那个弹窗里面吗?为什么会散落在Settings里?"
Settings › Allowances no longer holds Codex's auto-use resets and how
early before one expires, Codex's and Claude's warm-ups, or the daily
check-in of WorkBuddy, Trae CN, MiniMax, Qoder and the plugins that check
in themselves. Each is in its own provider's editor (PROV_PREFS: the lists
move from a hidden holder into the editor's .prov-prefs box and back).
Settings' search still finds them, each a row whose Open goes to the
editor. Task-done alerts stay in Settings. "Codex: auto-use resets" and
"Codex: how early before one expires" lose their "Codex:" in the editor.
In the editor a press inside a part that redraws moved the page: the
modal hold moved the dialog, which can't move once it meets the window's
edge, and lost a pressed element a redraw replaced. The hold now scrolls
the editor's body by what is left, and finds the replacement by its path
or by tag, class and text under its id'd ancestor. In a browser the
editor's body keeps its bar's room, as the app's already did: WebKit kept
the grid's columns from before a bar that came with a grown field, and
the editor scrolled 10px sideways.
Budget: app.js grew with the editor's parts; paid for by comments cut
(curlOf, scrollCloses, unrollSheet, quotaRange, ledGroupSpeed, the
Settings tabs, the warm-up and fold notes), no raise.
Run at this head (704fd85f3 before this message, on origin/main):
- mote: go test -count=1 ./internal/gui/ ok (TestCoreScriptBudget
included); go vet ./..., GOOS=windows go vet ./... and GOOS=linux go vet
-tags nogui ./... clean.
- mote: settings-groups and i18n-keys GUI files. i18n-keys' "a plugin's
words are its own" fails the same on origin/main (#5332, #5327, #5482).
- WSL, both engines, the files this can reach, mine vs origin/main
|
||
|
|
c81065ca72 |
providers: System One for a custom provider and Ark's pay as you go
A user on Discord (#feedback) found no System One endpoint under a custom provider's More endpoints (OpenAI Responses), no System One choice in its Model settings, and on the Volcengine Ark page neither an endpoint nor any model a routing group could ask as its classifier. System One is asked at POST …/systemone under a provider's Decide base; a model is offered as a group's classifier only when its provider has one. Two causes: - A custom provider kept a Decide URL only when its API was "System One base URL". With a Responses or chat URL there was no field for it, and Save sent "" for one the provider didn't have yet. More endpoints now has "System One URL" for any API, saved as typed. - Ark's pay as you go answers System One on the same key at ark.<region>.volces.com/api/v1, but a provider asked at …/api/v3 (the preset's or a custom one, chat completions or Responses) had no Decide unless the user knew to type it. normalize now sets it (arkSystemOne); a URL the user gave is kept. The Coding and Agent Plans answer System One 404, so they get none, and decideKeys leaves out a key whose plan has none (a Coding Plan key beside a pay-as-you-go one). Ark's one decision model is offered whatever chat models are picked, as Bailian's is (OfferedDeciders). Run on mote at this head's tree (65aacb8f8, on |
||
|
|
9edc6506e0 |
routing: a group's editor folds what few change under Advanced
The owner found the Add group form too long. Name, In agents' lists, Models, Accounts, Rules and the classifier stay in the form; Patterns, Model lists, Routing, Rate limited, Slow to start, Every member busy, Context, Stays, Effort and Levels move into an Advanced fold (details.more, as the provider editor's). It opens by itself when the group sets any of them, remembers being opened or closed while the editor is up, and Save opens it when a typed pattern is invalid so the focus lands on it. The fold's inner grid takes the editor's label column (--ed-lab), so its labels line up with the ones above; without it English sat 30px off (group-editor-fits caught it), and at 520px and in the web layout it stacks like the rows above. edAlign now sets --ed-lab/--ed-at only when they change, and in an open fold a later change waits a frame (a closed fold only moves its chevron and follows at once): opening the fold re-measured inside the ResizeObserver callback and routing-rows-fit failed on "ResizeObserver loop completed with undelivered notifications". The GUI tests that edit those rows open Advanced first (openAdvanced in group-context, -unlists, -first-token, -patience, -defaults, -editor-align, -from-model-add); group-editor-align measures the fold's labels too. Run (Linux, WSL magpie-desktop, Chromium + WebKit, 5 languages): - the 34 GUI files red in a first run plus group-editor-fits and group-editor-selected, at this head rebased on |
||
|
|
dc098c1e82 |
library: a skill from a folder follows GitHub once installed from there (biubiu8802 on X)
biubiu8802 (X, 2119602075864903924) downloaded a skill from GitHub and put it in the Library from its folder, so it had nothing to update from and no way to link it to GitHub. Installing it from its GitHub link now links the two, the way an update of a CC Switch skill already does: the library's skill by that name takes GitHub's files and GitHub as its source. A check and an update cover it from then on, and the agents' links keep pointing at it. When its own files aren't GitHub's, they go to the backups like UpdateSkill's replace does, and the result says so. A folder of the user's it was linked to stays as it is. followsHere (skill_link.go) decides it. It links only a skill with no remote source that wasn't renamed and is that skill: it traces to this repository (CC Switch, the skills CLI's lock, a git checkout, From), or it traces nowhere and its SKILL.md has the same description as GitHub's, as an older download of it does. One traced to another repository, or an untraced one that describes something else (mora1n's case, TestInstallSetPutsAnotherByTheSameNameBeside), still goes in beside it (skill_beside.go). A had skill with the same files and no source is bound to the GitHub source it was found in, so a later install of another repository's skill by that name goes beside it, not over it (TestSameFilesByNameAreHad). The probe marks such a candidate links:true. The GUI's Add list tags it "links to GitHub" with a tooltip, and the report names "updates from GitHub now" and "files of their own kept with the backups". The TUI's probe list and result line say the same. The new strings are in zh, zh-TW, ja and de. Run on mote (macOS), on |
||
|
|
8544d5fdb5 |
settings: Download source says usemagpie.ai first, GitHub when it fails
Since v0.1.3345 an update's files come from usemagpie.ai (R2) and go to
github.com only when that fails; a mirror stands in for github.com only.
Settings › About › Download source still showed "GitHub", said updates
come from GitHub, and its button "Use GitHub" (zh 恢复官方) read as
switching back to GitHub. Now it shows usemagpie.ai, says GitHub (or the
mirror) is the fallback, and the button is Remove mirror (不用镜像), in
en, zh, zh-TW, ja and de. `magpie update mirror` says the same.
Run on mote (update-mirror, i18n-en-no-cjk, i18n-keys and cli vet again at the rebased head: ok but #5332):
- update-mirror, i18n-keys, i18n-en-no-cjk and every GUI file that opens
About (19 files), chromium + webkit: update-mirror and i18n-en-no-cjk ok.
The reds, rerun one file at a time:
- i18n-keys "a plugin's words are its own" and segs-press-redraw
"clicks its new self once": red the same at origin/main
|
||
|
|
a912cdc369 |
routing: the groups page's Select and New group no longer touch
The groups page's toolbar row has gap 0, so Import, Select and the filled New group sat edge to edge: Select's hover met New group's fill (the owner's screenshot, 11-08). The buttons right of the spacer now stand 4px apart, New group 8px. Run at this head (rebased on |
||
|
|
4fac4c863b |
library: a long "In your agents" list shows its first 5 rows
The owner's Skills page listed 52 skills found in the agents, three lines each, and the list took the whole page. A list of more than 7 now shows its first 5 rows and "Show 47 more" under them; the click shows every row and "Show less" folds them again, for the session. Select shows every row to pick, and Bring in all still takes every one. MCP servers found in the agents fold the same way. Run on mote at |
||
|
|
26e9c95665 |
settings: the LAN address row has no blank band under it
The owner (11-08): in Settings › Network, under Share on local network,
the Address row had an empty band under the address, so the card's
spacing was uneven. The row places its controls in a fixed height (50px).
With a pointer that hovers,
|
||
|
|
2a64b4bcb7 |
library: a skill router, one magpie-skills skill listing an agent's skills
Like the MCP router, for skills. With the Skills tab's new "Skill router" switch on (off by default), each agent's skills folder gets one skill of magpie's, magpie-skills, in place of a link of each skill ticked for it. Its SKILL.md lists them, each with its description and the path of its SKILL.md, and the agent reads that file when a task fits. An agent then carries one skill's description in its prompt however many the Library gives it. - The entry is a link to <settings dir>/skill-router/<hash of the folder>/, which holds SKILL.md and a hidden .skills/<name> link of each listed skill (hidden, so Codex, OpenCode and Pi don't find a skill twice). Its description stays within 1024 bytes (Codex's limit), cut on a whole character. - Every skill is listed unless it is kept direct (a button on the skill, or `magpie library skill router <name> direct`; carried by a sync), is only for the user to type (disable-model-invocation), is in ~/.agents/skills, is blocked, or the agent has its own by that name. Those keep their own links. - An agent whose folder can't take it keeps every link, and the page says why: given copies, a live agent picking its own, the shared ~/.agents/skills, a Library skill called magpie-skills, or a magpie-skills of the user's (never written over). - Claude Code 2.1.316 asks before reading outside its project, its skills folder too, so magpie adds Read rules for the entry and the folders behind it to permissions.allow, records them, and takes out only its own when they go (as permissions.deny does). - The switch is this computer's alone; `magpie library skill router on|off` sets it from the CLI. - Sessions count a routed read of .skills/<name>/SKILL.md as <name> (Claude Code, Alma, Droid), and calling up magpie-skills itself as no skill, so a use counts once. - docs/subsystems/skill-router.md, with a row in the index. Run at this tree (rebased on origin/main |
||
|
|
3ab10b2649 |
gui: the Partners light runs round the partners' tiles too, with the heading
The owner asked for the add sheet's whole Partners block to light when it opens, not only its heading (除了合作伙伴这个标题有流光动画之外……这整块位置 是不是也要有一个流光动画), and picked, from three mockups, the outline that runs round the block the way it runs round the heading. Their notes on it: the two play together (标题跟这一块要一起播放); they must not touch, but the sheet's spacing must not change (视觉上这个间隙没有做任何的更改,但是播放流光 动画的时候,它们俩是不挨在一起的); the block's outline starts where the heading's does and has as much room above its words as below. shinePartners now takes the tiles' grid as well as the heading, gives both a glow and a ring, and lights both on the same frame. Both are absolutely placed layers, so nothing on the sheet moves. The tiles' ring sits on the grid's edge (about 9px over and under the names, 8px beside the icons, its left edge on the heading's). There is only 6px between the heading's words' box and the tiles, so the heading's ring now sits 2px closer to its words (inset 19px 0 4px, was 17px 0 1px), which leaves about 4px between the two lines. Same 1.8s trace and glow, a 5% glow under the tiles; none with reduced motion, the system's or Settings'. add-partners-shine.test.cjs now also checks, in Chromium and WebKit, en, zh, ja, de, at 900px and 440px: the tiles' outline plays with the heading's, sits on the grid's edge, starts at the heading outline's left, is at least 3px from it, and that taking both lights away moves neither the heading's words nor any tile (measured after the sheet's own entrance settles); a search's redraw doesn't play it, a reopening does, reduced motion draws no layer in the grid. Run on mote at |
||
|
|
4f3ec591ae |
browser: an extension older than magpie's is to be reloaded, says the sheet and the agent
magpie rewrites the extension's folder when an older one connects, but Chrome runs what it loaded until the extension is reloaded on chrome://extensions or the browser starts again, so a user who never does either stays on the old code. Now that is said: - Library → Magpie Browser: under "Connected to your browser · 0.1.8" a line says "Magpie Browser 0.1.9 is ready: reload Magpie Browser on chrome://extensions (edge://extensions in Edge)." Looked at from another computer (the zip install), it says to download it again, unzip it over the old folder and reload it. /api/library/browser has outdated. - The agent: the first browser answer on such a connection starts with a line telling it to have the user reload it (or download it again, for one connected with a gateway key). Once a connection. The extension still isn't made to reload itself: an unpacked one that calls chrome.runtime.reload() doesn't come back (the finding in browser.go's hello). The fake extension in the gateway's tests now says magpie's own version (it said 0.1.0, which every test would now be told about). Run (on mote): - internal/gateway TestBrowser* (new TestBrowserSaysTheExtensionIsOlder, TestBrowserSaysNothingOfACurrentExtension), ok. - internal/gui TestBrowser* (new TestBrowserStateOutdated), ok. - GUI: library-browser-setup, library-browser-away, library-browser-ask, browser-access, i18n-keys in Chromium and WebKit, every language, at 1100 and 420 wide: 127 of 128. The red is i18n-keys "a plugin's words are its own" for three keys this change doesn't touch, red on main and filed (#5332, #5482, #5426). - go vet for darwin, linux (nogui) and windows; gofmt -l clean. Broken by hand: - the once-a-connection check removed: TestBrowserSaysTheExtensionIsOlder red ("s1's next answer" has the note again). - the sheet's line never shown: library-browser-setup red, 20 of 20. - Outdated without Connected: TestBrowserStateOutdated red. Not tried: the whole GUI suite before this push (run next), and a real Chrome with an older extension loaded by hand. |
||
|
|
f99ad62a9c |
routing: the magpies fly over the cards again, off their words
The owner, 11-09: "鸟要在卡片上面". Since |
||
|
|
54af4357c3 |
usage: the agent filters show each agent's icon
The owner: Usage › Requests' agent menu listed names alone ("这里应该有
Agent的icon"). The ledger's agents already carry their icon (usageapi
Named.Icon), so the menu now draws it beside each name: an agent's own
logo, the generic one for a client magpie doesn't know (AsyncOpenAI,
Go-http-client). Sessions' agent menu does the same, from a session's
icon or, for an agent with none listed, the agent magpie knows. The
shared menu (openSessCombo) draws icons only when its options carry
them, and keeps the room blank on the All row, so every name starts at
one x; the other filters (models, folders, providers...) are unchanged.
usage-agent-filter-icons.test.cjs opens both menus in Chromium and
WebKit, en and zh: each row's icon, the All row's blank room, names at
one x, each icon on its name's line, and the search narrowing them.
Run (mote, at
|
||
|
|
82ca554be9 |
routing: a provider's accounts routed In order give a conversation back to the first
CryptoSarom on X: with a provider's accounts set to In order, a
conversation that had moved to the second account (the first was
resting) stayed on the second once the first was ready again. Only a
group's members went back to the first; a provider's own accounts never
did, because inOrder was read from the group's routing alone.
- gateway.go: inOrder comes from the provider's routing, or the group's
when the request is to a group.
- affinity.go: backToFirst compares accounts (who()) for a provider's
own accounts. For a provider it overrides only a cache that would have
kept the conversation (cacheHolds: worth keeping and still warm), so a
cold or empty cache keeps its own "cold"/"new" label.
- plugin_factory_cap_test.go: "auto, cached on B" pinned the old
stay-on-B behaviour; it now expects A, the first account, on purpose.
- GUI: the Routing affinity line for "order" without a group says the
provider goes in order and the first is ready again (all languages).
- docs/subsystems/gateway-routing.md: the In order bullet covers a
provider's own accounts.
Run on mote at this tree on aa3d11d5b; rebased onto
|
||
|
|
c6702f4626 |
routing: the context card's route icons sit level with their text
The owner: the icon and the text in the context window card's route
(agent icon, name, ›, lab icon, model id) didn't look level. Flex
centred each icon on the line box, but the letters sit lower in it, so
the lab icon was ~1-1.25px above its lowercase model id and the agent
icon ~0.5px above its name. The lab icon now moves down 1px, to the
id's x-height middle, and the agent icon .5px, between its name's
capitals and lowercase.
ctx-route-align.test.cjs measures the drawn ink at 4x (x-only and
H-only texts) in Chromium and WebKit, en and zh, and holds each icon
within .5px of its text's middle.
Run (mote): ctx-route-align, ctx-route, ctx-head-narrow, 108 of 108 ok.
Broken by hand: with the CSS reverted ctx-route-align is red 4 of 4
("the lab icon is centred on the model id's lowercase", WebKit en
labIc 10.125 vs modelX 11.375).
Not tried: the real Linux app (WebKitGTK) and Windows WebView2.
|