e6bed2f0638cb4e2bfbb96f3ba001600718fd600
1972
Commits
| Author | SHA1 | Message | Date | |
|---|---|---|---|---|
|
|
19f9a80d90 |
gui: a partner's editor link names its own page (www.kimi.com), not usemagpie.ai
The feed sends a partner's website through usemagpie.ai/go/<id>/site so
the visit is counted, and the provider editor's "↗" link read its host:
Kimi Code's editor said "usemagpie.ai ↗" where Kimi asked for
"www.kimi.com ↗". The worker now sends the website's own host beside it
as siteHost (partner and region), the app keeps it on the PresetDef and
Region, and the editor's link reads siteHost first, following the region
picked. The click still opens the /go link.
app.js grows 102 bytes; both budgets are raised by exactly that, no room
added.
Run at origin/main
|
||
|
|
a1cce7faa1 |
gateway: the decision model's timeout is a setting (#2934, reyoung)
A routing group's intent classifier (askChat) and System One (askJev) were each given a fixed 8s. A slow subscription classifier can now be given longer in Settings > Models > Replies > Intent classifier timeout. settings.json's classifyTimeout takes 1..60 seconds; 0 or missing keeps 8s. save() refuses below 0 or above 60, and ClassifyWait clamps a value edited by hand (below 1 gives 8s, above 60 gives 60s). A settings file that can't be read gives Shared()'s defaults, so 8s, never no timeout. Both askChat and askJev read it per call. The GUI row is the app's own segmented control (8, 15, 30, 60, plus a value set by hand), and other saves carry the value on (prefsKeep, api.go). zh, zh-TW, ja and de strings; the routing reference and the en, zh, ja docs say it. Ported from reyoung's classify-timeout-2934 (author kept). On top: - askJev's defer reworded any error once ctx had expired, so a refusal (decideRefused) or an answerError read as the wait ran out lost the type askDecideTries rests an account by. Now only errNoAnswer, which systemOne returns when postDecide failed with ctx done, is reworded to "<provider> gave no answer in <wait>". - ja intent.html: a stray space in "遅いモデルだと 設定した". - app.js: the Image generation timeout row and the new row share waitRow (~350 bytes less). TestCoreScriptBudget was red (app.js 1,337,982 > 1,337,000); budgets raised to the exact sizes, app.js 1,337,633 and core 1,529,393, no room added. Run (macOS, Go env pinned, sandbox HOME): - Full go test -tags nogui -timeout 45m ./... at 766cf1cf9: 68 packages ok; internal/gui red on TestCoreScriptBudget only, fixed above. - At ed008ca9f and again after rebasing on |
||
|
|
e00fbdbbc7 |
usage: times and days follow the viewer's time zone, not the server's (Outvi V, Discord)
Outvi V reads a remote magpie through `magpie web`. The Usage page
bucketed calls by the server's days and hours, so a call at 9:00 in
UTC+8 showed under 1:00.
What changed:
- The Usage page (plugins/usage/page.js) names its browser's IANA zone
in ?tz= on /api/usage, /api/usage/requests, /api/usage/heatmap, the
CSV link and the export.
- usage.Zone turns the name into one cached *time.Location per name, so
a Filter holding it stays a comparable cache key. An empty or unknown
name, or a zone that keeps this computer's clock, is time.Local, so
the desktop page, the tray and the TUI see no change and share caches.
- Filter.Zone carries the zone. Today/7d/30d, the chart's hour and day
buckets and labels, the Day filter and the heatmap's days are all
read in it (Clock().In(zone)). The summary cache is keyed by period
and zone, and the request-page cache by the reader's date.
- Shared days from other computers are read with a 2-day margin, not
1, since two zones can be 26h apart.
- Limit and quota resets are unchanged. The gateway's
/v1/magpie/usage stays on the computer's zone.
Run at
|
||
|
|
e435b88670 |
usage: nothing under the Requests table's scrollbar at the window's foot
碳碳双键 on Discord #general (10-23, macOS app): on Usage → Requests a wide table showed a strip of the page under its horizontal scrollbar, between the bar and the bottom of the window. Cause: the bar under the table (#ledHScroll, #799) is position: sticky, bottom: 0 inside the view. A sticky box keeps clear of its scroller's padding in both engines, so it stood the view's bottom padding (8px in the window, 4px in the panel, 12px in a phone browser) above the view's visible bottom, and the table's card and cells showed through the strip under it. Measured on |
||
|
|
ed71fa774d |
routing: the last request's story shrinks back on a busy gateway too (shensmart on Discord)
shensmart on Discord (a remote magpie, the page in a local browser): the room under "How the last request was routed" grew with use and, once stretched, never shrank back. Cause (internal/gui/assets/plugins/routing/client.js, holdStory): the story is held at the tallest of the last STORY_HELD requests so the page doesn't jump between requests (dumplings' jitter, routing-ctx-still), and |
||
|
|
881a275064 |
gui: release notes' section headings read in the GUI's language for every version (Wei He)
Wei He on Discord: in What's new, past versions' category headings were
Chinese in some releases and English in others.
Cause: the dialog drew each release's markdown headings as written. The
Chinese notes come from magpie-releases' DeepSeek translation, which
keeps the English headings in some releases and translates them in
others, with its own wording each time. Of the 79 releases from v0.1.1241
to v0.1.1320 that usemagpie.ai/api/notes?lang=zh serves, the headings are
"## Improvements" 26 times beside "## 改进" 26, "## Bug Fixes" 26 beside
"## 错误修复" 22 (plus 缺陷修复, Bug 修复), "## Features" 15 beside "功能"
18 and 新功能 1; v0.1.1249 to .1252 have no Chinese at all ("### Changes"),
and .1241 to .1248 say "### 更新". A GUI in ja, de or zh-TW gets the
English notes, headings and all.
Fix: tHeading (in i18n.js, beside tNotice, so app.js stays under its
budget) maps each heading magpie knows, in either language's wording, to
one key (Features, Bug Fixes, Improvements, Changes, Documentation,
Performance Improvements, Security, Provider Changes) and says it through
t(), in zh, zh-TW, ja and de. A heading it doesn't know reads as written.
noteBlocks uses it, so What's new and the update dialog both get it.
The bullet text stays in the language the notes came in; the upstream
cause (the translation prompt not fixing the headings) is in
magpie-releases, not here.
Every heading the site served for those 79 releases, in zh and en, was
put through tHeading by hand: each maps (Install is taken out before).
Run at
|
||
|
|
398803e3f5 |
gateway: a model slow to start again and again rests on its account (小八)
小八 on Discord (2026-10-23): a WorkBuddy plugin account answered magpie's
own 504 "no first token in 30s" 58 times on kimi-k3-1 and glm-5.3 (the
vendor's per-model token limit, which it never names, it just stalls).
The group went on each time, then asked the same account first on the
next request: 15 slow starts in 17 minutes in one session.
Cause: gateway.go's hw.slow branch (the group's FirstToken let a member
go) never rested anything, by design ("a long prompt being slow to start
anywhere"), and nothing counted slow starts. So every request waited out
the whole FirstToken on the stalled member before falling back.
Now restSlow (routing.go) counts slow starts per restID (provider,
account or key, model). Once rests nothing, as before. The second in a
row, within slowForget (30m) of the last, rests that model on that
account: 1 minute, doubling each time after, capped by the provider's
RestCapOr(longestRetry), never for a provider whose rest cap is off. An
answer clears the count (servedCandidate). A client-cancelled request
never reaches the slow branch, so it counts nothing. A longer rest
already there is kept. The rest carries Rest.Model, so the Routing page
shows it on that model's rows only. The Routing story of a rested slow
try says so, and the group editor's slow-to-start hint no longer says
"It doesn't rest" (en, zh, zh-TW, ja, de).
Tests: TestSlowStartsRestTheModelOnItsAccount (once: no rest; an answer
in between restarts the count; twice: the model rests on k1 with Key
a#k1/m, Model m, under a minute; k1's whole key and k2/m don't rest; the
next request asks k2/m first; a/n still goes to k1; a third slow start
backs off longer; an answer ends it). TestCanceledSlowStartRestsNothing
(three client cancels during the first-token wait: no rest, no count).
routing-went-on.test.cjs gains a rested slow try in five languages;
group-first-token.test.cjs's i18n list has the new strings.
Broken by hand: restSlow's result ignored in gateway.go -> the first test
red at "twice in a row" (Rest nil); servedCandidate not clearing
routed.slow -> red at "an answer in between starts the count again";
restSlow called in the cancel branch -> the cancel test red at "cancel
2: k1/m wasn't asked (rested?)". All restored, green.
Run at the worktree on base
|
||
|
|
ecd9835005 |
agent: Claude Code's subagent effort writes nothing without a subagent model (KorenKrita)
KorenKrita on Discord (cause confirmed by them): with Claude Code's
subagent model unset ("Claude Code picks") and a subagent effort set,
claude.go wrote spell(tierWith(main model, effort)) into
env.CLAUDE_CODE_SUBAGENT_MODEL. That pinned every subagent to the main
model, so Claude Code's own pick (the Agent call's model, the subagent's
frontmatter) never ran.
Agent wiring (internal/agent/claude.go):
- With no subagent model, magpie writes no effort, and
CLAUDE_CODE_SUBAGENT_MODEL stays unset.
- The saved effort is kept, not deleted (the user set it). It lives in
the stash under claude.subagent_effort, and the subagent effort's Get
reads "" while there is no model. A model picked later takes it
("v/glm:high").
- A value an older magpie wrote that way (the main model at an effort,
not own, while routed: subagentFollowing) is moved into the stash and
taken out of the env by writeTiers and by Sync on start.
- subagentOwn no longer counts that value as the user's own model.
- Doc: docs/subsystems/agent-wiring.md, the Claude Code "subagents" entry.
GUI (window, opened Claude Code row):
- The subagent effort moves from its square under the session defaults
to the right of the Subagents row. It uses the tier rows' markup and
code (effortBtn in connectPanel, ag-eff), so it lines up with
Opus/Sonnet/Haiku's effort.
- While the subagent model is unset it shows Default, is disabled, and
its title says "Set a subagent model first". The new string is in zh,
zh-TW, ja and de.
- The old square is removed from the opened row. No other layout changes.
- The tray panel's own square is left alone: #3308.
Tests:
- New internal/agent/claude_subagent_effort_test.go
(TestClaudeSubagentEffortNeedsAModel). On the old code it is red:
an effort with no subagent model wrote
CLAUDE_CODE_SUBAGENT_MODEL="v/glm:high"
With the Sync branch broken by hand it is red at "Sync left an older
magpie's CLAUDE_CODE_SUBAGENT_MODEL="v/flash:high"". It also checks
that a set model plus effort still writes "v/glm:low".
- claude_tiereffort_test.go now expects no env for an effort with no
model.
- New internal/gui/tests/claude-subagent-effort-row.test.cjs (16 cases):
chromium/webkit x en/zh x 1100/560px x with/without a subagent model.
It checks:
- the control sits in the Subagents row at the tier efforts' x and
height;
- with no model it is disabled at Default and opens no slider;
- with a model it posts subagent_effort, with no scroll;
- the old square is gone.
It is red against the old app.js ("the old square is still there").
- tier-effort.test.cjs is updated for the moved control.
Run at this tree (parent
|
||
|
|
f985d6bdb6 |
provider: a Max output kept for a model no longer listed doesn't block the editor's Save (#3305, LoKi)
LoKi (#3305, Windows, v0.1.1325, Zen Free plugin 0.1.14): settings.json
held "opencode-zen-free/space-bunny-free": 65536 from when Zen Free
listed it. OutputsOf gives the editor every saved limit, the editor
sends them back as `outputs` on every Save, and SetModelOutputs refused
any positive entry for a model the provider doesn't serve, so each Save
failed with "opencode-zen-free has no model space-bunny-free", with no
model picked too.
SetModelOutputs (models.go) and its sibling SetModelCompacts
(compact.go, the editor's Compact at, same check and same round trip)
now refuse an unserved model only when its value is new or changed: an
entry sent back as it is stored is kept, and the rest of the Save goes
through. The user's value isn't deleted, since they set it and the model
may come back on the next refresh. It still shows in Max output as
model=size, and taking it out there clears it, as before. A newly typed
model the provider doesn't serve, or a changed value for a retired one,
is refused as before. SetModelOutput (the CLI's single set) is unchanged.
Siblings checked: the editor's Context window goes through provider.Save,
which never checks it against the list, so a retired model's window
already saved; Names & levels (modelPrefs) sends only the entries
changed in that editor session (modelPrefsOfDraft), so a retired one
isn't resent.
Run at
|
||
|
|
79856727f5 |
gui: Image recognition says where a custom provider's model is marked as seeing (nexnull)
nexnull on Discord: a model of a provider added by its address isn't
offered for Image recognition until something says it takes images, and
nothing said so. /api/settings now has visionNotMarked: the providers
(AddedByAddress, ready) with a model left out of visionModels only
because nothing answered whether it takes images (ImageInput nil); one
its list or the user marked off (ModelImages) isn't counted. Settings ›
Models says under Image recognition "Models of {providers} aren't
listed until marked in their provider's Names & levels › Accepts
images", using the editor's own strings for the section and checkbox
(名称与推理档位 › 支持图片输入 in Chinese). Not shown with Image
recognition off. zh, zh-TW, ja, de.
Run at base
|
||
|
|
d41670e9db |
gui: Names & levels says Provider in model names is global, opens Settings at it (joe)
joe on Discord: the provider editor's Names & levels had Off / Not on names I set / On for "Provider in model names", a setting for every provider, and it read as this provider's own. This undoes the part of #868 (Hu9956) that offered the choices there: the editor keeps the line saying what the agents' lists will show, and adds a short note that the setting is one for every provider, with a "Change in Settings" button that opens Settings › General at the row and lights it (the scroll only on the reader's click, scrollOnPurpose; a search is cleared first). The button is hidden in gateway mode, where Settings has no such row. A pick on Settings now redraws every place that says the setting at once (redrawSuffix), so the editor left open behind Settings follows it. The line's three parts (what the lists show, the note, the button) are a line each: WebKit lays the model list out again a scrollbar's width narrower (466 to 456px) after a level is ticked, and a shared line wrapped then and moved the list 19px (provider-levels-scroll, webkit). No <select>, no left-border accent. Strings in zh, zh-TW, ja and de. app.js's budget goes from 1,335,000 to 1,337,000: main had 371 bytes left, this change adds ~1.2KB and the next commit ~480 to pages that are the core's own (the provider editor, Settings), after cutting these comments down; no room is added beyond the two (TestCoreScriptBudget red at the pushed head before it). Nothing was moved out to pay for it. Run at base |
||
|
|
7faea508f6 |
settings: Custom proxy brings back the last address and login (Zane)
Zane on Discord: in Settings' proxy, Off saves "direct" and Auto saves "", so the Custom address and its user and password were gone the next time Custom was picked. settings.Save now keeps the last proxy of the user's own as proxyCustom (set only from Proxy, never from the page; the POST /api/settings handler copies the saved one over what the page sends). It is stored as Proxy is: plainly in settings.json, as before, the same as the proxy itself, nowhere more plainly. KeepOwn keeps it this computer's own, as Proxy, so sync and restore never carry another computer's. Custom picked after Off or Auto fills its fields from it; nothing that reads settings.proxy changes, and Off and Auto still send requests as they did. Run at base |
||
|
|
032d88c132 |
gui: the Japanese for a WSL distro that isn't running names it once
|
||
|
|
4f6498f822 |
routing, usage: an account renamed in magpie reads by its new name (magpie-community/plugins#310, molvqingtai)
molvqingtai renamed a Kiro (plugin) account from "example@gmail.com (foo)" to "example@gmail.com (bar)", and the Routing page kept saying "(foo)" on every request made after. Cause: the Routing page never looked up the user's name at all. A trace's `who` is the vendor's account name (Weighed.Who), and plugins/routing/client.js showed it as it was. Usage records (ProviderAccount) keep the vendor's name the same way, and the Usage page's Accounts, the request log's Account filter, `magpie usage`, a gateway key's accounts (AccountNames, /api/caller-keys) and Routing's "Several accounts" pools (onOf) all showed it raw too. This affected built-in and plugin providers alike. Records still keep the vendor's name. It is the key the user's name is stored under (providers.json AccountNames, in lower case), so it stays the identity: Routing still groups and ranks by `who`. The name is looked up when it is shown: provider.AccountShown / AccountShownOf / AccountRef.Shown in Go, and userShown (accountNameOf over /api/providers' accountNames) on the Routing page. So requests from before the rename read by the current name too, and a cleared name goes back to the vendor's. A key's name and an unnamed account read as before. Already right before this change: quota cards and the menu bar (Alias), `magpie accounts`, and the editor's account row. Record for this push: 13 commits on origin/main |
||
|
|
cba59b05e1 |
gui: the middle button's autoscroll scrolls a page instead of twitching (#2767)
#2767 (znbsf, with AvatarGanymede's recording on the Discover page) and 多喝热水 on Discord, on Windows: pressing the wheel and moving the mouse made a page twitch instead of scrolling, or pulled it back. znbsf's patch found the same cause. Chromium and WebView2 give the autoscroll a pointerdown of button 1 and then no wheel, touch or drag of the reader's. The "where the reader is" rule put back each of its scrolls as it came, so the page twitched between where it went and where it was. What changed (internal/gui/assets/app.js, the click guard): - From a trusted middle press on a view that can scroll (`panning`), that view's scrolls count as the reader's, and what a click held is let go. This lasts until the autoscroll ends as Chromium ends it: on the next press (seen only as a pointerup with no pointerdown), on a key, on blur, or on the lift after the mouse moved more than 15px while held. - A field the guard brings back into view after putting a scroll back must have been focused since the reader last scrolled that view (`scrolledFrom`). Before, the button the middle press focused, which the autoscroll or the wheel took out of sight, was brought back by the next scroll that was put back, and the page jumped to it. - docs/subsystems/gui-shell.md says both. Guarded by internal/gui/tests/view-middle-autoscroll.test.cjs: a real middle press and move in Chromium, en and zh, a scroll by code still put back after the autoscroll ends, and WebKit (no autoscroll) left as it was. Broken by hand: - app.js put back to its base: Chromium 0/3 ("the autoscroll scrolled the page: at 0, passed 0,0,0,…"). WebKit passes, as expected. - Only the panning line taken out: Chromium 0/3, same message. - Only the scrolledFrom check taken out: Chromium 0/3 ("after the autoscroll: a scroll by code is put back (was 374, asked 1212, at 126)"). Record for this push: 13 commits on origin/main |
||
|
|
ad2424ade4 |
usage: a card's account button names the accounts it opens and folds back the ones it opened
WuSix on Discord (#help): three accounts on WorkBuddy, one deleted. The
button read 展开其余 2 个账号 with two accounts left; it opened both, and
收起其余账号 then folded only the second, leaving 展开其余 1 个账号 and the
first one open until its own arrow was clicked.
Cause:
- "其余 2" ("2 more"): each account's full/brief is remembered by
provider and account (magpie.usageAccounts). An earlier 收起其余账号
stored the one in sight (the deleted account) as in full and the other
two as in brief. With it gone, neither left is in full, so every
account is "the other" and the count was all of them.
- The fold: usageMore's fold was "every one but the one in sight back in
brief" (usageShown: last answered, else the first). It kept alpha open
however the accounts stood before the click.
Now:
- The window's button names what it opens: "Show all {n} accounts in
full" (展开全部 {n} 个账号) when none is in full, as before otherwise.
- The accounts the button opens are remembered (magpie.usageAcctsOpened,
followed across the window and the tray panel through the storage
event). Its fold puts those back in brief, and only those; with every
account opened by it, it reads "Show every account in brief" (收起全部
账号). With none recorded (all opened by their own arrows, or a
provider opened before this), it folds every one but the one in sight
as before.
- An account's own arrow, and a menu bar cell opening an account, take
that account off the record, so the button leaves what the user opened
by hand alone. The panel's wording is unchanged.
- zh, zh-TW, ja and de for the two new strings. No layout change.
Test: usage-fold.test.cjs "an account deleted, the button opens and
folds the ones it names", at 420px wide, chromium and webkit, en and zh:
three accounts, open and fold (back to the one in sight), delete one,
reload: both in brief with "all 2"; open both, fold both; an account's
own arrow, then the button opening and folding the other alone.
Record for this push: 13 commits on origin/main
|
||
|
|
0455b92792 |
routing: the last request's story shrinks back after a long one (夜松云 on Discord)
夜松云 on Discord: on the Routing page, live, the "How the last request
was routed" box grew when a request was handed on through many members
and never shrank back.
What changed (internal/gui/assets/plugins/routing/client.js, holdStory):
the box was held at the tallest height seen since the reader began
following live. It is now held at the tallest of the last three answered
requests (STORY_HELD), each kept by its id. So the box still doesn't jump
from one request to the next (dumplings' jitter, routing-ctx-still), and
it shrinks back once three shorter ones have come after a long one. A
ResizeObserver change (a font coming in) measures it again as it is.
Guarded by internal/gui/tests/routing-story-shrinks.test.cjs: a request
handed on four times, then short ones. The box keeps its height for the
next two and shrinks at the third. en at 1100px and zh at 420px, both
engines.
Broken by hand: client.js put back to its base gives 0/6 ("the box shrank
back after the long request: 247.5 vs 247.5 (min-height 247.5px)").
Record for this push: 13 commits on origin/main
|
||
|
|
f050818f71 |
usage: every request on the Requests tab says its speed, or why it has none (夜松云 on Discord)
夜松云 on Discord: the Requests tab's Speed column was blank for some rows
and not others, with nothing saying why.
What changed (internal/gui/assets/plugins/usage/page.js, i18n.js):
- A gateway call with no speed of its own now tells the least it wrote at,
as a "≥" floor, the way a session file's call already did: one that
reasoned with no first text recorded (a tool call after hidden
reasoning) its answer tokens over the time after its first token,
unless the content came in a burst; else one not streamed or not timed,
its output over its whole time, by the same 1,000-token rule. The
tooltip says which floor it is and why it is only a floor. The
request's detail sheet (the other caller of ledFloorSpeed) shows the
same floor. The period's speed KPI is unchanged: it never counts a
gateway floor.
- A dash that is left always has a tooltip saying why (ledNoSpeed_):
failed, no duration, no output, not streamed / no first token, all
reasoning, too little after the first token, or let go in one burst.
- Eight new strings with zh, zh-TW, ja and de.
- reasoning-speed and usage-session-speed now expect the floor on the
rows that showed a dash before (reasoning then tool calls only: ≥100;
not streamed: ≥500).
Guarded by internal/gui/tests/usage-speed-every-row.test.cjs (rows shaped
as real usage.jsonl gateway rows, en and zh, both engines).
Broken by hand:
- page.js put back to its base: usage-speed-every-row 0/6 pass ("row 2's
dash says why").
- Only the gateway floors off (ledFloor_ returns null for a gateway row):
0/3 in Chromium.
Record for this push: 13 commits on origin/main
|
||
|
|
c417b1f4e3 |
library: a skill removed from its source is said so, and every such skill goes in one click, asked first
スライム on Discord (#help, 10-22): taste-skills took some of its skills
out, Update all reported each of them as a failure, and the only way
out was to delete them one by one.
An update or a check that reads the source whole and finds the skill's
folder (or its SKILL.md) gone now calls it removed upstream, not a
failure. GitHub tarballs and other git repositories both work this way.
- UpdateSkill returns *GoneError.
- UpdateSkills and UpdateSomeSkills list it in Result.Gone, not
Unupdated.
- A check gives status "gone".
- Each marks Skill.Gone. The mark is cleared when a check or an update
finds the skill there again.
- A fetch that failed, a skill left out of a fetch as too big, and a
folder that can't be read stay unknown, never gone (goneFrom).
Nothing is deleted by itself. RemoveGoneSkills takes the named skills
out, or every marked one when none are named, through RemoveSkills, so
the folders go to the backups. A skill found in its source again is
kept and said so.
- GUI: a "Removed upstream" tag replaces Update available and the
update icon. Update all says gone skills apart from failures. "Clean
up N" sits in the group heading, or in the bar when there is one
group, and opens a sheet naming each skill. One changed here carries
"Changed here". Strings are in en, zh, zh-TW, ja and de.
- CLI: `magpie library skill rm --gone [--yes]` asks at a terminal and
refuses without --yes otherwise. It names the ones changed here.
update and status print the hint.
- TUI: the row says "removed from <repo> · d takes it out".
- API: POST /api/library/skills/remove-gone {names}.
- Docs: the Skill updates row and Verification in
docs/subsystems/library.md.
Record for this push: 13 commits on origin/main
|
||
|
|
c2636b7b5b |
library: an MCP command given to agents in WSL is checked in their distro
loong on Discord, Windows host with agents in WSL: a stdio server whose
command is a WSL program (`node /home/loong/tools/xxx.js`), given only to
WSL agents, showed "exited (1) … Node.js v24.9.0" on the Library's MCP
page. The check started it on Windows, where his agents never do; a
sibling written as `wsl -d Ubuntu … node …` checked fine.
What changed:
- checkSides (mcp_check_wsl.go) reads each agent id's `@wsl:<distro>`.
No WSL agent, not Windows, a Windows path for the command
(windowsPath: magpie's own image server, `C:/x/npx.cmd`) or Settings'
Detect agents in WSL off: this computer, as before. Otherwise each
distro is a side, after this computer when an agent here has it too.
- In a distro the command is found as the agents' shell finds it
(new wslrun.In: the same login-then-interactive probe Find uses, so
nvm's node is found; cached for findAge) and started through
wslrun.Tool.Command, the existing `wsl.exe -d D --exec /usr/bin/env
PATH=… MAGPIE_WSL_RUN=… <path> args` path, so no new quoting. Its
env goes over WSLENV (Tool.Env); its Cancel stops the run inside the
distro.
- A distro that isn't running is never started for a check: Why
"wsldown", naming it, painted as not checked (ring), like novar.
Beside a side that was checked it is left out.
- Mixed: each side in turn, the first failure ends it. ServerHealth
gains Checked (where it started, "" for this computer); the row says
" · WSL Ubuntu" / " · Windows" on a failure, the tooltip "Failed in" /
"Checked in". New strings in zh, zh-TW, ja, de.
- healthKey (Go and client.js) includes the sides, so agents moving into
WSL is a check anew.
- docs/subsystems/library.md says all this.
Tests:
- TestCheckWSLOnlyServerInItsDistro: ok in Ubuntu with the exact wsl.exe
argv; a stopped Arch is wsldown with no probe and no run; a command
the distro lacks is notfound there.
- TestCheckWindowsServerHere: a Windows-only server checked here, WSL
never asked; Windows-path commands stay here.
- TestCheckMixedServerEachSide: ok in both; WSL exit named Ubuntu's;
Windows failure stops before WSL; stopped distro = checked here only;
healthKey differs when agents move into WSL.
All force wslrun.On and fake wsl.exe (Run) and the distro run
(wslCommand runs this test binary as the fake server).
- library-mcp-health-wsl.test.cjs: chromium + webkit, en/zh/zh-TW/ja/de.
Broken by hand, each red:
- checkSides always this computer: WSLOnly and Mixed red.
- windowsPath exemption removed: WindowsServerHere red.
- mixed drops this computer: Mixed red.
- healthKey without sides: Mixed red.
- stopped distro reported as a failure: WSLOnly and Mixed red.
- client.js without the " · <place>" on a failure: the GUI test 12 of 12 red.
Run:
- gofmt -l clean; go vet darwin, GOOS=linux -tags nogui, GOOS=windows ok.
- GUI: the 94 library-*/mcp-*/i18n-* files, both engines: 780 of 783;
library-loading (webkit) and library-pick-remove (chromium zh-TW) red at
--test-concurrency=4, load ~45, pass alone 3 of 3; filed #3300, #3299.
- Full suite at 3831de1a3 (base
|
||
|
|
95be6bb75f |
gui tests: usage-alert reaches the currency row before clicking it
Since
|
||
|
|
8c68b6802a |
gui: time to first token reads 首字耗时 in Chinese, not 首响 (Outvi V)
Outvi V on Discord: "首响 2.7 秒" makes a reader stop and decode it.
The rest of the GUI already says 首字 for the first token (首字平均,
厂商首字等待, 没有首字时间), so 首响 was the odd one out. The label
(First token, TTFT) now reads 首字耗时 / 首字耗時 beside 耗时, the
Routing step reads "{ms} 后出首字", and the other mentions say 首字. zh
and zh-TW both; ja, de and en are unchanged.
routing-request-metrics checked that 首字 was gone from Routing's steps;
that guarded a since-removed "first text in {ms}" string (
|
||
|
|
3a213e1dc1 |
routing: a waiting row's dot keeps its whole glow (#2553, dumplings)
The Routing request row's target cell (.rt-req .to) clips with
overflow:hidden, and the waiting dot's 6px glow sat flush against its
left edge, so the glow was cut on the left (and a pixel above and
below). The cell now has 6px of padding on its left and 1px above and
below, given back with a negative margin, so the glow fits inside the
clip and nothing in the row moves.
Run at
|
||
|
|
21f7f9df23 |
checkin: the Qoder plugins' check-in is asked again within the day, as the built-in's was (#2696)
The native Qoder and Qoder CN plugin check-in (pluginCheckinProvider) built
its checkiner without recheck, while the built-in qoderCheckiner set it.
So an inactive or done result was kept for the whole Beijing day, and a
press of "Check in now" was answered from that record too. Qoder CN's
campaign runs 10:00 to 09:59 the next day (mufanmu), so an early read
describes yesterday's campaign and said nothing about today's.
What changed:
- provider: pluginRechecks(id) is true for "qoder" and "qoder-cn" only,
and sets recheck on their checkiner. A press asks at once. The loop asks
again after wbCheckinEvery (30m) for inactive and done. Every other
plugin stays settled for the day.
- GUI (checkinRow): a Qoder account (built-in or plugin) whose check-in
found no campaign today keeps "Check in now". A press reports "Check-in
status refreshed" instead of "Checked in", since it may still find
none. The unused "Checked in" key is replaced in all four languages.
- docs/subsystems/provider-plugins.md names the exception and the tests.
Taken from LoKi's (lokic7123-star) patch on the issue: the recheck on the
Qoder plugin ids, the Check in now button for an inactive Qoder card, and
the neutral press status. Their GUI test was adapted into
qoder-checkin-recheck.test.cjs.
Left out, as the earlier review asked: the blanket 30-minute message, the
UTC timestamps and the client-computed next check. Also left out: the
"Already checked in today" wording and the "· credit" display. That is
not this bug, and the TUI and CLI would need the same change.
Run:
- Red on the old code:
- All 8 subtests of TestPluginCheckinQoderRechecksCampaigns
({qoder,qoder-cn} x {inactive,done} x {loop,press}) fail without
the fix.
- Forcing recheck on for every plugin turns
TestPluginCheckinOthersSettledForTheDay red.
- qoder-checkin-recheck.test.cjs is red on the origin/main assets (no
.ci-now on the card).
- At 91bb01e65 (base
|
||
|
|
87d703c5c2 |
gui: the provider editor's Save keeps the account-model picks (#2862, LoKi)
With an account's model picker open, Save saved the provider and closed
the editor, and the picks were dropped while Save reported success. Both
Save paths (subscription, and key or custom) now post the picks to
provider/accountmodels first, then save. An empty pick list stops Save
with a warning ("Pick at least one model for the account, or choose All
models", in zh, zh-TW, ja and de too). Open picks count as unsaved
changes, and Cancel drops them. LoKi (lokic7123-star) reported it and
proposed blocking Save; this carries the picks instead.
Run at the stacked tree (this commit with #2695 and #2554, on
|
||
|
|
5871f02dd6 |
plugins, provider, gui: a keyless plugin sign-in needs no key, and a single-identity plugin has one account (#2695, LoKi)
LoKi's patch (lokic7123-star), picked onto origin/main |
||
|
|
9572a35761 |
usage: dsh sessions in Context go by their titles (Kumo31 on Discord)
Usage -> Context listed DeepSeek Harness sessions as "magpie-a",
"magpie-f" and so on, while Usage -> Sessions showed their titles. Real
dsh 0.2.0-rc.2 sends no session header on its chat-completions and
messages routes. The gateway therefore keys each request by
conversationID, a hash of the first user message. contextOf joined
titles on agent + session id, and a hash never matches a dsh session
id. The responses route sends session_id and was already joined.
- The dsh reader (sessions) records the ids the gateway gives a
session's requests: the first typed user/message and the
session/title-llm-request message. Each is hashed in the forms dsh
sends it: a string, and a text part with or without a cache mark.
The text goes through a JSON.stringify-compatible encoder (jsString),
because encoding/json escapes <, > and &. These ids are
Session.Convs; cacheVersion goes to 22.
- contextOf (joinConvs) puts a route that names no session under the
session its conv id came from. An id two sessions share is left as
it is. The title call merges in and is skipped as a tool-less side
call. The existing title join then finds the session.
Fixture: internal/sessions/testdata/dsh-gateway holds two real dsh
session files and the four requests that dsh sent for them to a fake
upstream: a turn and a title call on each of the completions and
messages routes, headers and body as captured. Only the cwd is
rewritten to /work/proj.
Siblings: other agents that send no session header have the same gap,
but none was run to see what it sends. Filed as #3263.
Run at bc11b8a5f (on origin/main
|
||
|
|
46176fc14f |
settings: every row has its line and the same room above and below its words
The owner (10-22, a screenshot of Settings → General): no line above
"Open at login", and the rows' space above and below differed.
- The line between rows is `.row + .row`; Settings' agent-pref link box
(#agentPrefLinks, empty but while searching) sits between "Provider in
model names" and "Open at login", so that row had none. The row after
the box, and the box's own first row, now get it.
- In the window every row had `body.window .row`'s 7px, which beat
`.row.pref` on specificity: one-line rows were centred by min-height
(13-15px around their words), a row with a line under its name had
7-8px. Every settings row now has 12px above and below; the Language
and Session terminal buttons are 26px as the segments are, so every
one-line row is 51px and a two-line row 61px, in both engines.
- A row's new line now grows it ~12px (was 1-2px under min-height).
hold() kept a view at its top only while the clicked control moved
less than half its height, so turning automatic updates off scrolled
About 12px (#2134 says the view stays at its top). The bound is now the
control's height; #961's ~138px stage still holds the bar.
- turn-done, reset-reminder and usage-alert clicked a switch left under
the window's foot or the tabs; Playwright's scroll to it read as the
page moving. They now reach() it first; update-restart's at-top bound
is "less than the switch's height", not 4px.
Run at this tree (worktree magpie-wt/setrows, base
|
||
|
|
8a99473ed9 |
gui: the local model's row under Found by takes a dot, not a sparkle
The owner dislikes the sparkle beside 本地模型 in the Privacy card's Found by ledger. The row now takes the same 7px dot as every other row, in the local model's colour (--c6, which its meter already uses). The SPARK path and .mo-spark rule are gone; the row keeps its .model class. Run at this tree: masking-records, mask-actions, privacy-model and i18n-keys GUI files, chromium and webkit, every language and width: 71 of 71. Not run: go test ./internal/gui (the disk has 126MB free and the build failed writing its archive); CI runs it before any tag. |
||
|
|
c036d6c34a |
gui: what the window shows can be selected and copied, its controls can't
Outvi V on Discord: the page is user-select: none as a whole, so nothing could be selected or copied into a bug report, only the few places that opted in. Two rules at no specificity after body in app.css now make content selectable: paragraphs, pre and code, a detail's values (dd, td), hints, notes, every error class (.err, .error, *-err, *-error), a conversation (.sess-talk, a subagent's too), a request's story and log on Routing (.rt-log, .rt-steps, .rt-time). Controls stay unselectable with what is in them, as in a Mac app: buttons, labels, summary, select, the navigation, menus (.pop), tabs, switches, segments, grips, draggable rows. With no specificity, a view's own rule still decides (a list being sorted, a blurred value), and a field stays a field. An account's or a key's name was selectable by accident through its row (a button inside .accts > [data-account-id]); .acc .rename now says so itself, and account-arrange keeps checking it. user-select.test.cjs: on Routing, a mouse drag across a vendor's error in a request's story selects it; a drag across a request's row selects nothing, and the row still opens on a click with text selected elsewhere; no nav, button, tab, segment or option is selectable, and no field is unselectable. Both engines, en/zh/ja/de, 1100 and 420 wide: 16/16, twice. Red on HEAD's app.css (16/16 fail: 'none' !== 'text'). Ran: click-scroll 22/22, agent-grip 10/10, provider-order 6/6, search-order 16/16, account-arrange 2/2 (red in chromium before the .acc .rename line), account-alias 20/20, panel-arrange 8/8, sessions-talk 4/4, sessions-subagents 40/40, usage-ledger-detail 6/6. Not tried: the app's own webviews (WKWebView, WebView2, WebKitGTK); only Playwright's Chromium and WebKit. Run for this batch of seven commits (devin, routing zh, qoder, masked words any case, Long conversations, Claude subagents, user-select), in a worktree, sandbox HOME, never against live configs: - At e352cc823 (tree ea497c9f5, on origin/main |
||
|
|
2ea148b103 |
gui: Claude Code's unset subagents read "Claude Code's own pick", not "same as model"
KorenKrita on Discord wanted Claude Code's subagent model left unset so
Claude Code picks. magpie already leaves env.CLAUDE_CODE_SUBAGENT_MODEL
out when the field is unset (writeTiers deletes it, setSubagent too),
but the GUI called unset "Same as model", which says the subagents run
on the main model. They don't: Claude Code 2.1.306 (read from the
installed binary) takes the Agent tool call's model, then the subagent's
frontmatter model, then the variable, then the lead's model; the
built-in Explore inherits, capped at opus.
The unset option is now "Claude Code's own pick", its note "{model}
unless the lead or the subagent names another", and the field's title
says what a model set there does. Translated in zh, zh-TW, ja and de.
Codex keeps its own lead's-pick wording.
Tests:
- TestClaudeSubagentsUnsetWriteNothing: routed, pick a model, take it
back, move the main model; the variable stays absent. Red when
writeTiers writes the main model for an unset sub (broken by hand).
- claude-subagents-pick.test.cjs: 5 languages x 2 widths x 2 engines,
20/20. Red on HEAD's app.js and i18n.js (chromium 0/10).
- Ran: codex-subagents-lead 20/20, claude-auto-mode 8/8, desktop-tiers
4/4, tier-effort 8/8, i18n-keys 3/3; go test -run TestClaude
./internal/agent ok.
Not tried: a real Claude Code session picking a subagent model with the
field unset.
Run for this batch of seven commits (devin, routing zh, qoder, masked words
any case, Long conversations, Claude subagents, user-select), in a worktree,
sandbox HOME, never against live configs:
- At e352cc823 (tree ea497c9f5, on origin/main
|
||
|
|
9691997bb0 |
gui: Long conversations stays in Settings when no Codex or Claude Code is here to hold it (Linka)
Linka on Discord runs magpie in Docker, with no agent installed. |
||
|
|
dd7915243b |
privacy: masked words can match in any case, by a switch under Masked words (ZoeCats)
Settings › Privacy's masked words (脱敏词) were matched as written:
Nightjar masked "Nightjar" and let NIGHTJAR and nightjar go to the
vendor. A new row under them, "Masked words in any case", makes each word
match in any capitals (Unicode simple folding, so МОСКВА matches Москва
too), with no rule to write. It is off by default and for every existing
user: settings.json without redactWordsAnyCase reads false, and a page
from before it that saves without the field keeps what was set
(api.go, as noAutoDownload). Each match goes as {{TERM_…}} and comes
back as it was written in the request. Translated in zh, zh-TW, ja, de.
redact.Options.WordsAnyCase; settings.RedactWordsAnyCase
(redactWordsAnyCase) reaches it through internal/masking; prefsKeep
sends it on every Settings save.
Tests, each red when its part is broken by hand:
- TestWordsAnyCase (internal/redact): with the any-case branch skipped,
FAIL "any case: \"NIGHTJAR\" still in …" and NIGHTJAR left in a request.
- TestCountTokensRedacted/words_any_case (internal/gateway): with
masking.go not passing the setting, FAIL "system, message and tool
description must be masked: …NIGHTJAR…"; words_as_written holds that
the default leaves NIGHTJAR alone.
- TestSettingsRedactWordsAnyCaseKept (internal/gui): with the
not-sent guard removed, FAIL "after {…no field…}: any case false".
- redact-words-any-case.test.cjs: 20 of 20 (Chromium and WebKit, en,
zh, zh-TW, ja, de, 1100 and 640px). With the old app.js it times out
waiting for #redactWordsAnyCaseRow; with only prefsKeep's field
removed, WebKit fails "a later save keeps it".
Not tried: a real vendor request with the switch on; the gateway test checks the body that goes out.
Rebased over
|
||
|
|
39e5964353 |
routing: an error that may pass reads 暂时性错误 in Chinese, not 会过去的错误 (Outvi V)
The group's "Every member busy" hint and the two Routing lines that say a group or a lone member is asked again called the error "会过去的那种", "以会过去的错误失败了" and "此类失败可能很快恢复": hard to read, and three words for one thing. zh now says 暂时性错误 in all three, zh-TW 暫時性錯誤. ja already said 一時的なエラー / 一時的な失敗 and stays; de's lone-member line said "ein Fehler, der vorübergehen kann" beside "vorübergehender Fehler" in the other two, and now says the latter too. English is unchanged. git grep for "may pass" finds no other string, in Go or the GUI, with this term. group-patience.test.cjs checks the three strings name 暂时性错误 (zh) and 暫時性錯誤 (zh-TW). With the old i18n.js put back it fails, listing the three zh strings; with the change, 4 of 4 pass (Chromium, WebKit, en and zh). Not tried: the strings in the real app; only Playwright's Chromium and WebKit. Run for this batch of seven commits (devin, routing zh, qoder, masked words any case, Long conversations, Claude subagents, user-select), in a worktree, sandbox HOME, never against live configs: - At e352cc823 (tree ea497c9f5, on origin/main |
||
|
|
7dd965ed22 |
gui: the tray's allowances show without their history, and stay as drawn when nothing changed (#3192)
parkavenue9639 found three things on the tray panel's Allowances tab: - loadQuotas waited for /api/usage/quotas/history (45 days, and a remote magpie's too) in one Promise.all with the allowances, so the skeleton stayed until the curves' history came. The history is now read on its own (loadQuotaHist); the cards are drawn as soon as the allowances are in, and drawn again when a history that differs lands. Of two history reads on their way, the later asked stands. - The window coming back (focus, visibility) ran renderPanelQuota from load() and again when the quotas came, each a rebuild of cards that had not changed (and, while loading, a restart of the skeleton's shimmer). Those two calls are now lazy: the panel is drawn only when something it draws from changed (the allowances, a new history, used or left, the curves' range, folded options, the settings, language, tab, peek, arranging, or the minute, for its clock deadlines). Every other caller draws as before. - renderQuotas went on to build the Usage page's cards, trend and curves in the panel, which never shows that page. It now stops after the panel's own draw there. renderQuotas' local `const mode` (the Used/Left picker) shadowed the page's mode, so the new panel check hit its temporal dead zone; it is `pick` now. The fold check `mode !== "panel"` beside it compared that element, so it was always true; it is dropped, which changes nothing. Tests: panel-quota-lazy.test.cjs, every language, 440 and 360 wide, Chromium and WebKit: with the history held the card is drawn and no skeleton is left; the panel draws no #subscriptionUsage cards; loadBack with the same answers keeps the card and group nodes; a changed allowance is drawn. tray-cell-click waited for the card to be replaced after the window's focus; with the same allowances it is kept now, so it waits for the refresh to finish and checks the highlight on the card as drawn. Red 4 of 4 at the old wait, green with the new one. Run: - panel-quota-lazy at the old app.js: red in every case; at this change 20 of 20. - The whole GUI suite (826 files, --test-concurrency=3, load 40 to 90) at e0abb65ff on |
||
|
|
b00c82acfa |
masking: each kind is masked, sent with a warning or held back; a Never mask list and Try it (#1977)
Settings › Privacy gets two sections under What to mask:
- When a value is found: Mask, Warn or Block per kind (redactActions;
a kind left out is masked). Warn sends the value as written and records
it with a placeholder nobody remembers, not counted as masked. Block
masks it as before and the gateway answers 400 naming the kind and the
value's hint, never the value, with nothing sent (maskBlocked); the
record is kept as Blocked. The secret kinds come first, the personal
ones behind Show all kinds. A Never mask list (redactAllow) lets a whole
value go as written in any case; a longer value it is part of is masked.
- Try it: POST /api/masking/preview masks a text as a request would
(redact.Preview) and remembers nothing: no placeholder stands for it
afterwards and its values aren't masked later as seen before. The page
shows the vendor's text, what was found and what would be done, and
keeps the text in no storage.
The masking card counts requests held back and values sent as written; a
call whose values only went as written gets an amber badge on Recent calls
and the Routing log. zh, zh-TW, ja and de throughout. Docs: gateway-routing
and gui-shell.
Broken by hand: the new GUI badge assertion fails on the old maskedBadge
(no .warn badge drawn); TestSettingsSaveKeepsWhatItDoesNotSend went red
until the two settings were in its fixture; "{n} held back" turned
i18n-keys red against the routing plugin's "{n} held" and was renamed.
Run at this tree (base origin/main
|
||
|
|
b1a2eec2c1 |
gui: the warm-up reads Codex's effort under the tight GC too
The warm-up's last step reads Codex's per-thread effort from the whole ledger right after the usage page's read, while that page still holds every row (~300 MB live on the owner's history). It ran at GOGC 100, so the heap was let grow to about twice that: a heap profile every 2 s of a cold start showed heapSys going 342 -> 622 MB while live stayed ~300, in the seconds after QueryPage returned. It now runs under underTightGC like the usage read. Footprint (phys_footprint, what Activity Monitor shows), cold start on a clone of the real history (15,176 files), alternating, two runs each: |
||
|
|
b3f5953495 |
routing: an open group's heading looks as every editor's does, not as the Models fold chip
The owner, 10-21: on an opened routing group the heading's space above
differed from below, and its line curved at the ends. The heading had
the class .fold to fold back into its row, and .fold is the Models
head's chip: padding 3px 6px 3px 4px, a 6px radius, the faint colour and
a pill background on hover. On the heading that gave 3px above against
8px below, rounded ends on its bottom line, a dimmed name and a box over
it on hover. It now has its own class (folds), which keeps the pointer
and adds a focus ring; the layout is .editor .ehead's, as on every
other editor.
Run on origin/main
|
||
|
|
083b1c8e7c |
gui: masking's flow draws whole curves in the middle's own pixels
The flow from agents through the shield to vendors drew its ribbons in a 0..100 viewBox stretched to fit, with a pathLength-1 dash left on each after the draw-in, so at most widths they showed as broken dashes, and the nodes stretched as wide as the card. Now the curves are drawn in the middle's real width (again as it is resized), wider and darker by their share, and a draw-in dashes them by their own length and clears it after. Dots run along each curve, grey on the way in and accent after the shield, unless motion is reduced. The nodes are at most 200px and the flow at most 760px, centred; the shield sits in two quiet rings. No gradient. Run: screenshots in Chromium at 1100 and 2000px (light, dark) and WebKit at 640 and 1100px: every curve whole, no page error. |
||
|
|
f5b0157420 |
gateway: a tool Claude Code's tool search loads goes to OpenAI's Responses API where it was loaded (#2660)
Through /v1/messages translated to a Responses provider, every deferred
tool ToolSearch loaded joined the top-level tools on the next request, so
the prompt changed from its first bytes and the cache missed on each load
(maximia's probe: cached tokens dropped on every request after a load).
Now, where Request.LoadedInPlace is set, a deferred tool (defer_loading,
Tool.Deferred) that a tool_result's tool_reference names (toolRefs,
Part.Loads) goes in an {"type":"additional_tools","role":"developer",
"tools":[...]} item right after the run of tool outputs that loaded it,
once, and not in tools (buildResponses). Parallel results and one result
naming several share one item; a tool named again isn't repeated; the
output's text is as before. A history whose loading result is gone
(compaction, edits) puts the tool back in tools: a new prefix, expected.
Scope (loadsInPlace): OpenAI's own API with a key (api.openai.com,
*.api.openai.com), whose tool search guide documents the item and says
its tools load at the end of the context so the cache is kept; and a
provider the user sets with `magpie provider set <id> additional-tools=on`
(Provider.AdditionalTools, kept by the GUI's save like codexAsSent).
Nothing else: xAI answers the item 422 (#350), the ChatGPT backend has
been seen taking it only for Codex's Responses Lite, Azure, plugins and
relays are untried. An upstream that refuses a request holding the item
with a 400/422 naming additional_tools is asked again with every tool in
tools, logged ("turned away additional_tools ... loaded tools go in tools
from now on") and not sent the item again while magpie runs.
Not handled: a tool a tool_addition block in a system message loads (MCP
late tools, the advisor) stays in tools. Not tried against a real
upstream: no OpenAI key or custom Responses relay was used; the item's
shape and position follow OpenAI's docs, and the fixtures follow
maximia's three-request probe (Claude Code 2.1.302) and the
tool_reference shape Claude Code 2.1.306's binary writes.
Tests: TestLoadedToolsKeepThePrefix (top-level tools and instructions
identical across the three requests, each input a prefix of the next),
TestLoadedToolsInOneItem (parallel, batch, repeat), TestLoadedToolsWhereNotTaken
(unsupported upstream unchanged; compacted; non-deferred),
TestLoadsInPlaceScope, TestLoadedToolsThroughTheGateway (off by default on
a relay, on with the flag, refusal retried without the item and not sent
again), TestAdditionalToolsPair (CLI). Broken by hand: with the
buildResponses placement disabled, the first two and the gateway test go
red; with the refusal retry disabled, TestLoadedToolsThroughTheGateway
goes red.
Run at cff7dc67d (this change on
|
||
|
|
52209522a0 |
gui: the masking card is flat and shows the lines the vendor got
The owner found Settings › Privacy's summary card unrefined: a glow behind it, a gradient on the number, a gradient banner for the local model, a gradient area chart and gradient ribbons. It is redrawn in flat colour, with one new part that shows what masking did. - The number is larger (52px, 600), and the days under it are a bar a day on a hairline. Today is in the accent, the other days are a quiet grey and a day with nothing is a dot. Pointing at a bar says its day, as the chart did. - What the vendor saw: the newest lines around masked values, from /api/masking/records?limit=12 (read again with the summary every 15s). Each placeholder is in its kind's colour and says what it stood for while pointed at. On first show a marker is drawn over each one and lifted to the placeholder. It is left out when no line is in memory, as after a restart. - What was kept and Found by are two columns of rows: a dot, a name, a count and a hairline meter of its share. Each row opens its records, as the chips did. The local model's banner is now its row under Found by, with the old sentence as its tooltip. - Agents to vendors are joined by hairlines whose weight and opacity follow their share, around an outlined shield with no glow. - maskSnipTexts and maskPlace are shared with the records view, which drew the same lines and placeholders. masking-records.test.cjs checks the bars (zero days as dots), the rows, the model row, the vendor's line with both placeholders, a placeholder's value on hover, a kind's row opening its records, and that nothing in the card has a gradient. Run at this head (origin/main |
||
|
|
1414705159 |
gui: the warm-up's read of the whole usage history runs under GOGC 25, so a cold start peaks ~130 MB lower
The warm-up's last big read, the Usage page's QueryPage over all time,
holds every row of the history unpacked at once (129 MB of rows, 271 MB
live at that moment for this history), and at Go's default GOGC the heap
grows to twice what is live before collecting: Activity Monitor's
footprint peaked at 555-587 MB there, on a magpie that rests at ~200 MB
once it is done. underTightGC lets the heap grow by a quarter during that
read and puts back what was set; a GOGC the user set lower, or off, is
kept. Holding fewer rows at once needs the page built in passes over
packed chunks (rowRef points into unpacked ones), which is the next step.
The whole warm-up under GOGC 25 gave the same peak for ~11 s more CPU, so
only that read is.
Measured with startheap-runs/fp.sh: cold start (calls and sessions caches
deleted) of a 6,437-file history, phys_footprint sampled every 2 s and
footprint's own phys_footprint_peak at the end, run until the caches stop
growing for 30 s; every run wrote the same 6,437 files / 70,069,451 bytes.
Machine at load ~85-140 from other sessions.
before (
|
||
|
|
c627652e9a |
settings: lightweight mode is off for a user who never chose
The owner, 10-21: "要默认关闭「轻量模式」,不然太卡了". With it on, the window is made again and its page loaded again on every opening, which is slow. |
||
|
|
1b9b97f8db |
gui: a provider's dialog grows out of its icon and name, as an add sheet tile's does
The owner, 10-21: the provider editor's opening was stiff ("太生硬"), and
the add sheet's, opening a vendor's tile, is the one to follow. Both run
through openModal's morph, but a tile is narrower than the dialog, so the
dialog starts shrunk to it (scale ~.4) and zooms out; a provider row is
wider than the dialog, so the scale stayed 1 and the dialog opened as a
full-size strip widening over the row, its text at full size from the
first frame.
A provider row is now measured as a tile: from its left edge to where
its name and host line's words end (rowOwnRect, the text nodes' extents;
a range over the block spans its whole width), the row's height. The
dialog grows out of that and folds back into it, as a tile's does.
Run on origin/main
|
||
|
|
3c38fe5c99 |
agent: Zoo Code (VS Code) through its autoImportSettingsPath (wani on Discord)
wani on Discord (#feedback) asked for Zoo Code (zoocode.dev), a fork of Roo Code for VS Code and JetBrains. Route: Zoo Code keeps its provider profiles in VS Code's SecretStorage, which magpie can't write. The one file it reads is the one its zoo-code.autoImportSettingsPath setting names. On every activation (src/utils/autoImportSettings.ts, Zoo Code 3.90.0) it imports that file as Settings → Import does (importSettingsFromPath). magpie writes <User>/globalStorage/zoocodeorganization.zoo-code/settings/magpie-import.json with one profile, "magpie": apiProvider openai on the gateway's /v1 Chat Completions, key magpie-zoo-code, the chosen model, and an openAiCustomModelInfo built from the catalog (contextWindow, else Zoo's own 128000 default; maxTokens only when an output limit is known). It points the setting at that file in the default settings.json and in each VS Code profile's. A value the user set themselves is stashed and restored by Disconnect. The file sits outside magpie's folder so that a sync keeps an address the user moved (kept.away skips magpie's own folder). Requests say "ZooCode/<version>", and usage names them zoo-code. Limits (also in docs/reference.md → Zoo Code): - Zoo reads the file only at start: the notice asks for Developer: Reload Window. - While connected, each start switches Zoo back to the magpie profile. - Disconnect stops the import but can't delete the imported profile from SecretStorage. The user switches away from it or deletes it in Zoo. - VS Code Stable only. JetBrains is not wired. Zoo Code for JetBrains runs the extension in its own extension host, which is handed an empty configuration on every start (RPCManager.startInitialize in Zoo-Code-JetBrains), so the setting never reaches it. Its secrets sit in ~/.zoo-code/secrets.json, an internal store with no lock and no documented format. Neither is a clean route. Tests (internal/agent/zoocode_test.go): - TestZooCode: connect, model switch, a stale key that Check reports and Sync fixes, and disconnect putting the user's own import path back byte for byte with the file removed. - TestZooCodeFresh and TestZooCodeProfiles: VS Code profiles, including one made after connecting. - TestZooCodeDetectAndUA: Roo alone is not detected; ZooCode/3.90.0 maps to zoo-code. Broken by hand (the restore disabled): TestZooCode and TestZooCodeProfiles went red. The generated file was checked with bun against Zoo's own zod schemas (providerSettingsWithIdSchema, isProviderName; zod 4.6.7 from its repo): valid, every field kept, current profile in apiConfigs. Run, set -o pipefail, GOMODCACHE pinned, sandbox HOME: - First full run, with this change on |
||
|
|
5fadf6aceb |
gui: Settings' gateway row is titled an address, and says only its port is typed here (Chicring on Discord)
Chicring: Settings showed "网关端口" (gateway port), but the row showed
MAGPIE_ADDR's host:port.
What the field takes, from the code: renderPort posts to
/api/settings/port, and setPort (internal/gui/port.go) accepts only a port
from 1024 to 65535 (settings.CheckPort). The gateway listens on that port,
on 127.0.0.1, or on 0.0.0.0 while shared on the LAN. When MAGPIE_ADDR is
set, it is the whole host:port and comes first. The row then shows its
value and is disabled. So the row is the gateway's address, but only its
port is typed here; it isn't a second way to write MAGPIE_ADDR.
The row is renamed in every language: Gateway address / 网关地址 / 閘道位址 /
ゲートウェイのアドレス / Adresse des Zugangspunkts. The new hint says "Only
the port is set here, 1024 to 65535; MAGPIE_ADDR=host:port sets the whole
address instead. Agents magpie connected move with it. Now {url}". With
MAGPIE_ADDR set, the hint says "MAGPIE_ADDR={addr} sets the gateway's whole
address, host:port: unset it to set the port here". The CLI help (cpu,
healthcheck, heap, quota, statusline) and setPort's comment named
"Settings' Gateway port". They now say "the port in Settings' Gateway
address".
Test: gateway-port.test.cjs pins the new name and hints in en and zh. With
MAGPIE_ADDR set, it now also checks that the field shows 127.0.0.1:3426
and that the row's name and aria-label say the address. gui-zh-tw, gui-ja,
gui-de and i18n-keys cover the other languages. Broken by hand: on the old
app.js it is red, "not ok 1 - en expected: 'Gateway address' actual:
'Gateway port'", and zh red against '网关地址'.
What was run. The whole suites ran at dcf7eeae3, which was these two commits
on origin/main
|
||
|
|
4bea86d0a3 |
gui: a provider that asks its own decision models (OpenRouter, Ollama …) shows System One's endpoint, not Jev's (Outvi V on Discord)
Outvi V added OpenRouter and its editor named the decision address field "Jev 端点". The hint gave Cloudflare's …/accounts/<account id>/ai/run as the example. Cause: the title was "System One endpoint" only for a decide-only preset whose name had no "jev". Every preset that also serves conversations got "Jev endpoint". The hint gave Cloudflare's address to any preset without a workspace ID. The placeholder was already the provider's own Decide URL. Fix: only Jev's own decide-only presets (TypeSafe Jev, Jev · Vercel AI Gateway, Cloudflare Workers AI · Jev) keep the Jev title and the Cloudflare hint. Every other provider shows "System One endpoint" with a hint of its own: "The address its decision models are asked at, POST …/systemone under it". Every preset that reaches this path is covered: openrouter, opencode-zen, ollama-cloud, bailian-token-plan, ollama, omlx and mlx-serve, plus the decide-only bailian-decision and qwen-decision, which already had the right title. The new string is in zh, zh-TW, ja and de. Test: decide-endpoint-label.test.cjs opens each of the ten presets with a Decide URL from the add sheet, and edits a saved OpenRouter, in en, zh, zh-TW, ja and de. The three Jev presets must show Jev's title and the Cloudflare hint. The rest must show System One's title and their own hint, with no Cloudflare or Jev in it. The saved OpenRouter's placeholder must be https://openrouter.ai/api/v1. Broken by hand: - The old app.js line: red in every language, for example "expected: 'System One endpoint' actual: 'Jev endpoint'" and zh "'System One 端点' vs 'Jev 端点'". - Cloudflare's hint forced onto every provider: red, "expected: 'The address its decision models are asked at …' actual: \"The address Jev is asked at; …Cloudflare's…\"". At this commit alone, decide-endpoint-label, system-one, remote-magpie, i18n-keys, gui-zh-tw, gui-ja and gui-de passed in both engines: "# tests 42 # pass 42 # fail 0". What was run. The whole suites ran at dcf7eeae3, which was these two commits on origin/main |
||
|
|
5c557c793c |
usage: the allowance cards come in the Providers page's order (Zhenbao TONG on Discord)
Reported: Zhenbao TONG moved a provider on the Providers page, and the
tray panel's Allowances tab kept the old order.
Changed: provider.InProviderOrder(qs) (internal/provider/quotas.go) sorts
a copy of the quota cards, stably, by the provider's place in All().
Providers it doesn't know go last. Used by /api/quotas's two routes
(internal/gui/usage.go) and the TUI (internal/tui/pages.go). The app.js
comment says the order now comes from the server.
Test: TestQuotaCardsInProviderOrder (quotas_order_test.go). Broken by
hand:
- InProviderOrder as the identity: "as added: [a/a1 remote:x/r c/c1
b/pro a/a2 c/$1]".
- sorting without the clone: "Quotas' list was sorted in place".
Not covered: the /api/quotas wiring has no test beyond the function's
unit test.
Run, go1.26.8 darwin/arm64, sandbox HOME, private GOCACHE:
At this stack on origin/main
|
||
|
|
0084291888 |
gui: Hide accounts hides them in the whole window, Providers and its editor too (Zhenbao TONG on Discord)
Reported: Zhenbao TONG turned on Hide accounts to take a screenshot. The Providers page and its editor still showed account emails, because the mask covered only the Routing and Usage views. Changed (internal/gui/assets/app.js): the mask's root is body in every mode, so every page and sheet of the window is masked. It is turned on from #rtMask and #usageMask as before, and the panel has none. mask(root) takes a root, and the MutationObserver masks again only the roots that changed, not the whole body. Test: internal/gui/tests/window-mask.test.cjs, with Hide accounts on, on Providers, its editor and the other pages. 5 languages x widths 1000 and 420 x chromium and webkit. Broken by hand (the old app.js mask): chromium en and zh at 1000 red, waitForFunction timed out on `#view-providers .pii`. Run, go1.26.8 darwin/arm64, sandbox HOME, private GOCACHE: At this stack on origin/main |
||
|
|
0eb5cbe81a |
routing: the live view and Usage's Requested name a found group auto/<model>, not group/auto-<model> (未寒 on Discord)
Reported: 未寒 picked auto/claude-opus-5-5, and the Routing live view and
Usage's Requested column named it group/auto-claude-opus-5-5, an internal
id that agents never see.
Changed:
- internal/gateway/trace.go: GroupRef and SubGroup carry Ref
(Group.Ref(), the id agents pick the group by).
- internal/gui/trace.go: publicRoute rewrites a route's Model,
For.Model, Subagent.Asked/To and the group's and subs' Ref through
provider.PublicRef (memoised per answer). It copies the pointers
before writing, so the gateway's trace is left as it was.
- internal/gui/context.go: the Context page's model too.
- internal/usageapi/usageapi.go: the ledger page's Requested.
- routing/client.js: useName falls back to a sub's ref.
Test: TestRoutesNameFoundGroupsByTheirPublicID
(internal/gui/trace_publicref_test.go). Broken by hand, each one red:
- publicRoute made a no-op: red on model, group, subagent, For, Subs
and route.
- usageapi mapping removed: `the ledger's Requested:
["group/auto-claude-opus-5-5" "group/mine"]`.
- contextRoutes mapping removed: `the Context page's model:
"group/auto-claude-opus-5-5:high"`.
- Ref dropped from gateway/trace.go alone stays green, as expected:
publicRoute fills an empty Ref.
Not covered: the ledger's text search (usage.Filter.Query) still matches
the stored group/auto-… form, not the shown auto/… (package usage can't
import provider). client.js's ref fallback has no GUI test of its own.
Run, go1.26.8 darwin/arm64, sandbox HOME, private GOCACHE:
At this stack on origin/main
|