e6bed2f0638cb4e2bfbb96f3ba001600718fd600
4237
Commits
| Author | SHA1 | Message | Date | |
|---|---|---|---|---|
|
|
e6bed2f063 |
site: Kimi's partner icon is a 16KB PNG, not the 838KB SVG
Every app downloads a partner's icon on each fetch of the list, and the official mark's grain texture made the SVG 838KB. It is rendered to 128x128 (rsvg-convert, 16,802 bytes) at a new URL, partner-kimi.png, so an app holding the earlier icon fetches this one. Run: node --test in site/ 30/30; looked at the PNG; curl after deploy. |
||
|
|
68fb6b6d82 |
provider: Command Code's mover min is 0.1.15, DeepSeek's off level (plugins#334)
0.1.15 (plugins 652f06d) offers an off level on DeepSeek V4 Pro, V4
Flash, V4 Flash Vision (exp), V4.1 Flash and V4.1 Flash Fast and sends
it to the Provider API as reasoning_effort "off", Command Code's own
word for it. V4 Flash Fast, Kimi K3 and Go's /alpha/generate are sent no
level for off. keepMovedCurrent brings every moved user up to it.
No other magpie change: a plugin model's variants are its levels
(pluginCatalog), and a plugin model listing none is sent none
(TestPluginThinkingOff), so /v1/models lists none for these models
once the plugin is 0.1.15.
npm view --prefer-online: 0.1.15 at 16:01 CST, before this commit.
Run at
|
||
|
|
da6fd87ede |
site: Kimi's own logo files for the README and the partner icon
The README logos and the Add sheet's partner icon were drawn by hand. Kimi sent its own: 浅色背景.svg (black KIMI) and 深色背景.svg (white), 118x40 at 1,087,477 bytes each. Coordinates are rounded to two decimals (838,851 bytes), and the partner icon is the K mark alone, cropped to viewBox 0 0 40 40 (838,849 bytes, under provider.MaxIcon's 1 MB). Run: rendered each with qlmanage and compared with the originals by eye; curl after wrangler deploy (below). An app with the old icon kept picks the new one up on its next partner fetch. |
||
|
|
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
|
||
|
|
be002aca05 |
site: Kimi Code is a partner in the Add sheet and a README sponsor
Kimi took an in-app seat and a README seat. The partner "kimi" (Kimi Code) has four regions under "Plan": the Kimi Code membership in China (api.kimi.com/coding, catalog kimi-code-plan-cn, the default) and globally (api.kimi.ai/coding, kimi-code-plan-global), and Moonshot's pay as you go in China and globally (catalog moonshotai), with the endpoints and catalogs of the built-in kimi-code, kimi-code-cn and moonshot presets, so the plan's handling (keyed on those catalogs and hosts) is the same. Each region's key page and website is Kimi's aff=magpie link for it. The tagline is in all five app languages; it is listed in every language from 10-23, with no end set yet. README.md links sponsor "kimi" (www.kimi.ai/code), README.zh-CN.md "kimi-cn" (www.kimi.com/code), with a light and a dark logo. The icon and logos are drawn from Kimi's mark. Run: node --test site/*.test.mjs (30 of 30 ok). The served feed (worker.js served() over partners.js) parsed with partnerFeed and passed checkPartner and validPartners in a throwaway test in internal/provider: one partner, the cn region's endpoints as default, every link a /go one. Not tried: the app's Add sheet with this feed; the editor's link reads usemagpie.ai, not www.kimi.com, until the app shows a partner's own host. |
||
|
|
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 |
||
|
|
65e80405b8 |
gateway: TestPluginToldWhereTheAgentWorks counts a case's tries, not one request (#3347)
Cause: the test said a case's request reached the vendor exactly once. A lone account whose try fails with a 5xx is asked again after a moment by design (TestLastOneLeftIsTriedAgain), so one failed first try gives the vendor two requests and the client a 200. That is what CI hit at |
||
|
|
bac5be0677 |
plugin: one renewal of a sign-in at a time across magpie processes (plugins #331)
Cause: every magpie process that loads plugins runs a plugin host of its own (the gateway, a CLI quota or usage command, a host restarting while the old one finishes), and host.js's renew() kept a sign-in's renewal to one at a time only inside one host (the in-memory renewing map). Two hosts that found the same sign-in due each called the plugin's auth.refresh with the same refresh token. A vendor that spends a refresh token once (MiniMax, and about ten plugins' vendors: cline, codearts, qoder, trae, workbuddy, raccoon, nous, kiro, factory) turned the second away with invalid_grant, the plugin threw signIn "expired", renew() sent it on without looking at the store again, and host.go -> provider's notePluginLapse marked the account signed out, though the first host had already saved a good token. What changed, in internal/plugin/host.js only, for every plugin: - renew() takes a lock file of the account's beside the store, plugin-auth.json.renew-<sha256(key)[:16]>.lock, holding the holder's pid and start time, across the plugin's auth.refresh, and lets it go in finally. It is separate from plugin-auth.json.lock, which changeAuth holds only for a write and never across an await. A lock whose pid is gone (process.kill(pid, 0), EPERM counted alive) is taken over at once, one older than 60s by anyone; a live holder is waited for with an async backoff (10ms to 500ms), never blocking the host's loop, and never past 120s. A lock is removed only while it holds the bytes read. - Under the lock the sign-in is read again from the file (past readAuth's stat cache). Changed since the renewal began (another host renewed it, or it was signed out or in again), the renewal ends without calling the plugin; no longer due, likewise. - A refresh that throws while the stored sign-in changed meanwhile (a magpie from before this lock spent the token and saved the new one) is logged, not reported expired. Tests (internal/plugin/plugin_renew_race_test.go, fixture testdata/renewrace): a fake vendor on loopback whose refresh tokens are single-use. - TestRenewOnceAcrossHosts: two hosts in two processes (this test binary and a child running TestRenewOtherHost) on one sandbox store. The first host's exchange is held until the second host is renewing too, waited on as state. One exchange, neither host says expired, both requests go with the new token, the store has it. - TestRenewLockOfDeadHostAndRefusal: a lock naming a pid that has ended is taken over inside the request's wait and removed; a token the vendor never gave still says expired and leaves the account as it was; one refused after another magpie saved a new token says nothing and the next request goes with that token. Broken by hand, each red: - no lock (lockRenew returns at once): TestRenewOnceAcrossHosts red with exchanges [r1 r1], the other host said [expired], a request sent a-old - the issue's symptom; the dead-pid test red (lock left). - no re-read under the lock (now = was): exchanges [r1 r1]. - the catch's check removed: "a token another magpie renewed meanwhile said expired". - a dead pid counted alive: the dead-pid test red after its wait. (Removing only the re-read's "changed" branch stays green: the "no longer due" check under the lock catches the same case.) Run at c909ca5e4 (on origin/main |
||
|
|
84d902ce2b |
provider: Qoder's mover min is 0.2.31 (plugins #330)
0.2.31 sends every call of one prompt's tool loop as one Qoder task: one
request_set_id, business.id and begin_at, with stage start and then
processing, as Qoder.app's client does, instead of a new task per call.
A 265-call DSH task hit "Billing daily count exceeded" (plugins #330).
keepMovedCurrent brings every moved user's plugin up to it.
npm view --prefer-online: @magpie-community/opencode-qoder-auth 0.2.31.
Run at this commit (parent
|
||
|
|
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
|
||
|
|
a6efe07cd7 |
davsync: a GitHub backup too large for one request goes up in parts (Zhang-Wei, Discord)
Zhang-Wei (Discord, v0.1.1327) saw every GitHub sync fail with "GitHub sync: HTTP 422: Sorry, your input was too large to process. Consider creating the blob in a local clone of the repository and then pushing it to GitHub." Their exported backup is 50.8 MB; with the library's sync off it works. |
||
|
|
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 |
||
|
|
c4a5e61530 |
provider: WorkBuddy's mover min is 0.1.30 (plugins #291)
0.1.30 rewords the line tearslee measured WorkBuddy refusing (11128)
in an assistant message, which the 0.1.29 move of the system prompt
can't reach, so a long DeepSeek Harness chat isn't refused for good.
npm view --prefer-online --registry https://registry.npmjs.org says
0.1.30 at landing.
Run at
|
||
|
|
f81913994a |
gateway: a Responses Lite compaction's summary request offers no tools, and a reply without a summary says what it held (WuSix on Discord)
WuSix (Discord) got "compaction: codex/gpt-6-astra failed to summarise
this conversation 3 times in a row (last: the model wrote no summary)".
codex/gpt-6-astra's catalog entry is Codex's own (codexcat.ownEntry), and
Codex's entry puts gpt-6 on Responses Lite: its tools go as an
additional_tools input item, none in tools. codexInputAs set "tools": []
for magpie's summary request but left that item in, so the model was
asked for the summary with every Codex tool still offered (tool_choice
auto, which codexBody sets anyway). A reply that is a function_call and
no message is "the model wrote no summary". codexInputAs now leaves the
additional_tools item out when it turns the trigger into the summary
prompt; calls in the history stay as they came.
The 502 and the held message now say what the reply held instead
(answeredWith: "(it answered with function_call shell)", "reasoning",
"nothing"), so the next report says which it was.
Hypothesis, not confirmed on a real reply (see below): the fake backend in
TestCodexLiteCompactionOffersNoTools answers a call whenever any tool is
offered, as an agentic model mid-task may. What the test holds is that
the request offers none.
Run at base
|
||
|
|
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
|
||
|
|
45593cc1d6 |
provider: Grok's mover min is 0.2.1, which renews once on a 401 (plugins#324)
plugins 92d5557 (grok 0.2.1, on npm: npm view --prefer-online answers
0.2.1) renews a sign-in once through Grok Build when a request, the
model list or usage gets a 401, and retries once. A renewal that leaves
the same token now says Grok Build couldn't renew it, with the CLI's
last line, not that the sign-in expired; a half-written auth.json is
read again and then falls back to the last good read. Maxwelltoo's
report: 716 failed silent refreshes over a day, each surfaced as
"sign-in has expired; run grok login".
min 0.1.18 -> 0.2.1, so keepMovedCurrent brings every moved user up.
The note drops "a token Grok refuses early reads as expired", which
0.2.1 no longer does.
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 |
||
|
|
7aad6a50ea |
provider: a window set for all of a custom provider's models wins over another vendor's guess
MisakaNatsuxun (Discord, 10-23) set a custom OpenAI-compatible provider's Advanced > Context window to 1M. Routing still showed 200K for deepseek-v4.1-flash-free, and dsh was told contextWindow 200000. Cause: WindowOf capped the provider-wide "*" window at ListedWindow(m) (#2112, |
||
|
|
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
|
||
|
|
75df6f4891 |
library: the git skill tests run again, with the machine's git found before the sandbox
Every test that builds a git repository (gitRepo in skillgit_test.go) looked git up with exec.LookPath after sandbox() had replaced PATH, found none and skipped with "git isn't installed". TestInstallFromGitRepo and the rest of the kind-git tests were skipped on every machine and on CI. realGit is now looked up once at package init, before any sandbox. gitRemoved is a fixture helper the next commit's test uses: as a file's body in a commit, it removes that path from the repository. Record for this push: 13 commits on origin/main |
||
|
|
60fff9a7e5 |
sessions: Droid's sessions can be deleted from the Sessions page (zachzhao1984 on Discord)
zachzhao1984 on Discord: some agents' sessions can't be deleted on the Sessions page. Droid was one of them. What changed (internal/sessions/manage.go): "droid" is Deletable. A Droid session goes to the trash whole: its transcript, its .settings.json beside it, and a subagent's two files. Nothing of another session goes with it, and Restore puts them all back. A session written to just now is left alone (ErrActive), as for every other agent. The package comment now also says why OpenCode, ZCode, Grok Build, Kimi Code and Claude Desktop (Cowork) sessions stay list-only. Guarded by internal/sessions/droid_manage_test.go (TestDroidDeleteRestore). Broken by hand: - "droid" taken out of Deletable: FAIL "droid not deletable". - The .settings.json no longer added to the session's paths: FAIL "a session just written: <nil>". The settings file isn't counted as the session's, so a write to it no longer holds the delete back. Record for this push: 13 commits on origin/main |
||
|
|
93b87d0004 |
davsync: a GitHub backup too large for the Contents API goes up as a blob (Zhang-Wei, Discord)
Zhang-Wei (Discord, v0.1.1318, 102 skills) saw every sync fail with "GitHub sync: HTTP 422: Sorry, the file is too large to be processed" on magpie/magpie.magpie-backup; the last backup that went up was about 19 MB. The Contents API's PUT refuses files well under the 100 MB a blob can hold. A repository with commits is now written through the Git Data API: the ref's head, the file's version at that head (it must still be the one sync read, or errChanged), a base64 blob, a tree on the head's tree, a commit with the head as its parent, and a ref update without force. Still one commit per write or removal, and the version is the blob SHA as before. A ref update that is not a fast-forward is built again on the new head (the blob is kept), up to three times, then errChanged; if the new head changed the backup it is errChanged at once, so another computer's backup goes through the normal merge. A branch deleted meanwhile is an error, not created. Usage files and their removal take the same path. An empty repository has no head to build on, so its first write still goes through the Contents API (one commit, unchanged). If that is refused as too large (422 "too large" or 413), a short README.md in magpie's folder makes the first commit and the backup follows as the second. Reading was already right for large files: the object media type gives encoding "none" over 1 MB and bytes() downloads by blob SHA; the new test covers it at 21 MB. The fixture now serves the Git Data API (blobs, commits, trees, a fast-forward-only ref update) and refuses a Contents PUT over contentsLimit with GitHub's 422 text. docs/subsystems/sync-backup.md says how writes go and names the new tests. Record for this push: 13 commits on origin/main |
||
|
|
fb23bca5c9 |
update: the Mac relaunch tries open again while it fails
molvqingtai's system log (Discord): v0.1.1314 updated itself at 00:43:49, the old process exited 0, and ~160ms later `open` of the bundle failed with -600 (procNotFound): LaunchServices still sent to the process that had exited (the screen was locked). runAfterExit ran open once, nothing looked at its status, and magpie stayed closed until a manual launch at 09:45. Relaunch now runs relaunchCommand: the same open, tried again after pauses of 0.5 1 1 2 2 3 4 seconds (13.5s, 8 tries) while it exits non-zero, and not again once it succeeds. The detached own-session shell (#2362) is unchanged. The new instance is not confirmed running beyond open's exit 0. Sibling, not changed: RelaunchBinary (Windows, Linux) starts the new binary itself while this one is still up, with no open after exit; on Windows with the old binary moved aside, startChecked already waits 20s for the new one to say it is up and puts the old back otherwise. ayu's "restart to update needs several clicks" is not this shape (candidates: the install held by another program, or the busy-gateway wait) and needs its own look. Tests (internal/update/relaunch_retry_test.go): a fake `open` first on PATH refuses its first tries with the -600 text. - TestRelaunchOpenTriedAgain: relaunchCommand after a gone pid opens on the third try. Old code: FAIL "open was tried 1 times and the new version never opened" (30.04s). - TestRelaunchOpenGivesUp: a refusing open ends after len(waits)+1 tries; one that works on the second is not run again. Broken by hand (no `&& exit 0`): FAIL "open tried 4 times, want 2". - TestOpenWaitsTotal: waits add to 10-15s. Broken (0.5 1): FAIL "waits add to 1.5s". Real open: the same loop with /usr/bin/open on a scratch .app that appeared after 2s failed 3 times ("does not exist", exit 1) and opened it on the 4th, the app got --args tray. Record for this push: 13 commits on origin/main |
||
|
|
f5149a5332 |
gateway: Claude Code is given a schema without its root $schema (#3036)
Codex's title requests carry zod's draft 2020-12 schema, with "$schema": "https://json-schema.org/draft/2020-12/schema" at the root. magpie passed it to `claude --json-schema` as it came. Claude Code exited with "--json-schema is not a valid JSON Schema: no schema with key or ref ...", and the client got a 502 that was asked three times. What Claude Code rejects. 2.1.307 checks --json-schema with Ajv 8's default class, which is draft-07: new Ajv({allErrors, validateFormats:false, multipleOfPrecision:6}), then validateSchema and compile, in strict mode. I ran Ajv 8.20.0 with those options: - A root $schema for 2020-12, 2019-09 or draft-04 is refused (no schema with key or ref). - Keywords only a later draft has (prefixItems, unevaluatedProperties, $anchor, $dynamicAnchor, dependentRequired) are refused (strict mode: unknown keyword). - A draft-07 $schema, $id, $defs, definitions, $comment, and a nested $schema or $id all pass. The real claude 2.1.307 agrees. I ran it in a sandbox HOME, with a fake `security` on PATH so the Keychain was never touched. The 2020-12 schema exits 1 with the reporter's exact words. The same schema with $id, and one without $schema, both get past the check. The fix. cliSchema drops only the root $schema and keeps everything else as it came. A schema with no root $schema goes byte for byte. Later-draft keywords are not rewritten. A schema that uses them is refused, and is now answered as below. No more retries. A schema Claude Code refuses is refused the same way on every try and every account. When its stderr says "--json-schema is not a valid JSON Schema" (or "is not valid JSON" / "must be a JSON object"), the run now ends in a 400 with Claude Code's words from the flag on. It is not retried, the saved-session restart is skipped, and no account rests. The 400 holds both when Claude Code exits before it takes its input (cliSchemaRefused from endedBefore) and when it exits after it took the input (schemaEnded, emitted as a 400 KError before the segment closes). Before, the second case was an empty 200 for a whole reply, or a 502 "ended without an answer" for a stream. Any other exit is handled as before. Siblings, left as they are: - anthropic.go's output_config.format goes to the Anthropic API, which takes a 2020-12 $schema; Claude Code's own tool schemas in testdata/context/claude-code.json carry one. - codeassist.go's responseJsonSchema (Gemini, Antigravity) is not passed through plainSchema. Not tried against the real API; no report of it refusing $schema. - format.go's chat()/responses() go to OpenAI unchanged. - MCP tool input schemas go to Claude Code's MCP, not this check. - No other CLI is given --json-schema. Tests (internal/gateway/claude_cli_schema_test.go). A fake claude does what Ajv does: it fails on a 2020-12 root $schema or on prefixItems, in 2.1.307's words. - TestClaudeCodeTakesCodexTitleSchema sends the reporter's title schema through a Responses request. It checks for a 200 with the title, and that the schema reached the CLI minus only its $schema. - TestCLISchemaKeepsTheRest checks that $id, $defs and a nested $schema are kept, and that a schema without $schema, non-JSON and `true` pass byte for byte. - TestClaudeSchemaRefusedIsAskedOnce/{whole,stream} sends a prefixItems schema with two Claude accounts. It checks for a 400 in Claude Code's words, one run, and no account rested. Broken by hand: - cliSchema returning raw: the first two tests go red. - No 400 for a refusal: both subtests go red (an empty 200 and a 502). - No late-exit emit only: both subtests go red. Record for this push: 13 commits on origin/main |
||
|
|
efd4770015 |
agent: a reasoning effort picked in VS Code's Copilot Chat survives magpie's sync (chim3744 on Discord)
chim3744 (magpie 0.1.1318) picked "max" for a magpie model in Copilot
Chat's model picker, and requests went out at "low".
Cause: VS Code 1.142 keeps that pick inside the provider group, as
settings["<model id>"].reasoningEffort (languageModels.ts
setModelConfiguration). magpie's setGroup built its group with
vscodeGroupJSON, which has no settings key, compared the whole object
with sameJSON, and edit.SetJSONItem replaced the whole group. Every Sync
(catalog.Changed on start, a vendor list fetch, a provider edit) and
every magpie model pick in VS Code wiped the pick, and Copilot Chat fell
back to the model's first level ("low" of [low, high, max]).
Fix: vscodeGroupKept lays magpie's group over the one in the file with
mergeTheirs, as theirsKept does for the other agents (#2030). Every key
magpie doesn't write stays: settings, and anything else VS Code or the
user puts there, such as an apiKey reference. The models list stays
magpie's whole, so a model gone from the catalog still leaves it. The
settings of a model magpie no longer lists are kept, since they are the
user's values. When nothing magpie owns changed, the compare is a no-op
and the file is not written. This covers VS Code, VS Code Insiders and
VSCodium (customendpoint and customoai), every profile, since all go
through setGroup. agent-wiring.md lists what is kept.
Siblings checked:
- chatLanguageModels.json is written only by vscode.go. Cursor
(cursorlocal.go) writes nothing of Cursor's. magpie writes no
language-model groups for Windsurf, Trae or Kiro IDE.
- Every other syncJSON caller in internal/agent already merges through
theirsKept, piBlockKept, openCodeKept, mothxBlockKept, qoderKept or
t3Merged (
|
||
|
|
ca4a1cde0d |
dsh: maxTokens leaves dsh half its window, or a quarter for output where that is more (#3298 item 3)
|
||
|
|
e2543575a9 |
gateway: DeepSeek's own Anthropic endpoint is asked its effort in output_config (#3298 item 4)
DSH on magpie's magpie-anthropic route asks by thinking.budget_tokens (pi-ai's anthropic-messages default). DeepSeek's Anthropic endpoint ignores the budget, so every level ran at DeepSeek's default, high. effortInOutputConfig matched only GLM-5.2/5.3 and MiniMax-M3.1-Flash. What DeepSeek documents (read 2026-10-23): - https://api-docs.deepseek.com/guides/anthropic_api, "Simple Fields": thinking "Supported (budget_tokens is ignored)"; output_config "Only effort is supported". - https://api-docs.deepseek.com/guides/thinking_mode, "Thinking Mode Toggle and Effort Control": the Anthropic format's effort control is {"output_config": {"effort": "low/high/max"}}; minimal maps to low, medium and xhigh to high, ultra to max. Change: outputEffortAt(host, model) is effortInOutputConfig or the upstream host being api.deepseek.com. Both places that used the regex take it: the Messages passthrough (serve) and the translated Messages body (anthropicBody, which now gets the host from build). On the passthrough, a model whose levels magpie doesn't know is fitted to DeepSeek's low/high/max, so a 32000 budget asks max rather than xhigh (which DeepSeek reads as high). Another host serving a DeepSeek model (a relay) is not covered by those docs and goes as before, and so does every other vendor's model. Tests: TestDeepSeekAnthropicEffortInOutputConfig goes through the server stack with the upstream dialled to a fake at api.deepseek.com: budgets 4096/10000/32000 ask low/high/max, the budget still goes as sent; deepseek-flash on a relay host and kimi-k2.5 on api.moonshot.ai get no output_config. TestTranslatedDeepSeekAnthropicEffort does the same for build(). Broken by hand: with the host clause removed, 5 cases red ("output_config.effort \"\", want \"low\"" ...); with the rule widened to any model naming deepseek or kimi and the level fit removed, 7 cases red (relay and kimi got "xhigh"/"max", budget 32000 got "xhigh", 10000 "medium"). Run at 5adad1877 (this commit plus the next, item 3; same tree as both pushed): gofmt -l (nothing), go vet ./..., GOOS=linux go vet -tags nogui ./..., GOOS=windows go vet ./... (all clean), go build for darwin, linux (nogui) and windows (ok), and go test -tags nogui -timeout 45m ./...: all 69 packages ok, exit 0 (gateway 505s, agent 401s, provider 197s). Not tried: a real DeepSeek key against api.deepseek.com/anthropic, and a real DSH session on the magpie-anthropic route; the budget bodies in the test are shaped like pi-ai's, not captured from it. output_config.format (a JSON schema), which DeepSeek's page says it doesn't support, is unchanged. |
||
|
|
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
|
||
|
|
1d1c5cf9c8 |
provider: the Qoder mover's min is 0.2.30, Qoder CN's check-in with its own device identity (#2911)
@magpie-community/opencode-qoder-auth 0.2.30 (magpie-community/plugins
929a8b3) sends Qoder CN's campaign and check-in requests the device
identity from Qoder CN's own runtime-info (environment 0, as Qoder CN
desktop 0.4.9 and qoderclicn do) when Qoder CN desktop or CLI is
installed, and says to install it when nothing is offered without one.
npm view --prefer-online showed 0.2.30 before this change.
Run at
|
||
|
|
6e32942a24 |
gateway: a safety refusal that also says the model is retired retires nothing (#3274, CartethyiaQwQ)
CartethyiaQwQ (#3274) found one more way a safety refusal punished a
provider: serve's retirement check runs on any failed try, and
modelRetired accepts a 400 whose body says the model "is retired", so a
cyber_policy refusal whose message also said so took the model out of
the provider's lists (retired.json) until an answer brought it back.
No real refusal seen so far says it; a boundary case.
- serve: a try settled as a refusal (hw.refused) retires nothing. By
then its body is magpie's note "safety filter: cyber_policy — <the
vendor's message>", text, so policyRefusal can't tell it there.
- modelRetired: a body that is the safety filter's error object
(policyRefusal) is never a retirement, for its other callers too
(modelRefused, which rests the model, and retryable).
The note cuts the vendor's message at 300 characters, so the test's
refusal is short enough to keep the retirement words in it, as a real
one would.
Tests: TestRefusalSayingRetiredRetiresNothing (an OpenAI-compatible
provider answering a 400 cyber_policy refusal saying "The model m1 is
retired." retires nothing; the same words under model_deprecated still
retire), and TestRetiredWords gets three cases.
Broken by hand: without the serve guard, TestRefusalSayingRetiredRetiresNothing
is red ("retired true, want false"); without the modelRetired guard,
TestRetiredWords is red on both refusal cases. A Codex account's
refusal never reached Retire on main, so it was tried only through the
OpenAI-compatible path.
Full suite at 91f777e93 (base
|
||
|
|
8278fd9b0c |
gateway: Volcengine Ark's monthly 429 rests the key until the reset it writes (+0800 CST), not 15 minutes (#3251 CNife, #3276 wyx1818)
Ark's 429 for a used-up month says "You have exceeded the monthly usage
quota. It will reset at 2026-10-25 23:59:59 +0800 CST." with no
Retry-After. resetsWhen read an offset only after UTC or GMT, so nothing
read it, the key rested quotaRest and was asked again every 15 minutes
until the month turned. Two more limits stood behind that one: a written
reset over 7 days off (longestWritten) isn't read, and a quota rest is
held to 8 days (longestQuota), so wyx1818's reset 9 days off would still
have fallen to the 15-minute loop.
- resetsWhen also reads the time as Go prints one (Ark's): four offset
digits, a space and the zone's name in capitals, then punctuation or
重置. The offset is read, the name isn't (CST is more than one zone).
The UTC/GMT form is unchanged; a bare offset with no zone's name, or
"+08:00" without UTC, isn't read, as Ark doesn't send them.
- monthlyWords (monthly, 月度, 每月, 本月): a refusal that says its
allowance is a month's has its written reset believed up to
longestMonthly (35 days) instead of the week (longestSaid). That covers
Zhipu's 1310 "Weekly/Monthly Limit Exhausted" too (resetsZhipu), the
sibling held to the same week.
- In failQuota the 8-day cap is lifted to 35 days only when the rest
came from the vendor's own reset ("resets") and the refusal is a
month's. A window read full, a Retry-After and the user's own quota
rest are held to 8 days as before.
Ported from skygunner's branch skygunner:fix/volcengine-resets (e6c2b6fb,
posted on both issues). Taken: the monthly trust window, longestMonthly,
monthlyWords, the reporters' bodies as fixtures and the shape of
TestMonthlyWrittenResetRestsTheMonth. Changed:
- its regex made UTC|GMT optional and took any 2 to 5 letters,
case-insensitively, after any offset, for every vendor, so "reset at
<date> +8 now." would read. Scoped here to Go's layout, the zone's
name matched case-sensitively.
- it lifted the cap to 35 days whenever the body said monthly, whatever
the rest came from (a window read full, the user's own rest); here
only for the vendor's written reset.
- its resetsZhipu kept the week; here it shares longestSaid.
vincenty on Discord: no link to another fix is on either issue
(skygunner's commit is authored as "vincent").
Not changed: Ark's plan windows read by its AccessKey (volcPlanQuotas)
still reach only the usage card, not routing (layer 2 of #3251: the
quota is the account's, not one inference key's, and a provider has one
plan, #2849). #3251 stays open for it.
Tests (fixtures: #3251's and #3276's bodies byte for byte, #3276's as
its pretty-printed JSON):
- TestResetsWritten: ark (3 days), ark 9 days off, ark escaped, 35 days
read and 36 not, past, cut after the offset / in the offset / before
the full stop, without the zone, +9900, Ark's form without "monthly"
9 days off (0: the week holds), WorkBuddy's en 9 days off (0: another
vendor unchanged), "retry after … +0800 CST." (0). Every existing
WorkBuddy and UTC/GMT case passes unchanged.
- TestResetsZhipu: 1310 9 days off read, 36 days not; 1308 over a week
off still 0.
- TestMonthlyWrittenResetRestsTheMonth (new): Ark's 429 3d7h and 9d12h
off reads failQuota and rests by "resets" till then, raw and as the
agent's error with keepRetry's note; the same body without "monthly"
rests quotaRest; a month's refusal with no time on an account whose
window reads full 20 days off rests 8 days by "window".
Broken by hand, in the worktree:
- old routing.go with the new tests: TestResetsWritten (ark: 0s, want
79h7m59s; 9 days, escaped, 35 days), TestMonthlyWrittenResetRestsTheMonth
(79h0m0s off: rests 14m59.99s by quota) and TestResetsZhipu (1310, 9
days off: 0s) red.
- cap not lifted: 228h0m0s off rests 191h59m59s by resets, red.
- longestSaid always the week: ark 9 days / 35 days and Zhipu 1310 red.
- zone's name made optional: "ark without the zone" reads 79h7m59s, red.
- skygunner's cap (any monthly body): window 20 days off rests 479h59m,
want 192h, red.
Each restored, green.
Run at 268c1d34c (this change on origin/main
|
||
|
|
95be6bb75f |
gui tests: usage-alert reaches the currency row before clicking it
Since
|
||
|
|
efb7cb11d4 |
gateway: a safety refusal said in a stream is a refusal for a client answered whole too, and rests nobody (#3274, CartethyiaQwQ)
CartethyiaQwQ (#3274): Codex's "safety filter: cyber_policy" refusal (the Daybreak note) set healthy accounts aside; two such turns benched a five-account pool for about 17 minutes. Cause: the HTTP 400 cyber_policy is already a refusal (policyRefusal reads its code: next account asked, nobody rests), and so is one said in a stream relayed as a stream. A Codex account is always streamed upstream, so a stream:false Responses, Chat or Messages request is answered from that stream whole. There, a response.failed or error event whose error has a code (cyber_policy) but no invalid_request_error type got no status from the decoder, and the whole path answered it 502 api_error: retried on the same account, then every account asked, each one but the last resting by backoff. A refusal after a few words went to the client as a finished 200 turn, and the failure after it rested the account. Fix, at the decoders and the whole path: - filterRefused (fallback.go): a stream error event refusedCode reads as the safety filter's gets status 400 and Said {"error":{type invalid_request_error, code}}. Used by every decoder that set Code: refusedCode -- Responses (both error sites, after requestRefused), Chat, Anthropic and carriedError. - The whole path (gateway.go) answers a reply the filter cut part way as the refusal, not its words so far, and notes it in refusedHeader, since Anthropic's error shape drops the code that settle reads. - restAfterMarked: a 400 whose error object policyRefusal reads as a refusal rests nobody and counts no failure (By "off", Why refused), as the ZDR refusal does, for any route that reaches it. - docs/subsystems/gateway-routing.md says so. Review of the submitted patch (dc6c695db, not taken as is): it matched `safety filter|cyber_policy|Daybreak access` anywhere in a 400's words, so a 400 that echoes the user's prompt in its message skipped the rest too; its fixture was magpie's own refusedError text, which restAfter is never handed for a 400; and it gated on status 400, while the path that rested (above) answered 502, so it would not have stopped the rests. Its restAfter unit tests' shape is kept in TestRestAfterPolicyRefusal. Run at |
||
|
|
ba1dc7f975 |
tests: a decoder test counts its cheapest read, so another goroutine's allocations don't fail it (#3283)
TestPackedScanKeepsItsDecoder went red on macOS CI at |
||
|
|
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 (
|
||
|
|
cf1498f506 |
tests: the middleware tests start fresh, so a rest another test left on "a" no longer skips it (#3273)
TestMiddlewareOnProviderPerTry ( |
||
|
|
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
|