e4e9eb0928becfa4e48484dde85ef5032671d582
806
Commits
| Author | SHA1 | Message | Date | |
|---|---|---|---|---|
|
|
975799a069 |
gui: Settings' search finds what the words are about (canlee886 on X)
canlee886 (X, 2123329450502938656) searched Settings for "可访问性",
"监控" and "自动选择模型" and each said no setting matched: "缺少搜索时
的智能联想". The search only found settings whose text had every word.
What it does now, all in finder.js, in the page, nothing sent anywhere:
- A table of ~30 concepts, each with the words a reader may type in
en, zh, zh-TW, ja and de (accessibility, monitoring, picking a model
by itself, theme, proxy, notifications, startup, privacy, LAN, cost,
quota, hotkey, ...), leading to the English names of the settings it
covers (a setting's English is its data-en in every language). Those
settings are listed with the ones that have the words themselves,
for rows, built-ins and other pages' places alike.
- When nothing has the words: a long run of Chinese or Japanese is read
by its two-character words ("文字大小调整" finds Text size), and a
Latin word over 3 letters may be one edit off ("currancy").
- When no setting has the words themselves but some are related, the
line over the parts says "Settings related to “…”" (start-aligned,
in every language) instead of "No setting matches".
- The finders count first (setFeatsFind/elseFind take a dry flag), so
a search renders once and the view's MutationObserver doesn't loop.
Not done, on purpose: pinyin (a large table, and readers type Chinese
through an IME), a recent-searches list and "did you mean" chips (a
layout that jumps on focus; the owner has said no to UI churn).
Run (WSL magpie-desktop: mote's load was 26 to 34 on 18 cores, mica's
disk is full):
- settings-search-related.test.cjs (new), Chromium and WebKit, en, zh,
zh-TW, ja, de at 560x420, plus magpie web at 390x760: 16 of 16.
Against origin/main 9bf5848c1's assets (SEARCH_ASSETS): 0 of 16, "無
障礙"/"accessibility"/"barrierefreiheit" show no Text size.
- 37 nearby GUI files (settings-*, search-*, find-*, i18n*, menu-scroll,
click-scroll, builtins): 636 pass, 34 fail. The six files with reds,
run again at origin/main
|
||
|
|
6a46bad344 |
gui: Settings' search finds settings on every page, ⌘K opens it (canlee886 on X)
canlee886 asked for a search that reaches a setting by keyword even when it lives outside Settings, such as routing group strategy and members. Settings' search now lists, under its own results, hits from the other pages, each under that page's name: Routing groups (a group by name, its strategy, its members), Providers (the editor's fields, e.g. Proxy, per provider), Agents, Library and Usage. Open goes to that page and row (a group's editor at the field, a provider's editor with the field lit) without scrolling anything the user didn't ask for. ⌘K / Ctrl+K, or the header's new magnifier, opens the search from any page. - The finder is a lazy module, finder.js (like provlinks.js), loaded on the first search. app.js only calls it, so TestCoreScriptBudget's budget is unchanged: core 1272271 (310 under), app 1087580 (668 under), at fe038cfac rebased on |
||
|
|
1c29e2c7dd |
gui: dark quiet text at 4.5:1, the masking count in the app's own numbers (CHENGJIAHEGOXIS on X)
CHENGJIAHEGOXIS on X: the masking card's big number was a thin, tall
face ("瘦长的比较别扭"), and some text in dark mode was very dark: Library
› MCP's project help under 项目服务器.
The masking count (.msk-num, redact.css) drops its own SF Pro Display at
weight 100 for the interface's font at 600 and -.035em, as .si-pct b and
.kpi b have; its 52px and line-height stay, so the card's layout doesn't
move.
The help is .lib-aside, drawn in --faint. The dark theme's --faint was
#56565f: 2.39:1 on --bg, 2.16:1 on --card. It and --muted are raised in
both dark blocks and the dark panel's:
--faint #56565f -> #90909a (panel #7c7c87 -> #90909a)
on --bg 2.39 -> 5.49, --card 2.16 -> 4.95, --card-2 2.26 -> 5.19,
menu (--pop-bg) 2.07 -> 4.76, panel bg 2.34 -> 5.38, panel card
2.08 -> 4.77
--muted #8b8b94 -> #9c9ca6 (the panel's own value already)
on --bg 5.14 -> 6.38, --card 4.64 -> 5.76, menu 4.46 -> 5.54,
--pill 4.05 -> 5.03
fg-2 > muted > faint is kept. With a picture behind the page (84% veil,
appearance.go), --faint holds 4.5:1 up to a mid-grey #808080 picture
(4.52); a picture brighter than that under the words can't keep 4.5:1
for any grey quieter than --fg-2 without a heavier veil, which is left
as it is. .effort-ends loses its .8 opacity over --muted. The light
theme's --faint (1.95:1 on white) needs both light steps moved
together: #7153.
New test dim-text-contrast.test.cjs, Chromium and WebKit: the dark
--faint and --muted at 4.5:1 on every dark ground in the window and the
panel, with the steps kept; Library › MCP's two .lib-aside lines at
4.5:1 on the dark page, with no picture, #262626 and #808080 behind it,
in zh/en/zh-TW/ja/de at 1100 and 420 (web), no sideways scroll; the
masking count's weight and family the same as .si-pct b's and .kpi b's,
its tracking no tighter, fitting its card in dark and light, every
language, 1100 and 420.
Run (mote, through mote-run):
- old code: dim-text-contrast red 6 of 6 (--faint rgb(86,86,95) on
--bg reads at 2.39:1; weight 100, the app's big numbers 600).
- this commit's tree (on
|
||
|
|
5cf1d3846a |
sessions: an agent left off in the first "allow selected" is asked about once more, on Sessions and Usage › Requests
baysonfox on X: with magpie installed after Antigravity 2.0, the app's
sessions and calls made without magpie never showed in Usage, while agy
CLI's did. The first consent named the app off beside agy, and a named
agent was never "new" again, so nothing asked about it and nothing on
Usage said why. The reader is fine: the app's calls come from its own
SQLite steps (antigravityRead), read once allowed.
Nothing is turned on by magpie: the gate is the user's privacy choice.
Instead:
- settings.SessionReads gets Kept: agents turned off on their own (a
sessions/reads post without `all`: Keep off, a Settings › Privacy row,
`magpie sessions read off <agent>`). A post setting it on takes it out.
- readsNow's New: off, found here and not Kept (was: never named). So an
agent left off in the first choice's list is asked about once more,
as one found later already was.
- Usage › Requests shows a line above its rows for those agents
(readsLater in the usage plugin): Count {names} / Don't count, the
same {agents} posts as the Sessions page's laterCard. Gone after
either answer; sessions/reads read at most once a minute.
- Old data: an agent turned off in Settings before Kept existed has no
entry and is asked once more, for every user with such an agent.
Tests:
- TestSessionReadsUncheckedAgentAskedAgain (count, keep off): sandbox
HOME with testdata/agy-sessions and the real Antigravity 2.30
conversation (antigravity-2.30-tools); after the first choice the app
is off and New, has no rows in /api/usage/requests; Count brings its
rows in, Keep off keeps none, and neither is asked again. Red on the
old code (New false after the first choice).
- TestSessionReadsTurnedOffNotAskedAgain: off on its own, under all true
and all false, is neither on nor New.
- usage-reads-note.test.cjs: the Requests line in Chromium and WebKit,
en/zh/zh-TW/ja/de at 900/420/390px, both answers, buttons inside the
line, no sideways scroll; red on the old code (no #ledReads).
Run on mica (mote was full: load 40+, another GUI suite on it), rebased
on
|
||
|
|
67f24d7422 |
usage: every cache hit rate to two decimals, its exact share on hover; a speed's dash says why
shangyuan0818 on X: in Usage › Requests the ranking's model hit rates
had no decimals or one ("98%" beside "99.6%"), the request table mixed
them too, and hovering showed no exact value.
- hitPct gives every hit rate two decimals (98.00%, 99.60%), the same
in the ranking, the request table and its details, the Cache hit
rate card, the cache-read tiles, the model and agent rows, Sessions,
the tray panel, Routing's rows, figures and group averages, and the
context window's Prompt cache. It still never says 100.00% or 0.00%
of a prompt not all or none cached (99.99%, 0.01%).
- Each of them has the exact share on hover, in its title (hitTip):
"9,800 of 10,000 prompt tokens read from the cache: 98%", the share
to six places with no trailing zeros. One new string, translated in
zh, zh-TW, ja and de.
ohblue on X: 速度 shows "—" for many 200 requests (491 in, 93 out,
first token 6.3s, total 6.4s), "≥133 token/秒" for others.
- That speed can't honestly be counted: 93 tokens in the 120ms after a
6.3s wait would read ~775 tok/s, which is a reply written during the
wait and let go at once (ledHeldShort_). The dash already had its
reason as a title, but nothing showed it was there. It now has the
help cursor (the cache column's dash too), the Speed column's head
says what a speed is on hover, and a request's details say "— " and
the reason in words, for a reader who can't hover.
Budget: app.js and the core grew by my hitTip, cacheHitTip and the
titles. To stay inside both budgets with no raise, setQuotaRange moved
to plugins/usage/page.js and PLACEHOLDER to plugins/redact/page.js (each
read by that page alone), cacheHitOf and cacheHitTip share cachePrompt,
and hitPct is one expression. Core 1,272,578 of 1,272,581; app.js
1,087,887 of 1,088,248.
Run on mote/mica, this change on origin/main, both engines, every
language, at the widths each file covers:
- usage-hit-exact.test.cjs (new): green. Red with the old hitPct
('hit rate 98%') and red with the help cursor and the details' line
taken out ('pointer' !== 'help').
- 85 GUI files (every test that reads a hit rate, quota range or
masking, Usage, Routing, i18n-keys, gui-ja/de/zh-tw): 1318 pass, 30
fail. All 30 are red alike without this change, and all are filed:
agent-menu-label webkit panel (#6371), zcode-models webkit de
(#6566), quota-credits (#6807), quota-curve (#6789), usage-fold's
17 subscriptions (#3415, #6003), usage-ledger (#4078, #3104, #4626),
usage-ledger-chart (#6790). usage-fold's 'several accounts' went red
only under the 85-file run and passes alone on this tree (#3415,
commented).
- go test ./internal/gui on mica: ok (TestCoreScriptBudget included).
- Red alike on a HEAD checkout without this change, already filed:
usage-ledger "newest live route needs no return-to-live button"
(#4078, #3104, #4626), usage-ledger-chart "the metric is remembered"
(#6790).
Not run before the push: the whole GUI suite and go test ./... (both
machines had other sessions' full suites running); they run after it
and their result goes on record. Not tried: Windows WebView2, the
reporters' own ledgers, the real app.
|
||
|
|
31575f71a1 |
gui: the provider editor's Advanced rows sit under four small headings
The provider editor's Advanced held some thirty rows in one run (item 19). They now sit under four small headings, Routing, Models, Limits and cost, and Connection, each row keeping its order inside its group; a row the list doesn't name stays with the one before it, and the headings show only when two groups are used. No page, row or fold moves elsewhere. advgroups.js is imported when Providers first draws, so it weighs nothing on the core script, and the editor opens with the headings already in place. Not done from item 19: a routing group's strategy stays under the group's Advanced. The owner folded it there on purpose ( |
||
|
|
d90780c5d4 |
gateway, gui: a built-in is turned on in Plugins › Built-in, not a Settings › Plugins that isn't there
Errors and notices sent people to "Settings › Plugins" or called a built-in "the … plugin", where no such page is and the thing is a built-in (item 18, "Plugin" qualified where it's ambiguous). They now name Plugins › Built-in and say built-in. Own tests: builtins, websearch-places; Go: the gateway tests whose strings changed (TestKeyLimitsOnAndOff, TestSearchOnAndOff, TestToolsMCP*, TestHubMCPHeldToKeyLimit, TestVisionMCPHeldToKeyLimit), internal/gui's plugins_own_* tests, davsync, gwbudget, gwmw, provider. Run (mote, Chromium and WebKit, en zh zh-TW ja de): - before the rebase, 23 GUI files: every one green except plugin-provider-options (my bug, fixed in this branch before the push) and settings-groups' "warm-ups and check-in in each service's provider editor", red the same way at fresh origin/main |
||
|
|
2957d16e5e |
gui: every alert row says when notifications won't show, in sight; Bark says it gets them all
The scan's item 9. When the system blocks magpie's notifications, or
can't show them, Settings › Usage's four alerts said so after their
description, but the Masking alert in Settings › Privacy didn't. Both
take the line from one helper now (notifyWarn in app.js), and the
Masking alert appends it as the others do.
On a computer with a pointer that warning was never in sight anyway:
Settings holds a row's explaining line out of sight for the hover card
(app.css, 11-02), and the warning sat inside that line. The comment
there says a warning stays; the rule didn't. A line holding a .warn now
stays in place, so the warning is read without hovering.
Bark gets every notification magpie shows (sendAs → barkPush), even
while the system's are turned off. Its row now says so, in every
language, rather than following a separate set of choices.
New test notify-warn-places.test.cjs: denied and unavailable, the
Masking alert's and the usage alert's warning on screen (wider than the
1px a held line gets, no clip-path), none when nothing is wrong, Bark's
line, nothing past the edge; every language, 900 and 380, both engines.
Run (mote, at this tree; mote at load ~50 and mica at ~160, mote the
lighter):
- notify-warn-places, mask-alert, builtin-places, i18n-keys, bark,
settings-hints, usage-alert, reset-reminder, turn-done, settings-search,
settings-search-reach, settings-groups, gui-de, editor-hints,
privacy-hides-accounts, Chromium and WebKit: reds only these, each red
on an origin/main
|
||
|
|
98355866fd |
gui: the speed card's Check… brightens on focus in Safari 15.0 too
|
||
|
|
97e0ecdaab |
settings: a saved proxy's Test says its latency and exit region, from Settings and the provider editor (IcyLiqu1d on X)
IcyLiqu1d asked for sub2api-style proxy management: test each saved proxy's region and latency, then pick a provider's proxy from the list. - A saved proxy's row in Settings, once tested, reads "Reachable, 42 ms · Japan": the exit's country from Cloudflare's trace page (the endpoint the quick check already uses), named in the reader's language by Intl.DisplayNames; the exit IP is in the tooltip. A failure says why. - The latency is the round trip through the proxy, from the request written to the answer's first byte (httptrace). The whole request's time counted a new connection's dial, tunnel and TLS on a first Test and not on a second, which reuses the pooled connection. - The provider editor's Saved mode has a Test beside the proxy picked; its answer is said where the picker's hint is, red on failure, until another proxy or mode is chosen. - An editor opened before Settings was read drew its picker with no saved proxies (Saved mode missing, or "A proxy that is gone" for one chosen). It now reads the settings and draws the picker again. - Nothing is tested until Test is clicked; nothing runs in the background. Run (at this head's tree, rebased on |
||
|
|
495ada49a7 |
usage: the speed card's Check… shows without hover (skingstyle48487 on X)
skingstyle48487 couldn't find Check… on the Model speed › Providers rows:
with a mouse it showed only while the row was pointed at. It now always
shows, in the muted colour, and takes the control colour when its row is
pointed at or it has focus. No new label.
Run (mote): usage-model-speed.test.cjs, chromium and webkit, five
languages: 12/12.
Broken by hand: the test with the old app.css is red in both engines
("Check… shows without hover").
|
||
|
|
fdfa9fc72a |
gui: a narrow window's gateway key row holds still under the pointer, so it can be dragged (#6268)
At 420px, hovering a key row brought in its four unset badges (Quotas, At once, Tier, Masking). Even shrunk, their padding and gaps took ~90px, which the masked key gave up, so the key's copy button slid under the pointer. A press meant to drag the row then landed on the button, which dragRows leaves alone. 10 reds in gateway-key-arrange at 420px, in both engines and every language. The flex-shrink fix for this held with three badges; key-redact ( |
||
|
|
00c6b89aca |
gui: Usage's chart metrics scroll in their own strip on a phone (#5869)
The Requests chart's #ledMetric tabs (Tokens, Cost, Calls, Speed,
Traffic) ran to 400px in German on a 375px phone and widened the Usage
page. .led-bar .segs now joins the segmented strips that already scroll
in their own width (regions, Connect's APIs, Plugins' kinds): max-width
100%, overflow-x auto, the same thin bar off a Mac and none on one, and
options that keep their width instead of squashing their words.
Run on mica at this tree (origin/main
|
||
|
|
b2b3d488c1 |
settings: an SSH server as a saved proxy, and a failed proxy says why
@laiuuui on X (tweet 2122704105005314155) was told to put Gemini behind
a proxy in a supported region. Their VPSes give only SSH (address, port,
password or key), and every http:// proxy they added failed with Go's
words alone.
A saved proxy can now be an SSH server. Settings > Network > Add proxy
has Proxy | SSH; SSH asks for the server, the user and the password, and
Advanced (closed) holds a private key and the trusted host key. magpie
logs in itself with golang.org/x/crypto/ssh (no ssh command) and resolves
the @id to a SOCKS5 server of its own on loopback, which takes only its
own random login and carries each CONNECT as a direct-tcpip channel, as
ssh -D does: lazy login, keepalive@openssh.com every 20s, one re-login
when a channel finds the connection dead.
- Save logs in first: a refused login is said there and nothing is kept.
- The host key is trusted on first use, kept in authorized_keys form and
shown as its SHA256 fingerprint; another key is refused
(HostKeyChangedError, both fingerprints said) until Trust a new key.
- The key is a secret like the password: left out of backups and
syncs without keys, kept on a sync that has none.
- ssh:// typed as a plain address is refused: its login goes with a
saved proxy.
A failed proxy says why (netproxy.Why: an English template the page
translates in all five languages, Go's words after it): an SSH server
typed as http:// or socks5:// ("is an SSH server, not a proxy: add it as
SSH"), a refused login, keyboard-interactive refused (OpenSSH without
PAM, "unexpected message type 51"), nothing listening, not SSH, TLS on a
plain proxy, 407, timeouts, hangups, and a server that logs in but won't
forward (AllowTcpForwarding no, or macOS 27's sshd, which hangs up on
every forward, OpenSSH's own ssh -W too). A check the user asks for
reads the server's first bytes when Go's text can't tell: Go reads a
real OpenSSH banner ("SSH-2.0-OpenSSH_9.6p1 Ubuntu-3ubuntu13.20") as an
HTTP status line with a malformed code, and an SSH server's banner can
reach Go's transport before its request goes out
("readLoopPeekFailLocked", found red 1 of 20 on mica, then 40 of 40
green). Each save is tested at once.
app.js keeps one line (api() hands a proxy_why reply to proxies.js,
where proxyWhy now lives); both script budgets are raised by that line's
52/54 bytes, with the reason in core_budget_test.go.
Run (mica, at this head on origin/main
|
||
|
|
4b8c5948e7 |
gui: old-webkit green again (#5919, #6030)
Both old-webkit reds had been on main for a week with no owner, and commit after commit cited them as "red on origin/main, filed". #5919: |
||
|
|
5bfa57e3d3 |
usage: check one model on one provider with a few fixed-answer calls, kept beside the other providers
skingstyle48487 on X runs more than ten relays and asked for something like the "pelican test" to spot one that waters a model down. In a follow-up (2122694296054972815) they said speed, failures and the model's name show whether a relay is fast and stable, not whether the model got weaker. They asked for small tests with known answers, the share of right answers and of right tool calls, and relays compared side by side. On Usage › Requests › Model speed › Providers, each row has a Check… that opens a dialog. Opening it sends nothing; only its Check makes the calls. POST /api/relay-check (gateway.CheckRelay) makes 6 small streamed Chat Completions calls through the gateway, pinned to provider/model as an agent would, three at a time: - write 1 to 40; - 1234 × 5678, 987 × 654 and 2468 × 1357; - weather in Paris and time in Tokyo, each call offering both tools, so the right one has to be picked. Each part says what it found, never a verdict on the provider: - whether the answer was the expected one, and what came back; - the model the reply named, when the ledger would call it another model (usage.Swapped, not SameSpelled or ListedAs); - the provider that answered, when the call was handed on; - how many input tokens the 118-character prompt was counted as; - first token, tok/s and the whole time. The dialog heads the parts with "Answers right: n of m" and "Right tool calls: n of m". The numbers come from the gateway's own usage records (a tap in appendUsage keyed on the request's context), not from each protocol's reply. The tally of each provider's last check is kept in the window's storage. The Providers table then shows Answers and Tool calls columns: sortable, amber when short of all, a dash for providers not checked, so relays are compared side by side. The dialog code is a lazily loaded root script (relaycheck.js), as app.js has no room left. Run, at this head: - mote: go test -timeout 45m ./internal/gateway ./internal/gui ./internal/cli ./internal/usage: ok (the full ./... suite passed at 41d88731c, before the fixed-answer calls; mote and mica were each running another session's GUI suite at this head); - gofmt -l, GOOS=linux go vet -tags nogui ./... and GOOS=windows go vet ./...: clean; - go test -run 'CheckRelay|ReadChatStream' -v ./internal/gateway (5 tests pass); - usage-model-speed.test.cjs, chromium and webkit, en, zh, zh-TW, ja and de at 400px: 12/12; - i18n-keys and old-webkit: their only reds are the three on origin/main, each filed (#6877 ", with an image", #5919 :has(), #6030 headerpresets.js); - TestCoreScriptBudget and the app.js budget: ok, not raised. Broken by hand: - taking tapUsage out of appendUsage turns TestCheckRelayAnsweredAsAsked and TestCheckRelaySaysWhatDiffers red; - dropping the tool-name check turns TestCheckRelayCountsEachAnswer red (get_weather for Tokyo read as right); - pressing Check as the dialog opens turns the GUI test red ("opening the dialog sends no call"). Not tried: - the whole GUI suite at this head (both machines busy with another session's suite); - a real relay (fakes only); - a context-window probe; - a comparison with the vendor's own count_tokens; - a periodic check (the check runs only on a press). |
||
|
|
05d46f42e5 |
gui: Claude's menu bar cards can show Anthropic's A\ mark (qingnianxiaozhe on X)
qingnianxiaozhe asked for Anthropic's A\ in the menu bar in place of
Claude's logo. Settings › Usage › Menu bar Claude logo (Mac only, shown
while logos are on and a ticked card is Claude's, under the magpie icon
row) picks Claude's logo
(the default, unchanged) or the A\.
- settings.TrayAnthropicMark, kept per computer through KeepOwn like the
other menu bar choices; settingsapi.Keys saves it; a change wakes the
menu bar (onTrayUsage).
- trayAnthropic swaps the icon of cells whose card logo is claude-color
or a plugin's claudecode-color (trayCell.Logo) for trayAnthropicMark,
an SVG drawn here (two paths, no other app's bytes), and marks it mono
so mpGlyph paints it in the bar's text colour. Menu bar logos off
wins.
- The row's code is trayClaudeRow in traywindows.js (lazy). app.js only
adds the key to prefsKeep; to stay in TestCoreScriptBudget without a
raise, renderTrayUsage's no-card branch moved into trayWindowsRow,
which now hides Windows' figure row itself when no card is ticked.
- en, zh, zh-TW, ja, de strings; docs/subsystems/gui-shell.md bullet.
Tests: TestTrayAnthropicMark (which cells change, input not mutated,
plain cells stay plain), TestTrayAnthropicMarkSVG,
TestTrayAnthropicMarkSaved (POST as the page does, saved and woken once
per change), TestTrayImageAnthropicMark (darwin: renders the real
AppKit image light and dark, the logo rect differs, the rest of the
image is identical), tray-anthropic-mark.test.cjs (five languages, 900
and 400px, Chromium and WebKit: row, two logos, default Claude, A\
posts true, another setting's save keeps it, back to false, no row with
no Claude card / logos off / no card / Win32, no page errors, no
sideways scroll). The GUI test waits for the redraw after a save rather
than a fixed time: a click on a control drawn before the save lands
sends the old value back (any setting, not new here).
Broken by hand: trayAnthropicMark taken out of prefsKeep turns the GUI
test red ("a save of another setting keeps the A\") in all languages;
taken out of settingsapi.Keys turns TestTrayAnthropicMarkSaved red.
Run:
- mica, at 2fa9295ed (this tree less the doc bullet): go test -timeout
45m -count=1 ./... : 103 ok, exit 0.
- mote, at this head's code: gofmt -l clean; go vet ./...;
GOOS=linux go vet -tags nogui ./...; GOOS=windows go vet ./... ok;
internal/settings, settingsapi, davsync ok; internal/gui -run
"Tray|CoreScript|Budget|EveryRoute" ok.
- mote GUI, Chromium and WebKit, the 20 files that touch the menu bar
rows, Settings search or prefs (tray-*, settings-search, side-effort,
searcher-pick, quota-pace, proto-menu-overflow, classify/image-timeout,
i18n-*): tray-bird first went red (its row must follow the logos row),
so the Claude row sits after the magpie icon row. side-effort is 5/5
red in both engines on origin/main
|
||
|
|
738ede4a70 |
agents: Speed beside Model and Effort, with what decides it (Tengs999 on X)
An agent whose model has a fast mode now shows Speed next to Model and
Effort: in the window's Details and in the tray panel's opened row. It
reads Usual, Fast (one bolt) or Ultrafast (two), and its menu (the app's
openProtoMenu, never a native select) offers Default, Fast and, where the
model has it, Ultrafast. It sets the very pick the model's bolt in the
picker sets: POST /api/agent-fast {for, ref, fast, ultra}; no new state.
A refused post puts the old pick back.
What decides the speed is said as the gateway decides it (speedNow): the
agent's own pick, else the model's own tier (ModelTiers) -> "Fast · model
setting", else for Codex its service tier in Settings -> "Fast · Codex
setting", or "As Codex asks" when that tier is unset. The tooltip says
it in a sentence, and Default's note in the menu says what Default gives.
Words in en, zh, zh-TW, ja and de.
speedNow and speedField live in agentspeed.js, imported when such a row
draws, and before a fast model's Details first slides open so it measures
the line. What is left in app.js (two helpers and three call sites) is
499 bytes; both script budgets go up by that, with the reason written.
Run (mote/mica, at this head):
- internal/gui/tests/agent-speed.test.cjs: Chromium and WebKit, en zh
zh-TW ja de, window 1100px and panel 440px, all green. Broken by hand:
dropping the model-tier line in speedNow turns it red ("Fast · model
setting" expected, "Usual" actual); the panel's lazy line not taking a
.field's place was found by it (0 Speed fields) and fixed.
- go test ./internal/gui/: ok (TestCoreScriptBudget included). gofmt -l
clean.
- GUI files that reach the agent rows and the guards (agent-menu-label,
fast-pick, fast-ultra, desktop-tiers, i18n-keys, kimi-subagent-pool and
more) at this change and at origin/main
|
||
|
|
a5b797d8d0 |
gui: the sidebar's torch lights a row's icon too, not only its word
Since the sidebar's sub-lists got icons, the torch hover (navlamp.js)
lit a row's word and left its icon dim in --muted. Page rows' icons and
Settings' gear were never lit either (the owner noticed it on the
sub-lists).
navlamp.js now lights the row's icon (a direct svg, .nav-ic or
.nav-s-ic) with the word: class lit, --si as the word's, and --iw, how
much of the torch's heart the word's ink would have at the icon's
middle, from the pointer's distance over the light's 36px reach with
the gradient's own stops (all of it to 12%, 45% at 45%, none at the
edge). app.css colours a lit icon between the same --hot and --far as
the word, from the icon's own ink (--lo: --muted), with no transition
of its own, inside the same color-mix @supports guard, and takes --hi
past --fg the same way. The open page's row and the selected sub-row
are never lit, as before. The gateway's status dot keeps its colour
(a plain <i>, not matched). A plugin page's mask icon follows the
colour; a plugin's favicon drawn as an <img> can't be coloured and
stays as it is. Reduced motion lights it at once, as the word. Its
light goes out with the word's, and every property it set is removed.
No :has() is added.
Run (mica-run unless named):
- new nav-lamp-icon.test.cjs: a sub-list row's icon, Providers' icon
and Settings' gear rest in --muted, are near --fg under the pointer,
lit less with the pointer at the word's end and back in --muted once
it leaves; the selected and open rows' icons are never lit. chromium
and webkit, en zh zh-TW ja de, 1024px (the narrowest sidebar) and
1440px, light and dark. With nav-lamp.test.cjs: 42 of 42.
- broken by hand, chromium: the icon never marked lit: 10 of 10 red;
the CSS colour line taken out: red at "lit under the pointer" (the
icon fell back to the hover's --ctl-fg).
- old-webkit, phone-web, phone-tabs, plugin-page-icon-tone,
plugin-page, sidebar, i18n-keys, nav-sub-fold, nav-sub-icons,
nav-sub-unroll, side-toggle, side-width, side-gateway-lan,
routing-side-calls: 203 of 208. The reds: i18n-keys' "a plugin's
words are its own" (#6877), old-webkit's headerpresets.js (#6030)
and Safari 15.0 :has() (#5919), each red on origin/main
|
||
|
|
ff88ec264a |
sync: subscriptions whose sign-ins stay on this computer (Ethereal499 on X)
Sync's sign-ins can now leave chosen subscriptions out on one computer
(`signInsExcept`, provider ids; Ethereal499 on X keeps Claude's accounts
off other computers). On that computer:
- its accounts of those subscriptions never go up;
- the server's accounts of them are never merged in, so a removal or a
new account on another computer changes nothing here;
- the server keeps them as they are for the computers that do sync them
(syncOnce splits the remote set with SignIns.Except and puts the held
part back with With after the merge, so the hash doesn't change);
- the preview and Restore count and restore none of them.
An id names both the built-in and its -plugin id. An old config has no
field and syncs everything as before. The setup text doesn't carry the
choice, since it belongs to one computer.
GUI: Settings > Sync > edit > Advanced, under "Sign-ins", a "Not synced"
row with a multi-select openProtoMenu of the subscriptions with an
account. The row shows only while the sign-ins tick is on. The strings
already existed in en, zh, zh-TW, ja and de. CLI: `sign-ins-except=`
on the WebDAV, S3 and GitHub setups ("none" clears it), and status
shows the excluded ids. docs/subsystems/sync-backup.md says it.
Tests:
- TestSignInsExcept (provider) and TestSyncSignInsExcept (davsync, two
computers on a fake DAV).
- sync-signins-except.test.cjs: both engines, 1100 and 420px, all 5
languages.
Broken by hand, each red and then restored:
- the Except in collect;
- the Except on the remote set before the merge;
- the Except in the preview;
- the With after the merge;
- the GUI form's post of signInsExcept.
Run:
- At
|
||
|
|
a24a5f6af4 |
gui: a model test its vendor queued shows queued, not green (sufeng1894 on X)
sufeng1894 (v0.1.4248) added Qoder China and QwenWork providers (both served by the Qoder plugin): their models were green in the provider's Test, and every request through Routing failed with 503. A Qoder/QwenWork plan queues a model (code 10605, e.g. "this plan's queue: p4"). The test sends x-magpie-fallback, the plugin answers the queue's 503 at once, and probe counts it OK with Result.Queued ( |
||
|
|
8608ce0243 |
gui: the sticky tab strips are drawn only under scrolled rows, rounded and evenly inset (CHENGJIAHEGOXIS on X)
Over a background picture the Library tab bar showed a square frosted box
around the rounded tabs, 16px out at the sides, 8 at the top and 4 at the
foot. The strip behind the tabs (Library, Plugins, Settings, the Add
sheet) is now drawn only once rows scroll under it (.stuck), fading in
with opacity, so at the top only the track shows: radius 7, an even 2px
around its 5px pills. When drawn, it sits 4px out from the tabs with
radius 11 at its foot (Library, Plugins), and 6px out with radius 13 in
Settings and the Add sheet.
Run: shots in Chromium and WebKit, light and dark, with and without a
wallpaper, at 1280 and 640, at rest and scrolled, before and after
(strip opacity 0 at rest, insets 4/4/4 when stuck). Full GUI suite at
18ec1674a on mote: 1041 fails across ~118 files; those files at
|
||
|
|
34606000da |
gui: the tray panel's Usage tab ends in a heatmap of recent weeks (eiyuuzaki2333 on X)
Asked for "a heatmap like GitHub's / Codex's, also in the tray". The window already has one (Usage › Requests, 53 weeks, #1369), so no second copy goes on the Overview, which counts gateway calls only while the heatmap counts session-file calls too. The tray panel had none. The panel's Usage tab now ends in a card of the recent weeks, one cell a day, Monday on top, as many weeks as the card fits (8 to 53: about 25 at the panel's 440, 17 at 320). It goes after the chart and ranking, so nothing above it moves. Its shades are the existing monochrome accent ramp (.l0 to .l4) and follow the tab's own Tokens / Cost / Requests switch, with no new read; a provider or computer picked above narrows it. A tooltip says the day and its tokens, requests and cost. Weeks with no call show no card. No animation. It reads the existing cached /api/usage/heatmap, at most once a minute and again when a pick changes; the tab's own 10 s reads don't wait for it, and no endpoint was added. The card, its reads and tooltip live in plugins/usage/page.js, which shares its grid (heatGridOf, taken out of drawLedHeat as it was) and tooltip (ledHeatTip, now told the metric and provider) with the Requests tab. app.js keeps one guarded call in renderPanelUse: the ledger read can come back before page.js has run, so page.js draws the tab again when it loads. Both script budgets hold it at this base with no raise. The card is .pu-heat, not .pu-card, so the chart's card stays the tab's one .pu-card. The panel's light pills are its card's white, so a quiet day there is a 7% shade of the text over the card. Run (rebased on origin/main |
||
|
|
187d067241 |
gui: a page's row in Sidebar pages is dragged by a finger too (chet030714 on X)
v0.1.4296's page order "根本拖不动" on a phone. Reproduced in Chromium with real touch input (CDP Input.dispatchTouchEvent, 390px, hasTouch, isMobile): the press on the grip went pointerdown, pointermove, lostpointercapture, and the drag ended before it began. A finger (and a pen, where the browser does so) is captured by what it pressed, here the grip span inside the row; dragRows then takes the capture on the row, the grip loses it, and its lostpointercapture bubbled to the row's listener in dragListen, which cancelled the drag. A mouse has no implicit capture, which is why the mouse test and the desktop app were fine (mouse drags passed in Chromium and WebKit, 1100px and 390px). dragListen now cancels only on the handle's own lostpointercapture. The fix is in the shared listener, so every dragRows/dragCards whose handle holds a child (the accounts' rows, a model's rows, plugin pages) gets it. On a coarse pointer the grip is 40px wide instead of 26, a finger's target. Alt+Up/Down is unchanged. No new motion: the rows' existing 0.16s strong ease-out shift (none under reduced motion) is what a finger drag shows. The listener's lines were written shorter so app.js stays under its budget (4 bytes of room left), no raise. Run: - nav-pages-order.test.cjs: a finger drag (CDP touch) and a pen drag (CDP pointerType pen) on the phone's menu, Chromium; WebKit checks the grip shows. 10/10 (Chromium, WebKit x en/zh/zh-TW/ja/de) on mica. Red on origin/main 269e54de5's app.js: "a finger dragged Masking up", chromium en and zh (2/2). The pen step passes on the old code too (Chromium's CDP pen isn't implicitly captured), so it guards nothing old, only the path. - The drag GUI files (account-arrange, agent-grip, codex-model-order, drag-rows-shift, gateway-key-arrange, group-arrange, group-member-drag, group-member-row-drag, panel-arrange, plugin-page-arrange, provider-order, routing-rule-drag, usage-arrange, usage-drag, tap-lost-click, tap-inverted, tap-click, search-order, nav-pages-order) on mica: 196 pass / 12 fail. The 12 are account-arrange (53 !== 52, #6010) and gateway-key-arrange 420px (#6268); both fail the same 12 at origin/main 269e54de5's assets. - go test ./internal/gui/ on mote: ok (TestCoreScriptBudget included). Not tried: a real phone (iOS Safari, Android Chrome); WebKit touch, which Playwright can't send; a real pen; the Wails windows. |
||
|
|
fb711ae0fd |
settings: Quick check's Web search tests every search API, one line each (heyiwei5 on X)
heyiwei5 on X: "快速检测 联网搜索 是不是只检测第一个api 多个api的话 是不是不能检测?"
The Web search check ran one search (webSearch), which stops at the first
searcher that answers, so a second search API was never asked and a broken
one read as ok.
CheckPipeline's search now goes through checkSearch: it asks each searcher
a search can go to once, at the same time, by the path a search takes to
it, with no other standing in: the provider that searches (searcher, via
searchBy) unless provider search is off, and each search API on
(provider.SearchAPIs, via askSearchAPIKeys), in the order a search asks
them. The answer gains `searches` (name, ok, ms, error); the check is ok
only when every one is. Nothing set up, or the plugin off, says so as
before. pipecheck.js draws one line per searcher under the Web search row,
"Exa · 1.5 s" or "Tavily · <its error>" in red. Test and Test all are the
only things that ask, one call per searcher. No new strings. Documented
in docs/subsystems/gateway-routing.md.
Run (mica):
- TestCheckSearchAsksEveryAPI red on the old pipeline_check.go ("a broken
API reads as ok: {"kind":"search","ok":true}"), green now.
- pipeline-check.test.cjs red on the old pipecheck.js (0/16), green now
with i18n-keys.test.cjs, chromium + webkit, en/zh/zh-TW/ja/de, 1100px
and 400px.
- At
|
||
|
|
b010fba05b |
gui: the pages go in the reader's own order, in the sidebar and a phone's tab bar (chet030714 on X)
Settings › General › Sidebar pages, where pages are hidden, now also puts them in order: a row is dragged by its grip (shown on hover, always on a touch screen), or moved with Alt+↑/↓. The order is kept for this browser in localStorage magpie.navOrder, beside magpie.navHidden. The sidebar and the header's tabs follow it at once, and a phone's tab bar (phonetabs.js) shows the first four with the rest under More. Providers is listed (it can be moved, never hidden). While the order isn't the home one the sidebar's group names (Work, Models, ...) are left out, since a reordered list breaks the groups; Default order (shown only then) removes the key and puts the pages and their names back. A page the kept order doesn't name (new in an update) goes after the page it follows at home. Plugin pages keep their place in their group. A reader who never reorders sees nothing change. navOrder and navArrange live in the new navorder.js, imported by navHides only once an order is kept (and by navpages.js with the menu), so what is left in app.js is that one line: +107 on both core budgets, explained there. old-webkit's list of on-demand scripts names navorder.js. Built on the unpushed WIP 10b9ee22c (page-order worktree), cherry-picked onto origin/main; the WIP test clicked the aria-disabled Providers row without force, and its reload checks now wait for the async import. Run: - nav-pages-order.test.cjs (new): Chromium and WebKit, en/zh/zh-TW/ja/de, 10/10 pass. Red on origin/main (no menu opens), 5/5 chromium. - The whole GUI suite (make test-ui) on mote at the first, inline version (navArrange ran on every start; the final version runs nothing new for a reader with no order), stopped after 4,171 ok / 171 not ok, none in a nav, sidebar or phone file. Five of the red files (agent-switch-accounts, gateway-key-arrange, first-untick, data-folder, api-key-theme) rerun on mica at this tree and at origin/main |
||
|
|
04147086cd |
settings: a card with no rows is not drawn (fishmagic80 on X)
With Share on local network off, Allowed addresses, Client certificates and HTTPS empty their cards (#allowList, #mtlsList, #httpsList), but an empty .list still drew its 1px border, so Settings -> Network showed three thin lines between the Local network card and Web pages. A Settings card with no children is now display:none (.set-page .list:empty), for every Settings page, not only these three. settings-no-empty-cards.test.cjs opens Network with sharing off (en, zh; 980px and 390px; Chromium and WebKit), asserts no visible empty card on it and on every Settings tab, and that Web pages sits right under the Local network card. Red on the old CSS: ['allowList 2px', 'mtlsList 2px', 'httpsList 2px'] in both engines; green with the fix. Run: - the new test plus allow-ips, https-settings, lan-address-height, lan-lazycat, lan-public, lan-join at this head on mote: 92 pass, 8 fail; the 8 are allow-ips (#4357, #4959) and lan-join WebKit (#6353), red the same at base |
||
|
|
2ad38c8b3e |
provider: Baidu Qianfan's ended console sign-in asks for a new one in the editor, and a renewed cookie is kept (yuushabu_buyinn on X, #5860)
yuushabu_buyinn asked for AccessKey + SecretKey in place of the console cookie, which expires. Baidu has no such route. Its documented OpenAPI has no read for a Token Plan Personal: - the Qianfan API catalog (doc/qianfan/s/Smownk4en): 量包 v2/charge?Action=DescribePackageResources lists token packs by series, with no Token Plan; - Finance's API (doc/Finance/s/ojxecslph): bills, balance, orders, vouchers; - the Token Plan Enterprise's seat APIs (tokenplan?Action=... DescribeTeamSeatUsageDetail), which take an API key and are for team seats only. The Token Plan Personal doc (doc/qianfan/s/Dmrabu8b6) shows usage only on the console's 我的订阅 page. So the cookie stays, and what is mended is what happens when it ends: - Before, a session the console refused showed "Signed out of the Baidu Cloud console" on the card, while the provider's editor still said "Signed in" with only Sign out. Now the kept sign-in is marked ended (qianfanSession.Ended, set the first time only, and not when a newer paste has replaced the cookie the read used). /api/providers says qianfanPlan.ended, and qianfanplan.js draws "Baidu Cloud ended this sign-in. Bring a new one:" above the bookmarklet and paste steps. A new paste, or a later read the console takes, clears the mark. - A cookie the console sets in a reply that read the plan (on the resource's path) is merged into the kept Cookie header as a browser would: replaced in place, added, or taken out when deleted or expired (mergeQianfanCookies). A session Baidu renews as it is used then stays the one magpie holds. The paste check keeps what its reply set too. The StepFun sibling (the same "still Signed in" gap, drawn by renderStepPlan in app.js) is #6808. The Qianfan fix adds no app.js bytes. Run (mote, at |
||
|
|
7bdda04509 |
settings: Update source's menu button shows its whole name (jiangshangmuyun on X)
Settings › About › Update source showed only a clipped glyph and the chevron (reported on Windows, reproduced in Chromium and WebKit alike). Cause: .pref-pick's max-width is min(230px, 45%), meant for a picker that is the row's own child (Language). Update source's button sits in the row's .val box, whose width is its content's, so 45% resolved against the button's own width and shrank it each time. A .pref-pick inside .val now takes min(230px, 100%); .val is held to 60% of the row already. Only #updateSourcePick sits there (langPick and the sidebar pages picker are the row's own children), so nothing else moves. settings-update-source.test.cjs now checks the label is not clipped for each of its three choices. Run (mote): - settings-update-source.test.cjs on the old CSS: 10 of 20 red (every language at 1100px in chromium and webkit, e.g. "自动: the label is clipped (24px in 0px, button 25.6px)"); with the fix 20 of 20 ok. - node --test settings-update-source, segs-glide, uninstall-settings, update-mirror, update-download-steps, update-hide, update-quiet, update-row-steady, update-check, i18n-keys: 300 of 300 ok (both engines, every language). - go test -run 'Budget|CSS|Asset|I18n' ./internal/gui: ok. gofmt clean. Not tried: the real Windows app (WebView2); the whole GUI suite, as the rule matches one element. |
||
|
|
e47abdf468 |
usage: the allowances' trend takes any last N days; a curve's hover reads the exact numbers
shangyuan0818 on X asked for exact numbers on the Overview's quota curves when hovered, and for the trend to take any "last N days". - Usage → Overview, the allowances' "Trends: …" button: the menu now has 7 days and 30 days beside Off, 2 days and Cycle, and "Other number of days…", which turns the button into a field for 1 to 45 (the days of history magpie keeps). Enter or leaving the field keeps it; Escape leaves the range as it was; a number out of range says so and keeps the old one. A custom N stays in the menu, and is kept across a reload (magpie.quotaRange). - Hovering a quota curve shows a small tip at the reading nearest the pointer: when it was read, then each window's left to two decimals (70.46%), with a hairline at that time. A balance curve shows the balance in the card's currency. The curve's own tooltip (what the dashes mean) waits while the tip shows. A touch still zooms, as before. - The trend menu, the days field and the hover live in the usage plugin's page.js, so app.js stays inside its budget. - No animation: the tip follows the pointer, which a movement would lag. Run, at |
||
|
|
dd77094ca2 |
gui: on Windows the header is the window's title bar (258a14 on X)
With a wallpaper, Windows' main window had a white native title bar over
the page, cut off from it ("内容区域和标题栏有割裂感"). On Windows the main
window is now frameless (mainFrameless), as the Mac's header already is
the title bar: the page and its wallpaper run to the top edge. Wails v3's
frameless window keeps WS_OVERLAPPEDWINDOW, so the shadow, Windows 11's
rounded corners, snap (Win+arrows, drag to an edge) and Wails' resize
edges stay. The header draws minimise, maximise/restore and close at its
right (#wincap, wincap.js, imported in that window alone), Windows-sized
with Segoe Fluent Icons, in the theme's colour, Close red on hover
(.1s ease); the header's refresh and pin sit left of them and stay
no-drag. A double click on what drags the window maximises or restores
it. The app tells the page when the window is (un)maximised (captionJS),
which swaps the glyph and its tooltip and keeps Wails' resize edges off
while maximised so the corner pixel is Close's. The buttons stay over a
dialog's scrim (wincap.js undoes modalBackground's inert on them). The
Mac, Linux, the tray panel and the web page are unchanged.
TestCoreScriptBudget: +27 on both budgets for the one import line in
app.js, past the 29 bytes of room there were; the rest lives in
wincap.js and app.css.
Run (mote, at this tree on origin/main
|
||
|
|
139a6be2bb |
gui: a pin in the title bar keeps the main window on top (NovaStudiosss on X)
NovaStudiosss wanted to watch Usage and Routing while working in other apps. The main window's toolbar now has a pin between Refresh and Settings. A click keeps the window above other apps' windows (Wails SetAlwaysOnTop through POST /api/window/ontop?on=1|0) and saves it as settings.json's onTop, which this computer keeps for itself (KeepOwn, not synced). makeMain opens the window pinned on the next start, and boot.js shows the pin pressed before the first paint. There is no pin in the panel, in a browser's page (magpie web) or under Wayland, where always-on-top is ignored (GDK_BACKEND=x11 keeps it). A refused pin goes back up. Tooltips "Keep on top" and "Stop keeping on top" are in every language. A Settings save keeps onTop (settingsapi.Merge), which a test showed was lost before. Run (rebased on |
||
|
|
1f04ed2193 |
gui: a form's name and its control share a line in every editor
The owner (11-12, the second time): in a provider editor, Free for me and Redaction sat 4-5px under their ticks. "这个事情发生过不止一次了,要彻底避免。" Cause: each label carried a padding-top guessed for one control, 5px for a 29px input. Any other kind of control, such as a tick, a switch, the icon box, a row of options, a list or a JSON box, sat off its name. Fix, at the shared row layout instead of per row: - Every editor grid sets its rows on their first baseline: .editor, a dialog's .ebody, Advanced's .more .inner and Connect. The per-label padding and label.by-list are gone. - Controls with no text of their own carry a text line at their middle: the icon box (line-height 30px) and the library switch (a ZWSP ::before). - Exception: a row whose control starts with a text field is set at its top, its name padded to the field's line (--field-h, 44px on the narrow web). WebKit lays a baseline row out again on every layout and reveals a focused field each time, so the page jumped back to a new group's name (group-from-model-add). app.js's settleRows marks those rows .at-top (and a JSON box's name .by-json), only in grids a mutation touched. A CSS :has(+ ...) version held WebKit ~9s on Codex's editor (9209ms vs 249ms on base, provider-pass-errors). - Connect's options wrap at <=520px instead of scrolling: WebKit grew a baseline row holding a scroller 6px each time its bar came and went (connect-snippet-shell). - The rate-windows Add button sits at its row's top. - provider-at-once compares the label's text height, not its padded box. The label is still one line; a name beside a 44px field is padded down to its line. Guard: form-align.test.cjs opens the provider editors (a key's, Codex, with Advanced open), the group editors and Connect. For every name and control row it asserts the label's first text line and the control's first line share a vertical centre within 2px. It runs in chromium and webkit, en/zh/zh-TW/ja/de, at 1100, 420, a web 390 and a panel width. LESSONS.md gets the rule. Run (mica, through mica-run): - At the pushed tree (49274f690, the same tree before this message): form-align, provider-pass-errors, provider-at-once, provider-count-free, provider-unmasked, provider-rate-windows, provider-proxy, connect-snippet-shell, group-from-model-add, icon-url, library-mcp-hub, settings-lines-wrap, settings-update-proxy, editor-roomy and i18n-keys: 499 pass, 3 fail at load 75. The 3: settings-lines-wrap chromium de 440 is red the same on origin/main |
||
|
|
574b7b96f7 |
gui: beside an app's version the update pill says it updates the CLI (roger1huh on X)
roger1huh's DeepSeek Harness row read "CLI 0.1.5-rc.2 [更新到 0.2.2-rc.1]
App 0.2.2-rc.2", and they took the pill for a downgrade of the app. The
check itself is right: npm's latest for @deepseek-ai/dsh is 0.2.2-rc.1,
newer than the CLI's 0.1.5-rc.2, and the desktop app ships on its own.
Where a row shows an App version, the pill now says "Update CLI to {v}"
(更新 CLI 到 {v}, CLI を {v} にアップデート, CLI auf {v} aktualisieren); a
row with no app keeps "Update to {v}". Every agent's row goes through
cliTag, so Codex and any other agent with an app get it too.
The longer label pushed the App version out of the row at 560px (de), so
a row with an app keeps only the pill's arrow and drops the App version
below 360px of row, where others still do at 250px.
Run at
|
||
|
|
5bccfb4ef2 |
usage: a table's provider with several accounts is one folded row; an empty Account column is left out (#6740, jay68xu on X)
jay68xu on X: the Usage page gets hard to scan with many providers and accounts. This change covers the table view only, as the issue's comment asks. In the Allowances table (Usage > Overview, Table), a provider with several accounts is now one row. The row shows the chevron, the provider's icon and name, "N accounts" (a string every language already has), and each window column's mean share over the accounts. A failed read counts for nothing in the mean. The provider's accounts sit under it, folded until the row (or its button, with Enter or Space) is clicked. Each provider's open state is kept in localStorage magpie.quotaTableOpen, the way the cards' folds are kept. A provider with one account is one row, as before. Sorting orders accounts within a provider, then providers by their mean (window columns) or by their first row. The Account column is left out when no row names an account. Window columns and Other already appear only when some row has one. There is no motion: a toggle redraws the table, and the chevron turns. app.js is untouched (quotatable.js loads lazily), and there are no new strings. Run at this tree (base origin/main |
||
|
|
2e1c0a377b |
usage: a single-account card folds to its figures, and folded cards are one size (PILIHU2023 on X)
PILIHU2023 asked for a fold on each Usage → Overview card that leaves only the usage, with the cards all one height and width. - A card with one account (or one key) and figures to show (windows or a balance) now has a disclosure chevron at the end of its head, before its ⋯. It reuses the per-account fold (usageAcctFold, usageAccts in localStorage), so its state is kept across restarts and its titles are the existing ones. Folded, the card keeps its windows' names, bars and figures. It drops resets, curves, history, the reading line and the auto-reset and credits rows. A plan-only card (OpenCode Zen Free) has nothing to fold and gets no chevron. - Cards with several accounts keep their own folds: each account's chevron, and the All N accounts strip's. - Folded cards are packed to one height: the tallest folded single card. A card of several accounts, each in brief, takes whole rows of that height. A fully folded page is a grid of one width and one height. Open cards keep their natural height, so nothing is stretched or clipped (jen_celeus, #860). - app.js was at its budget with no room. The Usage packing block (packUsage and its helpers, about 3.8KB of code) moved from app.js to plugins/usage/page.js, which already holds the Usage page's card menus. app.js code is now about 3.2KB under its budget. No budget was raised. - The chevron's turn uses --ease-out (cubic-bezier(.23, 1, .32, 1)), .15s. What was run: - New usage-card-fold.test.cjs: Chromium and WebKit × en, zh, zh-TW, ja, de, at 1400, 900 and 400px and after a reload. It folds every card and checks they are one width and one height, sit on whole rows and don't overlap. It then unfolds two cards and checks they are their own height again. Red on origin/main |
||
|
|
b466aa2803 |
update: a Daily channel, one release a day that passed its tests, for the app and Docker (fishmagic80 on X)
fishmagic80 on X: Stable is too slow (community plugins need a newer
magpie than it has), every release is too fast, and Docker users have
nothing in between. Daily sits between them.
What it is:
- site/worker.js keepDaily: at the daily cut (20:00 UTC, the quarter-hour
cron) the newest tag whose commit has a successful Test run and whose
release has all 17 assets is picked and kept in LEDGER "daily". A day
with none keeps the day before's; a failed GitHub read writes nothing.
/api/latest?channel=daily (503 until a pick exists), /download/daily/<p>,
and an urgent release overlays it as on Stable.
- .github/workflows/docker-daily.yml reads that feed and points
ghcr.io/yetone/magpie:daily at the picked version's image.
- App: settings.UpdateDaily ("daily"); update.Channel()/Picked() (Stable()
kept); the feed is asked channel=daily, never falls back to GitHub's
latest, What's new lists every change since yours. Settings > About >
Update channel has Every version / Daily / Stable; the version row says
"Up to date on Daily (· {v} is out on Every version)". CLI: magpie
update channel [stable|daily|every].
- Words in en, zh, zh-TW, ja, de, on top of 7f832b2f2's 尝鲜版/搶先版/先行版
for Every version (kept as it landed).
- The channel row wraps its switch under its name when narrow (ja at
420px was 18px past the window with three segments).
- app.js budget +338: the segment, its line and the two Up to date on
Daily words, packed to one t() per choice; Settings and renderUpdate
draw on every window, nothing lazy to move them to.
- Docs: docs/reference.md, site docs (docker, privacy in en/zh/ja),
llms-full.txt, search indexes.
Red on the old code (a daily-old worktree, then only settings allowing
"daily"): the feed was not asked channel=daily, 40 notes instead of all,
Picked false, notesKey "zh" not "zh|daily", the Daily row showed
"available"; the GUI tests had no Daily segment.
Run on mote at this commit's tree (on origin/main ec1a1a7a5; the Daily pick itself is live on the deployed worker: /api/latest?channel=daily answers 0.1.4171, /download/daily 302s to its dmg):
- go test -count=1 ./internal/settings ./internal/settingsapi
./internal/update ./internal/cli ./internal/gui: all ok (TestCoreScriptBudget
included).
- GUI, chromium and webkit, every language: update-*.test.cjs (22 files),
i18n-*.test.cjs, settings-search.test.cjs: 554 of 554 pass.
- site: node --test site/*.test.mjs, 132 of 132 (130 before the rebuild).
- gofmt -l clean; go vet darwin, windows (gui/update/cli) and
GOOS=linux -tags nogui.
Also: site/public/search/*.json and llms-full.txt rebuilt
(search-index.mjs, llms-full.mjs); they still listed Antigravity's old
sign-in after
|
||
|
|
862660144e |
gui: a page's tabs in the sidebar fold from its own row, with a disclosure chevron (hkwok06 on X)
Opening Settings unrolled its tabs in the window's sidebar and nothing said they would fold again; only opening another page (the gateway) put them away. The open page's row now carries a quiet disclosure chevron, as a Mac sidebar's: turned to its list while the list shows (down for the pages above, up for Settings, whose list opens above its row), and clicking the row or the chevron again folds the list and unfolds it, the page staying open on its tab. A list folded stays folded, per page, until it is opened again (localStorage magpie.navFolded). The same holds for Usage, Library and Plugins. The chevron is muted, turns in 200ms on the strong ease-out, and doesn't move under prefers-reduced-motion. aria-expanded says the state; Enter on the focused row toggles it too. The chevron and the fold live in navicons.js (navFoldRows, navFold), imported with the first list; app.js keeps 123 bytes (navList shared with navMine, the two rows' clicks asking navFold first), with the budgets raised by that and the reason in core_budget_test.go. Run (mote): - nav-sub-fold.test.cjs (new), chromium + webkit, en zh zh-TW ja de: red on the old code (12 of 12, "Settings' row shows a disclosure chevron"), green 12 of 12 on this change. - After rebasing on origin/main |
||
|
|
219ab50190 |
settings: Download source says what a mirror is and links the docs' Mirrors page (WeltAn_X on X)
WeltAn_X on X: "当前 下载源 配置项无相关镜像源配置说明,文档中也无相关信息". The docs' Mirrors page (en, zh, ja) gets a "Download source in Settings" section (#settings): an update and its SHA-256 always come from usemagpie.ai; with no mirror a failed download falls back to GitHub; a mirror is a GitHub download proxy whose address goes before the release's github.com link, tried when usemagpie.ai fails, and a file that doesn't match usemagpie.ai's checksum is not installed; the same setting as `magpie update mirror`. llms-full.txt is regenerated. zh/ja's contents heading now says the page's own name, not "Mirrors". In the app, the row's line ends with "How mirrors work", which opens that section in the app's language (api open, no navigation); while a mirror is typed the line says where its address goes. Six languages. The field, its Cancel and Save and the typing line moved into mirroredit.js, imported when Use a mirror… or Change is clicked, so app.js is 573 bytes of code smaller than at its base (1,085,768) and no budget is raised. old-webkit's list of scripts loaded on demand has it. Run at this head (rebased on |
||
|
|
6256d9956a |
gateway keys: a limit can follow a subscription account's own window (ljayic on X)
A key's limit gains the period "account": it names one subscription
account ("<provider>/<user>") and one of its windows (5h, Weekly, Monthly,
...), and starts and resets when that account's window does, at the reset
time in the account's last good reading (quotas.json), never asked of the
vendor on the request's path (provider.AccountWindow).
When the window can't be read (no reading yet, no such window, or its reset
has passed with no reading since), the limit is "reset unknown": it is
neither reset nor lifted. It counts from the latest time the window can't
have begun before (the reset that passed, else when the limit was set), so
it counts at least the window's calls; a refused call gets Retry-After 300
and a 429 saying the window can't be read now, and the accounts are read
again in the background at most once a minute.
GUI: Gateway keys -> a key's limit -> Window -> "An account's window", then
an app-menu picker of the accounts' windows as read (GET
/api/caller-keys/account-windows); the row reads "$x / $y · 5h of
codex/...", and an unknown reset reads "resets with the account's window".
CLI: magpie gateway-key limit <id> account --account codex/me@example.com
--window 5h --tokens 2m. i18n zh, zh-TW, ja, de. reference.md and
gateway-routing.md say it, with the fallback.
Run (at this tree, base
|
||
|
|
93762f968a |
usage: small, idle clients fold into one Other row
WJaunita45604 on X: test runs leave dozens of randomly named clients of
~10K tokens each in the Usage page's Agents list, and the page crawls.
renderUsage draws every Agents row again at each refresh whose summary
changed, at ~0.1ms of DOM and layout a row: with 400 clients a redraw
took 30-54ms in Chromium and 45-66ms in WebKit, with 2000 136-178ms and
224-246ms (probe at 1200px, Bun/SiYuan/translate-web and N clients).
A client not hidden folds when it is past the 5 with the most tokens,
under 1% of the period's tokens, and either made no call in the last 3
days (the agent group's new `last`) or is past the top 20; two or more
fold, or none do. No setting. Other sits at the list's foot with the
folded groups' sums (usageSum), so totals stay exact, and opens with a
click, Enter or Space; open, it draws the folded rows with their own
actions 100 at a time (Show {n} more). Closed they aren't drawn at all:
with 400 or 2000 clients a redraw now fits one frame (~13-20ms in both
engines), as with none.
Run at
|
||
|
|
221c91fae3 |
gui: the gateway card opens the chat page
The gateway card gets a "Chat page" button beside Restart gateway while the gateway runs. It opens <gateway>/deepseek-chat/ in the browser, or, in web mode, the public URL's chat page. Both buttons sit in one .gw-acts group, so a narrow card wraps them together, and Restart keeps its .gw-fix class (the takeover, pause and port-holder tests read the first .gw-fix). The label is translated in zh, zh-TW, ja and de. Run: gateway-chat-page.test.cjs in Chromium and WebKit, every language, at 1100 and 420 wide, on mica: ok. It is red without this change (no button). At |
||
|
|
0581197059 |
usage: a table's account cell has its name above its address
normalcoder_ on X (tweet 2121623100425134513): in Usage > Overview's table, the account cell put the name and the address side by side, so a long one was cut. The name is now on the first line and the address, the key plan it stands in for and shared keys each on a line below it, with the cell's whole width; a masked page's eye stays on the name's line. Run (mote): usage-table-acct-lines.test.cjs, chromium + webkit, en zh zh-TW ja de, 1100 and 420px: 20/20 here, 20/20 red on origin/main |
||
|
|
2a6ab83d8a |
usage: each account of a provider's card is a card of its own; the ⋯ keeps its room
normalcoder_ on X (v0.1.4079, Usage > Overview): accounts inside a provider
card were told apart by a hairline only, and the card's ⋯ was drawn over
the end of the head ("Show the other accounts in brief" was hidden).
- renderQuotas puts each account of a card with several into a
.subscription-acct box (a provider's keys, a balance a line, stay
lines); quotaCardMenu looks through the box for the account's head.
- The head keeps 18px for the ⋯ whether it shows or not; where nothing
hovers, the ⋯ is always shown.
- Core budgets +57 (app.js) / +81 (core): renderQuotas draws every card,
so there is no page to move it to.
Run (mote, both engines):
- usage-card-menu-room.test.cjs: 20/20 here; red 20/20 on origin/main
|
||
|
|
90efddabae |
gui: providers can be picked and removed together (eiyuuzaki2333 on X)
Many API providers added meant removing them one at a time. Select, by
the Providers search box (shown with two or more), puts a box on every
row as Routing's groups and Library's lists have it: a click on a row
picks it rather than open its editor, Shift picks the rows shown
between, and the bar's box picks every row shown. Remove asks once, in
the app's own dialog, with the count and every name, then posts
POST /api/providers/delete {ids}. That runs provider.Delete for each
id, as the editor's Remove does, inside one agent.Reseat, so agents
move once, to where they end up. One it can't remove comes back in
`unremoved` with why, stays picked and is named in the status; the call
is refused only when nothing was removed. Done or Escape ends picking.
The rows, bar and removal are in pvpick.js, imported when Select is
first clicked. The core grows 270 bytes (pvSel, the button's click and
two lines in renderProviders), and coreScriptBudget is raised by that
with the reason. "{name} wasn't removed: {error}" moves from Library's
words into core i18n.js, since core code says it now.
Run (rebased on origin/main
|
||
|
|
07a62b3739 |
providers: Copy all keys, and magpie provider keys, carry a provider's keys to another magpie
@emilochen on X asked to batch-export one provider's keys, to sync them between a local and a cloud magpie. Each key row could copy only its own key (#1480), and nothing printed them all. - A provider with two or more keys gets a "Copy all N keys" row under Add another key. It asks provider/key with allKeys (provider.AllKeys: the main key and every listed key, deduplicated, turned-off ones too) and copies them one a line, for the other magpie's Paste several (keys/import). The secret goes only to the clipboard on the click, through the page's copy(); nothing logs it, and the route sits behind the GUI API's existing local/origin guards. A signed-in account has no keys and is refused. - The row is drawn by keyrates.js (copyAllKeysRow), already imported when a provider with two or more keys opens; keyRateField now takes which of its parts to draw. It has its own class, keys-copy-all, not .add, since ~21 GUI tests take .acc.add as the one adding row. TestCoreScriptBudget's core budget goes up by the 72 bytes left in app.js (the placing line and the helper's new argument); app.js stays under its own budget. - CLI: `magpie provider keys <id>` prints the keys one a line; `magpie provider keys <id> add [key… | -]` adds them from words or stdin (SplitKeys + AddKeys), so `magpie provider keys relay | ssh cloud magpie provider keys relay add` works. A word starting with "-" is refused, never taken as a key. - Strings in en, zh, zh-TW, ja, de. Related: #5387 (sharing saved providers through magpie:// links), not closed by this. Run on mote (mote-run) at this tree on |
||
|
|
90ad90646a |
gui: black draws a black dark theme, not Graphite's grey (CHENGJIAHEGOXIS on X)
CHENGJIAHEGOXIS, on v0.1.4124 (tweet 2121468612238266666), with three dark-theme screenshots of Settings > General, one each with Default, Graphite and a custom black picked: 「这三个颜色……都显示是一样的」, 「尤其是黑色始终一直是灰色」. Their screenshots show the same page in all three: ground (25,25,27), card (32,32,34). Why: - v0.1.4124 tints the grounds with the pick's hue only (base + k*(c - mean(c))), lightness kept. Black and Graphite have no hue, so they changed nothing. Default draws no look at all (magpie's own). - accentOn lifts a dark pick toward white only until it reads at 4.5:1, so black's dark ink came out #8a8a8a, next to Graphite's #89898f. What changes (appearance.go): - ground(): on the dark theme, a pick darker than the theme's background darkens every dark ground by as much (depth()). Black draws a black page (#000003), with cards, pills, lines, menus and the tray panel the same steps above it as in app.css (card #08080c, line #18181e). Graphite, and any colour as light as the ground, draw as before. - lifted(): black's ink starts most of the way to white, so it is a light mono ink (#e0e0e0, dark text on its buttons), not Graphite's grey. On the light theme black is #000000, as before. The sibling, white on the light theme, now gets a dark ink instead of a mid grey. - The light theme's grounds keep their lightness: a white pick would melt its white cards into the page. - app.css: a swatch's edge and the chosen ring take a little of the text's ink, so the black swatch stays seen on the black page it draws. - Default stays magpie's own look (grey grounds, indigo accent) for every user. Not changed here. Tests: - TestBlackIsBlack: black's dark page is black and each ground keeps its step; Graphite moves nothing; black's ink is light in dark (>= 1.8:1 from Graphite's) and #000000 in light; white's light ink is dark; text reads >= 7:1 on black's grounds. - appearance-look.test.cjs: "Default, Graphite and black are three looks", light and dark, both engines: three different --accent values; Graphite keeps the grey page; in dark, black's page is black, Settings' list sits on black's card a step above it, its ink is light; in light, black is #000000 ink. - TestLookFixture's fixture gains #000000 and #52525b. Run on mote (mote was unreachable for ~20 minutes; the red check ran on mica), at this commit rebased on origin/main |
||
|
|
a83fe23252 |
gui: a picked accent tints the chosen thumb too (CHENGJIAHEGOXIS on X)
「强调色是按照颜色走的,但是主题深色依然还是灰色」 and 「就是我截图的原来的 灰色,还是没变化」: after |
||
|
|
925bc7188b |
usage: the Requests card's up arrow opens what the bytes sent upstream were made of
theforeveriris (X, 2121408745616162998) saw 8169 requests send 8.6 GB up and 1.0 GB down and wanted to know why. About 1 MB a request is normal: every request sends the whole conversation again, with the system prompt and the tools' definitions. This shows it. Gateway: promptOf, which already parses the body off the request path, now also counts the bytes of the system prompt, the tool definitions and images in the body it read. upParts scales those to the wire bytes and puts them on Record.UpParts. Nothing new runs on the request path, and a body that isn't parsed stays "Not measured". Usage: a packed row keeps the mix in 255ths under flag rowUpParts (32768); the row stays 152 bytes. Totals gain up_calls, up_measured, up_system, up_tools and up_images, and Shares carry up_bytes and up_calls by agent and by model. settledCountVersion goes 4 -> 5, so settled days are counted again once on the next start. GUI (Usage -> Requests): the "↑ 8.6 GB" on the Requests card is a button that opens a "Sent upstream" card: the average per request, one sentence on why, a bar and legend for Conversation / Tool definitions / System prompt / Images / Not measured, and the top 8 agents and models with bytes sent and per request. The open state is kept; × closes it. A request's details get a "Made of" line. zh, zh-TW, ja, de strings. Entrance is 200ms ease-out, no movement under reduced motion. Run (mote, at this head on |
||
|
|
ed63a5be5e |
gui: a picked accent colours what is chosen (CHENGJIAHEGOXIS on X)
「选中任意强调色没反应」: picking an accent in Settings › General seemed
to do nothing. The token did apply. With the real server, in Chromium
and WebKit, under light, dark and system, with and without a background
image, --accent was set by lookCSS and kept. Neither the theme nor the
wallpaper overrode it. But nothing on Settings, the sidebar, the header
tabs or the panel's tabs used --accent: every chosen option is graphite,
var(--fg), by design. So the colour only showed in a few buttons
elsewhere.
The fix is a --mark token, the ink of what is chosen.
- It is var(--fg) by default, so magpie's own look is unchanged, like a
Mac's Graphite.
- accentVars sets it once the user picks an accent. It is moved toward
black (light) or white (dark) until it reads at 4.5:1 on the surfaces a
chosen option sits on: --pill-hover #e9e9ee, and the dark switch thumb
#4c4c52.
- It is used by .seg/.opt/.ptabs/.warm-tabs/.am-seg/.klf-tab/.day-chip/
.apptab .on, the header nav's chosen tab, the side-nav's open-page icon
and Settings icon, and Library's switches and radios. Each is the same
"chosen" role, so all of them follow the accent, not just one.
Tests:
- appearance_test.go's TestAccentReadable checks --mark's contrast on
each surface, in both themes.
- appearance-look.test.cjs adds 8 tests, in Chromium and WebKit, light
and dark:
- Settings' theme and bird options and the side-nav icon at 1200 with a
wallpaper set: graphite by default, the mark for #0d9488 and #db2777,
and back to graphite on Default.
- The header tabs at 900 and the panel's tabs at 380.
Run:
- gofmt clean. go vet ok on darwin, GOOS=linux -tags nogui and
GOOS=windows (at 75bdc85fe, the same change on an older main).
- At 6f5549b1f (this change on
|