yetone
992f88d634
usage: a stand-in reading says why the read behind it failed
...
@tmr11235 on X (tweet 2123334817991520577, magpie v0.1.4520): agy-cli's
card showed "截至 2026/11/15 14:19:19,暂时无法获取最新额度" days later,
with nothing to say why. keepLast stands the last good reading in for a
read that fails with a passing error (timeout, 429, 5xx, network) and
dropped that error, so a stand-in that lasted four days read the same as
one a minute old. The reading now carries the error as readError
(SubscriptionQuota, and Quota for `magpie quota --json` and the gateway
report), and asOfText puts it after the date: "… 暂时无法获取最新额度 ·
agy usage query timed out." A deferred read (not asked) has none, and
the short "As of" line on cards stays short. Every provider's stand-in
gets it, not only agy-cli's.
Run (mote, at origin/main 9bf5848c1 + this commit; again after rebasing
onto c01988e43 : vet, the provider/gui quota and budget tests, usage-card-refresh
and i18n-keys, 50 pass):
- gofmt -l clean. go test -count=1 -timeout 45m on internal/provider,
gui, cli, tui, usage, agent: ok. internal/gateway: one red,
TestOpenCodeGoOwnFreeModelGetsNothingOfOpenCodes, filed as #7117 on
origin/main before this (an OpenCode env-block test, not quotas); the
doneHold fake's "close of closed channel" log is #6690/#6505.
- GUI: usage-card-refresh, account-every-reset, balance-parts,
claude-usage-asked, panel-quota-refresh, i18n-keys: 94 pass, 0 fail
(chromium + webkit, every language).
- GOOS=linux/windows go vet ./internal/provider/ (after rebase).
- Broken by hand: without the keepLast line, TestQuotaDeferredReadIsNotFailure
fails (readError = "", want "connection refused"); without the
asOfText change, usage-card-refresh fails ("a failed read hid why").
Not tried: the reporter's own failing read (which error it is); a real
GUI with a stand-in card (the fixture page only).
2026-11-19 17:38:05 +08:00
..
2026-11-19 15:35:54 +08:00
2026-10-12 23:45:06 +08:00
2026-11-09 18:19:02 +08:00
2026-11-11 14:18:10 +08:00
2026-11-13 23:42:57 +08:00
2026-11-05 00:11:02 +08:00
2026-11-01 15:15:08 +08:00
2026-11-01 15:15:08 +08:00
2026-10-10 10:22:59 +08:00
2026-11-15 12:14:48 +08:00
2026-11-12 12:28:56 +08:00
2026-10-29 23:44:56 +08:00
2026-11-01 15:15:08 +08:00
2026-10-27 10:02:22 +08:00
2026-10-27 10:02:22 +08:00
2026-10-11 03:42:35 +08:00
2026-10-11 03:42:35 +08:00
2026-11-01 14:50:45 +08:00
2026-11-16 17:59:26 +08:00
2026-10-31 11:03:35 +08:00
2026-10-31 11:03:35 +08:00
2026-11-15 03:50:46 +08:00
2026-11-15 03:50:46 +08:00
2026-11-18 23:50:16 +08:00
2026-11-01 07:39:08 +08:00
agent, gateway: Cursor Private Inference's row has an effort, which magpie's gateway asks its requests for ( #1003 , gjf7) — other agents' rows pick a reasoning effort that magpie writes into their config, but Cursor Private Inference reads only its base URL and key from the environment, and its app offers no Reasoning control for most of magpie's models, so there was no way to set one short of a routing group with a member fixed at a level, which the reporter used as a workaround. Its row now has an effort field like the others': the default (as Cursor asks) first, then every level the models it lists have (cursorLocalEfforts: their levels in MemberEfforts order, low/medium/high where a model reasons with levels unknown, none at all when nothing it lists reasons or it isn't connected). The pick is kept in magpie, settings' agentEfforts by agent (provider.AgentEffort / SetAgentEffort, a level of MemberEfforts or "" for none), and the gateway's candidate loop asks a cursor-local request for it with withFixedEffort, fitted to the model's levels and bounded by a group's, on a model that reasons (the new Provider.Thinks: levels, its list's Reasoning, or models.dev's). Precedence: a group member's fixed effort, then a :effort suffix, then a routing rule's turn pick, then the agent's pick, then the request's own; the pick wins over a level Cursor sent, as Cursor sends its own default as often as a choice, and Default hands the choice back to Cursor. A model that doesn't reason and every other agent's requests go as they came. The Settings page's save carries agentEfforts over as it does fastPicks (TestSettingsSaveKeepsWhatItDoesNotSend's fixture names it). In the window the field sits under "Settings" rather than "New sessions" for this agent alone, as it applies to every request from then on, not to what a session starts on; no new t() strings (Settings, effort and default are translated in zh, ja and de already). TestAgentEffortOnCursorLocal (Chat and Responses with and without a level of their own, Claude on Messages made to think, OpenCode's request untouched, a non-reasoning model untouched, a member fixed at low kept, the pick taken off) fails without the gateway change and passes; TestCursorLocalEffort covers the options (none with no reasoning model, the union of levels, the low/medium/high fallback, none while disconnected), Apply and a bad level refused; both pass -race (-count=20 gateway, -count=10 agent). cursor-local-effort.test.cjs (the window at 560px and the tray panel at 440px: the field under Settings, the slider's five stops with Default first, a pick posting the field, no sideways scroll) passes on Chromium and WebKit in en, zh, ja and de; claude-effort, subagent-effort, agent-field-names, agent-connect, agent-layout, agent-tweak-fold, agent-models, cursor-local-launch and i18n pass on both. go test -tags nogui ./internal/..., go vet, gofmt -l, linux (nogui) and windows builds pass. Not tried with the real Cursor Private Inference: whether it sends a reasoning level of its own on models it shows a Reasoning control for is unverified, which the precedence makes moot. docs/subsystems/gateway-routing.md and agent-wiring.md say it.
2026-10-06 17:29:28 +08:00
2026-11-12 23:01:29 +08:00
2026-11-14 14:02:49 +08:00
2026-11-17 21:43:12 +08:00
2026-11-17 21:43:12 +08:00
2026-11-14 12:21:48 +08:00
2026-11-16 18:14:38 +08:00
2026-11-16 18:14:38 +08:00
2026-10-10 20:00:38 +08:00
2026-11-13 18:50:25 +08:00
2026-11-01 11:53:58 +08:00
2026-11-07 13:26:51 +08:00
2026-11-01 07:06:19 +08:00
2026-11-01 07:06:19 +08:00
2026-11-15 12:14:48 +08:00
2026-10-20 02:49:50 +08:00
2026-11-17 18:59:48 +08:00
2026-11-15 12:14:48 +08:00
2026-11-10 20:16:44 +08:00
2026-11-15 12:14:48 +08:00
2026-11-15 12:14:48 +08:00
2026-11-15 12:14:48 +08:00
2026-11-15 12:14:48 +08:00
2026-11-12 17:03:53 +08:00
2026-10-12 20:18:31 +08:00
2026-10-12 20:18:31 +08:00
2026-10-26 10:19:29 +08:00
2026-11-17 02:19:48 +08:00
2026-10-30 03:09:29 +08:00
2026-10-20 00:18:51 +08:00
2026-11-17 20:21:21 +08:00
test: one list of the agent folders a sandbox clears, so no sandbox misses an agent (yetone, on #522 : A shared list of env vars for the other sandboxes would be a welcome follow-up) — every sandbox kept its own list of the variables that point at an agent's folder, and each had drifted: the gateway's cleared 5 of the 32 magpie reads, the provider package's 2, the tui's 10, the library's 20. A sandbox clearing 2 meets whatever Grok, Kimi, Hermes, MiniMax, Qoder or ZCode the developer has installed, which is how #522 came about — Qoder's two were in the library's list and in none of the four that failed. internal/agentenv is now the one list, and the 21 sandboxes that fake an environment with no agent in it clear it, each keeping beside it the variables that are not an agent's: APPDATA and LOCALAPPDATA, which a sandbox sets to a folder of its own rather than clearing, VISUAL and EDITOR. A name in the list is one magpie reads, and TestVarsAreRead walks the sources to say so, which is how two names a sandbox had been clearing turned out to be read by nothing at all — GEMINI_CLI_HOME and OPENCODE_CONFIG in internal/backup's, while OPENCODE_CONFIG_DIR, the one internal/agent reads (agents.go:545), was not in it. Where a sandbox set an agent's folder to a fixture of its own, the clearing now comes first, since a list of 32 wipes what a list of 5 left standing. Not converted: the omp tests' four variables, which are the ones omp's own lookup consults (a Pi fork) rather than every agent's, and the warm-up's Claude Code traffic flags, which are not folders — CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC stays out of the list for that reason too, its one test setting it on purpose. On Windows 11 the whole suite answers as it did before the change: 31 packages pass, and the same 15 tests in internal/library, internal/gateway and internal/agent fail for what they failed for before (symlinks this machine has no privilege for, and TestSuffixModesReachAgentFiles). go vet ./..., go build -tags nogui (windows, GOOS=linux, GOOS=darwin), and go vet -tags nogui for linux and darwin over every package touched pass. ( #543 )
2026-10-02 17:22:16 +08:00
2026-10-29 20:31:20 +08:00
2026-10-25 11:52:02 +08:00
2026-11-18 14:32:44 +08:00
2026-11-05 00:14:14 +08:00
2026-11-14 13:03:16 +08:00
test: one list of the agent folders a sandbox clears, so no sandbox misses an agent (yetone, on #522 : A shared list of env vars for the other sandboxes would be a welcome follow-up) — every sandbox kept its own list of the variables that point at an agent's folder, and each had drifted: the gateway's cleared 5 of the 32 magpie reads, the provider package's 2, the tui's 10, the library's 20. A sandbox clearing 2 meets whatever Grok, Kimi, Hermes, MiniMax, Qoder or ZCode the developer has installed, which is how #522 came about — Qoder's two were in the library's list and in none of the four that failed. internal/agentenv is now the one list, and the 21 sandboxes that fake an environment with no agent in it clear it, each keeping beside it the variables that are not an agent's: APPDATA and LOCALAPPDATA, which a sandbox sets to a folder of its own rather than clearing, VISUAL and EDITOR. A name in the list is one magpie reads, and TestVarsAreRead walks the sources to say so, which is how two names a sandbox had been clearing turned out to be read by nothing at all — GEMINI_CLI_HOME and OPENCODE_CONFIG in internal/backup's, while OPENCODE_CONFIG_DIR, the one internal/agent reads (agents.go:545), was not in it. Where a sandbox set an agent's folder to a fixture of its own, the clearing now comes first, since a list of 32 wipes what a list of 5 left standing. Not converted: the omp tests' four variables, which are the ones omp's own lookup consults (a Pi fork) rather than every agent's, and the warm-up's Claude Code traffic flags, which are not folders — CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC stays out of the list for that reason too, its one test setting it on purpose. On Windows 11 the whole suite answers as it did before the change: 31 packages pass, and the same 15 tests in internal/library, internal/gateway and internal/agent fail for what they failed for before (symlinks this machine has no privilege for, and TestSuffixModesReachAgentFiles). go vet ./..., go build -tags nogui (windows, GOOS=linux, GOOS=darwin), and go vet -tags nogui for linux and darwin over every package touched pass. ( #543 )
2026-10-02 17:22:16 +08:00
2026-11-12 03:13:50 +08:00
2026-11-10 02:23:23 +08:00
2026-11-12 03:13:50 +08:00
2026-10-28 10:52:46 +08:00
2026-11-14 13:03:16 +08:00
2026-11-06 11:53:33 +08:00
2026-11-10 12:54:39 +08:00
2026-11-17 22:34:51 +08:00
2026-11-10 04:33:22 +08:00
2026-10-16 19:30:42 +08:00
2026-10-30 04:48:17 +08:00
2026-11-10 18:58:03 +08:00
2026-11-14 12:21:48 +08:00
2026-11-12 05:30:42 +08:00
2026-10-28 09:29:44 +08:00
2026-10-13 09:09:37 +08:00
2026-11-15 06:06:25 +08:00
2026-11-01 05:00:54 +08:00
2026-11-01 06:16:35 +08:00
2026-10-14 19:06:50 +08:00
2026-10-06 02:30:31 +08:00
2026-11-02 20:04:32 +08:00
2026-11-18 16:04:56 +08:00
2026-11-13 17:36:40 +08:00
2026-11-13 17:36:40 +08:00
2026-11-02 05:22:12 +08:00
2026-11-10 11:17:07 +08:00
2026-10-17 23:11:00 +08:00
2026-10-21 07:23:23 +08:00
2026-11-06 19:48:21 +08:00
2026-11-14 14:02:49 +08:00
2026-10-13 06:43:00 +08:00
2026-11-01 07:15:05 +08:00
2026-10-26 01:59:38 +08:00
2026-11-01 07:15:05 +08:00
2026-11-14 03:17:11 +08:00
2026-11-09 23:25:19 +08:00
2026-11-14 03:17:11 +08:00
2026-11-18 23:39:19 +08:00
claude: an account's saved sign-in isn't overwritten with the account Claude Code was just switched to (netfishx on X: Pro, Max and Team accounts, "Keep Claude Code signed in to" on; after routing moved once or twice the Usage page showed one account's plan and allowance on another's card) — magpie switching Claude Code (to the kept account, or back to it) writes the new sign-in and profile, and a Claude Code started on the account before then writes that one's profile into ~/.claude.json: the credential was the Team's, the profile the Pro's. rememberLogins paired them, and upsertLogin, matching the Pro's record by the profile, wrote the Team's sign-in and plan into it ("pro@x.com · Team"). The Pro's runs, in its own config directory seeded from that record, then spent the Team account, and their rate_limit_events and plan showed on the Pro's card. upsertLogin now refuses a Claude sign-in another saved account holds (access or refresh token) while the record the profile names doesn't: the account the profile names holding it already, or Claude Code having renewed it, it is saved as before, so a record crossed by an earlier version doesn't hold the owner back (re-adding the crossed account puts its own sign-in back). TestClaudeUsageUnavailableAfterAccountSwitch switched by the profile alone; it now writes the new account's sign-in as a switch does. Not tried with real Claude accounts (one here). claude_crossed_test (switch to Team, the Pro's profile written after, switch back: each record and each saved account's directory keeps its own sign-in and plan; a crossed record doesn't stop the Team's own being saved, renewed or not) fails without the fix on the first case and passes with -race -count=5; go test ./internal/provider/ ./internal/gateway/, go vet, linux(nogui)/windows builds pass.
2026-10-06 13:39:48 +08:00
2026-11-14 13:08:40 +08:00
2026-11-19 16:20:34 +08:00
2026-11-13 23:42:57 +08:00
2026-11-14 14:02:49 +08:00
2026-10-07 03:00:47 +08:00
2026-10-31 18:18:37 +08:00
2026-11-16 10:09:47 +08:00
2026-10-11 23:37:34 +08:00
2026-10-13 09:50:28 +08:00
2026-10-31 23:35:27 +08:00
2026-11-10 18:21:32 +08:00
2026-11-12 08:27:46 +08:00
2026-11-14 13:08:40 +08:00
2026-11-02 05:38:11 +08:00
2026-10-21 19:00:33 +08:00
2026-11-10 13:04:57 +08:00
2026-11-02 11:48:26 +08:00
2026-10-30 22:05:12 +08:00
2026-10-30 22:05:12 +08:00
2026-11-16 14:19:19 +08:00
2026-10-25 04:12:06 +08:00
2026-11-11 12:26:43 +08:00
2026-11-17 11:42:27 +08:00
2026-11-04 17:12:50 +08:00
2026-11-05 06:43:51 +08:00
2026-11-10 05:03:10 +08:00
2026-10-08 06:20:03 +08:00
2026-11-17 11:42:27 +08:00
2026-11-17 11:42:27 +08:00
2026-11-15 14:30:16 +08:00
2026-10-20 20:23:55 +08:00
2026-10-05 20:42:48 +08:00
2026-11-17 12:17:10 +08:00
2026-11-17 12:17:10 +08:00
2026-11-02 14:51:16 +08:00
2026-11-04 16:47:45 +08:00
2026-11-13 23:42:57 +08:00
2026-11-11 14:08:18 +08:00
2026-11-06 06:30:23 +08:00
2026-11-01 15:16:00 +08:00
2026-10-13 16:11:42 +08:00
2026-11-06 12:09:21 +08:00
2026-10-11 23:37:34 +08:00
2026-11-11 09:04:52 +08:00
2026-11-04 16:47:45 +08:00
2026-11-06 06:30:23 +08:00
2026-11-13 23:42:57 +08:00
2026-10-12 23:12:20 +08:00
2026-11-13 05:12:30 +08:00
2026-10-22 02:25:34 +08:00
2026-10-22 02:25:34 +08:00
2026-10-17 23:11:00 +08:00
2026-11-10 14:27:21 +08:00
2026-11-01 13:32:30 +08:00
2026-11-07 15:27:29 +08:00
provider: Workers AI's decision models (Jev, Clef) are tested from their right-click as System One's are (ARNO on Discord: cloudflare-jev provider模型无法右击测试) — a model test of a cloudflare-jev provider said its models couldn't be tested, since the test sent System One's question as it is and Workers AI wants it wrapped. DecideAsk and DecideAnswer move from the gateway to the provider package, and AskSystemOne (which TestModels uses) now wraps the question for the provider's API and reads the answer out of Cloudflare's envelope, as routing's own decisions do: Jev is asked {model, input}, a Clef at /run/@cf/cloudflare/<clef> with its own model selector. TestCloudflareDecideModelsTested (an httptest Workers AI: both models pass, the bodies are each one's, a refused key fails) fails on the old code; TestModelTest's cf case now expects testable. go vet, builds (darwin, GOOS=linux nogui, GOOS=windows) and go test -tags nogui -count=1 ./... under a temp HOME pass (TestProvidersAnswerWhileListsComeIn flaked once, passes alone).
2026-10-04 22:22:23 +08:00
2026-10-10 21:49:14 +08:00
2026-11-06 19:50:18 +08:00
2026-11-07 15:27:29 +08:00
2026-10-05 21:56:59 +08:00
provider: a held All gives each caller its own providers, Keys and Headers included — 463462cd held All for a request and gave callers a slices.Clone of it, which shares each provider's slices and maps: SetKeyOn, RemoveKey and RenameKey change p.Keys[i] of what Find returns, so a key switched while a GUI GET or Codex's /models held the list changed every other caller's copy before it was saved. All now clones each provider (Was, Keys, Fallback, Models, Headers, AccountProxies, AccountModels, AccountCaps, Contexts, MaxConcurrency, ZhipuTeam; Account, the sign-in's runtime, stays shared). TestHeldAllUnshared.
2026-10-04 12:15:40 +08:00
2026-10-20 00:18:51 +08:00
2026-11-10 09:49:30 +08:00
2026-11-10 09:49:30 +08:00
2026-11-13 05:12:30 +08:00
2026-11-11 17:12:44 +08:00
2026-11-11 17:12:44 +08:00
2026-11-13 20:12:28 +08:00
2026-11-05 07:51:09 +08:00
2026-10-30 21:01:09 +08:00
2026-11-03 15:46:42 +08:00
2026-11-15 06:06:25 +08:00
2026-11-13 16:01:06 +08:00
2026-11-13 20:12:28 +08:00
2026-10-30 13:42:48 +08:00
2026-10-14 16:37:59 +08:00
2026-11-13 02:00:40 +08:00
2026-10-05 00:31:19 +08:00
2026-11-11 20:57:11 +08:00
2026-11-01 21:19:22 +08:00
2026-11-01 09:08:07 +08:00
2026-11-13 23:42:57 +08:00
2026-11-09 12:56:42 +08:00
2026-11-09 12:56:42 +08:00
2026-11-03 09:54:05 +08:00
2026-11-06 19:50:18 +08:00
2026-11-05 18:31:22 +08:00
2026-10-27 14:28:01 +08:00
2026-11-02 20:04:32 +08:00
2026-11-10 12:54:39 +08:00
2026-11-07 21:59:07 +08:00
2026-11-07 21:59:07 +08:00
2026-11-01 18:35:15 +08:00
2026-10-31 19:26:55 +08:00
2026-11-04 14:38:48 +08:00
2026-10-29 18:20:50 +08:00
2026-11-15 06:06:25 +08:00
2026-10-10 22:36:28 +08:00
2026-10-31 19:42:52 +08:00
2026-10-31 19:42:52 +08:00
2026-10-31 19:42:52 +08:00
2026-10-13 06:18:27 +08:00
2026-10-13 06:18:27 +08:00
2026-11-10 08:13:08 +08:00
2026-11-15 07:39:25 +08:00
2026-10-16 03:46:15 +08:00
2026-11-15 13:28:34 +08:00
2026-11-15 13:28:34 +08:00
2026-11-09 18:13:08 +08:00
2026-10-20 22:17:55 +08:00
2026-10-20 22:17:55 +08:00
2026-10-24 14:37:39 +08:00
2026-11-18 21:20:35 +08:00
2026-11-19 14:02:17 +08:00
2026-11-10 12:54:39 +08:00
2026-10-29 16:11:26 +08:00
2026-11-11 13:26:49 +08:00
2026-11-11 13:26:49 +08:00
2026-11-11 08:18:24 +08:00
2026-10-30 02:28:10 +08:00
2026-11-08 14:37:31 +08:00
2026-10-14 14:47:35 +08:00
2026-11-17 16:56:29 +08:00
2026-11-19 12:10:09 +08:00
2026-11-02 21:52:57 +08:00
2026-11-07 06:39:39 +08:00
2026-11-01 04:51:55 +08:00
2026-11-07 21:59:07 +08:00
2026-11-13 02:00:40 +08:00
2026-11-07 21:59:07 +08:00
2026-10-29 16:11:26 +08:00
2026-11-13 05:12:30 +08:00
2026-10-28 05:02:12 +08:00
2026-10-30 01:40:48 +08:00
2026-11-10 08:12:56 +08:00
2026-10-31 18:18:37 +08:00
2026-10-25 01:49:13 +08:00
2026-10-16 03:27:22 +08:00
2026-11-09 19:07:06 +08:00
2026-11-19 12:10:09 +08:00
2026-11-19 12:10:09 +08:00
2026-11-01 06:46:50 +08:00
2026-11-03 23:12:33 +08:00
2026-11-16 18:59:40 +08:00
routing: In order keeps sending to the first account until it is used up or refused, and a tick keeps Codex or Claude Code signed in to the first account ( #530 : an account In order at 98% of its week, its five hours untouched, stopped getting requests; #524 : "不允许切换首选账号的登录状态", the agent's own sign-in must stay on the account made first while the gateway still spreads requests) — since #209 magpie signs Codex and Claude Code in to the next ticked account with room once the one they are on reaches 98% (provider.SpentShare, the share Smart counts an account spent at), and since #408 back once the first is under 90%. The account the agent is signed in to is the one every routing tries first (the others stand behind it, AlsoOn), so In order the 98% switch put the second account ahead of the first, which is what #530 saw as the first being dropped; and the gateway counted an account at 98% as full whatever the routing, so a passing failure on it (a 502) rested it until its week renewed (39 hours there), not for the usual backoff. Now SpentShareOf gives 100 In order and 98 otherwise: the login switch moves the agent off an account In order only once a window of it is used up, the gateway's full (the rest after a failure, the quota rest's window) and affinity's "spent" go by the same share, and a vendor's 429 or usage-limit refusal still rests the account until it says it's back, as Smart does; a window used up is out, as before. Smart, In turn and Least used are unchanged. For #524 , the subscription keeps KeepLogin (providers.json, beside Routing, kept across an editor Save; POST provider/keeplogin, only for Codex and Claude Code): with it on, magpie never moves the agent off the account it is signed in to, however used up, while the gateway still routes requests through magpie to the other ticked accounts; a pending return to the first ( #408 ) still happens, that being the first. The tick sits at the foot of the Accounts list, under the rows where Make first is, shown only for Codex and Claude Code with more than one account on: "Keep {agent} signed in to the first account" / "{agent} 始终登录首选账号", its tooltip saying requests through magpie still go to the other ticked accounts. The Routing note follows it: kept, it says the agent stays signed in to the first whatever it has left; In order, that magpie moves it on once it is used up; otherwise the 98% wording as before. TestCodexLoginOrderedAndKept (In order stays at 98% and moves at 100%, back once renewed; Smart moves at 98%; kept, it stays at 100% and the setting survives a SetRouting; let go, it moves) and TestOrderedKeepsAnAccountAt98 (In order an account at 98% isn't full and a 502 rests it by backoff, Smart rests it to its week, a refusal rests it either way) fail without the change. keep-login.test.cjs (en and zh, Chromium and WebKit: the tick, its tooltip and Chinese strings, the post, the note when kept and In order, no tick with one account, the page doesn't move) fails without the UI and passes with it (12/12, Playwright 1.61); account-return, routing-account-order and account-arrange pass; click-scroll fails in Chromium here on origin/main too and passes in WebKit. No request was made to any vendor and no live agent config was touched. go vet ./internal/..., go build -tags nogui (darwin, GOOS=linux), GOOS=windows go build, go test -tags nogui ./... pass (TestClaudeRunEndsWhenTheClientLeaves, TestClaudeAccountNamedAsItsLogin and TestClaudeIdentityServedWhileAsked failed once under the full run and pass alone). Turned on after magpie has moved the agent off the first, it goes back to it at once rather than once that has room again.
2026-10-02 15:48:16 +08:00
2026-11-03 16:34:30 +08:00
2026-11-17 11:42:27 +08:00
2026-11-13 04:22:45 +08:00
2026-11-13 12:53:04 +08:00
2026-11-02 20:04:32 +08:00
2026-11-02 20:04:32 +08:00
2026-11-15 06:06:25 +08:00
2026-10-24 22:22:21 +08:00
2026-11-14 14:02:49 +08:00
2026-11-10 03:10:48 +08:00
2026-10-17 16:37:09 +08:00
2026-11-10 04:23:37 +08:00
2026-10-09 23:16:53 +08:00
2026-10-19 18:02:56 +08:00
2026-10-24 21:00:05 +08:00
2026-11-01 18:48:13 +08:00
2026-10-17 23:11:01 +08:00
2026-11-01 18:48:13 +08:00
2026-11-04 16:17:47 +08:00
2026-11-12 23:01:29 +08:00
2026-11-17 15:39:12 +08:00
2026-11-11 14:28:17 +08:00
2026-11-13 05:12:30 +08:00
2026-11-08 11:28:54 +08:00
2026-11-08 11:28:54 +08:00
2026-11-03 16:43:12 +08:00
2026-11-09 18:19:02 +08:00
provider: Copilot's Auto pick is served to a Student plan, its session read as VS Code's is (infinitr0us, #256 ) — /auto picked gpt-5.6-luna and Copilot refused magpie the request (The requested model is not supported.) while VS Code 1.140's Copilot Chat 0.68 was served it on the same account. magpie sent Auto's Copilot-Session-Token with no X-GitHub-Api-Version, which Copilot Chat sends on every request (2026-01-09), and Copilot reads the session only with one: without it the request is a model picked by hand, which the plan is refused for the pick. The editors' sign-in now sends Copilot's API that version and Copilot Chat 0.68 / VS Code 1.140.0 as its client (copilotAPIHeaders; GitHub's own API keeps no version); /models/session's 2025-10-01 is set after them. Copilot then holds the session to its pick (Requested model not available for session for another model, or a session let go): such a session is let go and the request sent with one asked anew, not noted as a refusal. With the owner's real Copilot account (Individual): without the version, the session token was ignored (any model served with it); with it, /auto's gpt-6-luna was served on /responses with its session through ResolveAuto and Sign, and another model with that session answered 400 not available for session; claude-haiku-4.5 on chat and messages, gpt-4.1 streamed, gemini-3.8-flash and gpt-5.4-mini on responses answered 200 with the new headers, and /models lists the same models. TestCopilotAutoPickServed fails on the old code (served gpt-4.1, the fallback). go vet, builds (darwin, GOOS=linux nogui, GOOS=windows) and go test -tags nogui -count=1 ./... under a temp HOME pass.
2026-10-05 07:55:27 +08:00
gateway, copilot: Auto's pick is asked as Copilot Chat asks it, and a refused pick is made again on its own API (infinitr0us, #256 ) — on a Student plan copilot/auto's pick from POST /models/session (gpt-5.4-mini, gpt-5.3-codex) was refused 400 "The requested model is not supported.", and the retry with the next pick, gpt-4.1, went to the same /responses and got "model gpt-4.1 is not supported via Responses API." (1) Copilot Chat 0.69 (now in microsoft/vscode extensions/copilot, automodeService.ts / AutoV2Fetcher) no longer asks /models/session: it POSTs {capiBase}/auto with the prompt at X-GitHub-Api-Version 2026-08-01 and gets session_token, expires_at and selected_model with its supported_endpoints; /models/session answers a fixed, stale list (asked with the owner's account it still offers gpt-5.3-codex/gpt-5.4-mini while /auto picks gpt-6-luna). magpie now asks /auto first, with the last user message as the prompt, takes the pick's endpoints for its API, keeps the session at most an hour, and falls back to /models/session and then the hand-picked model as before. (2) After a refusal the retry with Auto's next pick breaks out of forward's same-API loop when that model isn't served on it, and the candidates' loop makes the request again (at most twice) on the new model's own API; a held refusal is passed on only when no retry is left. TestCopilotAutoRepickTakesItsAPI (gpt-5.3-codex refused on /responses, gpt-4.1 refused there and served on chat) fails on the old code with infinitr0us's exact error; TestCopilotAutoAsksAuto (version, prompt, token, /models/session not asked) fails with a 502. With the owner's real Copilot account in a sandbox gateway, copilot/auto on /v1/chat/completions came back 200 from gpt-6-luna, picked by /auto and sent on /responses. go vet, builds (darwin, GOOS=linux nogui, GOOS=windows) and go test -tags nogui -count=1 ./... under a temp HOME pass.
2026-10-05 04:07:20 +08:00
2026-11-18 23:50:16 +08:00
2026-11-07 04:03:00 +08:00
2026-10-31 21:29:22 +08:00
2026-11-17 00:21:23 +08:00
2026-10-07 07:08:17 +08:00
2026-10-08 07:27:03 +08:00
2026-10-08 07:27:03 +08:00
2026-11-10 12:54:39 +08:00
2026-10-08 07:27:03 +08:00
2026-10-12 22:16:17 +08:00
2026-10-12 22:16:17 +08:00
2026-11-12 14:17:12 +08:00
2026-11-14 03:37:38 +08:00
2026-11-10 22:19:31 +08:00
gateway, copilot: Auto's pick is asked as Copilot Chat asks it, and a refused pick is made again on its own API (infinitr0us, #256 ) — on a Student plan copilot/auto's pick from POST /models/session (gpt-5.4-mini, gpt-5.3-codex) was refused 400 "The requested model is not supported.", and the retry with the next pick, gpt-4.1, went to the same /responses and got "model gpt-4.1 is not supported via Responses API." (1) Copilot Chat 0.69 (now in microsoft/vscode extensions/copilot, automodeService.ts / AutoV2Fetcher) no longer asks /models/session: it POSTs {capiBase}/auto with the prompt at X-GitHub-Api-Version 2026-08-01 and gets session_token, expires_at and selected_model with its supported_endpoints; /models/session answers a fixed, stale list (asked with the owner's account it still offers gpt-5.3-codex/gpt-5.4-mini while /auto picks gpt-6-luna). magpie now asks /auto first, with the last user message as the prompt, takes the pick's endpoints for its API, keeps the session at most an hour, and falls back to /models/session and then the hand-picked model as before. (2) After a refusal the retry with Auto's next pick breaks out of forward's same-API loop when that model isn't served on it, and the candidates' loop makes the request again (at most twice) on the new model's own API; a held refusal is passed on only when no retry is left. TestCopilotAutoRepickTakesItsAPI (gpt-5.3-codex refused on /responses, gpt-4.1 refused there and served on chat) fails on the old code with infinitr0us's exact error; TestCopilotAutoAsksAuto (version, prompt, token, /models/session not asked) fails with a 502. With the owner's real Copilot account in a sandbox gateway, copilot/auto on /v1/chat/completions came back 200 from gpt-6-luna, picked by /auto and sent on /responses. go vet, builds (darwin, GOOS=linux nogui, GOOS=windows) and go test -tags nogui -count=1 ./... under a temp HOME pass.
2026-10-05 04:07:20 +08:00
2026-11-10 12:54:39 +08:00
2026-10-14 09:29:59 +08:00
2026-11-06 19:50:18 +08:00
2026-10-08 11:17:39 +08:00
2026-10-07 07:08:17 +08:00
2026-11-17 00:21:23 +08:00
2026-10-09 23:25:04 +08:00
2026-11-15 12:14:48 +08:00
2026-10-15 23:08:04 +08:00
2026-10-15 23:08:04 +08:00
2026-11-07 08:07:58 +08:00
2026-10-27 11:27:43 +08:00
2026-10-27 11:27:43 +08:00
2026-11-10 12:54:39 +08:00
2026-11-10 18:07:27 +08:00
2026-11-10 12:54:39 +08:00
2026-10-17 23:11:00 +08:00
2026-11-04 22:45:40 +08:00
2026-10-11 03:28:48 +08:00
2026-10-27 14:57:16 +08:00
2026-11-10 12:54:39 +08:00
2026-11-09 13:05:00 +08:00
provider: Bailian's decision model as a routing preset, and System One for custom providers ( #647 , Aimer779: Alibaba Cloud Bailian's decision-model-preview speaks TypeSafe's System One at POST <root>/systemone, and magpie only took it from TypeSafe's Jev) — a new preset, Bailian Decision Model (qwen icon, decide-only like TypeSafe Jev), asks decision-model-preview at its plan's root: Workspace · Beijing / Workspace · Singapore ( https://{WorkspaceId} .<region>.maas.aliyuncs.com/compatible-mode/v1, the editor asks for the workspace ID and fills it in) or Token Plan · Beijing (token-plan.cn-beijing…, sk-sp- keys). Saving with the workspace still unfilled is refused, both in the editor and in provider.Add. A Bailian host has no /models for it, so its list is the one model, checked by a System One ask. A custom provider can now be a System One API: the CLI's decide=<root> (with models=… named anything, not only jev-*), workspace= and region=/plan= for a preset's plan; the editor's API seg has a fourth option, System One, whose Detect APIs posts a test question to <root>/systemone with the model typed, and a decide-only custom provider passes the "base URL is needed" check. A decide-only provider's first model is what it is asked as (Jev() no longer assumes jev-*), and its models stay routing groups' classifiers, never agents'. TestBailianDecisionPreset, TestCustomSystemOne, TestProviderSystemOne and TestProviderDecidePairs fail on the old code (undefined BailianDecision / DetectDecide, unknown decide=); internal/gui/tests/system-one.test.cjs (webkit, en/zh) covers the workspace, the Singapore and Token Plan plans, TypeSafe's unchanged editor and a custom System One detected and added. go vet, builds (darwin, GOOS=linux, GOOS=windows) and go test -tags nogui -count=1 ./... under a temp HOME pass but TestProvidersAnswerWhileListsComeIn, a timing test that passes alone. Not tried against a real Bailian key.
2026-10-03 15:21:15 +08:00
2026-10-05 17:38:03 +08:00
2026-11-01 01:55:09 +08:00
provider: a decision model has its window and whether it takes images, and the Gateway list shows them with a tooltip saying what it is (ARNO on Discord: decision模型也是需要拉取正确的上下文长度以及是否支持视觉功能的,在网关的模型列表里也应该显示这些信息以及相关的tooltip) — a decision provider's list (OpenRouter's output_modalities=decisions, Vercel's) is now read for its context_length / context_window and its input modalities; a model the list says nothing of (TypeSafe's, OpenCode Zen's, Workers AI's and Bailian's presets) takes its vendor's documented values: Jev 32,000 and text, Clef and Clef Flash 65,536 and images, Bailian's decision-model-preview 65,536 and text. A gateway's Jev among its chat models has them too; its chat models are left as they were. The Gateway list's row of a decision model shows its context and image chips as other models' do, and its tooltip begins Decision model: routing groups ask it, agents never see it (zh, ja, de) in place of Reasoning levels: none known. /v1/models still leaves decision models out: agents can't use them. TestDecideModelsKnowWindowAndImages and gateway-decide-info.test.cjs (WebKit, en and zh) fail on the old code; gateway-model-info passes on WebKit. go vet, builds (darwin, GOOS=linux nogui, GOOS=windows) and go test -tags nogui -count=1 ./... under a temp HOME pass (TestClientGoneRecordedAsCanceled, TestProvidersAnswerWhileListsComeIn and TestClaudeSignedOut flaked under load, pass alone).
2026-10-05 01:20:06 +08:00
2026-11-18 12:08:46 +08:00
2026-10-11 01:37:18 +08:00
2026-10-20 00:18:51 +08:00
system one: a decision provider's own models-list URL is asked as given, and its models can each be tested (Discord, ARNO: OpenRouter added as a System One provider with the list https://openrouter.ai/api/v1/models?limit=500&output_modalities=decisions didn't get its models, and a model typed in by hand couldn't be tested from its right-click) — a System One-only provider went to fetchDecide before its ModelsURL was read, so magpie asked …/models, which at OpenRouter lists the 466 chat models, and kept only Jev's ids of those: typesafe/jev-router alone. With a ModelsURL, fetchDecide now asks it as written, query included, and keeps every id in it, since that list is of decision models already (OpenRouter's answers 13: pplx-decider, liquid/d1, cloudflare/clef, respan/span-01, typesafe/jev-1.13 …). Without one nothing changes, Bailian included. Testing a decision model was refused outright (the chip's Test this model off, Test models leaving them out); where the API takes System One's own body (System One, TypeSafe, OpenRouter, Vercel's TypeSafe API) each model is now sent AskSystemOne's yes-or-no question, the one Detect already asks, and the editor offers Test for it (providerJSON.decideTest); Vercel's evaluation models and Workers AI, which wrap it their own way, still say why not. TestDecideModelsURLAndModelTest (a fake OpenRouter: the plain list, the decisions list, a hand-added model through /systemone, an unknown one failing) and TestModelTest's Workers AI case fail on the old code; model-test-why.test.cjs gains a hand-added System One model tested from its chip and Test models, and a Workers AI one still off (WebKit en and zh pass, with model-test-one and model-copy-id; Chromium doesn't launch in this sandbox). OpenRouter's live decisions list returns the 13 models. Not tried with an OpenRouter key: the /systemone question itself. go vet, builds (darwin, GOOS=linux, GOOS=windows) and go test -tags nogui -count=1 ./... under a temp HOME pass.
2026-10-04 18:40:13 +08:00
2026-10-31 14:51:11 +08:00
2026-10-15 02:00:44 +08:00
2026-11-15 02:19:18 +08:00
2026-10-28 15:46:26 +08:00
2026-11-18 12:08:46 +08:00
2026-11-18 12:08:46 +08:00
2026-10-15 03:34:59 +08:00
2026-11-10 11:05:59 +08:00
2026-11-08 11:28:54 +08:00
2026-11-12 19:48:02 +08:00
2026-10-17 23:11:01 +08:00
2026-10-07 03:00:47 +08:00
2026-10-17 23:11:01 +08:00
2026-10-17 23:11:01 +08:00
2026-11-14 12:25:28 +08:00
2026-11-13 12:26:43 +08:00
2026-11-14 12:25:28 +08:00
2026-10-13 05:34:13 +08:00
2026-11-18 12:35:06 +08:00
2026-10-17 23:11:00 +08:00
2026-11-18 14:32:44 +08:00
2026-10-17 23:11:01 +08:00
2026-11-04 14:28:02 +08:00
2026-11-10 11:05:59 +08:00
2026-11-16 09:28:28 +08:00
2026-10-14 07:51:41 +08:00
2026-10-21 07:32:11 +08:00
2026-10-14 16:11:58 +08:00
2026-11-15 12:14:48 +08:00
2026-10-30 22:48:39 +08:00
2026-11-15 19:06:45 +08:00
2026-10-17 23:11:00 +08:00
2026-11-10 12:54:39 +08:00
2026-10-14 15:17:06 +08:00
2026-11-02 05:38:10 +08:00
2026-10-17 23:11:00 +08:00
2026-10-12 19:02:25 +08:00
2026-10-16 19:14:52 +08:00
2026-11-18 21:20:35 +08:00
2026-10-31 19:54:28 +08:00
2026-11-10 12:54:39 +08:00
2026-10-17 23:11:00 +08:00
2026-10-17 23:11:00 +08:00
2026-10-17 23:11:01 +08:00
2026-11-15 12:14:48 +08:00
2026-11-10 22:26:38 +08:00
2026-11-15 12:14:48 +08:00
routing: a group in a group is routed by its own routing whatever the outer group's, and an account with five hours and no week is ranked by its five hours ( #576 : 只有五小时额度的账号在智能/重置前用完下是否合理;嵌套路由组时上层路由是否会干预下层) — a group routed other than In order (Smart, In turn, Least used, Weekly pace, Manual) put every account and key of every group in it into one pool and weighed them together, so A (Smart) holding A-1 and A-2 (each In order) ranked all five of their accounts and keys by Smart and A-1's and A-2's own In order did nothing; only an outer In order let each inner group route itself. planLevel now plans each group in the group by its own routing, whatever the outer's, and weighs it as one beside the outer group's own models' keys, by the first of its own order that isn't resting; where that lands, the inner group is tried whole in its own order, the trace in the same order. As for the five hours: Smart already ranked such an account (Claude Enterprise) by its five hours, the biggest window it has, so ahead of every week renewing later, but a five hours not started (no reset told) counted as a reset not known and went after every week; Allowance.Renewal now has a window not started that says its span renew that long from now, which Smart sorts by (the trace's renews unchanged). Weekly pace took an account with no week as a fresh week with the share used (100/168 per hour), so a week with 80% left and five days to go went ahead of an Enterprise account whose five hours were being lost; it now goes by what its five hours have left per hour until they renew, the whole span when not started, except where the reading may leave a week out — a Claude account only heard of from Claude Code's rate_limit_event, never read whole by /usage (QuotaWindow.partial, claudeUsageEntry.whole) — which keeps the fresh week. The group editor's Smart and Weekly pace hints and the trace's say how an account with five hours and no week is ranked, a hint under Routing says a group among the models keeps its own routing, and the docs (en, zh) say both. TestGroupInGroupKeepsItsOwnRouting (Outer rotating over two In order groups: b c d a without the change, c d a b with it), TestSmartFiveHoursAlone (a five hours not started went after a week in two days), TestFiveHoursAlone, TestClaudeHeardOnlyIsPartial; TestWeeklyPace and TestAllowancePace now pin the five hours alone. settings-groups, group-member-fast, group-found-off, routing-idle-frame pass in WebKit. go vet ./internal/..., go build -tags nogui (darwin, GOOS=linux), GOOS=windows go build, go test -tags nogui -count=1 ./... under a temp HOME pass (TestFXInState, TestProvidersAnswerWhileListsComeIn, TestUserPath, TestClaudeSignedOut flaked; the last passes 3/3 alone).
2026-10-02 23:05:15 +08:00
2026-11-12 11:38:52 +08:00
2026-10-09 14:08:07 +08:00
2026-10-09 14:08:07 +08:00
2026-10-26 23:27:55 +08:00
2026-11-12 01:56:26 +08:00
2026-10-10 10:22:59 +08:00
2026-11-11 20:10:42 +08:00
2026-11-15 12:14:48 +08:00
2026-11-11 20:10:42 +08:00
2026-10-20 20:08:25 +08:00
2026-11-04 17:11:55 +08:00
2026-11-17 20:06:48 +08:00
2026-11-17 20:06:48 +08:00
2026-11-15 01:25:49 +08:00
2026-11-11 16:42:53 +08:00
2026-11-15 12:14:48 +08:00
2026-10-27 15:21:10 +08:00
2026-11-15 12:14:48 +08:00
2026-11-15 12:14:48 +08:00
2026-11-11 08:31:55 +08:00
2026-10-17 23:11:01 +08:00
2026-10-17 23:11:01 +08:00
2026-11-10 12:54:39 +08:00
2026-11-13 21:44:24 +08:00
2026-11-01 06:21:39 +08:00
2026-10-17 23:11:01 +08:00
2026-11-11 19:42:17 +08:00
2026-11-06 19:07:15 +08:00
2026-10-10 19:46:58 +08:00
2026-11-08 02:08:30 +08:00
2026-11-09 23:08:13 +08:00
2026-11-01 08:29:21 +08:00
2026-11-04 23:28:23 +08:00
2026-10-27 01:55:25 +08:00
2026-11-04 03:56:38 +08:00
2026-11-06 10:44:24 +08:00
2026-11-10 03:48:24 +08:00
2026-11-10 17:56:42 +08:00
2026-10-20 00:18:51 +08:00
2026-10-04 19:27:51 +08:00
2026-11-13 12:53:04 +08:00
2026-11-13 05:12:30 +08:00
2026-10-19 15:19:31 +08:00
2026-10-11 21:24:10 +08:00
2026-11-12 01:56:26 +08:00
2026-11-13 05:12:30 +08:00
2026-11-10 02:29:21 +08:00
2026-11-17 20:21:21 +08:00
2026-11-19 17:34:30 +08:00
2026-11-12 01:56:26 +08:00
2026-10-28 18:52:39 +08:00
2026-11-10 08:38:12 +08:00
2026-11-07 20:19:50 +08:00
2026-11-07 20:19:50 +08:00
2026-11-18 21:20:35 +08:00
2026-11-18 21:20:35 +08:00
2026-10-20 00:18:51 +08:00
2026-10-20 00:18:51 +08:00
groups: a routing group's own id keeps a model's dots ( #968 ) — a group named GPT 6.1 Sol was group/gpt-6-1-sol, so a harness pricing or tuning by the model's name didn't know it (dbydd). provider.GroupSlug is Slug with the dots kept (a run of them one, none at the ends); SaveGroup, RenameGroup, the backup's import and export, the GUI's save and rename, the CLI's group add and edit, and the Routing editor (groupSlug) derive and check a group's id by it. The ids magpie finds stay Slug's (auto-gpt-6-1-sol), so no id saved before changes, and an agent sending the bare name gpt-6.1-sol reaches a group of that id first (GroupFor). groupid_test (ids, save, rename, bad ids, found ids unchanged) and gateway's TestDottedGroupID (group/gpt-6.1-sol and the bare name served, falling through as the group's order says; -race -count=5) pass and fail without the fix; group-id-dots (hint and Add's body, groupSlug cases) passes in Chromium and WebKit, en and zh, and fails without it. The other group-* GUI tests, agent-model-groups and i18n-keys pass, except group-arrange, whose Chromium cases fail the same on origin/main (mouse.move: Invalid parameters at line 165). go test . provider/gui/gateway/agent/tui, vet, linux/windows builds pass.
2026-10-06 12:32:16 +08:00
2026-10-14 18:14:17 +08:00
2026-11-17 02:19:48 +08:00
2026-11-17 02:19:48 +08:00
2026-10-03 04:57:01 +08:00
2026-10-16 20:03:29 +08:00
2026-10-09 11:10:12 +08:00
2026-10-15 23:08:02 +08:00
2026-11-10 01:08:04 +08:00
2026-11-13 05:12:30 +08:00
2026-10-25 13:32:12 +08:00
2026-11-13 05:12:30 +08:00
2026-11-10 22:57:20 +08:00
2026-10-17 10:04:39 +08:00
2026-10-25 18:18:02 +08:00
2026-11-10 22:57:20 +08:00
2026-11-11 17:53:05 +08:00
2026-11-17 22:00:51 +08:00
gui, provider, gateway: a group's models are dragged into order, a group can be switched off, several models are added at once, and a page shows a scrollbar on the Mac (PAMI on Discord) — in a group's editor a model went up one step a click and only up; its number is now a handle (grip on hover) that drags it, Alt+↑/↓ moves it from the keyboard, and Up and Down stay beside it; a pattern's members follow the named ones. A group of the user's has a switch on its card: off, agents aren't offered it, a request to it is turned away with 404 "the routing group … is switched off", a group that has it in it goes on to its next member, a save from the editor leaves it off, and one that classifies for another can't be switched off (a found group is removed instead, as before). Each member already had its own switch. The editor's Add a model picker stays open: each model clicked is added and ticked, clicked again taken out, and each says the other groups it is in. Pages, dialogs and framed editors had their scrollbar hidden everywhere (width 0); on the Mac they now have a thin 8px thumb, elsewhere the 10px one other lists have. TestSwitchGroup, TestSwitchedOffGroup, group-member-drag, group-switch-add-many and view-scrollbar (WebKit, en and zh) fail without the change. go vet, go build (darwin, GOOS=linux nogui, GOOS=windows) and go test -tags nogui ./... under a temp HOME pass (TestProvidersAnswerWhileListsComeIn is flaky on origin/main as well).
2026-10-05 16:46:59 +08:00
2026-11-13 05:12:30 +08:00
2026-11-19 15:35:54 +08:00
2026-11-19 15:35:54 +08:00
2026-10-13 13:10:30 +08:00
2026-10-13 13:10:30 +08:00
2026-11-15 01:32:07 +08:00
2026-11-15 01:32:07 +08:00
2026-11-11 14:13:01 +08:00
2026-11-10 02:16:41 +08:00
2026-11-04 17:06:31 +08:00
2026-11-11 14:43:25 +08:00
2026-10-14 15:30:43 +08:00
2026-11-13 18:59:59 +08:00
2026-11-06 15:24:18 +08:00
2026-11-13 00:11:37 +08:00
2026-10-11 01:28:22 +08:00
2026-10-26 17:05:16 +08:00
2026-10-26 17:05:16 +08:00
2026-11-08 22:55:09 +08:00
2026-11-10 12:54:39 +08:00
2026-11-06 08:01:14 +08:00
2026-11-11 21:59:36 +08:00
2026-11-13 12:38:22 +08:00
2026-10-13 16:00:31 +08:00
2026-11-16 17:59:26 +08:00
2026-11-16 17:59:26 +08:00
2026-10-10 22:36:28 +08:00
2026-10-28 16:59:10 +08:00
2026-10-28 03:10:46 +08:00
2026-11-12 01:20:52 +08:00
2026-10-05 11:28:51 +08:00
2026-10-10 23:17:22 +08:00
2026-10-17 11:54:55 +08:00
2026-11-16 17:59:26 +08:00
2026-11-08 18:37:41 +08:00
2026-11-18 16:52:58 +08:00
2026-10-15 23:08:05 +08:00
2026-11-13 14:30:19 +08:00
2026-10-19 00:19:53 +08:00
2026-10-08 08:58:15 +08:00
library: RTK says when rtk isn't on the PATH the agents get, and puts it there when asked ( #601 , Moody-Sin: magpie好像没有正确安装RTK — Pi said "RTK disabled: rtk binary not found in PATH" while the Library showed RTK working) — rtk's hooks run it by name (Pi's extension probes rtk --version and turns itself off when that fails; Claude Code's and Codex's are rtk hook …; the commands they rewrite to are rtk git status and so on), but magpie looked for rtk in more places than an agent's PATH: ~/.local/bin and ~/.cargo/bin, which the app adds to its own PATH whether the user's shell has them or not (rtk's own install.sh puts it in ~/.local/bin and only warns when that isn't on PATH), and WinGet\Links on Windows, which winget doesn't always link into. So rtk was "installed", the agents were switched on with it by its whole path, and none of them could run it. Now the PATH a terminal opened now has is read — the login shell's (proc.LoginPath, the one UserPath already asks for, kept a minute) or on Windows the registry's (moved from provider's registryPath) — and when rtk isn't in it the RTK card says so, with what Put RTK on PATH will do, and each agent that has rtk is tagged Not on PATH (不在 PATH 中). Put RTK on PATH (magpie library rtk path) links rtk into the first of ~/.local/bin, ~/bin, /opt/homebrew/bin, /usr/local/bin, linuxbrew's bin, ~/.cargo/bin that is on that PATH and writable, or on Windows adds rtk's own folder to the user's PATH in the registry (a link needs Developer Mode, and a copy is left behind when winget upgrades rtk; winget's package folder doesn't change across upgrades) and tells Explorer; with no such folder it says which folder to add to PATH in the shell profile — shell profiles are never edited. rtk is also found in winget's package folder (WinGet\Packages\rtk-ai.rtk_*), and rtk's script upgrades a linked rtk where the link points, not over the link. TestRTKOffPath and library-rtk-path.test.cjs (en, zh) fail without the change. go vet ./internal/..., go build -tags nogui (darwin, GOOS=linux), GOOS=windows go build and vet, go test -tags nogui -count=1 ./... under a temp HOME pass but the known TestFXInState flake. The Windows registry path is built, not run on Windows.
2026-10-03 02:38:17 +08:00
2026-11-15 14:52:48 +08:00
2026-11-18 16:04:56 +08:00
2026-11-04 17:06:31 +08:00
2026-11-18 23:21:28 +08:00
2026-11-04 21:21:32 +08:00
2026-11-10 12:54:39 +08:00
2026-11-06 18:48:50 +08:00
2026-10-30 02:09:54 +08:00
2026-11-16 10:09:47 +08:00
2026-11-01 07:06:19 +08:00
2026-11-16 01:54:28 +08:00
2026-11-13 12:18:23 +08:00
2026-11-13 12:18:23 +08:00
2026-11-09 04:06:39 +08:00
2026-11-05 00:11:02 +08:00
2026-11-02 14:30:45 +08:00
2026-11-05 00:11:02 +08:00
2026-11-05 11:46:26 +08:00
2026-10-26 20:37:07 +08:00
2026-11-06 10:17:08 +08:00
2026-10-16 06:32:41 +08:00
2026-11-13 16:31:24 +08:00
2026-11-13 16:31:24 +08:00
2026-10-13 07:30:06 +08:00
2026-11-12 18:31:50 +08:00
2026-11-12 18:31:50 +08:00
2026-10-16 00:16:43 +08:00
2026-11-14 16:34:10 +08:00
2026-10-05 21:44:15 +08:00
2026-11-04 21:21:32 +08:00
2026-10-16 08:43:02 +08:00
2026-11-14 16:34:10 +08:00
2026-10-13 13:42:56 +08:00
2026-11-06 19:50:18 +08:00
2026-11-01 11:19:26 +08:00
2026-11-11 20:52:43 +08:00
2026-11-05 16:22:31 +08:00
2026-11-05 16:22:31 +08:00
2026-10-17 23:11:00 +08:00
2026-10-17 23:11:00 +08:00
2026-10-14 09:29:59 +08:00
2026-10-17 23:11:00 +08:00
2026-11-01 11:30:12 +08:00
2026-11-13 02:00:40 +08:00
2026-11-06 12:48:51 +08:00
2026-10-12 22:33:07 +08:00
2026-10-20 20:23:55 +08:00
2026-11-01 00:43:15 +08:00
gui: a provider's editor has a Max output beside its Context window, so a model whose reply limit magpie has wrong can be set right there (ARNO on Discord: 上下文长度有问题还可以手动覆盖,maxtoken错了如何解决呢) — the reply limits the user sets (ModelOutputs, "provider/model" or "provider/*") could only be set with magpie model output; the editor now shows them in a Max output box written as the Context window box is (32k for all its models, or gpt-6=128k, comma separated), and a Save sends them: the limits not in the box are dropped, a model the provider doesn't list is refused, and the catalog is touched so /v1/models, the agents' max tokens and the gateway's per-member clamp take the new limit. zh and ja strings added. TestModelOutputsSetFromTheEditor, TestProviderSaveOutputs and provider-max-output.test.cjs (WebKit, en and zh) fail on the old code. go vet, builds (darwin, GOOS=linux nogui, GOOS=windows) and go test -tags nogui -count=1 ./... under a temp HOME pass (TestClientGoneRecordedAsCanceled flaked once under load, passes alone).
2026-10-04 23:37:35 +08:00
2026-10-23 03:35:27 +08:00
2026-10-10 01:30:29 +08:00
2026-10-05 17:19:42 +08:00
2026-11-08 11:28:54 +08:00
2026-10-16 18:51:40 +08:00
2026-10-05 21:48:01 +08:00
2026-11-01 04:16:57 +08:00
2026-11-01 03:05:59 +08:00
2026-10-13 13:47:59 +08:00
2026-11-12 19:48:02 +08:00
2026-11-15 12:14:48 +08:00
2026-11-17 15:39:12 +08:00
2026-11-11 04:07:09 +08:00
2026-11-11 05:30:02 +08:00
2026-10-10 15:04:23 +08:00
2026-11-01 15:07:37 +08:00
2026-10-13 18:16:03 +08:00
2026-11-16 15:58:58 +08:00
2026-11-16 15:58:58 +08:00
2026-11-02 19:41:05 +08:00
2026-10-13 16:34:23 +08:00
2026-11-11 02:40:18 +08:00
2026-10-11 23:37:34 +08:00
2026-11-15 06:06:25 +08:00
2026-10-20 20:23:55 +08:00
2026-11-04 17:06:31 +08:00
gateway: a gateway key can be held to some accounts ( #905 , LCorleone) — a key could burn any account a provider had: two coding plans of one vendor, and a key given to someone had them both. A key now keeps an optional list of accounts and keys (caller-keys.json "accounts", none = every account, so older files read as before): "<provider>/<account>", an account by its stable id — the login's, set once it is written and kept through renames (logins.json's savedLogin id, written by every write and stood in for by one made of the name until then, so an entry made before stands), a key by its fingerprint — every one a provider has when the list is set, and one gone later (a key rotated, an account signed out) kept as it is, matching nothing, holding the key closer, never wider. The command line and the menu name an account by who is signed in and keep its id. Routing holds a plan to the key's accounts beside its models: a candidate whose account the key may not use is left out — through a routing group the key names no less, for naming a group is not naming its accounts — the plan's order keeping step and its left-out list marking what the key held out (Weighed's held); magpie's own calls for the key — a web search, a picture described, a Codex title — are of the models the user picked, so the models don't hold them, but their spend lands on an account all the same, and the accounts hold them too. When every account or key a model has is one the key may not use, the request is refused with a 403 in the API's own error shape naming the model and the accounts the key may use, logged as a rejected call: after a usage cap's 429 and before an account barred for the model's, itself before the no-member 404. /v1/models and the Anthropic and Gemini lists show the key only the models an account or key it may use serves (a provider's account set not to serve one, #474 , is none of the key's); a provider with no account and no key (a local ollama) is one the key names no account of — its models stay listed and its asks pass — while an entry kept after its provider lost its last account or key serves none, holding the key closer. The embeddings, images and videos endpoints hold their candidate to the key's accounts the same way, and counting tokens counts on those alone (the local estimate where it may use none). System One asks its decision model of an account or key the key may use — and sends on that key, of those in use, not the provider's first, which a key held to a later one was spent on; the videos and images keyed paths send on one the key may use too, held to a later key no longer refused for the first alone. Set it in the app's menu the models are picked in — the accounts after the models, an account by who is signed in with their plan in the note, a key by its fingerprint, what the CLI kept that no provider has now kept as "Not signed in now" — or magpie gateway-key accounts <id> codex/me@example.com openai/<key id> (all takes it off); gateway-key list has an ACCOUNTS column. en/zh/ja/de, the German "{n} accounts" main already had left to it rather than written twice. The images API's fan-out over a subscription's accounts is held to the key's accounts as one: one of the key's whose plan refuses to draw no longer hands the pen to an account it may not use, and the second in the order, when it is the key's, draws what the first may not (drawOnAccounts filters the candidates, the account pinned to with the account header told plainly when the key may not use it). The Routing view's left-out list says an account the key held out for what it is, not that its plan lacks the model, in Chinese, Japanese and German too; the key's badge names its accounts by who is signed in, not by the stable ids it keeps. ( #932 )
2026-10-06 10:51:50 +08:00
2026-10-08 08:23:20 +08:00
2026-11-12 17:27:33 +08:00
gui: a Usage card has a refresh of its own, left of its "Updated" time, that reads that card alone (Hu9956, #840 : 在更新时间左侧加一个刷新按钮,鼠标悬停在套餐卡片上时显示,可以单独刷新某个套餐的用量,不用刷新全部) — only the page's Refresh read the allowances again, every card at once. Each card now has a ↻ that opens left of "Updated 3 min ago" (or of a failed reading's reason, or under a balance) as the card is hovered; at rest the line starts where the card's others do. A click POSTs /api/usage/quotas/refresh?provider=&user=: provider.RefreshUsage reads that subscription account, plan key or balance key again (a Claude account by running Claude Code's own /usage, as the page's Refresh does) and puts it in place in the caches, the other cards not asked and kept as they were read; the button turns while it reads. zh, ja, de strings. TestRefreshOneCard (two keys of one relay and another provider: a refresh asks that key alone, the others keep their figures) and the plugin case in TestPluginUsage (one account of three read) fail on the old code; usage-card-refresh.test.cjs (WebKit, en and zh: aligned at rest, left of the time when hovered, a click reads that card alone, turns meanwhile, doesn't scroll; a failed card's own button) fails on the old code. usage-quota-head, usage-checkin, click-scroll, quota-read-at, balance-parts, claude-usage-asked, gui-ja and gui-de pass on WebKit. go vet, builds (darwin, GOOS=linux nogui, GOOS=windows) and go test -tags nogui -count=1 ./... under a temp HOME pass.
2026-10-05 08:59:47 +08:00
2026-11-10 09:49:30 +08:00
2026-11-01 13:32:30 +08:00
2026-10-06 00:37:50 +08:00
2026-11-13 02:00:40 +08:00
2026-11-15 12:14:48 +08:00
2026-11-15 12:14:48 +08:00
2026-11-18 17:43:17 +08:00
2026-11-02 13:44:11 +08:00
2026-11-10 02:10:10 +08:00
2026-10-30 15:42:29 +08:00
2026-11-01 04:53:36 +08:00
gateway, provider: a Claude model is asked on Anthropic's Messages where its provider has an Anthropic URL, not Chat ( #997 , wlj521: 自动好像只会走chat; ReturnTrue on Discord: a relay with an OpenAI and an Anthropic URL had 0% cache hits from Claude models until the OpenAI URL was left empty) — every API's order was Chat first. A request on an API the provider serves was already relayed as it is (a fake relay recording each path: Messages → /v1/messages, Responses → /v1/responses, Chat → /v1/chat/completions, for GLM, GPT and Claude alike, with one URL for three APIs and with an OpenAI URL plus an Anthropic one), but two places fell back to Chat for Claude: usable(), which a request on an API the provider lacks is translated to (Codex's Responses for a Claude model at a Chat+Anthropic relay went to /v1/chat/completions, losing the cache breakpoints the translation to Messages adds), and Provider.Native, the API Pi, omp and droid are wired to ask each model on (route.go's magpieModels), which named Chat for every Claude model at such a relay, so those agents spoke Chat and their cache_control never reached the relay. MessagesFirst (a Claude model by name, where the provider has an Anthropic URL) now puts Messages first in both, beside ResponsesFirst for OpenAI's models. A model the user set "Asked on" for, or one the vendor's list names its APIs for, is as before; GPT and other models keep Chat first; Copilot's Claude, which its list serves on Chat and Messages, is now native on Messages (TestNative updated), the API Claude Code already reaches it on. Not reproduced: a Claude Code /v1/messages request translated to Chat — with either relay layout, a list as new-api answers it, and a key per protocol, it went to /v1/messages with cache_control kept; ReturnTrue is asked for the request's Protocol row. TestClaudeGoesOnMessagesWhereTheRelayHasThem and TestNativeClaudeIsMessagesWhereServed fail without the change and pass; TestAutoRelaysOnTheClientsOwnAPI guards the pass-through for the three APIs; -race -count=5 on them. go test ./internal/gateway ./internal/provider ./internal/catalog ./internal/agent, go vet, darwin, linux (nogui) and windows builds pass. docs/subsystems/gateway-routing.md says the order.
2026-10-06 15:33:16 +08:00
2026-11-10 20:16:44 +08:00
2026-11-19 14:45:14 +08:00
2026-10-13 09:50:57 +08:00
2026-11-19 17:03:24 +08:00
2026-10-16 22:58:41 +08:00
2026-11-19 17:25:39 +08:00
2026-11-19 16:20:34 +08:00
2026-10-09 01:55:07 +08:00
2026-10-25 17:42:37 +08:00
2026-10-17 23:11:00 +08:00
docs: every built-in subscription a plugin serves once moved says so in its code, and AGENTS.md says where a fix for it goes (user: 对内置的订阅 provider 在代码层面和文档层面加上注释,防止又有别的 agent 在改内置订阅 provider 的代码而不知道生效的其实是对应的插件代码) — a moved Cursor, Devin, Grok, Command Code plan, Kiro, Zed, Qoder, Factory, Xiaomi MiMo, ZCode or WorkBuddy (provider.Moved; since v0.1.642 also the default for a new sign-in, provider.Adopt) is signed in, listed, requested and metered by its @magpie-community plugin, and none of the built-in's code in internal/provider/<name>*.go, internal/gateway/<name>.go, internal/zed or internal/qoder serves it; a fix made there alone never reaches those users. Each of those files now opens with a PLUGIN-SERVED notice naming the subscription's id, its plugin package, where the plugin lives (magpie-community/plugins, packages/<name>) and the mover whose min to raise so moved users get the fixed plugin (keepMovedCurrent); Qoder's adds that Qoder CN isn't moved and still runs there. AGENTS.md (CLAUDE.md imports it) lists the moved built-ins with their packages and movers, how to tell whether a user's is moved (move.state "plugin", onPlugins), the order a fix goes in (the plugin, publish, raise min, the built-in only for those not moved), the magpie code that does run for a moved one (internal/plugin, plugins.go, plugin_usage.go, pluginsignin.go, migrate*.go, app.js's subOf/pluginSubs/startPluginSignIn), and the parity tests. movers in migrate.go and SUBS in app.js point there too. TestMovedBuiltinsSayTheirPlugin fails for a mover whose code carries no PLUGIN-SERVED notice naming its id and package (it failed while a wrapped package name was split). Comments and docs only, no behaviour changed. go vet ./internal/..., go build -tags nogui (darwin, GOOS=linux), GOOS=windows go build, go test -tags nogui -count=1 ./... under a temp HOME pass (TestProvidersAnswerWhileListsComeIn and TestClaudeSignedOut failed once on their timing under load, pass alone; untouched).
2026-10-02 19:37:02 +08:00
2026-11-01 18:28:31 +08:00
2026-11-16 19:04:01 +08:00
2026-10-17 23:11:00 +08:00
2026-10-26 16:27:06 +08:00
2026-11-17 00:39:50 +08:00
2026-10-26 16:13:57 +08:00
2026-10-17 23:11:00 +08:00
2026-11-16 03:00:18 +08:00
2026-11-19 15:46:39 +08:00
2026-11-17 01:48:56 +08:00
2026-11-05 01:00:28 +08:00
2026-11-19 16:20:34 +08:00
2026-10-17 23:11:00 +08:00
provider: MiniMax Code's international site is checked in daily too (ARNO on Discord: MiniMax Code 国际版能否也自动签到) — v0.1.910's check-in asked only agent.minimax.cn, for the plugin's minimax-code accounts, since the international site's wasn't known. It is the same: agent.minimax.io's page has the Daily check-in panel (signin.menu_label in its bundle), and its /minimax-cloud/api/v1/signin/status and /claim answer as the China site's do — {"error":"invalid signature"} unsigned, 401 signed with MiniMax Code's page secret and no sign-in, where a path that isn't there is a 404 page. The check-in now takes the accounts of both of the plugin's providers, minimax-code and minimax-code-global, each asked at its own site through the plugin's fetch, and keeps each apart in minimax-checkin.json (site|uid), its result shown on that site's card. TestMiniMaxGlobalCheckin (a global account claimed at its site, a China one with the same uid asked only at the China site, keys apart) fails on the old code; TestMiniMaxCheckin and TestMiniMaxClaimAlready pass. Not tried with a real international account (none here). go vet, builds (darwin, GOOS=linux nogui, GOOS=windows) and go test -tags nogui -count=1 ./... under a temp HOME pass.
2026-10-05 04:03:15 +08:00
2026-11-14 14:02:49 +08:00
2026-11-03 16:34:30 +08:00
2026-11-06 13:52:28 +08:00
2026-11-06 13:52:28 +08:00
2026-10-13 16:34:59 +08:00
2026-11-11 08:31:55 +08:00
2026-10-13 16:34:59 +08:00
provider: OpenCode Zen's Jev routes groups on System One, and a preset's or a subscription's model can be asked on the API picked (Discord, 01huadalang: Zen's "Jev free" was asked as a chat model and failed with no way to switch; OpenCode Go's DeepSeek V4.1 Flash answers on Responses too, and magpie asked it on chat alone, while a custom provider could pick) — Jev isn't an Anthropic model: OpenCode's docs (anomalyco/opencode packages/web/src/content/docs/zen.mdx) list jev-1.13 and jev-1.13-free at https://opencode.ai/zen/v1/systemone alone, and models.dev has no entry for it; asked keyless, Zen answers it there and errors on chat, messages and responses. The opencode-zen preset now has Decide ( https://opencode.ai/zen/v1 ), making Zen a mixed decision provider ( #609 ): Jev is left out of agents' models and is a routing groups' classifier, the free one when Zen is used without a key; a Zen provider saved before gets Decide back in Normalize. Zen's and Go's other models already take their API from models.dev's npm package (catalog.APIOf), which matches the docs. The per-model API custom providers have (settings ModelAPIs, the gateway's Provider.APIs) now reaches presets and subscriptions with more than one API: ModelAPI no longer refuses an account, APIs() is the pick or ListedAPIs (what the vendor's list says, sent to the editor as a model's auto); the editor's model chip has "Asked on: Auto…" on its right-click, opening the app's menu (Auto says what the vendor's list says, then each API the provider has), tagging the chip with the pick, staged and sent with Save as modelPrefs, the page not moved; Names & levels' API row shows for subscriptions too. English and Chinese. TestOpenCodeZenJevDecides and TestPresetAndSubscriptionModelAPI fail on the old code and pass; internal/gui/tests/model-api-preset.test.cjs (WebKit, en/zh) covers the menu, no <select>, no left-border accent, no scroll, the Save's modelPrefs, a subscription's tag and a single-API provider with nothing to pick, and fails on the old assets. A sandbox magpie (keyless Zen) answered POST /v1/systemone with opencode-zen/jev-1.13-free (noul 0.44) and chat on mimo-v2.6-flash-free, Jev not in /v1/models. go vet, builds (darwin, GOOS=linux, GOOS=windows) and go test -tags nogui -count=1 ./... under a temp HOME pass but TestUserPath, a timing test that passes alone; provider-levels-scroll.test.cjs fails the same on origin/main. Not tried with a paid Zen/Go key.
2026-10-03 16:03:32 +08:00
2026-11-08 11:28:54 +08:00
2026-11-08 11:28:54 +08:00
2026-11-15 12:14:48 +08:00
2026-11-01 04:05:38 +08:00
2026-11-01 07:21:07 +08:00
2026-11-14 14:02:49 +08:00
2026-11-03 18:34:19 +08:00
2026-10-12 19:14:54 +08:00
2026-11-08 11:28:54 +08:00
2026-11-08 11:28:54 +08:00
2026-11-15 12:14:48 +08:00
2026-11-14 14:02:49 +08:00
2026-10-11 20:09:14 +08:00
2026-10-17 23:11:00 +08:00
2026-11-15 09:02:39 +08:00
2026-11-18 19:59:27 +08:00
2026-11-13 05:12:30 +08:00
2026-10-24 05:31:59 +08:00
2026-11-13 16:10:47 +08:00
test: one list of the agent folders a sandbox clears, so no sandbox misses an agent (yetone, on #522 : A shared list of env vars for the other sandboxes would be a welcome follow-up) — every sandbox kept its own list of the variables that point at an agent's folder, and each had drifted: the gateway's cleared 5 of the 32 magpie reads, the provider package's 2, the tui's 10, the library's 20. A sandbox clearing 2 meets whatever Grok, Kimi, Hermes, MiniMax, Qoder or ZCode the developer has installed, which is how #522 came about — Qoder's two were in the library's list and in none of the four that failed. internal/agentenv is now the one list, and the 21 sandboxes that fake an environment with no agent in it clear it, each keeping beside it the variables that are not an agent's: APPDATA and LOCALAPPDATA, which a sandbox sets to a folder of its own rather than clearing, VISUAL and EDITOR. A name in the list is one magpie reads, and TestVarsAreRead walks the sources to say so, which is how two names a sandbox had been clearing turned out to be read by nothing at all — GEMINI_CLI_HOME and OPENCODE_CONFIG in internal/backup's, while OPENCODE_CONFIG_DIR, the one internal/agent reads (agents.go:545), was not in it. Where a sandbox set an agent's folder to a fixture of its own, the clearing now comes first, since a list of 32 wipes what a list of 5 left standing. Not converted: the omp tests' four variables, which are the ones omp's own lookup consults (a Pi fork) rather than every agent's, and the warm-up's Claude Code traffic flags, which are not folders — CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC stays out of the list for that reason too, its one test setting it on purpose. On Windows 11 the whole suite answers as it did before the change: 31 packages pass, and the same 15 tests in internal/library, internal/gateway and internal/agent fail for what they failed for before (symlinks this machine has no privilege for, and TestSuffixModesReachAgentFiles). go vet ./..., go build -tags nogui (windows, GOOS=linux, GOOS=darwin), and go vet -tags nogui for linux and darwin over every package touched pass. ( #543 )
2026-10-02 17:22:16 +08:00
2026-11-10 07:25:54 +08:00
2026-11-12 01:56:26 +08:00
2026-11-12 01:56:26 +08:00
2026-11-08 02:08:08 +08:00
2026-10-28 07:10:09 +08:00
2026-10-28 07:10:09 +08:00
2026-11-15 02:19:18 +08:00
2026-11-15 11:50:15 +08:00
2026-10-15 05:20:17 +08:00
2026-10-15 05:20:17 +08:00
2026-11-19 17:28:26 +08:00
2026-10-31 10:08:40 +08:00
2026-10-12 23:45:06 +08:00
2026-11-01 04:49:32 +08:00
2026-11-10 07:18:50 +08:00
2026-10-14 04:40:21 +08:00
2026-11-05 16:22:31 +08:00
2026-11-02 14:30:45 +08:00
2026-11-13 16:56:19 +08:00
2026-11-13 16:56:19 +08:00
2026-11-12 22:27:39 +08:00
2026-11-12 22:27:39 +08:00
2026-10-20 01:25:47 +08:00
2026-10-20 01:25:47 +08:00
2026-10-13 13:03:26 +08:00
2026-10-13 13:03:26 +08:00
2026-10-12 00:37:27 +08:00
2026-10-12 00:37:27 +08:00
providers: oMLX is a local-server preset — its :8000 server speaks Chat, Responses and Anthropic Messages and asks no key on a loopback bind, so it joins Ollama and LM Studio in the add sheet's On this machine section instead of being typed as a custom provider (no issue: the gap was simply that oMLX, an OpenAI-compatible MLX server for Apple Silicon, was missing a preset). TestOmlxPreset fails without the change (no omlx preset). go vet ./internal/..., go build -tags nogui (darwin, GOOS=linux), GOOS=windows go build, go test -tags nogui -count=1 ./... under a temp HOME pass but for TestBunThroughBridge, which fails on a clean tree too (a local bun, unrelated to this change). ( #635 )
2026-10-03 13:36:43 +08:00
2026-11-01 05:42:21 +08:00
2026-10-19 13:42:21 +08:00
2026-11-05 18:31:16 +08:00
2026-11-01 14:48:19 +08:00
2026-11-18 22:37:50 +08:00
2026-11-11 23:09:15 +08:00
2026-11-11 23:09:15 +08:00
2026-11-02 17:08:45 +08:00
2026-11-02 17:08:45 +08:00
2026-11-01 14:48:19 +08:00
2026-11-01 14:48:19 +08:00
2026-11-18 22:37:50 +08:00
2026-11-15 02:19:18 +08:00
2026-11-13 05:12:30 +08:00
2026-11-17 20:21:21 +08:00
2026-11-02 21:52:57 +08:00
2026-10-13 13:42:56 +08:00
2026-10-09 01:40:02 +08:00
2026-10-09 01:40:02 +08:00
2026-10-28 00:19:58 +08:00
2026-10-24 21:33:06 +08:00
2026-11-10 12:54:39 +08:00
2026-11-07 00:42:21 +08:00
2026-11-07 00:42:21 +08:00
2026-11-01 07:41:23 +08:00
2026-11-13 01:01:23 +08:00
2026-11-01 19:02:59 +08:00
2026-11-02 22:28:57 +08:00
2026-10-31 10:08:40 +08:00
2026-10-31 10:08:40 +08:00
gateway, provider: the Routing page says what a lone key or account has left, and a key bought as a plan (Kimi Code, GLM Coding Plan, MiniMax, OpenCode Go, Command Code) is weighed by its plan's windows ( #1016 , gphysign: Kimi Code (China) with one key on, Smart routing; the card said only "Kimi Code (China) 只启用了一个 Key,无需选择。" while /v1/magpie/quotas had its 5 hours 49 used, 51 left and its 7 days 45 used) — two gaps. weighRouted returned before reading anyone's allowance when there was one candidate, so a lone key or a lone subscription account was never known in the trace, and the Routing page, which shows a bar and "{n} used · renews in {d}" for a known row, had nothing to show; every single-account subscription said "what's left not known yet" the same way. And KeyAllowance read only a sub2api key's limits, so a key whose plan the Usage page reads (planQuotaSourceOf: Kimi Code, GLM Coding Plan and Z.ai, MiniMax Coding Plan, OpenCode Go, Command Code) was never known to routing, with one key or several. weighRouted now reads what each candidate has left before returning a lone one (one alone is still weighed against nobody). readsKeyWindows takes a plan key too; keyWindows reads it through planKeyWindows (planWindows, with Zhipu's team quota behind a key that has none of its own, as PlanQuotas does), and PlanQuotas' own read of a card is noted for routing at once (noteKeyAllowance), so the Usage page and routing never ask twice; the card kept on disk seeds it after a restart (keyCardTag keys a plan card as plan:, a sub2api one as balance:). A key at such a vendor that turns out to be pay-as-you-go, with no windows, is asked again every 30 minutes (keyNoWindowsAge), not every minute it is used. So, beyond the issue: several plan keys on one provider are now weighed by their windows under Smart, usage and pace, and a plan key the vendor refuses as out of quota rests until its window renews and comes back once read short of full, as a sub2api key does. affine no longer says a lone key or account all but used up "moved" its conversation: there is nobody to move to (at > 0). The GUI needed no change. TestLoneOneTellsWhatItHasLeft (a lone Kimi key known at 49% with both renews, the week first; a lone Codex account known; a plain DeepSeek key not), TestLoneSpentKeyKeepsItsConversation (fails with the at > 0 guard taken out), TestPlanKeyAllowance (the windows read behind the request, asked once; DeepSeek and Moonshot keys never asked), TestPlanKeyAllowanceFromItsCard (PlanQuotas' read known at once without a second ask; after a restart with the vendor down, the card on disk stands in and a failed read keeps it) and TestPayAsYouGoKeyAskedSeldom (a GLM pay-as-you-go key asked once, not two minutes on, again 31 minutes on) all fail without the change and pass -race -count=20 (provider) / -count=10 (gateway). routing-key-windows.test.cjs gains a lone Kimi Code key at 1100px and 440px (the one-key story, the row's bar at 49%, its provider row "49% used · renews in …" fitting, no sideways scroll) and passes in full on Chromium and WebKit in en, zh, ja and de; routing-quota-left and panel-routing pass. go test -tags nogui ./internal/..., go test -race on ./internal/provider and ./internal/gateway in full, go vet, gofmt -l, darwin, linux and windows (nogui) builds pass. Not tried with a real Kimi Code key. StepFun's Step Plan is read through a sign-in, not the key, so it isn't one of these. docs/subsystems/gateway-routing.md, providers-accounts.md and docs/reference.md say it.
2026-10-06 20:25:04 +08:00
2026-11-04 16:55:33 +08:00
2026-11-09 05:06:48 +08:00
2026-11-16 01:54:28 +08:00
2026-11-01 22:14:19 +08:00
2026-10-30 16:59:04 +08:00
2026-11-01 18:28:31 +08:00
2026-10-28 10:09:51 +08:00
2026-11-05 01:43:41 +08:00
2026-10-30 08:33:28 +08:00
2026-10-28 04:18:21 +08:00
2026-11-11 14:13:01 +08:00
2026-10-19 18:58:42 +08:00
2026-10-10 10:22:59 +08:00
2026-10-15 23:08:04 +08:00
2026-11-12 14:35:38 +08:00
2026-11-12 14:35:38 +08:00
2026-10-10 10:22:59 +08:00
2026-10-10 10:22:59 +08:00
2026-11-03 21:01:27 +08:00
2026-11-03 21:01:27 +08:00
2026-10-14 13:20:13 +08:00
2026-10-25 11:52:02 +08:00
2026-11-04 19:16:10 +08:00
2026-11-11 23:54:16 +08:00
2026-10-13 09:52:14 +08:00
2026-11-02 07:40:21 +08:00
2026-10-29 16:50:17 +08:00
2026-10-19 21:31:23 +08:00
2026-11-04 11:56:33 +08:00
2026-10-15 22:36:59 +08:00
2026-10-22 20:51:08 +08:00
2026-10-29 00:52:19 +08:00
2026-10-29 18:17:55 +08:00
2026-11-02 12:03:24 +08:00
2026-11-02 09:11:30 +08:00
2026-11-19 17:25:39 +08:00
2026-11-17 11:00:09 +08:00
2026-11-10 20:32:38 +08:00
2026-11-15 12:14:48 +08:00
2026-11-05 11:46:26 +08:00
2026-11-07 22:36:03 +08:00
2026-11-19 17:25:39 +08:00
2026-11-10 10:01:59 +08:00
2026-11-10 10:01:59 +08:00
2026-10-28 18:11:21 +08:00
2026-11-19 14:45:14 +08:00
2026-11-03 13:40:20 +08:00
2026-11-15 14:52:48 +08:00
2026-11-14 12:31:48 +08:00
2026-11-14 12:31:48 +08:00
2026-11-10 19:53:54 +08:00
2026-11-15 14:52:48 +08:00
2026-10-28 09:29:44 +08:00
2026-11-18 19:59:27 +08:00
2026-10-05 21:56:59 +08:00
2026-10-28 12:39:39 +08:00
2026-10-15 23:08:03 +08:00
2026-11-10 04:47:19 +08:00
2026-10-27 18:43:32 +08:00
2026-10-14 04:35:55 +08:00
2026-10-14 04:35:55 +08:00
2026-11-12 00:17:30 +08:00
2026-11-19 17:28:26 +08:00
2026-11-16 10:42:40 +08:00
2026-11-01 03:10:49 +08:00
2026-11-17 22:01:56 +08:00
2026-11-17 22:01:56 +08:00
2026-10-06 07:43:47 +08:00
2026-11-14 19:09:35 +08:00
2026-11-14 19:09:35 +08:00
2026-11-04 10:23:34 +08:00
2026-10-21 07:23:23 +08:00
2026-11-14 14:02:49 +08:00
2026-11-02 19:10:37 +08:00
2026-11-01 12:52:19 +08:00
2026-11-02 21:59:29 +08:00
2026-11-10 17:18:32 +08:00
2026-10-17 23:11:00 +08:00
2026-11-13 05:12:30 +08:00
2026-11-15 12:14:48 +08:00
2026-11-11 03:41:37 +08:00
2026-10-13 09:09:37 +08:00
2026-11-18 14:32:44 +08:00
2026-10-03 16:45:48 +08:00
2026-11-19 17:38:05 +08:00
2026-11-02 05:38:10 +08:00
2026-10-20 20:23:55 +08:00
2026-11-06 12:05:01 +08:00
2026-11-06 12:05:01 +08:00
2026-11-01 00:14:17 +08:00
2026-11-15 12:14:48 +08:00
2026-10-20 20:23:55 +08:00
2026-11-10 12:54:39 +08:00
2026-11-15 12:14:48 +08:00
2026-11-19 17:38:05 +08:00
quota: each allowance says when it was read, a cached one keeps its own time, and magpie quota history tells the windows' readings over time ( #802 , margbug01) — a subscription's card had no time unless its reading had failed, and a Claude account's allowance, which is what Claude Code last told (kept until it answers again or runs /usage), was shown on every refresh as if just read and written into the history again at each one's time. A reading now carries ReadAt: the time it was made (readNow, for every subscription and account read), and a Claude account's the time Claude Code told it (claudeReadAt). The usage card says "Updated 40 minutes ago" from it, a reading standing in for a failed one still says "As of …" in amber, a failed one says neither. The history ( #651 ) keeps a point at its ReadAt, so a reading shown again is no new point. magpie quota and magpie accounts add "read 40m ago" to a line read more than 2 minutes before, and --json and GET /v1/magpie/quotas carry readAt. magpie quota history [<provider|account>…] [--days N] [--json] tells each account's windows over time (UTC, kept 45 days, a point only where it changed, the runs of a window apart by their reset), the last eight a window in text with ↻ where it started again, every one with --json, as GET /v1/magpie/quotas/history answers. On the card, hovering a window's key under the curve lists its latest readings with their times; no control is added to the card (the curves are kept uncluttered). Strings in zh, ja, de. Request-log correlation between readings isn't attempted. TestClaudeKeptReadingKeepsItsTime (a kept Claude reading shown three times ten minutes apart is one point at its own time; fails on the old code), TestQuotaHistoryCmd, and quota-read-at.test.cjs (WebKit, en and zh; fails on the old code). quota history run against a copy of the owner's real quota-history.json lists their Claude, Codex, Command Code, Copilot, Cursor and Devin windows. quota-curve, quota-pools, quota-families, quota-credits, quota-count-wrap, claude-usage-asked, panel-usage and balance-* pass on WebKit. go vet, builds (darwin, GOOS=linux nogui, GOOS=windows) and go test -tags nogui -count=1 ./... under a temp HOME pass (TestProvidersAnswerWhileListsComeIn, TestUserPath, TestClaudeSignedOut and TestCursorSignInJoinsAWrappedLink failed under load and pass alone).
2026-10-05 00:14:25 +08:00
2026-10-05 10:41:07 +08:00
2026-10-15 23:08:02 +08:00
2026-11-06 12:09:21 +08:00
2026-10-15 23:08:02 +08:00
2026-11-14 19:37:57 +08:00
2026-11-13 23:42:57 +08:00
2026-11-15 12:14:48 +08:00
2026-10-21 08:40:49 +08:00
2026-11-19 17:38:05 +08:00
2026-11-14 19:09:35 +08:00
2026-11-18 19:59:27 +08:00
2026-11-13 05:12:30 +08:00
2026-10-30 18:55:51 +08:00
2026-11-09 02:47:26 +08:00
2026-10-14 09:38:12 +08:00
2026-11-06 19:50:18 +08:00
2026-11-06 19:50:18 +08:00
provider: a Refresh drops the picks the vendor's list no longer has (akic404 on Discord: a remote magpie offering far fewer models, one of its providers renamed from ws-ba5my… to bailian, still showed every old model here after a Refresh, until the provider was deleted) — a Refresh already replaced the fetched list (catalog.SaveLive writes it whole), but the models picked from the old list stayed in the provider's Models, and Exposed serves a pick the list lacks as one typed in by hand ( #597 ), so every "ws-ba5myt9wad852ujp-…/qwen3.6-max" the remote no longer had stayed among the models agents see, drawn in the editor as "Added by hand". Now Fetch (through the new Refetch) drops from the saved picks those the list fetched before had and the one fetched now doesn't; a pick neither list had was typed in by hand and stays, and a fetch that fails or answers no model changes nothing. It applies to providers of a key (a remote magpie, any /v1/models provider), not to signed-in accounts, whose lists have their own rules. The editor's Refresh is told the dropped ids and takes them out of its draft too, or its Save wrote them back. TestRefreshDropsPicksTheListNoLongerHas (a remote-magpie preset against a server whose list shrinks and is renamed, then goes down) fails on the old code (all four picks kept) and passes. End to end with two sandbox magpies under temp HOMEs: A (nogui serve on 3461, a provider ws-ba5my over a fake upstream), B with A as a remote magpie and four picks (three of A's, one typed); after A's provider set ws-ba5my id=bailian and two models dropped, B's provider models left the typed pick alone, and with A stopped a Refresh failed and changed nothing. go vet, builds (darwin, GOOS=linux -tags nogui, GOOS=windows) and go test -tags nogui -count=1 ./internal/... under a temp HOME pass.
2026-10-03 23:01:47 +08:00
2026-10-24 02:11:14 +08:00
2026-11-13 13:15:31 +08:00
2026-11-16 14:18:47 +08:00
2026-11-15 05:45:09 +08:00
2026-11-15 09:38:24 +08:00
2026-11-12 09:47:34 +08:00
2026-11-16 10:42:40 +08:00
2026-10-29 20:50:18 +08:00
2026-11-06 15:41:43 +08:00
2026-11-06 15:41:43 +08:00
2026-10-15 01:54:28 +08:00
2026-11-16 10:42:40 +08:00
2026-11-11 15:59:46 +08:00
2026-10-10 03:55:45 +08:00
2026-11-07 16:05:37 +08:00
2026-11-19 17:28:26 +08:00
2026-11-13 15:32:20 +08:00
2026-11-13 15:32:20 +08:00
2026-11-16 10:42:40 +08:00
2026-11-15 18:58:57 +08:00
2026-11-09 12:42:35 +08:00
2026-11-13 10:22:01 +08:00
2026-11-16 10:42:40 +08:00
2026-11-16 10:42:40 +08:00
2026-11-05 12:37:30 +08:00
2026-11-18 14:32:44 +08:00
2026-11-19 10:26:23 +08:00
2026-10-28 00:14:13 +08:00
2026-11-16 01:54:28 +08:00
2026-11-03 14:16:20 +08:00
2026-10-29 17:02:24 +08:00
2026-11-03 14:16:20 +08:00
2026-10-14 05:22:39 +08:00
2026-11-01 00:28:03 +08:00
2026-11-13 14:30:19 +08:00
2026-10-19 15:19:31 +08:00
2026-10-19 15:19:31 +08:00
2026-11-09 18:13:08 +08:00
2026-11-12 22:14:40 +08:00
2026-11-19 17:34:30 +08:00
2026-10-08 20:13:26 +08:00
2026-11-10 18:48:13 +08:00
2026-11-10 18:48:13 +08:00
2026-10-11 21:24:10 +08:00
2026-11-10 12:54:39 +08:00
2026-10-05 16:31:07 +08:00
2026-11-10 22:57:20 +08:00
2026-10-29 20:36:04 +08:00
2026-10-24 19:40:14 +08:00
2026-10-15 23:08:00 +08:00
2026-11-12 19:48:02 +08:00
2026-11-12 19:48:02 +08:00
2026-11-10 16:47:33 +08:00
2026-11-07 21:21:48 +08:00
2026-11-04 20:55:42 +08:00
2026-10-24 21:00:05 +08:00
2026-10-24 21:00:05 +08:00
2026-10-19 15:19:31 +08:00
2026-10-19 15:19:31 +08:00
2026-11-11 21:13:43 +08:00
2026-10-07 02:09:17 +08:00
2026-10-15 23:08:04 +08:00
2026-11-06 12:48:51 +08:00
2026-10-20 20:23:55 +08:00
2026-11-03 16:43:12 +08:00
2026-11-11 13:05:16 +08:00
2026-11-11 13:05:16 +08:00
2026-10-16 03:46:15 +08:00
2026-11-10 03:48:24 +08:00
2026-11-14 16:55:08 +08:00
2026-10-14 08:39:37 +08:00
2026-11-03 10:44:15 +08:00
2026-11-15 14:30:16 +08:00
2026-10-17 19:55:49 +08:00
2026-10-12 21:57:29 +08:00
2026-11-13 13:58:00 +08:00
2026-11-15 12:14:48 +08:00
2026-11-15 12:14:48 +08:00
2026-11-10 12:54:39 +08:00
2026-10-12 19:38:11 +08:00
2026-10-17 23:11:01 +08:00
2026-10-10 10:22:59 +08:00
2026-10-12 22:16:17 +08:00
2026-11-10 12:54:39 +08:00
2026-10-11 09:40:38 +08:00
2026-10-17 23:11:00 +08:00
2026-11-16 14:19:19 +08:00
2026-11-09 12:04:20 +08:00
2026-11-13 21:09:44 +08:00
2026-11-17 14:08:48 +08:00
2026-11-17 14:08:48 +08:00
2026-11-12 10:59:13 +08:00
2026-11-18 20:22:30 +08:00
2026-11-18 23:50:16 +08:00
2026-11-11 04:13:12 +08:00
2026-11-01 13:32:30 +08:00
2026-11-19 00:44:40 +08:00
2026-11-19 00:44:40 +08:00
2026-11-13 00:11:37 +08:00
2026-11-01 13:40:29 +08:00
2026-11-13 00:11:37 +08:00
2026-11-13 00:11:37 +08:00
2026-11-06 19:50:18 +08:00
2026-11-12 11:38:52 +08:00
2026-11-10 03:48:24 +08:00
2026-10-07 06:14:20 +08:00
2026-11-01 00:43:15 +08:00
2026-11-11 10:37:13 +08:00
2026-11-11 10:37:13 +08:00
2026-10-14 19:47:16 +08:00
2026-10-06 18:57:47 +08:00
gui: an answer read while the accounts are read again is followed by the new one ( #959 ) — usage/quotas answers at once with the kept copy and reads the accounts again behind it, so the tray panel, opened, showed the old usage (40%) while the window's next timed read had the new (used up), until refreshed by hand (Magixyne). Such an answer now says so (X-Magpie-Reading: 1, provider.SubscriptionUsageReading), and loadQuotas asks again every 1.5s, twenty times at most, until it has landed; an answer the same as the last isn't drawn again. quota-reading-again (panel and window, en and zh, Chromium and WebKit; a read that never lands stops after twenty) passes and fails without the fix; TestSubscriptionUsageReadingWhileStale passes with -race -count=5. claude-usage-asked, panel-usage, tray-usages, usage-card-refresh, usage-stale-answer, quota-curve and usage-fold pass; go test ./internal/provider/ ./internal/gui/ and vet pass.
2026-10-06 10:58:10 +08:00
2026-10-11 21:22:18 +08:00
2026-11-19 17:38:05 +08:00
2026-11-13 05:12:30 +08:00
2026-10-31 19:35:16 +08:00
2026-11-01 05:23:58 +08:00
2026-11-01 05:23:58 +08:00
2026-11-05 16:22:31 +08:00
2026-11-04 21:21:32 +08:00
2026-11-12 01:20:52 +08:00
2026-11-07 13:34:54 +08:00
2026-11-13 02:00:40 +08:00
2026-11-12 18:09:14 +08:00
2026-11-12 18:09:14 +08:00
2026-10-09 02:20:30 +08:00
2026-10-27 16:23:20 +08:00
2026-10-31 00:08:29 +08:00
2026-11-18 12:08:46 +08:00
2026-10-30 14:17:26 +08:00
2026-11-10 12:54:39 +08:00
2026-10-23 19:03:58 +08:00
2026-11-14 14:02:49 +08:00
2026-10-31 22:21:29 +08:00
2026-11-19 15:31:25 +08:00
2026-11-19 15:31:25 +08:00
2026-11-17 20:21:21 +08:00
2026-11-16 01:54:28 +08:00
2026-11-10 10:03:49 +08:00
2026-11-10 10:03:49 +08:00
2026-11-13 05:12:30 +08:00
2026-11-10 18:01:13 +08:00
2026-11-10 07:36:19 +08:00
2026-10-24 02:48:50 +08:00
2026-11-11 09:30:53 +08:00
2026-11-07 17:44:31 +08:00
2026-11-07 17:44:31 +08:00
2026-10-10 18:31:32 +08:00
2026-11-10 18:11:38 +08:00
2026-11-05 17:50:33 +08:00
2026-11-10 12:54:39 +08:00
2026-11-11 03:54:21 +08:00
2026-11-16 13:17:46 +08:00
2026-11-16 13:17:46 +08:00
2026-11-14 02:22:28 +08:00
2026-10-29 22:40:31 +08:00
2026-10-09 23:25:04 +08:00
2026-11-14 19:09:35 +08:00
2026-11-06 10:17:08 +08:00
2026-11-15 08:24:18 +08:00
2026-11-09 19:23:13 +08:00
2026-11-15 11:00:37 +08:00
2026-10-29 15:39:31 +08:00
2026-11-15 11:00:37 +08:00
2026-10-08 16:05:15 +08:00
2026-10-08 16:05:15 +08:00
2026-10-08 16:05:15 +08:00
2026-10-08 16:05:15 +08:00
2026-11-02 03:46:01 +08:00
2026-11-02 03:46:01 +08:00
2026-11-13 23:12:48 +08:00
2026-10-14 13:02:48 +08:00
2026-10-14 13:02:48 +08:00
2026-11-01 05:23:58 +08:00
2026-10-23 19:03:58 +08:00
2026-11-14 14:02:49 +08:00
2026-11-03 10:39:41 +08:00
2026-10-17 23:11:00 +08:00
2026-10-26 22:42:59 +08:00
2026-11-10 12:54:39 +08:00
2026-10-30 15:53:22 +08:00
2026-11-10 12:54:39 +08:00
2026-10-13 05:57:40 +08:00
2026-11-13 22:46:00 +08:00
2026-11-13 22:46:00 +08:00
2026-11-10 12:54:39 +08:00
2026-10-17 23:11:00 +08:00
2026-10-22 04:32:46 +08:00
2026-10-17 23:11:00 +08:00
2026-11-10 12:54:39 +08:00
docs: every built-in subscription a plugin serves once moved says so in its code, and AGENTS.md says where a fix for it goes (user: 对内置的订阅 provider 在代码层面和文档层面加上注释,防止又有别的 agent 在改内置订阅 provider 的代码而不知道生效的其实是对应的插件代码) — a moved Cursor, Devin, Grok, Command Code plan, Kiro, Zed, Qoder, Factory, Xiaomi MiMo, ZCode or WorkBuddy (provider.Moved; since v0.1.642 also the default for a new sign-in, provider.Adopt) is signed in, listed, requested and metered by its @magpie-community plugin, and none of the built-in's code in internal/provider/<name>*.go, internal/gateway/<name>.go, internal/zed or internal/qoder serves it; a fix made there alone never reaches those users. Each of those files now opens with a PLUGIN-SERVED notice naming the subscription's id, its plugin package, where the plugin lives (magpie-community/plugins, packages/<name>) and the mover whose min to raise so moved users get the fixed plugin (keepMovedCurrent); Qoder's adds that Qoder CN isn't moved and still runs there. AGENTS.md (CLAUDE.md imports it) lists the moved built-ins with their packages and movers, how to tell whether a user's is moved (move.state "plugin", onPlugins), the order a fix goes in (the plugin, publish, raise min, the built-in only for those not moved), the magpie code that does run for a moved one (internal/plugin, plugins.go, plugin_usage.go, pluginsignin.go, migrate*.go, app.js's subOf/pluginSubs/startPluginSignIn), and the parity tests. movers in migrate.go and SUBS in app.js point there too. TestMovedBuiltinsSayTheirPlugin fails for a mover whose code carries no PLUGIN-SERVED notice naming its id and package (it failed while a wrapped package name was split). Comments and docs only, no behaviour changed. go vet ./internal/..., go build -tags nogui (darwin, GOOS=linux), GOOS=windows go build, go test -tags nogui -count=1 ./... under a temp HOME pass (TestProvidersAnswerWhileListsComeIn and TestClaudeSignedOut failed once on their timing under load, pass alone; untouched).
2026-10-02 19:37:02 +08:00
2026-10-17 23:10:59 +08:00
2026-11-17 16:00:37 +08:00
2026-11-17 16:00:37 +08:00
2026-11-15 12:14:48 +08:00
2026-11-03 16:26:17 +08:00
2026-10-13 13:59:17 +08:00
2026-11-05 11:44:31 +08:00
2026-10-15 15:55:24 +08:00
2026-10-15 15:55:24 +08:00
2026-10-08 05:57:48 +08:00
test: one list of the agent folders a sandbox clears, so no sandbox misses an agent (yetone, on #522 : A shared list of env vars for the other sandboxes would be a welcome follow-up) — every sandbox kept its own list of the variables that point at an agent's folder, and each had drifted: the gateway's cleared 5 of the 32 magpie reads, the provider package's 2, the tui's 10, the library's 20. A sandbox clearing 2 meets whatever Grok, Kimi, Hermes, MiniMax, Qoder or ZCode the developer has installed, which is how #522 came about — Qoder's two were in the library's list and in none of the four that failed. internal/agentenv is now the one list, and the 21 sandboxes that fake an environment with no agent in it clear it, each keeping beside it the variables that are not an agent's: APPDATA and LOCALAPPDATA, which a sandbox sets to a folder of its own rather than clearing, VISUAL and EDITOR. A name in the list is one magpie reads, and TestVarsAreRead walks the sources to say so, which is how two names a sandbox had been clearing turned out to be read by nothing at all — GEMINI_CLI_HOME and OPENCODE_CONFIG in internal/backup's, while OPENCODE_CONFIG_DIR, the one internal/agent reads (agents.go:545), was not in it. Where a sandbox set an agent's folder to a fixture of its own, the clearing now comes first, since a list of 32 wipes what a list of 5 left standing. Not converted: the omp tests' four variables, which are the ones omp's own lookup consults (a Pi fork) rather than every agent's, and the warm-up's Claude Code traffic flags, which are not folders — CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC stays out of the list for that reason too, its one test setting it on purpose. On Windows 11 the whole suite answers as it did before the change: 31 packages pass, and the same 15 tests in internal/library, internal/gateway and internal/agent fail for what they failed for before (symlinks this machine has no privilege for, and TestSuffixModesReachAgentFiles). go vet ./..., go build -tags nogui (windows, GOOS=linux, GOOS=darwin), and go vet -tags nogui for linux and darwin over every package touched pass. ( #543 )
2026-10-02 17:22:16 +08:00
2026-10-31 07:26:46 +08:00
2026-10-27 18:45:45 +08:00
2026-10-27 18:45:45 +08:00