yetone
f5e1b10913
settings: longest context can hold a model's own window too (WJaunita45604 on X)
...
v0.1.3681's Longest context left a window the user set for a model, or "*"
on its provider, alone even when longer. Settings > Models > Routing now has
a menu beside the field: "Models without their own" (the default, as before)
or "Every model". In both modes the shorter of the cap and the user's own
window is told; they differ only when the user's own is longer (own keeps it,
every model brings it down). Settings.ContextCapAll, Settings.CappedOwn,
POST /api/settings/context-cap-mode {all}, magpie model context-cap all|own.
Applied in provider.windowIn (so /v1/models, catalogs, compaction), Codex's
CodexNativeWindow/CodexWindow (the list's ETag tag carries the mode) and the
gateway fallback window. i18n in zh, zh-TW, ja, de.
Run (wsl-run, mote's disk was full): provider (full), settings, settingsapi,
codexcat packages; cli -run ContextCap; gateway -run ContextCap|ModelsList;
GUI context-cap, i18n-keys, model-load, settings-places, settings-general in
chromium and webkit; TestCoreScriptBudget; gofmt; go vet nogui and
GOOS=windows vet. Broken by hand: windowIn's CappedOwn removed turns
TestContextCapAllHoldsTheUsersOwnWindowsToo red.
Not tried: the whole Go and GUI suites, a real Codex reading the list, macOS
or Windows runs, GUI in zh-TW/ja/de beyond the i18n-keys check.
2026-11-11 14:28:17 +08:00
..
2026-11-10 20:32:38 +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-11 14:18:10 +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-10-04 23:30:56 +08:00
accounts: Codex or Claude Code can be kept signed in to any of its accounts, not only the first, while the gateway still tries them in their order (Koohoko on #524 : 建议不只是支持始终登录"首选"账号,应该可以支持始终登录任一选定的账号。有时候首选只是为了按顺序先消耗它的额度,不一定是用户期望的常用登录账号) — making an account first did two things at once: the gateway tried it first (the account the agent is signed in to always stood ahead of the others, AlsoOn behind it), and Codex or Claude Code was signed in to it (SwitchLogin). "Keep {agent} signed in to the first account" ( 817a5f50) only stopped magpie moving the sign-in on, so a user who wanted one account's allowance spent first had to sign the agent in to it too. Now beside that tick is a pick, "Keep {agent} signed in to [the first account ▾ | each saved account]" ({agent} 始终登录 [首选账号 ▾]): picking one keeps Provider.KeepLoginAs (providers.json, kept across an editor Save like KeepLogin; POST provider/keeplogin with keepLoginAs) and signs the agent in to it at once, the order the gateway went by then — the one signed in to first — written as the accounts' own first, so the first stays first. While it is kept: the login switcher signs the agent back in to it whenever it is on another and never moves it off, however used up (NextLogin); a drag or Make first sets the order without a sign-in (arrangeLoginsAs), Make first posting provider/arrange; the gateway puts the account signed in to at its own place in that order, not first (perKeyBarred by Provider.LoginRanks), so In order spends the first's allowance first; InUseLogin (the tray's in-use account) is the first in use in the order. The rows keep their order, the first saying First and the one kept saying Signed in (已登录), an account not in use ticked on by its dot rather than a Use that would sign the agent in; the Routing note says the agent stays signed in to that account and requests go in the accounts' order. Picking "the first account", or unticking, lets it go and signs the agent in to the first again, so the one signed in to is the first once more. TestKeepLoginAsChosen (signed in to the chosen at once, the order kept, stays at 100%, moved off it goes back, a drag changes the order not the sign-in, the first's again when let go) and TestKeptLoginStandsAtItsPlace (through the gateway In order: kept on spare, the first, acct-1, is tried first; acct-2 without the change) are new; keep-login.test.cjs now also picks an account (the post, First and Signed in, Make first arranging, back to the first, every string's Chinese, the page not moving) and passes 8/8 in WebKit; account-return, routing-account-order, account-arrange and click-scroll pass in WebKit. No live agent config, keychain or vendor was touched. go vet ./internal/..., go build (darwin GUI), go build -tags nogui (darwin, GOOS=linux), GOOS=windows go build, go test -tags nogui -count=1 ./... under a temp HOME pass.
2026-10-02 23:30:54 +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-09 02:47:26 +08:00
2026-10-31 11:03:35 +08:00
2026-10-31 11:03:35 +08:00
2026-11-11 03:54:21 +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-10-10 20:00:38 +08:00
2026-10-12 19:38:13 +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-10-11 13:31:11 +08:00
2026-10-20 02:49:50 +08:00
2026-10-05 02:16:28 +08:00
2026-11-10 20:16:44 +08:00
2026-10-24 20:32:33 +08:00
2026-10-02 21:37:47 +08:00
2026-11-04 17:46:30 +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-09 20:06:22 +08:00
2026-10-30 03:09:29 +08:00
2026-10-20 00:18:51 +08:00
2026-11-10 18:01:13 +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-05 12:37:30 +08:00
2026-11-05 00:14:14 +08:00
2026-11-10 12:54:39 +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 02:23:23 +08:00
2026-11-10 07:18:50 +08:00
2026-10-28 10:52:46 +08:00
2026-10-28 10:52:46 +08:00
2026-11-06 11:53:33 +08:00
2026-11-10 12:54:39 +08:00
2026-10-20 00:18:51 +08:00
2026-11-10 04:33:22 +08:00
2026-10-16 19:30:42 +08:00
claude: a Claude account's usage resets are read in the zone /usage names on Windows too, and the provider tests pass whole on Windows (goal: 插件订阅 provider 跟内置的所有逻辑都要一模一样, run on Windows and Linux) — Windows has no time zone database, so "resets Oct 1 at 3:30pm (Asia/Shanghai)" was read in the machine's own zone, hours off for anyone not in that zone; magpie now carries the database (time/tzdata). The provider tests set HOME but not USERPROFILE, which Windows takes the home from, so on Windows they read the test box's own agent sign-ins (Gemini models in a list, an extra provider, a Cursor version); every test home sets both now. Tests whose fake CLI is a shell script (Claude Code's auth status, codex --version, macOS's security) skip on Windows, as the fake devin did, and file mode bits go unchecked there. TestParseClaudeUsage fails on Windows without the change. On Windows and on Linux (WSL) the provider package passes whole, three times on Windows (15 failed before), the plugin package and the move/plugin/Grok/Devin/usage tests five times over on Linux. go vet, go build -tags nogui (darwin, GOOS=linux), GOOS=windows go build, go test -tags nogui ./... pass.
2026-10-01 13:51:24 +08:00
2026-10-30 04:48:17 +08:00
2026-11-10 18:58:03 +08:00
2026-11-10 18:58:03 +08:00
2026-10-28 09:29:44 +08:00
2026-10-13 09:09:37 +08:00
2026-10-17 23:10:59 +08:00
2026-11-01 05:00:54 +08:00
2026-11-01 06:16:35 +08:00
claude: a Claude account's usage resets are read in the zone /usage names on Windows too, and the provider tests pass whole on Windows (goal: 插件订阅 provider 跟内置的所有逻辑都要一模一样, run on Windows and Linux) — Windows has no time zone database, so "resets Oct 1 at 3:30pm (Asia/Shanghai)" was read in the machine's own zone, hours off for anyone not in that zone; magpie now carries the database (time/tzdata). The provider tests set HOME but not USERPROFILE, which Windows takes the home from, so on Windows they read the test box's own agent sign-ins (Gemini models in a list, an extra provider, a Cursor version); every test home sets both now. Tests whose fake CLI is a shell script (Claude Code's auth status, codex --version, macOS's security) skip on Windows, as the fake devin did, and file mode bits go unchecked there. TestParseClaudeUsage fails on Windows without the change. On Windows and on Linux (WSL) the provider package passes whole, three times on Windows (15 failed before), the plugin package and the move/plugin/Grok/Devin/usage tests five times over on Linux. go vet, go build -tags nogui (darwin, GOOS=linux), GOOS=windows go build, go test -tags nogui ./... pass.
2026-10-01 13:51:24 +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-06 19:50:18 +08:00
2026-11-05 23:57:33 +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-10 11:17:07 +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-09 23:25:19 +08:00
2026-10-27 12:16:33 +08:00
2026-11-09 23:25: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-09 06:48:26 +08:00
2026-10-07 03:00:47 +08:00
2026-10-31 18:18:37 +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-10 18:21:32 +08:00
2026-11-02 05:38:11 +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-09 06:48:26 +08:00
claude: nothing is sent to Anthropic in Claude Code's name any more, and a Claude account's model test runs Claude Code (the user: 先把伪装代码删掉,测试模型改走 CLI) — claude_cloak.go made magpie's own requests on a Claude sign-in look like Claude Code's (its User-Agent, session and device ids, Stainless headers, betas, a billing header with a fingerprint and xxHash in the body). Generations already ran Claude Code through the bridge; the cloak was left driving the provider test (a direct /v1/messages "hi") and the model list. It is gone: a Claude account's direct requests are refused unsigned, the model test has Claude Code answer "hi" at the model tested (the warm-up's run, --model the one tested, a saved account's sign-in as CLAUDE_CODE_OAUTH_TOKEN), and the model list says it is magpie (User-Agent magpie, only the oauth beta). TestClaudeTestRunsThroughClaudeCode and TestClaudeTestRunsClaudeCode fail without the change. go vet, go build -tags nogui (darwin, GOOS=linux), GOOS=windows go build, go test -tags nogui ./... pass.
2026-10-01 11:12:27 +08:00
2026-10-25 04:12:06 +08:00
2026-11-11 12:26:43 +08:00
2026-11-11 12:26:43 +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-10-30 14:50:44 +08:00
2026-11-02 11:48:26 +08:00
2026-10-17 19:55:49 +08:00
2026-10-20 20:23:55 +08:00
2026-10-05 20:42:48 +08:00
2026-11-02 14:51:16 +08:00
2026-11-04 16:47:45 +08:00
2026-11-11 14:08:18 +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-06 06:30:23 +08:00
2026-10-12 23:12:20 +08:00
2026-11-10 12:54:39 +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-08 11:28:54 +08:00
2026-11-10 17:10:32 +08:00
2026-11-10 17:10:32 +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-03 15:46:42 +08:00
2026-11-11 07:33:20 +08:00
2026-11-11 08:33:52 +08:00
2026-10-30 13:42:48 +08:00
2026-10-14 16:37:59 +08:00
2026-10-31 00:41:29 +08:00
2026-10-05 00:31:19 +08:00
2026-11-01 21:19:22 +08:00
2026-11-01 09:08:07 +08:00
2026-11-01 21:19:22 +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-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-10-16 03:46:15 +08:00
2026-11-05 13:27:32 +08:00
2026-11-05 13:27:32 +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-10-07 03:00:47 +08:00
2026-11-11 14:28: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-01 22:30:51 +08:00
2026-11-10 12:54:39 +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-07 21:59:07 +08:00
2026-11-07 21:59:07 +08:00
2026-10-29 16:11:26 +08:00
2026-11-10 21:05:34 +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-01 06:46:50 +08:00
2026-11-03 23:12:33 +08:00
accounts: the account made first stays first — magpie signs Codex or Claude Code back in to it once it has room again ( #408 : 智能路由会自动把所使用账号设为首选) — since #208/#209 magpie signs the agent in to the next ticked account once the one it is on is 98% used, and left it there for good, so the account the user made first lost its place after its first spent window. magpie now keeps the account it moved off (login-returns.json beside logins.json) and signs the agent back in to it once that is below 90% (Smart's low share, so it doesn't flap) and still ticked; a switch the user makes meanwhile, in magpie or the agent, ends that. The Accounts list says it: the stand-in reads "First for now" (暂为首选), its title naming the one it goes back to, and that one "First again once it has room" (额度恢复后切回首选); the Routing note says magpie moves back. TestCodexSwitchedBackWhenItHasRoom and account-return.test.cjs fail without the change. go vet, go build -tags nogui (darwin, GOOS=linux), GOOS=windows go build, go test -tags nogui ./... pass; account-return, click-scroll, old-webkit, routing-signin pass.
2026-10-01 17:16:47 +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-10 09:49:30 +08:00
2026-11-10 15:24:40 +08:00
2026-10-30 21:47:07 +08:00
2026-11-02 20:04:32 +08:00
2026-11-02 20:04:32 +08:00
codex: when the ChatGPT account runs out of its allowance after a magpie model was picked, magpie becomes Codex's provider, and goes back beside the sign-in when the allowance is back ( #540 : once the Codex 5-hour/weekly quota is used up, a third-party model through magpie sends nothing in new or old sessions; Dazzle-sys: the session was on the magpie model all along, the quota went elsewhere) — the Codex desktop app refuses to send for a ChatGPT account that is out of its allowance before any request is made, whichever model the turn is on, so a magpie model beside the sign-in (openai_base_url, ChatGPT mode) is blocked with it; Codex's open-source core and TUI only report a usage limit after a response, the block is the app's, keyed on the account. bd5bf422 made magpie the provider (model_provider = "magpie", model_catalog_json; the app-server's getAuthStatus then answers requires_openai_auth false, the app's API state) only when a model was picked while the account was already out, so an allowance running out later left Codex as it was. KeepOnAnAccountWithRoom now also looks, every 5 minutes, whether the active Codex account is out (CodexUsedUp, now read through LoginUsage's cache, fetched at most once a minute, as the agents' sync asks it on every catalog sync) and tells the agents' sync when that changes (noteCodexUsedUp → catalog.Touched); Codex's Sync then sets the magpie model again, which wires it as the provider while the account is out, marked codex.out in the stash, and puts it back beside the sign-in once the allowance is back, only where it was moved for that (a provider asked for with sign-in "api" stays). Threads started on Codex's own provider and reopened may still be held by the app; the Codex app may need a restart to take the new config. agent's TestMain stubs codexUsedUp so no test asks OpenAI. TestCodexRunsOutAfterPick (ChatGPT mode, then out: provider; out again: stays; back: beside the sign-in; api stays) fails without the change; TestNoteCodexUsedUp checks only a change is told. No request was made to OpenAI. 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.
2026-10-02 16:48:26 +08:00
2026-10-24 22:22:21 +08:00
2026-11-06 19:50:18 +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-11 14:28:17 +08:00
2026-11-01 07:39:08 +08:00
2026-11-11 14:28:17 +08:00
2026-10-23 02:17:01 +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-06 19:50:18 +08:00
2026-11-07 04:03:00 +08:00
2026-10-31 21:29:22 +08:00
2026-11-06 19:50:18 +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-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-10-09 23:25:04 +08:00
2026-10-25 03:51:20 +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-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-06 11:58:35 +08:00
2026-10-28 15:46:26 +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-11-09 13:05:00 +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-10 18:07:27 +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-10-17 23:11:01 +08:00
2026-11-10 12:54:39 +08:00
providers: DimAgent's subscription is taken out of magpie (a DimAgent team member on X: dim doesn't allow its subscription used through a proxy, and users doing so get banned or lose their discount) — #226 signed in to DimAgent as its desktop client does and served its models through the gateway. The sign-in, the account provider and its dimagent/<model> models, the quota card, magpie accounts … dimagent and the icon are gone, with internal/dimagent. An account signed in before is left out when logins.json is read and dropped from the file at its next write, so its tokens aren't kept. The pasted-callback field and route stay, generic, with no sign-in using them. Tested with TestDimAgentLoginDropped (fails without the filter); in a sandbox HOME with a DimAgent login left in logins.json, magpie accounts --json lists nothing and magpie accounts add dimagent is refused. signin-callback (fixture renamed), old-webkit and click-scroll pass; go vet, go build (GUI, -tags nogui, GOOS=linux, GOOS=windows) and go test -tags nogui ./... pass (TestUserPath and the Claude/Devin sign-in tests flaked under the full run and pass alone).
2026-09-30 15:33:40 +08:00
2026-10-13 05:34:13 +08:00
2026-10-19 03:19:13 +08:00
2026-10-17 23:11:00 +08:00
2026-10-29 16:50:17 +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-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-06 12:48:51 +08:00
2026-10-30 22:48:39 +08:00
2026-11-06 05:21:05 +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-10-27 23:35:08 +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-10-05 09:55:12 +08:00
2026-11-10 22:26:38 +08:00
2026-11-03 16:43:12 +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
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-09 14:08:07 +08:00
2026-10-09 14:08:07 +08:00
2026-10-26 23:27:55 +08:00
2026-11-10 12:54:39 +08:00
2026-10-10 10:22:59 +08:00
2026-10-17 23:10:59 +08:00
2026-10-05 15:02:17 +08:00
2026-10-20 20:08:25 +08:00
2026-11-04 17:11:55 +08:00
2026-11-03 02:37:56 +08:00
2026-11-10 12:54:39 +08:00
2026-10-02 00:57:41 +08:00
2026-10-10 10:56:55 +08:00
2026-10-27 15:21:10 +08:00
2026-11-10 16:43:47 +08:00
2026-11-10 16:43:47 +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-04 22:45:40 +08:00
2026-11-01 06:21:39 +08:00
2026-10-17 23:11:01 +08:00
2026-11-10 12:54:39 +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-10-14 18:14:17 +08:00
2026-10-20 00:18:51 +08:00
2026-10-19 15:19:31 +08:00
2026-10-11 21:24:10 +08:00
2026-11-10 08:38:12 +08:00
2026-11-11 05:42:37 +08:00
2026-11-10 02:29:21 +08:00
2026-11-11 05:42:37 +08:00
2026-11-10 08:38:12 +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-10 04:58:30 +08:00
2026-11-10 12:54:39 +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
routing: a group can name the reasoning levels agents are offered, so one member with few doesn't take the rest from the others ( #295 ) — a group offered only the levels every member has, so deepseek-flash (low/high/max) beside models with medium and xhigh left the group without them. Group.Levels (CLI magpie group set <id> levels=low,medium,high,xhigh, levels= clears; TUI l; GUI group editor's Levels: its models' shared / named) is offered instead in /v1/models, Codex's catalog, Pi and the rest; only levels magpie knows are taken, stored lowest first; a group in a group that names its own offers them for its models; unset is as before. A member without the level asked is sent its nearest, as it already was. The GUI's group save also keeps a family set from the CLI. TestGroupLevelsOverride, TestGroupLevelsReachAgents, TestGroupLevelsNamed (passthrough and translated: medium→high, xhigh→max on the low/high/max member, as asked on the one with all), TestGroupSetLevels and routing-levels.test.cjs (Chromium, WebKit, en/zh) fail without the change. go vet, go build -tags nogui (darwin, GOOS=linux), GOOS=windows go build, go test -tags nogui ./... pass (TestUserPath, a known flake under load, passes alone); click-scroll, old-webkit, routing-effort(-row), routing-levels, settings-groups GUI tests pass.
2026-09-30 16:26:37 +08:00
2026-10-14 18:14:17 +08:00
2026-11-09 20:06:22 +08:00
2026-11-09 20:06:22 +08:00
claude: a Claude account's usage resets are read in the zone /usage names on Windows too, and the provider tests pass whole on Windows (goal: 插件订阅 provider 跟内置的所有逻辑都要一模一样, run on Windows and Linux) — Windows has no time zone database, so "resets Oct 1 at 3:30pm (Asia/Shanghai)" was read in the machine's own zone, hours off for anyone not in that zone; magpie now carries the database (time/tzdata). The provider tests set HOME but not USERPROFILE, which Windows takes the home from, so on Windows they read the test box's own agent sign-ins (Gemini models in a list, an extra provider, a Cursor version); every test home sets both now. Tests whose fake CLI is a shell script (Claude Code's auth status, codex --version, macOS's security) skip on Windows, as the fake devin did, and file mode bits go unchecked there. TestParseClaudeUsage fails on Windows without the change. On Windows and on Linux (WSL) the provider package passes whole, three times on Windows (15 failed before), the plugin package and the move/plugin/Grok/Devin/usage tests five times over on Linux. go vet, go build -tags nogui (darwin, GOOS=linux), GOOS=windows go build, go test -tags nogui ./... pass.
2026-10-01 13:51:24 +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-10-25 13:32:12 +08:00
2026-10-25 13:32:12 +08:00
2026-11-10 13:10:28 +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
groups: several routing groups are removed at once, and the found ones removed are one folded line rather than listed (lc on Discord: 路由组可否关闭自动发现,并且可编辑批量移除,已经移除的不要显示,或者用移除组来替代,这样干净整洁,并且可以彻删) — groups could only be removed one at a time from each editor, and every found group removed stayed under the list as a chip of its own. Select, by New group, puts a box on each group's card: a click on a card picks it, the bar's box picks all or none, and Remove (a second click to confirm, Remove 2? Click again) posts groups/delete {ids}, which provider.DeleteGroups removes all or none: refused before any goes when one isn't there or a group left holds one as a member or classifier, and a group held only by another being removed goes after it. A found group removed stays removed (magpie doesn't make it again), now one line under the list, 3 found groups removed, whose app menu brings one back; with found groups off it isn't shown. magpie group rm takes several ids. Turning found groups off altogether was there already (Find groups on their own, v0.1.603). zh, ja, de strings. TestDeleteGroups, TestGroupsDeleteSeveral; group-bulk-remove.test.cjs (WebKit, en and zh: picking, the two clicks, the post, the folded line and its menu, no click moves the page), failing on the old code (the chips). group-found-off, group-arrange, group-fold, settings-groups and click-scroll 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 03:37:03 +08:00
2026-10-31 00:57:21 +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-10-10 19:46:58 +08:00
2026-11-10 12:54:39 +08:00
2026-10-13 13:10:30 +08:00
2026-10-13 13:10:30 +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 04:13:12 +08:00
2026-10-14 15:30:43 +08:00
2026-11-01 05:51:27 +08:00
2026-11-06 15:24:18 +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-10-13 16:00:31 +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-10 18:11:38 +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-10 02:23:23 +08:00
2026-11-08 18:37:41 +08:00
2026-11-08 18:37:41 +08:00
2026-10-15 23:08:05 +08:00
2026-11-10 14:27:21 +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-03 10:44:15 +08:00
2026-11-04 17:06:31 +08:00
2026-11-10 09:49:30 +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-10 09:49:30 +08:00
2026-11-01 07:06:19 +08:00
2026-11-09 02:47:26 +08:00
2026-11-08 15:27:14 +08:00
2026-11-08 15:27:14 +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-10-13 07:30:06 +08:00
2026-11-03 15:30:44 +08:00
2026-11-03 15:30:44 +08:00
2026-10-16 00:16:43 +08:00
gui: many keys are added to a provider at once, and a key the gateway rests says why and until when on its row (361 on Discord: 密钥比较多的话,需要批量导入的话就不方便了) — a provider with several keys took them one at a time, each pasted into Add another key's field. Add another key now has Paste several, a box that takes any number of keys, one a line or separated by commas, semicolons or spaces (full-width ones too), quotes trimmed, repeats counted once, and says how many it holds; Add (or Cmd/Ctrl+Enter) posts keys/import, which adds the ones the provider hasn't got in order (the first becomes its key when it has none) and saves once, and the note says N keys added, M already there. Pasting several keys into the one key's field opens the box with them. Each key's row in the editor, when the gateway is passing it over (rate limited, out of credit, refused…), says Resting · 429 rate limited · back at 14:05, from the same rests the Routing page counts; rotation order and failover were there already (routing modes, rests). zh, ja, de strings. TestSplitKeys, TestAddKeys, TestKeysImportAndRest (no raw key in the reply) fail on the old code (don't build); key-import.test.cjs (WebKit, en and zh: the box, its count, the post, the note, a paste opening it, the rest line, no scroll on a click) fails 4 of 4 on the old assets. account-models, account-arrange, account-return and click-scroll pass on WebKit. go vet, builds (darwin, GOOS=linux nogui, GOOS=windows) and go test -tags nogui -count=1 ./... under a temp HOME pass (TestDevinSignedInOnlyInMagpie and TestClientGoneRecordedAsCanceled timed out once each under load and pass on their own).
2026-10-05 07:54:16 +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-11 14:18: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-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-06 19:50:18 +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-10-13 13:47:59 +08:00
2026-10-31 18:38:31 +08:00
2026-11-04 19:16:10 +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-10-10 10:56:55 +08:00
2026-11-11 04:07:09 +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-11 02:40:18 +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-10-20 20:23:55 +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-10-10 22:54:09 +08:00
windows: an account list read while another magpie writes it is waited for, not taken for no accounts (Packing1 on Discord, Windows 11: 早上更新重启后之前登录的Antigravity订阅供应商和账号都没了 … 整行都没了,供应商里面antigravity直接消失了) — on Windows a file being renamed over (every write magpie makes: a temp file renamed onto it) is, for a moment of up to ~2ms, "The system cannot find the file specified" to anyone else looking at it, with MoveFileEx and with POSIX-semantics renames alike. filememo.Read gave that back as an error, readLogins as no accounts, and whatever change came next (any account's read-modify-write) wrote the empty list back: every built-in account gone, its subscription with it. Measured on Windows 11 (10.0.0.132): one process replacing a 200 KB file, another stat-ing and reading it, saw the file "not there" in a few windows each 20 s. Now steady.Stat and steady.ReadThere wait out a moment of a file not there (15 tries a millisecond apart, Windows only), and filememo looks through them, remembering a file found not there so one that really isn't costs the wait once. A magpie started by an update now waits for the one it replaces before its start-up moves write any file (AwaitPredecessor at the top of run, not only in the GUI). TestLoginsKeptWhileAnotherMagpieWrites (Windows: two writers replacing logins.json, readLogins never without the Antigravity account) failed 1 in 3 and 2 in 8 runs on the old code ("read as no accounts 8 times"), passed 11 of 11 on this; filememo's TestReadWhileReplaced the same (1180 misses on the old code); TestStatWaitsOutAReplace everywhere. A real update in a sandbox home on the Windows box, magpie-cli 0.1.880 → 0.1.942 from the release, kept the account and logins.json byte for byte. go vet (darwin, and windows nogui), builds (darwin, GOOS=linux nogui, GOOS=windows) and go test -tags nogui -count=1 ./... under a temp HOME pass.
2026-10-05 10:57:45 +08:00
2026-11-10 09:49:30 +08:00
2026-11-02 13:44:11 +08:00
claude: a Claude account's usage resets are read in the zone /usage names on Windows too, and the provider tests pass whole on Windows (goal: 插件订阅 provider 跟内置的所有逻辑都要一模一样, run on Windows and Linux) — Windows has no time zone database, so "resets Oct 1 at 3:30pm (Asia/Shanghai)" was read in the machine's own zone, hours off for anyone not in that zone; magpie now carries the database (time/tzdata). The provider tests set HOME but not USERPROFILE, which Windows takes the home from, so on Windows they read the test box's own agent sign-ins (Gemini models in a list, an extra provider, a Cursor version); every test home sets both now. Tests whose fake CLI is a shell script (Claude Code's auth status, codex --version, macOS's security) skip on Windows, as the fake devin did, and file mode bits go unchecked there. TestParseClaudeUsage fails on Windows without the change. On Windows and on Linux (WSL) the provider package passes whole, three times on Windows (15 failed before), the plugin package and the move/plugin/Grok/Devin/usage tests five times over on Linux. go vet, go build -tags nogui (darwin, GOOS=linux), GOOS=windows go build, go test -tags nogui ./... pass.
2026-10-01 13:51:24 +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-10 20:16:44 +08:00
2026-10-13 09:50:57 +08:00
2026-10-29 21:57:21 +08:00
2026-10-16 22:58:41 +08:00
2026-11-10 18:13:38 +08:00
2026-10-16 22:58:41 +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-10 17:18:32 +08:00
2026-10-17 23:11:00 +08:00
2026-10-26 16:27:06 +08:00
2026-11-11 03:20:10 +08:00
2026-10-26 16:13:57 +08:00
2026-10-17 23:11:00 +08:00
2026-11-11 08:26:28 +08:00
2026-11-11 14:13:01 +08:00
2026-11-05 01:00:28 +08:00
2026-11-10 12:54:39 +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-10-21 07:23:23 +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-10-13 11:43:54 +08:00
2026-11-01 04:05:38 +08:00
2026-11-01 07:21:07 +08:00
2026-11-08 11:28:54 +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-10-24 05:51:22 +08:00
2026-11-10 22:20:17 +08:00
2026-10-11 20:09:14 +08:00
2026-10-17 23:11:00 +08:00
2026-11-11 14:28:17 +08:00
2026-11-08 11:28:54 +08:00
2026-10-24 05:31:59 +08:00
2026-10-26 16:13:27 +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-08 02:08:08 +08:00
2026-10-28 07:10:09 +08:00
2026-10-28 07:10:09 +08:00
2026-11-06 11:58:35 +08:00
2026-10-15 05:20:17 +08:00
2026-10-15 05:20:17 +08:00
2026-11-06 19:07:15 +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
claude: a Claude account's usage resets are read in the zone /usage names on Windows too, and the provider tests pass whole on Windows (goal: 插件订阅 provider 跟内置的所有逻辑都要一模一样, run on Windows and Linux) — Windows has no time zone database, so "resets Oct 1 at 3:30pm (Asia/Shanghai)" was read in the machine's own zone, hours off for anyone not in that zone; magpie now carries the database (time/tzdata). The provider tests set HOME but not USERPROFILE, which Windows takes the home from, so on Windows they read the test box's own agent sign-ins (Gemini models in a list, an extra provider, a Cursor version); every test home sets both now. Tests whose fake CLI is a shell script (Claude Code's auth status, codex --version, macOS's security) skip on Windows, as the fake devin did, and file mode bits go unchecked there. TestParseClaudeUsage fails on Windows without the change. On Windows and on Linux (WSL) the provider package passes whole, three times on Windows (15 failed before), the plugin package and the move/plugin/Grok/Devin/usage tests five times over on Linux. go vet, go build -tags nogui (darwin, GOOS=linux), GOOS=windows go build, go test -tags nogui ./... pass.
2026-10-01 13:51:24 +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-10 12:54:39 +08:00
2026-10-14 21:23:15 +08:00
2026-11-10 04:33:22 +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-01 14:48:19 +08:00
2026-11-06 11:58:35 +08:00
2026-11-09 16:28:02 +08:00
2026-11-09 16:28:02 +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-01 19:02:59 +08:00
2026-11-01 19:02:59 +08:00
2026-11-02 22:28:57 +08:00
providers: PipeLLM is a built-in preset (the owner: 作为内置 provider 加上吧) — one key for OpenAI's, Anthropic's and Gemini's models at api.pipellm.ai. Chat goes to its converter (/openai/v1), which takes every family, as its own OpenCode and OpenClaw guides set it up; GPT goes to its own Responses API (/v1) and Claude to its own Messages API (the root), each of which serves its family alone. A model list's type_target (openai, anthropic, gemini) now says which APIs a model is served on when the list names no endpoints: openai on Chat and Responses (Responses first for GPT, as on OpenAI's API), anthropic on Messages alone, gemini on Chat alone. Keys at console.pipellm.ai; its icon is the site's favicon; README lists it. Not sponsored. No PipeLLM key was at hand, so no real request was made; TestPipeLLMRoutesByTypeTarget (httptest list) fails without the change. go vet, go build -tags nogui (darwin, GOOS=linux), GOOS=windows go build, go test -tags nogui ./... pass.
2026-10-02 10:31:23 +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-09 05:06:48 +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-10-11 22:02:50 +08:00
2026-10-30 15:42:29 +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-10-28 18:24:50 +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-10-28 08:28:56 +08:00
2026-11-10 20:32:38 +08:00
2026-11-10 20:16:44 +08:00
2026-11-05 11:46:26 +08:00
2026-11-07 22:36:03 +08:00
2026-11-10 20:16:44 +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-10 20:16:44 +08:00
2026-11-03 13:40:20 +08:00
2026-10-16 19:38:05 +08:00
2026-10-16 19:38:05 +08:00
2026-11-10 19:53:54 +08:00
2026-11-10 19:53:54 +08:00
2026-10-28 09:29:44 +08:00
2026-11-11 08:31:55 +08:00
usage: a model spelled with a dotted version is priced at its maker's, and a model can be priced from any provider (tony on Discord: old sessions' copilot/claude models had no known price) — Copilot and its CLI's sessions name Anthropic's models claude-opus-4.6 and claude-haiku-4.5, models.dev's anthropic entry claude-opus-4-6 and claude-haiku-4-5, and a session's bare model was looked up only by its exact key at its maker, so neither was priced; a gateway call whose provider is gone or lists no price fell to the same miss. A price is now looked for with a dot and a dash taken for the same, after every exact match. gemini-3-pro-preview stays unpriced: Google's entry on models.dev no longer lists it and no price is made up. For it, and any model like it, magpie model price <model> <in>,<out>,<cache read>,<cache write> keeps a price under */<model> that counts from any provider not priced by the user, after <provider>/<model> and <provider>/* and before any list price, and for a session's bare model; --reset takes it away, magpie model prices lists it. TestDottedIDPricedAtItsMakers, TestAnyProviderPrice and TestPriceOfDottedAndAnyProvider fail without the change. go vet, go build -tags nogui (darwin, GOOS=linux), GOOS=windows go build, go test -tags nogui ./... pass.
2026-10-01 17:46:54 +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-02 18:16:09 +08:00
2026-11-11 03:54:21 +08:00
2026-11-11 12:26:43 +08:00
2026-11-01 03:10:49 +08:00
2026-10-06 07:43:47 +08:00
2026-11-04 10:23:34 +08:00
2026-10-21 07:23:23 +08:00
2026-10-21 07:23:23 +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-10-08 13:47:13 +08:00
2026-11-11 03:41:37 +08:00
2026-11-11 03:41:37 +08:00
2026-10-13 09:09:37 +08:00
2026-10-11 00:20:25 +08:00
2026-10-03 16:45:48 +08:00
2026-10-14 21:54:12 +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-02 05:38:10 +08:00
2026-10-20 20:23:55 +08:00
2026-11-10 12:54:39 +08:00
claude: magpie no longer asks Anthropic for a Claude account's usage, and adding a Claude account warns of a ban (the user: 不要伪造任何的 Claude 请求,能否通过 claude cli 获取 / 我害怕被封; 添加账号时要像其他的 Subscription Provider 一样显示风险提示) — the usage was read by magpie itself calling Anthropic's /api/oauth/usage with the account's token, on a timer, for every saved account, and Claude's usage-limit resets (cedar_ember) were listed, spent and auto-spent the same way. Now the usage is what Claude Code's own /usage prints (claude -p /usage, a command Claude Code answers itself without asking a model), run only when Usage is opened or Refresh pressed (GUI, magpie quota, accounts, TUI), for the account Claude Code is signed in to, at most once in 30s; a saved account shows only what Claude Code reported while using it, or the last reading kept. The Claude resets, Auto-use and their settings are gone (Codex's stay). Session jsonl files hold no usage figures, so they aren't read. Starting a Claude sign-in or import (GUI and CLI) first says Anthropic may suspend or ban the account and that it is at the user's own risk. TestClaudeWindowsAsked, TestParseClaudeUsage, TestClaudeUsageRunsClaudeCode, claude-usage-asked.test.cjs and claude-risk.test.cjs fail without the change. go vet, go build -tags nogui (darwin, GOOS=linux), GOOS=windows go build, go test -tags nogui ./... pass; routing-auto-reset, codex-auto-reset, quota-families, tray-usages, click-scroll, old-webkit, plugin-signin, usage-alert, usage-ledger pass.
2026-10-01 12:38:25 +08:00
2026-11-11 02:40:18 +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-09 19:42:51 +08:00
2026-10-26 22:42:59 +08:00
2026-10-21 08:40:49 +08:00
2026-11-09 19:42:51 +08:00
2026-10-31 09:58:04 +08:00
2026-10-30 18:55:51 +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-08 15:45:57 +08:00
2026-11-08 15:45:57 +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-06 20:47:21 +08:00
2026-10-10 03:55:45 +08:00
2026-11-07 16:05:37 +08:00
2026-11-07 16:05:37 +08:00
2026-11-06 21:32:55 +08:00
2026-11-10 12:54:39 +08:00
2026-11-09 12:42:35 +08:00
2026-11-09 12:47:12 +08:00
2026-11-09 12:47:12 +08:00
2026-11-05 12:37:30 +08:00
2026-11-05 12:37:30 +08:00
2026-11-08 03:13:15 +08:00
2026-10-28 00:14:13 +08:00
2026-11-10 07:36:19 +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-10-19 15:19:31 +08:00
2026-10-19 15:19:31 +08:00
2026-11-09 18:13:08 +08:00
2026-10-08 08:23:20 +08:00
2026-11-10 22:53:58 +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-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-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-10 03:48:24 +08:00
2026-10-14 08:39:37 +08:00
2026-11-03 10:44:15 +08:00
2026-10-17 19:55:49 +08:00
2026-10-12 21:57:29 +08:00
2026-10-17 23:11:01 +08:00
2026-10-27 15:21:10 +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
claude: adding a Claude account is Claude Code's own claude auth login, and magpie never refreshes a Claude sign-in nor asks Anthropic anything with one (the user: 把 magpie 自己的 Claude 登录改成直接用 claude /login,只要体验上没什么差别就改) — magpie traded the sign-in page's code for tokens with Claude Code's OAuth client, asked Anthropic's profile and model list with them, refreshed saved accounts itself (daily keepalive included) and handed a saved account to Claude Code as CLAUDE_CODE_OAUTH_TOKEN. Now Add account runs claude auth login --claudeai in a config directory of magpie's own: the page Claude Code would open comes to magpie's window (Claude Code is given magpie as its BROWSER, which writes the page down and exits), the browser comes back to Claude Code's own listener, and when the browser can't reach this machine the address it ended on, or the code Claude's page shows, is pasted as before and handed to Claude Code. Who signed in is what Claude Code kept (.claude.json, auth status). A saved account in use beside the signed-in one runs Claude Code with CLAUDE_CONFIG_DIR set to its own directory (claude-accounts/ beside magpie's config), its sign-in put there once from logins.json and read back as Claude Code refreshes it; switching to it moves it into Claude Code's own store and removes the directory, as forgetting it does. Claude's models are the catalog's (models.dev), not asked of Anthropic; an imported Claude login is kept as the file has it, and Claude Code refreshes it on first use. Claude Code is required to add a Claude account. TestClaudeSignInByPaste, TestClaudeSignInByPastedAddress, TestClaudeSavedAccountDir (a fake claude CLI, and a server standing in for Anthropic that fails the test if asked) and the reworked sign-in, import and gateway tests fail without the change. With the real Claude Code 2.1.286 in a sandbox directory, its sign-in page (localhost callback) reached magpie's binary and the sign-in waited for the browser; nothing was left behind once it was canceled. go vet, go build -tags nogui (darwin, GOOS=linux), GOOS=windows go build, go test -tags nogui ./... pass; claude-risk, plugin-signin, signin-callback, signin-link, signin-paste-codex, routing-signin, own-signin-remove, click-scroll, old-webkit pass.
2026-10-01 16:37:07 +08:00
claude: adding a Claude account is Claude Code's own claude auth login, and magpie never refreshes a Claude sign-in nor asks Anthropic anything with one (the user: 把 magpie 自己的 Claude 登录改成直接用 claude /login,只要体验上没什么差别就改) — magpie traded the sign-in page's code for tokens with Claude Code's OAuth client, asked Anthropic's profile and model list with them, refreshed saved accounts itself (daily keepalive included) and handed a saved account to Claude Code as CLAUDE_CODE_OAUTH_TOKEN. Now Add account runs claude auth login --claudeai in a config directory of magpie's own: the page Claude Code would open comes to magpie's window (Claude Code is given magpie as its BROWSER, which writes the page down and exits), the browser comes back to Claude Code's own listener, and when the browser can't reach this machine the address it ended on, or the code Claude's page shows, is pasted as before and handed to Claude Code. Who signed in is what Claude Code kept (.claude.json, auth status). A saved account in use beside the signed-in one runs Claude Code with CLAUDE_CONFIG_DIR set to its own directory (claude-accounts/ beside magpie's config), its sign-in put there once from logins.json and read back as Claude Code refreshes it; switching to it moves it into Claude Code's own store and removes the directory, as forgetting it does. Claude's models are the catalog's (models.dev), not asked of Anthropic; an imported Claude login is kept as the file has it, and Claude Code refreshes it on first use. Claude Code is required to add a Claude account. TestClaudeSignInByPaste, TestClaudeSignInByPastedAddress, TestClaudeSavedAccountDir (a fake claude CLI, and a server standing in for Anthropic that fails the test if asked) and the reworked sign-in, import and gateway tests fail without the change. With the real Claude Code 2.1.286 in a sandbox directory, its sign-in page (localhost callback) reached magpie's binary and the sign-in waited for the browser; nothing was left behind once it was canceled. go vet, go build -tags nogui (darwin, GOOS=linux), GOOS=windows go build, go test -tags nogui ./... pass; claude-risk, plugin-signin, signin-callback, signin-link, signin-paste-codex, routing-signin, own-signin-remove, click-scroll, old-webkit pass.
2026-10-01 16:37:07 +08:00
2026-10-11 09:40:38 +08:00
2026-10-17 23:11:00 +08:00
2026-11-10 09:49:30 +08:00
2026-11-09 12:04:20 +08:00
2026-11-09 17:13:17 +08:00
2026-11-09 18:57:29 +08:00
2026-11-09 18:57:29 +08:00
2026-11-11 04:13:12 +08:00
2026-11-01 13:32:30 +08:00
2026-11-04 06:39:37 +08:00
2026-10-15 23:08:04 +08:00
2026-11-01 13:40:29 +08:00
2026-10-15 23:08:04 +08:00
2026-11-06 19:50:18 +08:00
2026-10-01 18:33:45 +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-11 09:04:52 +08:00
2026-11-10 18:57:16 +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
claude: a Claude account's usage resets are read in the zone /usage names on Windows too, and the provider tests pass whole on Windows (goal: 插件订阅 provider 跟内置的所有逻辑都要一模一样, run on Windows and Linux) — Windows has no time zone database, so "resets Oct 1 at 3:30pm (Asia/Shanghai)" was read in the machine's own zone, hours off for anyone not in that zone; magpie now carries the database (time/tzdata). The provider tests set HOME but not USERPROFILE, which Windows takes the home from, so on Windows they read the test box's own agent sign-ins (Gemini models in a list, an extra provider, a Cursor version); every test home sets both now. Tests whose fake CLI is a shell script (Claude Code's auth status, codex --version, macOS's security) skip on Windows, as the fake devin did, and file mode bits go unchecked there. TestParseClaudeUsage fails on Windows without the change. On Windows and on Linux (WSL) the provider package passes whole, three times on Windows (15 failed before), the plugin package and the move/plugin/Grok/Devin/usage tests five times over on Linux. go vet, go build -tags nogui (darwin, GOOS=linux), GOOS=windows go build, go test -tags nogui ./... pass.
2026-10-01 13:51:24 +08:00
2026-11-05 16:22:31 +08:00
2026-11-04 21:21:32 +08:00
2026-11-10 04:33:22 +08:00
2026-11-07 13:34:54 +08:00
2026-11-01 13:32:30 +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-11 10:37:13 +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-10-21 07:23:23 +08:00
2026-10-31 22:21:29 +08:00
2026-11-05 18:31:17 +08:00
2026-11-10 12:54:39 +08:00
2026-10-15 09:36:26 +08:00
2026-11-10 10:03:49 +08:00
2026-11-10 10:03:49 +08:00
2026-11-10 22:20:17 +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-11 03:54:21 +08:00
2026-11-11 03:54:21 +08:00
2026-11-11 14:13:01 +08:00
2026-10-29 22:40:31 +08:00
2026-10-09 23:25:04 +08:00
2026-11-06 19:50:18 +08:00
2026-11-06 10:17:08 +08:00
2026-11-09 19:23:13 +08:00
2026-11-09 19:23:13 +08:00
2026-10-29 15:39:31 +08:00
2026-10-29 15:39:31 +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-10 18:01:13 +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-10 12:54:39 +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-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-10-10 22:54:09 +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