db87e014f2c53cdcf4c4e10c2d3cd41393ba3cb6
1682
Commits
| Author | SHA1 | Message | Date | |
|---|---|---|---|---|
|
|
92d2ed74f9 |
providers: an Ark key's Seedance models are under Video models in its editor, each to tick
axelburks on Discord: "供应商里方舟的配置页,有图像模型选项能勾选模型,但是没 有视频模型选项不能勾选视频模型". A Volcengine Ark key's editor listed its Seedream models under Image models, to tick, and had its Seedance models among the chat models or nowhere. Cause, two parts: - The editor had no video section at all: video models had no list and no hidden set (gateway-routing.md said "Video models aren't listed in the editor, so there is nothing to hide there"). - catalog's live parse read only "kind" and modalities.input/output. Ark's /api/v3/models marks no kind: it says domain "VideoGeneration" / "ImageGeneration" and modalities.input_modalities/output_modalities. So Seedance came back as a chat model, and 3D models (output 3d, no text) as chat models too. Change: - catalog: a live row with no kind is a video model when its domain is VideoGeneration or it outputs video without text, an image model for ImageGeneration or image without text; Ark's input_modalities / output_modalities are read when input/output aren't there, so a model that gives no text (Ark's 3D) is left out of the chat list. TestFetchArkMarksVideoModels runs on a captured Ark list (testdata/volcengine-ark-models-2026-11-03.json, fetched read-only with GET /api/v3/models, no key in it). - provider: HiddenVideomakers beside HiddenDrawers, VideomakerHidden. - gateway: VideomakersOf (Videomakers on a given list, for the editor), OfferedVideomakers = Videomakers less the unticked ones, read by AutoVideomaker, videomakerObjects (another magpie's list) and mediaModels(true) (generate_video). A hidden one still makes its video when named: bareVideomaker, videosCreate and arkFilms read Videomakers. - gui: the editor's Video models section (renderVideomakers), filmIds and hiddenVideomakers on /api/providers, kept on save as hiddenDrawers is; i18n for every language. app.js comments cut to stay under TestCoreScriptBudget, which this change reached; no raise. - docs: gateway-routing.md's Hidden image models section. Old data: an Ark list fetched before keeps Seedance among its chat models until its list is fetched again; customVideomakers already counts any Seedance id an Ark key lists or picks as a video model, so it makes videos and shows under Video models now. Run on mote, this change and the next (/v1/models ?kind=, gateway and docs only) rebased on f4c664a09; this commit's own tree, on |
||
|
|
d1cdce1302 |
provider: the group alone keeps subscription models out of agents' lists (shaoyang.)
shaoyang. on Discord (#general, 11-03): with a routing group's Model lists set to the group alone (its card's 成员模型不单独列出), the model list fetched still had every model of the group. Cause: |
||
|
|
c3593dc494 |
provider: the Cursor mover's min is 0.2.39, which lists the Claude Cursor hides from an account once per context size (plugins#634, jiaohanying)
@magpie-community/opencode-cursor-auth 0.2.39 (plugins b8ec827 by jiaohanying, released in 0236317) asks Cursor's full catalog (AvailableModels scope 3) alongside the picker. An account Cursor blocks Claude for, whose picker has no Claude while cursor-agent's usable list does, now gets those models as the picker's are listed: once per context size (claude-opus-5-5@300k and @1m, 1m in Max Mode), the efforts the account is served, and only the parameters the model defines (the catalog's Opus 4.7 to 5.5 variants carry cyber=false, which is not sent). Before, each such family was one fallback entry with a 200K window. 0.2.39 also carries 0.2.38 (OpenCode 2.x entry, plugins#657). Raising the min lets keepMovedCurrent bring every moved Cursor user up to it. npm view --prefer-online @magpie-community/opencode-cursor-auth version: 0.2.39 (latest) before this commit. Run on mote at this head: go test -count=1 -run 'Mov|Migrat|Retir|HandOver|Adopt|Plugin|Cursor' ./internal/provider ok; GOOS=linux and GOOS=windows go vet ./internal/provider ok; gofmt -l clean. Plugin side (reviewed head f4cb8ed and the squash on main): bun test packages/cursor 393 pass, whole bun test 0 fail, check.mjs ok; the cyber test goes red with the parameter filter taken out. Not tried: a real Cursor account (none for this run); the author ran a real request at 300k and 1m on a blocked account. |
||
|
|
8c1ee85f91 |
provider: the Devin mover's min is 0.1.35, which keeps Claude's thinking signature (plugins#665)
@magpie-community/opencode-devin-auth 0.1.35 (plugins a064cf1, Vigilans' report) reads delta_signature (10) and delta_signature_type (21), puts the signature on a Messages reply's thinking block (signature_delta when streamed), and sends signed thinking back on the next request's assistant prompt with signature and signature_type. Raising the min lets keepMovedCurrent bring every moved Devin user up to it. npm view --prefer-online @magpie-community/opencode-devin-auth version: 0.1.35 (latest) before this commit. Run on mote at this head: go test -run 'Mov|Migrat|Retir|HandOver|Adopt|Plugin' ./internal/provider ok; GOOS=linux and GOOS=windows go vet ./internal/provider ok; gofmt -l clean. Not tried: a real Devin account (none in a sandbox). |
||
|
|
900ae0fa51 |
backup, sync: sign-ins go too when picked, sealed, never over a later renewal
qianxunji (#feedback) and curtinp118 on Discord: a VPS restored from a backup, or a new computer joining sync, had to sign in to every subscription again. Sign-ins (subscription accounts in logins.json, Codex's auth.json, plugins' sign-ins in plugin-auth.json) can now go too, in each place only when picked; all are off by default, so an upgrade carries nothing new. - Sync (WebDAV, S3, GitHub): a "Sign-ins" tick in the form, with a line saying anyone with the passphrase and the server's file can use the accounts, and that an account on two computers can be signed out on one when the other renews it. CLI: `magpie webdav|s3|github set sign-ins=yes`. - Export: "With the sign-ins", off; ticked, the passphrase hint says the file holds them. CLI: `magpie backup --sign-ins`. - Import: "Bring in the sign-ins too, when the file has them", on. CLI: `magpie restore --no-sign-ins` leaves them out. - Back up by itself: "Sign-ins in backups", Off/On. On asks for a passphrase (twice) that seals the sign-ins alone (the rest of an automatic backup stays unsealed, as before); it is kept in autobackup.json (0600), never sent in the view. A backup whose sign-ins another passphrase sealed restores without them and says so. What goes (provider.CollectSignIns, plugin.CarriedAuth): magpie's own copies only, not an agent's own account, an agent-home row, a hidden or plugin: row, or a retired built-in. Each record is keyed by agent + email + org (or the account key); ids two rows share go on neither side. Restore/import (RestoreSignIns) adds what is missing and updates only when the incoming copy was renewed later; nothing here is removed. Before writing over a row it counts every row that could be the same account (same login, same refresh token, same id): none adds, several keeps all, one is kept when it isn't magpie's own copy, is held, or is the agent's live account. Codex's auth.json is written temp-and-rename, 0600, only where Codex is signed out. Sync merges per record against the last sync's hashes (MergeSignIns): the later renewal wins; a removal crosses only when the other side still had it as of the last sync; ApplySignIns re-checks each row's hash before writing so a renewal in between is kept. A computer with the tick off sends none, so others remove nothing for it; turning it off, a Restore, or a replaced server file clears the last-sync record. Export's and Import's forms moved out of app.js into syncfiles.js, imported when one opens (as autobackup.js is), so the core is 3.2KB under its budget with no raise (app.js 3.2KB smaller than before). docs/subsystems/sync-backup.md has a "Sign-ins, when picked" section; subscription_signin_test.go's header now says it pins the default. Run at the pushed head (678d28cba on origin/main |
||
|
|
5ee5274bd9 |
quotas: a remote magpie's Codex reset is used from its card here (#3850)
prgrmrwy runs magpie on a home server and uses it from work through a remote magpie (and DSH). The remote Codex card said "1 reset", but the reset could only be used from the GUI of the computer that holds the sign-in. What changed: - Gateway: POST /v1/magpie/quotas/codex-reset?user=<email>[&credit=<id>] (Server.codexReset) spends one of that account's resets with provider.SpendCodexReset. That is the Usage page's own code (UseCodexResetCard, then AwaitAllowance), moved out of internal/gui/usage.go so both use it. A reset can't be undone, so the route needs an enabled gateway key with full access, from loopback too. No key gets 401, and that covers every corsGuard exemption that has no key: Origin null, app schemes, *.localhost and a missing Origin. A read-only key gets 403 gateway_key_read_only (readOnlyGuard, which readOnlyRefused now lists, and again in the handler). A held key gets 403 gateway_key_held, even one told quotas. The account must be named (400 otherwise). One ask runs per account at a time (409). When the reset is used, that card is read again. - Remote client: UseRemoteCodexReset (remote_quotas.go) asks the remote with the provider's key. remoteJSON's status mapping is shared through remoteBody. A read-only key there is told as such, and a 404 as a remote too old. With no answer in time it says the reset may have been used, and it never asks again by itself. A remote Codex card now keeps its Resets; a GLM team's (byWindow) and every check-in are still dropped. - GUI: "Use a reset" / "Use one..." show on a remote Codex card (codexResetCard). They open the same in-app confirmation sheet, with a line saying which computer's magpie uses it, and send the card's provider to /api/usage/codex-reset. The remote's errors are put in the user's words. New strings are in all 5 languages. - DSH: no code here. Its provider plugin reads /v1/magpie/quotas/cards and can call the new route with a full key. - resetOutcome (a reset's result in words) moved from app.js into resetask.js, the only place that says it, so the core's scripts stay in TestCoreScriptBudget's 1,533,802 with no raise (1,533,003 after; origin/main |
||
|
|
2e4735f8f8 |
provider: WorkBuddy's mover min is 0.2.20, whose China accounts tell routing when their extra credits lapse (Kayphoon)
Kayphoon on Discord asked that routing spend first the WorkBuddy CN account whose extra-credit packs expire soonest. Smart already orders accounts by the soonest lapse a window it reads says (Allowance.Renewal, Lapse, Pace), but extra credits only WorkBuddy's detail lists have (plugin 0.2.17's "Extra credits" window) said their lapse only on that window, which is set aside, and routing reads none set aside. Plugin 0.2.20 (magpie-community/plugins 311d628) puts it on the Credits window too; keepMovedCurrent now brings every moved user to it. Run at this head (mote): gofmt -l internal/provider empty; go test -timeout 45m ./internal/provider ok. npm view --prefer-online shows @magpie-community/opencode-workbuddy-auth 0.2.20. Not tried: a real WorkBuddy CN account with expiring packs, routed through the gateway. |
||
|
|
d10f377657 |
providers: Names & levels is Names, prices & levels, where a model's own price at one provider is set (ferock4669)
ferock4669 asked on Discord whether magpie has a screen to price each model, since one model can cost differently on each provider. It has: each row in a provider's per-model list has a price box (input, output, cache read, cache write, 1h cache write, long-context tier, $ / 1M tokens), saved in settings' ModelPrices under pid/model. It wins over the list price in Usage (usage.Pricer through provider.BasePriceIn) and in a key's spend cap (usage.KeySpent through NewCoster). Nothing has to be built; the button opening it said only "Names & levels", so nobody finds a price there. What changed: - The button, its panel's heading and fold, and every note that sends the user there say "Names, prices & levels" (zh 名称、价格与推理档位, zh-TW 名稱、價格與推理檔位, ja 名前・価格・推論レベル, de "Namen, Preise & Stufen"); the gateway's vision and compaction notes, the provider package's text, the subsystem pages and the site's start docs (en, zh, ja) follow. - The button's tooltip says it sets what each model costs at this provider; Usage's "estimated" tooltip says where a provider's own price is set and that it counts over the list price. Both in en, zh, zh-TW, ja and de. - Not changed: the Codex model description text in internal/codexcat (it goes to Codex, so a vendor sees it) and core_budget_test's history comment. - app.js: a comment above the price box is shortened so the core script stays under its budget, not raised (app.js 116 bytes under origin/main). Run at the pushed head (rebased on origin/main |
||
|
|
1af868a153 |
provider: a Codex app left on a used-up account restarts with Restart the app off too (atom0964)
v0.1.2826 ( |
||
|
|
c0d4f17a34 |
provider: Qoder's mover min is 0.2.59, usage with each pool's count and the plan's refresh (jzing.draw)
jzing.draw on Discord (#feedback, 2026-11-03): Qoder's own panel said 套餐内 Credits 1,817 / 2,000 (refreshing 2026-11-22) and 资源包 2,400 / 3,400, while magpie's Routing row said a bare "剩余 15%". Plugin 0.2.59 (magpie-community/plugins 1984cf6) sends amount, limit and unit on Total credits and on each pool, and the plan's Credits window resets at expiresAt. The Routing row and the Usage card now say "1,183 / 5,400 credits · 22% left", Qoder's 183 + 1,000. Raising the min lets keepMovedCurrent bring every moved Qoder and Qoder CN user up to it. 0.2.58 (OpenCode 2.x loading, plugins #657) is named too. npm has 0.2.59: npm view --prefer-online --registry https://registry.npmjs.org @magpie-community/opencode-qoder-auth version -> 0.2.59. Run at the pushed head (mote): go test -run 'Mov|Migrat|Qoder|Plugin' ./internal/provider ok; GOOS=linux and GOOS=windows go vet ./internal/provider clean; gofmt -l clean. The plugin's own bun test packages/qoder: 382 pass, 0 fail. Not tried: no real Qoder account. The reporter's 15% (85% used) isn't reproduced from their screenshot's numbers, which leave 22% together. |
||
|
|
219b60f494 |
accounts: the first account of a gateway-served subscription ticks off (Rime_Nan on X)
Rime_Nan on X: in WorkBuddy's account list the first account (First) couldn't be ticked off; it took dragging another account above it first. For a subscription the gateway serves itself (plugins, Copilot, ChatGPT API, Gemini, Antigravity), First is only the order the gateway tries accounts in; no agent is signed in to it. setSideLoginOn still refused it ("put another account first"), and the GUI drew its tick fixed.
Now, unticking the first account hands First to the next ticked account that hasn't lapsed and turns this one off. If no other account is ticked, it is still refused, with "tick another to stop using it", and the GUI's fixed tick says the same. An account the user left off is never ticked on. Claude and Codex (pausable) are unchanged.
To keep the core scripts in their budget without raising it, the bytes were paid for by cutting renderAccounts' comment to one line: app.js is +20 bytes, under 1,533,802.
TestCopilotAccounts asserted the old refusal; it now checks the handover and that the only account in use still can't be ticked off.
Run (mote, macOS 27, at f9dda0d3e on origin/main
|
||
|
|
1dead5dc7b |
provider: magpie's own Codex account switches leave the Codex app running unless Restart the app is ticked (atom0964)
atom0964 on Discord (#help) has two ChatGPT Plus accounts in magpie, with Codex always signed in to the first and Only switch Codex's sign-in both off, on Smart routing. The Codex desktop app kept restarting by itself. They tried several combinations of the ticks and it still did. Why: with both off, SwitchWhenSpent signs Codex in to the next account at 98% and back to the first below 90%. Each switch was noted for the Codex app (codexAppSpentSwitch), and KeepCodexAppOnItsProvider ended its app-server once no turn ran; the ChatGPT app shows that as an error and relaunches (#4550). With Codex kept on the first account there is no switch, but the used-up takeover (magpie made Codex's provider for a used-up account and given back once it has room; |
||
|
|
b967b16208 |
usage: a Zhipu pay-as-you-go key's balance card; SiliconFlow's says its query is gone
nam.haid on Discord: the Usage page showed no balance for a Zhipu key,
and SiliconFlow's card always said only "暂时无法获取额度".
Zhipu / Z.ai: nothing read a pay-as-you-go key's balance. BigModel has no
documented balance API; its console asks
/api/biz/account/query-customer-account-report with the key as a Bearer,
and it answered a real key (the owner's, 2026-11-03) the same at
open.bigmodel.cn, www.bigmodel.cn and api.z.ai:
{"code":200,...,"data":{"balance":0E-9,...,"availableBalance":0E-9,
"frozenBalance":0E-9,...},"success":true}; a bad key gets code 1000 at
HTTP 200. zhipuBalanceSource reads availableBalance at the key's own host
(¥ on bigmodel.cn, $ on api.z.ai). A refused key says so in the words the
Coding Plan card already uses (zhipuRefused), another code says its code
and msg, a reply without availableBalance is an error, never a balance. A
GLM Coding Plan key (a base under /api/coding/, or a key on the "coding"
plan) isn't asked: its plan windows are its card. A key seen only at the
shared /api/anthropic endpoint gets a card only once the account was ever
paid in. KeyBalances now skips a key whose own plan has no balance
source, so a mixed provider's Coding Plan key gets no stray card.
SiliconFlow: /v1/user/info answers 410 (code 20092) since 2026-08-14 and
its release notes list no replacement through 2026-10-21. The reason was
already read but shown as the generic line, with the last balance kept.
It is now a typed error (siliconFlowRetired): no kept balance, the card
says the API is gone in the user's language (en, zh, zh-TW, ja, de) and
its "Open the console" button opens cloud.siliconflow.cn (or .com).
Run at this head, rebased on origin/main
|
||
|
|
694f4a6d65 |
gateway: a Codex turn of its own reads past 512 MB, to a sixteenth of the machine's memory (dallascao)
dallascao on Discord: generating images in Codex and revising them again
and again, magpie answered 413 "request body is over magpie's gateway
limit of 512 MB (decoded); the provider was not asked" on
127.0.0.1:3425/backend-api/codex/responses, while Codex signed in to
OpenAI directly went on. The count was right: Codex keeps each image it
generated in the conversation (a function_call_output input_image, a
~3 MB PNG as ~4 MB base64; codex-rs ext/image-generation to_response_item,
and history keeps image_generation_call results), and over HTTP sends the
conversation whole every turn, so ~130 images is 512 MB decoded. To
OpenAI directly Codex uses its WebSocket and sends a delta.
- Codex's own path (codexBackend, the Codex relay, the Responses
WebSocket's read limit, keyLimited on CodexPath) reads to
codexBodyLimit: a sixteenth of the machine's memory (memLimit, else
proc.MemTotal), 512 MB at least, 2 GB at most. 16 GB: 1024 MB,
24 GB: 1536 MB, 32 GB+: 2048 MB, 8 GB or unknown: 512 MB as before.
It is still the bomb guard: nothing decodes past it, and the zstd
decoder keeps its window bound.
- A turn for a magpie model ("provider/model") on that path is held to
the 512 MB of every other route once its model is read: it is
translated, at several times its size. Its 413 says one of Codex's own
models takes up to codexBodyLimit; writeError's /compact hint stays.
- provider.codexNamesBad read tools/input/tool_choice with
GetManyBytes, which copied the whole input (the body's size: 300 MB of
a 300 MB turn in the alloc profile). It reads in place now.
Cost at the largest input (mote, a relayed gpt-5.5 turn of random
~3 MB images, heap objects sampled every 5ms, load ~350): 300 MB took
4.7s, 600 MB 7.7s, 1000 MB 11.9s, peak heap 1.5 to 2.1 GB past the
body's own bytes. The rest of the cost is io.ReadAll growing the decoded
body and fillJSONIn/exchangeOf; bodyRoom still runs a body bigger than
its room alone.
Run at the pushed head (mote): gofmt -l clean; GOOS=linux and
GOOS=windows go vet ./internal/gateway ./internal/provider ok;
go test -timeout 45m ./internal/provider ok, ./internal/gateway ok but
TestCompactionOverByteCapEveryTime, red in the full package run only
(#4862, filed before this; passes alone 3 of 3 here).
TestRequestBodyTooLarge/codex now sends codexBodyLimit+1.
- TestCodexGeneratedImagesPastOldLimit (16 GB machine fixture, a 516 MB
turn of generated images in Codex's shape): reaches the fake ChatGPT
backend whole in ~6s; the same turn for x/gpt-5 is 413 naming
"one of Codex's own models takes up to 1024 MB".
- TestCodexBodyLimitFromMemory: 2/8/16/24/64 GiB and unknown memory.
Broken by hand: codexBackend reading with limit 0 (the old code) makes
TestCodexGeneratedImagesPastOldLimit red with the reporter's 413; the
magpie-model check turned off makes it red (404 from routing, not 413).
Not tried: the reporter's own session or a real Codex image-generation
run through magpie; a turn past 1 GB on a 16 GB machine; the WebSocket's
raised read limit has no test of its own.
|
||
|
|
f37742e14d |
agent: a used-up ChatGPT account magpie can't serve past leaves the Codex app on its sign-in (xiaoq6285)
xiaoq6285 on Discord (magpie 0.1.2798, the Windows Codex app, one ChatGPT Plus account, Codex on its own model joined beside the sign-in): at the five-hour limit the app showed an error and had to be restarted, then its account menu showed only "magpie" with no quota; at the reset it restarted by itself and the account came back. Cause. When the active account was held (used up, no credits), Sync's own-model takeover made magpie Codex's provider on codex/<model> whenever magpie's catalog listed that model on any Codex account -- the same used-up one included. With one account and no fallback every turn it took over is refused on that account anyway, while the takeover: - has account/read answer no account, so the menu drops the user, Plus and the usage meter until the reset; - changes the route twice (into it, back at the reset), and KeepCodexAppOnItsProvider ends the app's app-server each time, which ChatGPT desktop 26.1027.x shows as "ChatGPT 遇到了问题" and relaunches (#4550, still open, the app's own reaction to an ended app-server). Separately, magpie's [model_providers.magpie] requires_openai_auth follows the account out and back (openaiAuth), and codexAppRoute counted it even when that table was not Codex's model_provider, so staying beside the sign-in would still have ended the app-server at the limit and at the reset. Change. - provider.CodexServesWhileOut(model): the Codex subscription has fallbacks for codex/<model> (FallbackModels), or another ChatGPT account is not known held and not lapsed. - Sync's own-model takeover runs only when that holds. Otherwise Codex stays on its sign-in: the app keeps the account, its quota and reset, and shows its own limit message. With a fallback set it moves as before ( |
||
|
|
e41ef6288c |
providers: a spend cap on an API key, per day, month or in all (sparkling_lemur_62868)
sparkling_lemur_62868 on Discord: a team's OpenAI key holds granted credits that other docker services spend from too, and they want magpie to stop at a share of it. Their workaround was two magpies behind a gateway-key limit. What changed - provider: KeySpendCaps on a provider, keyed by the key's fingerprint (key_spend.go): USD over a local calendar day, a local calendar month, or in all since it was set. Since is kept while the cap stays one in all. SetKeySpendCap and ParseSpendCap refuse an amount outside 0 < usd <= 1,000,000 and an unknown period, and leave the saved cap as it was. Subscriptions are refused, since an account has its own usage-window cap. - usage: KeySpent(keyID, start) is what magpie's own calls on the key cost at the Usage page's prices. Turned-away calls and app-reported ones are left out. It reads usage.jsonl once per key and start, keeps the sum for 5 minutes, and Append counts each new call into it (spentNew). A read that a write races is read again. - gateway: perKeyEvery bars a key at its cap (spendHeld) as a usage cap holds an account. The next key serves, then the fallbacks. With none, the reply is 429 "spend cap reached: ..." naming each key, what it spent of which cap, and how to go on. Retry-After is when the soonest period renews; a cap in all gives none. A spend hold is not a usage cap: Stop at the caps and strictKeep don't end at it (capHeldOnly). The trace's barred row carries the cap, the spend and the period. - GUI: a pill on each key's row in the provider editor, for example "$7.50 of $20.00 today". It opens the app's menu (No spend cap, Per day..., Per month..., In all...) and then takes the amount in place, as the lane-limit pill does. A key at its cap gets a line under its row: "At its spend cap · back in ...". Every string is in all five languages. The pill and the line are in keyspend.js, which app.js imports when it draws a key's row, so the core's script budget is not raised. /api/providers' keyList carries spend, and POST provider/keyspendcap sets it. - CLI: magpie provider spend-cap <id> [key [usd [day|month|total]|off]] lists each key's spend and sets or removes a cap. - docs: providers-accounts.md and gateway-routing.md. Caveats, also in the tooltips: - What counts is magpie's priced usage, not OpenAI's bill. - A model with no known price counts $0. - Requests already under way when the cap is reached still finish, so a key can go a little past it. Run on mote at the pre-rebase head ( |
||
|
|
58af17aca7 |
provider: WorkBuddy's mover min is 0.2.19, the China window says it is an estimate (kunghim)
opencode-workbuddy-auth 0.2.19 (plugins #663, kunghim) renames the China
build's token window from "Free model tokens" to "deepseek-v4.1-flash
tokens (est.)", since on copilot.tencent.com that model is charged x0.11
credits (testdata/config-561.json), and the window's ~200M cap is magpie's
own estimate: "151.5M / ~200M". WorkBuddy AI's card is unchanged. 0.2.18
was #657's OpenCode 2.x entry. keepMovedCurrent now updates every moved
user to 0.2.19.
npm view --prefer-online @magpie-community/opencode-workbuddy-auth@0.2.19:
version 0.2.19, sha512-8qnqnKk3/qOxZxZI+klWx7V/WX1FHvrSCRaZOvN63givYmQ355YpPob7gL7hjaHLDu8gmaq7jTb6aXBd8o3LDg==
Run on mote at this tree (origin/main
|
||
|
|
3e31962225 |
provider: Request headers to pass, the agent's own values to its provider
A provider's fixed Headers can't say a value that changes from request
to request or from client to client. 3jRzfF52Qx on X asked for the
agent's own header values to reach the vendor. Each provider now has a
comma-separated list of request headers, saved as `passHeaders`. When the
agent's request carries one of them, its value goes to that provider as
the agent sent it.
- Where it is: the editor's "Request headers to pass" (zh 透传请求头),
under Advanced, right after Reply headers.
- The agent's value stands over a fixed Headers value of the same name.
When the agent sends none, the fixed one goes.
- Never passed on, listed or not (provider.RequestHeaderPassable):
- magpie's key: Authorization, X-Api-Key, X-Goog-Api-Key, Api-Key;
- cookies and sign-ins: Cookie, Set-Cookie(2), WWW-Authenticate,
Authentication-Info, Proxy-*;
- the connection's own fields: Host, Connection, Keep-Alive, TE,
Trailer, Transfer-Encoding, Upgrade, Expect;
- what magpie writes for the body: Content-*, Accept,
Accept-Encoding;
- Origin, Sec-* and X-Magpie-*.
Save refuses such a name with a reason (RequestHeadersOK), and so does
the editor, before the save. The editor's list is held to Go's by
TestReplyHeadersNeverAsTheProvidersAre. A name written into
providers.json by hand is dropped on read.
- Only that provider gets them. forwardOnce, which every chat,
responses, messages, count_tokens, group-member, fallback and plugin
try goes through, puts the agent's headers in the try's context under
the try's provider id (WithClientHeaders). Provider.Sign passes only
what that id lists, before an account signs, so a signed-in account's
own signing still wins. A plugin's fetch gets them in req.Header.
- Wire headers are still masked when read (
|
||
|
|
63dc359fb4 |
providers: a subscription account's rest, or its model's, shows on its row (maxleebeta)
maxleebeta on Discord (#feedback): WorkBuddy answered 429
{"type":"rate_limit_error","message":"WorkBuddy: 您的使用量已超出频率限制,将在
2026-11-03 23:57:19 UTC+8 重置,您也可以切换其他模型继续使用。"} while the
provider's card said 1,934/2,350 credits left (82%), and nothing on the
Providers page said the account was held back.
Routing already handled the refusal: resetsWhen reads the time (UTC+8, the
space before 重置 included), failure() gives failQuota, and since it says
切换其他模型 the rest is that model's alone (restID), by "resets", till
15:57:19 UTC; the account's other models are still asked (#1669). What
was missing was the page: a key's rest showed on its row, an account's
never did.
- gateway.RestsUnder(prefix) lists the rests in force under a key prefix
(provider@ for a subscription's accounts, provider@user/model for a
model's), with Key and the rest's note (Model, By, Error).
- providerJSON.accountRests gives them by user in lower case, the model
filled in from the key when the note has none; provider.KeyRest gains
By, Model and Error.
- app.js: the account row in the provider editor gets a line per rest
(accountRestLines): "<model> resting · 429 quota used up · back at
<time>" or "Resting · …" for the whole account, the vendor's words
beside it (shown whole when it names a time magpie couldn't read, so
an unknown format still says why), and Try now (gateway/unrest by the
rest's key). The key row's rest line is now the same helper
(restLineOf), so app.js grows ~800 bytes, under the core budget.
- New strings in zh, zh-TW, ja and de. docs/subsystems/gateway-routing.md
says where the Providers page reads them.
Not changed: the "-sg" maxleebeta saw in pi is WorkBuddy AI's own model
id (deepseek-v4.1-flash-sg, the paid Singapore id beside the free
deepseek-v4.1-flash); pi's footer and model picker show ids by design,
and the name magpie writes for it is the vendor's ("Deepseek-V4.1-Flash",
"(SG)" added by the plugin only where two ids share a name). Neither
magpie nor the plugin appends "-sg"; the CN build has no -sg ids.
Run (mote, through mote-run):
- go test ./internal/gateway ./internal/gui ./internal/provider at f0df4bb2b
(base
|
||
|
|
441a2b6b16 |
plugin: a cancelled sign-in saves nothing, and a failed authorize says why (#5016)
Found reviewing magpie-community/plugins#658 (AStudio's and Agnes Code's
sign-ins wait up to 5 minutes for the vendor's desktop app).
Cancel didn't end a plugin sign-in. The window's Cancel (and the sign-in's
timeout) ended plugin.Finish's context, but "callback" was not a
cancellable call, so the host never heard: the plugin's wait went on, and
a session file written after Cancel still saved the account. Now
authorize, callback and apiKey are cancellable as gatewayRequest is
(host.go `cancellable`): magpie writes `abort`, host.js (`signInSteps`)
drops whatever the plugin answers after it, so nothing is saved, and
counts the call done at once. The plugin's wait is told too: every fetch
it makes for the sign-in carries the sign-in's signal
(`whileSigningIn`), and magpie's hook passes the signal as
callback(code, { signal }) / authorize(inputs, { signal }), which OpenCode
doesn't, so a plugin can stop polling a file. A plugin that ignores the
signal keeps running until its own deadline, but its answer is dropped.
An oauth method's authorize that returned { type: "failed", error } (no
callback) was stored and its missing callback called, so the user saw
"s.a.callback is not a function". host.js now answers that, or any result
with no callback, as the sign-in's failure, and plugin.Authorize returns
ErrFailed with the plugin's reason, for auto and code methods; an api
method's authorize already did. The GUI's start shows it as its failure,
`magpie plugin login` prints it.
Docs: provider-plugins.md, and the plugin guide (en, zh, ja) on failing
from authorize and the signal.
Not changed: #3083's timeout field, #4678's model/usage task lifetime.
Tests (testdata/signinend, no network; the vendor is testenv.FakeVendor):
TestCancelledSignInSavesNothing, TestCancelledSignInEndsThePluginsWait,
TestCancelledSignInEndsItsFetch, TestSignInFailsWithThePluginsReason
(internal/plugin), TestCancelledPluginSignInSavesNothing
(internal/provider, through StartPluginSignIn/CancelSignIn).
Run on mote (macOS 27), at this change on
|
||
|
|
17f2387e10 |
gateway tests: each test's Codex pool starts from no Codex client seen (#4807)
TestCodexPoolSaysTheClientsVersion was red in full internal/gateway runs on mote and passed alone: the pool signed its request as codex_cli_rs/0.165.0 where the client said 0.161.0. 0.165.0 wasn't mote's installed Codex (none is on mote's PATH, and the package's TestMain puts an inert codex stand-in first anyway). It was another test's client: provider.codexSeen keeps the newest version any Codex client sent through CodexPath for the process's life, and TestRemoteMagpieCodexModelKeepsLiteOnCodexPath sends "codex/0.165.0 (Mac OS 27.2; arm64)" with an originator there. Any later test then had its pool say 0.165.0. codexVersionCache (the installed and models_cache version, kept ten minutes) is the same kind of state, read in whichever test's HOME asked first. provider.ForgetCodexClientsForTest clears both, and the package's fresh() (which codexSignedIn and the other pool tests start with) calls it, as it already clears Copilot's and the cards' caches. The test's assertion is unchanged. Run on mote at this tree: - old code: go test ./internal/gateway -run '^(TestRemoteMagpieCodexModelKeepsLiteOnCodexPath|TestCodexPoolSaysTheClientsVersion)$' red every time, "request 0: User-Agent codex_cli_rs/0.165.0 (Mac OS 27.2.0; arm64) Apple_Terminal/455", as in the issue's comments. - new code: the same pair -count=3, 3 of 3 ok. - go test -tags nogui ./internal/gateway -run "Draw|Drawing|Relay|Codex|UpBytes|TrysSecondAsk|OneAuth|TestClaude|TestWorkDir|Lite" (the set a comment on #4807 found red): ok, 183s. - go test ./internal/provider -run Codex: ok. - gofmt -l clean; GOOS=linux and GOOS=windows go vet of provider and gateway ok. Not run: the full internal/gateway package. Three other sessions' full gateway suites were running on mote, and one suite runs per machine. |
||
|
|
e189542dfb |
providers: a new-api relay's user id is its own field beside the balance token (zxc56823)
zxc56823 (Discord #general) added a new-api site with a key and an access token. The balance card said 请在供应商的「请求头」中添加 New-Api-User = 你的 用户 ID, so they typed 272298 as a header's *name* and left its value empty. The editor drops a header with no value, so New-Api-User never reached /api/user/self. new-api v0.9's authHelper still answered 401 "未提供 New-Api-User", and the balance stayed unread. CC Switch asks for "User ID" in a field of its own and sends it as New-Api-User beside "Authorization: Bearer <access token>". magpie sends the same request apart from Bearer, which new-api strips. The id can't be worked out from the token or the key, so the field can't be zero-config. - Provider editor, Account balance: when the Balance URL is /api/user/self, a "User ID" field sits beside the token, with the line that says where the id is shown. The field keeps the id in the New-Api-User header row and redraws Headers. It keeps its focus while typing, and turns amber when what's typed isn't digits. - A header named by digits alone with an empty value is the user id. headersOf in app.js and userIDHeader in provider.go (cleanHeaders on save, and the balance read for an unsaved check) both send it as New-Api-User=<digits>. A New-Api-User with a value of its own wins, and the digits header is dropped. So the reporter's saved form now works without being retyped. - The 401's hint and the card's text name the User ID field, not Headers (en, zh, zh-TW, ja, de). - The core script budget is unchanged. The ~1.6KB is paid for by four comments cut in app.js. Run at this tree (on origin/main |
||
|
|
1d8658abca |
routing: a group's model picker offers the providers' image models, and a group of them draws (jzw690 on X)
jzw690 on X: the Routing page's group editor ("Add a model") listed no
image models, so a group of image models, to draw at
/v1/images/generations and to pick in Settings > Images, couldn't be
made.
What changed:
- /api/groups gains `drawers`: each provider's image models
(gateway.Drawers, less ones unticked in its editor unless a group
names them), apart from the chat `models`. The picker offers them
after the chat models, noted "<provider> · Image model" (an existing,
translated key); a member row says so and offers no reasoning level.
Decision-model groups don't offer them. Image models stay out of the
chat catalog, so agents are not offered them.
- An image member drew only when its provider had no picks: picks are
of chat models, so membersFound dropped it as unpicked, and GroupDraws,
resolveDrawing, the group's turns and DrawerMissing all failed.
provider.FindDrawingGroup keeps such a member when drawsModel holds;
the image path uses it (drawingMembers), video keeps FindGroup.
DrawerMissing for a group ref asks GroupDraws.
- Routing card: such a member reads ready (groupsState), and Settings >
Images lists every group that draws, not only those reached through
Served.
- docs/subsystems/gateway-routing.md says so.
Tests:
- TestImageGroupOfUnpickedImageModelsDraws (gateway), from the
reporter's case: two key providers whose live lists hold gpt-5.5 and
gpt-image-2, one with gpt-5.5 picked. group/<id> draws at
/v1/images/generations (the first member's 502 moves on to the next),
as the Settings pick a request naming no model draws, and the model
gone from the list makes it missing.
- TestGroupEditorOffersImageModels (gui): drawers listed, an unticked
one not offered unless a group names it, none among chat models, the
group's members ready, Settings offers the group.
- group-pick-drawers.test.cjs: the picker offers it with its note, adds
it, no reasoning button, Save posts it; en and zh, Chromium and
WebKit.
Broken by hand: drawingMembers passing nil instead of drawsModel made
the gateway test red ("group/pix-images doesn't draw"); turning off the
groups.go drawer branch made the gui test red ("group not ready").
Run at
|
||
|
|
05aba5ca43 |
provider: WorkBuddy's mover min is 0.2.17, extra credits from the detail lists
jiabubu on Discord (magpie 0.1.2774, workbuddy 0.2.16, a China-site free account): the Routing page's WorkBuddy card read "Free plan · 0 / 500" with no Extra credits row. The Routing card is as designed (the stage row shows the window routing goes by, every window is in its tooltip and the account row's wins line). What was missing was the window itself: 0.2.16 split credits only by the resource summary, while WorkBuddy's own panel groups the paid and free detail lists. workbuddy 0.2.17 (plugins da94c27, on npm) adds the extra credits only those lists have as a set-aside "Extra credits" window. Raising the min updates every moved user's plugin. Run at this head on mote: go test -timeout 45m ./internal/provider/ ok; GOOS=linux and GOOS=windows go vet ./internal/provider/ ok; gofmt -l clean. npm view --prefer-online: 0.2.17. Not tried: a real WorkBuddy account with extra credits (the China meter answered 401 for the account I could read); jiabubu's own summary not seen. |
||
|
|
ffc4aa6844 |
providers: an Antigravity pool's meters and a family's set their own caps
pluviophile714 on Discord: an Antigravity (Google AI Pro) account row's
"上限 90%" pill says 每个窗口可单独设上限:点击下方它的用量条, and a click on
its "剩余 97.8% · 7d" meter did nothing. The class: a meter is a cap
button only when its window has a capId. Two kinds of meter never had one:
- A pool's own windows (Gemini · 5 hours / · 7 days, Claude & GPT · …),
set Aside for routing, got no Capped/CapID from WithCapped, and
routing's allowanceOf skipped them, so a cap there could not hold.
Now WithCapped marks a pool window that has members capped (CapsSome),
with CapID = its LineName ("gemini · 7 days", as both pools have a
"7 days"). allowanceOf hangs each pool window on its members' own
windows (Limit.pool), and CapHeld and NearCap count them through
capLimits, so a cap on it holds that pool's models only. Routing's
used-up and For still read the models' own windows, as before.
- A family's meter (windowCapMeter skipped `tiers`): several models'
windows shown as one (Gemini 3.1 Pro High/Low, a pool read without its
summary). It now posts every tier's capId in a new `windows` field;
provider.SetWindowCaps sets them in one save (SetWindowCap, the CLI's,
is it with one).
Changed for users: an account cap (the reporter's 90%) now also counts
an Antigravity pool's 5h and 7d windows, as the pill already says it
does ("each usage window"). Other Aside windows (on-demand spending,
Ollama's bought credits, MCP · Month) and windows past the first two
(tooltip only) stay unsettable: routing doesn't hold on them.
app.js shrinks 305 bytes (comments trimmed); no budget raised.
Run on mote (macOS 27), at the rebased head a2c1e8df1's tree:
- go test ./internal/gui -run 'Budget|Script', ./internal/provider -run
'Cap|Pool|Allowance': ok. GUI: window-cap-pool (new), window-cap,
quota-pools, quota-families, i18n-keys, chromium + webkit: 112/112.
- Before the rebase, at
|
||
|
|
bf05291e2c |
provider: a Claude sign-in with no Claude Code downloads it first (Kabubu01)
Kabubu01 (X, 2117435171205259713) added a Claude account in the GUI on a
computer with no Claude Code: the card ended "登录未完成" with the English
"install Claude Code first, the `claude` command line … magpie signs in to
Claude through it; … `magpie claude-code install`". Every other
subscription used through its vendor's CLI (Devin, Cursor, Grok) installs
it when its sign-in starts; Claude's only said how.
cliFor("claude") is now Claude Code: found by findClaudeCLI (this
computer's, magpie's download, or WSL's), installed by
downloadClaudeCode, which is what `magpie claude-code install` does:
claudecode.Latest, then claudecode.Install, Anthropic's own build checked
against its manifest's SHA-256 and size, into magpie's cache, not on
PATH. claudeExecutable (claudecode.Find) finds it there, so the sign-in
goes on as before. The card shows the existing "Installing Claude Code…"
state (strings already translated). runInstaller uses a CLI's native
installer on every OS when it has no shell one-liner, and a failed
download's error names `magpie claude-code install` as the manual way.
What was run:
- TestClaudeSignInDownloadsClaudeCode (installing → paste page → done
after the fake download) and TestClaudeSignInDownloadFails (the error
carries the cause and `magpie claude-code install`), new, plus every
-run 'SignIn' test, on mote: ok. isolate() fakes the download, so no
test reaches downloads.claude.ai.
- Broken by hand: with cliFor's claude case renamed, both new tests red.
- go test ./internal/provider on mote: ok (160s).
- Windows (win-run, xiaomi-gpu): TestClaudeSignInDownloadFails,
TestSignInInstallFails, TestSignInCanceledWhileInstalling,
TestWindowsInstallerNotOnCommandLine ok; the download-then-sign-in test
skips there, as every fake-claude sign-in test does (shell fakes).
- GOOS=linux go vet -tags nogui and GOOS=windows go vet of
./internal/provider on mote: ok. gofmt -l clean.
- Real download in a sandbox HOME on mote, PATH=/usr/bin:/bin:
`magpie claude-code install --yes` (the same Latest+Install calls)
fetched and checked Claude Code 2.1.317 into .cache/magpie/claude-code,
and it ran (`2.1.317 (Claude Code)`).
- Rebased on
|
||
|
|
a92e85ab20 |
provider: a test that WorkBuddy's spent free-token window holds its model only (youjianqiasongshan)
youjianqiasongshan (Discord) has a WorkBuddy Free plan card that shows 积分 500/500, Extra credits 3,406.7/3,750 and Free model tokens 0 of 200,000,000 left. They asked why they can't use the other credits. The test builds the usage answer workbuddy 0.2.16 gives for that card: - the plan's credits are used up and set aside (usageOf); - both credit windows leave the free models out (spareFree, notModels); - the free model's window is refused, listing deepseek-v4.1-flash and -flash-sg (freeWindowOf). It checks that routing reads this as: - glm-5.1, kimi-k2.6 and deepseek-v4.1 on Extra credits' share, and never used up; - the two flash ids used up until the window's reset; - their refusal pooled to the model (Pooled); - the account not held up and not week-used-up. The code already does this, so nothing in magpie or the plugin changes. The gateway rests a "切换其他模型" refusal on that model alone (otherModels, #1669). Run at this head (mote): go test -tags nogui ./internal/provider ok, and gofmt is clean. Broken by hand: with plugin_usage.go ignoring a window's models list, the test fails on all three non-free models, on Pooled, on heldUp and on WeekUsedUp. Not tried: - The reporter's real account or usage answer. The fixture is built from their card's numbers. - Whether they turned on "仅免费模型" (Free models only), or pinned deepseek-v4.1-flash in their agent. Either one would leave the extra credits unused once the free tokens are gone. |
||
|
|
db0ca1d2d3 |
provider: the Qoder mover's min is 0.2.57, whose QwenWork calls name the client (tnt1223)
tnt1223 (Discord) signed in to QwenWork and got "QwenWork models: HTTP
403: {"code":"403","message":"User identity could not be verified"}" from
both the model list and Test models. Compared with QwenWorkCN.app 1.2.1,
@magpie-community/opencode-qoder-auth 0.2.57 (plugins d40a074) changes
three things:
- Its gateway calls carry User-Agent qoderwork/1.2.1, an X-Request-Id
and the X-QwenWork-* headers, as the client's openApiJsonRequest does.
These are the device poll, the account-context, wallets and the
refresh.
- A biz account's device token is refreshed for its team ({target:
"biz", team_id}), with client_id and redirect_uri. Before, it was
always refreshed as "c".
- That 403 now tells the user to sign in again.
Raising min makes keepMovedCurrent update every moved Qoder user.
npm view --prefer-online @magpie-community/opencode-qoder-auth version
returned 0.2.57 before this commit.
Run at this head (mote):
- gofmt -l internal/provider: clean.
- GOOS=linux and GOOS=windows go vet ./internal/provider: pass.
- go test -tags nogui ./internal/provider: ok (143.4s).
- In the plugin: packages/qoder bun test 381 pass, and scripts/check.mjs
ok.
Broken by hand (in the plugin): with the client headers dropped, the
refresh always "c", the identity not recorded, the enterprise
redirect_uri kept and the hint removed, 4 of the new tests failed.
Not tried:
- A real QwenWork account. None is at hand, so it isn't known whether
these differences caused the 403.
- The chat's Cosy-Organization-Id, -Organization-Tags and -Data-Policy
headers. The official wasm signer has them and the plugin doesn't send
them.
- A move with this min in a sandbox. Only the min changed.
|
||
|
|
12599e9cd0 |
signin: ChatGPT signs in by device code, the first way from another computer
curtinp118 on Discord runs magpie on a VPS and opens its web UI from home. ChatGPT's browser sign-in comes back to localhost:1455, which is the viewer's own computer. The page there won't load, and the box's main line said "The account shows up here as soon as you're done", so the sign-in looked broken. The fix until now was to copy the dead page's address back by hand. ChatGPT now also signs in by device code, as `codex login --device-auth` does (codex-rs login/src/device_code_auth.rs). This is startCodexDeviceSignIn, with StartSignInWith site "device": - magpie asks auth.openai.com/api/accounts/deviceauth/usercode for a code with Codex's client id and headers; - the box shows the code and https://auth.openai.com/codex/device; - magpie polls deviceauth/token, where 403/404 means not entered yet, for up to 15 minutes; - it then trades the authorization code at the token endpoint with the returned verifier and the /deviceauth/callback redirect. Nothing listens on this computer. The window starts this way when magpie web is opened from a host other than localhost or loopback (remotePage in app.js). Either way, the box has a link to the other way: "Sign in with a code instead" or "Sign in in the browser instead". A device code that ChatGPT turns away (404) fails, and that box links to the browser's way. Strings are in zh, zh-TW, ja and de. providers-accounts.md describes the flow. This went over TestCoreScriptBudget. It now fits with no raise (1,533,700 of 1,533,802, on main's 1,533,789). The two way-switch buttons share one helper (codexWay), and eight comments on the sign-in code are cut down: openSignInPage, signingKept, startPluginSignIn, the sign-in proxy, signInProxyChoices, Copilot's GHE.com, dropSigningIn and renderStepPlan. Run on mote (the pushed head is rebased on |
||
|
|
1a92a97caa |
provider: the Qoder mover's min is 0.2.56, which signs in to a Lingma 1.0 dedicated domain (Milktea)
Milktea (Discord) couldn't sign in to their Qoder CN IDE enterprise dedicated domain (企业专属域). Their domain answers 404 at /algo/api/v1/version, which makes it a Lingma 1.0 one, and 0.2.53 refused those. In plugins a16adb3, @magpie-community/opencode-qoder-auth 0.2.56: - signs in with the account Qoder CN IDE already holds on this computer (SharedClientCache's cache/id and cache/user, the shapes from Milktea's gist); - chats on the domain itself, as the IDE's worker signs it; - uses the IDE's three models, falling through when one gets "Model not exist"; - reads the IDE's renewed token again when it is near its end or gets a 105. Raising min makes keepMovedCurrent update every moved Qoder user. npm view --prefer-online @magpie-community/opencode-qoder-auth version returned 0.2.56 before this commit. Run at this head (mote): gofmt -l internal/provider is clean. GOOS=linux and GOOS=windows go vet ./internal/provider pass. go test -tags nogui ./internal/provider: ok (104.6s). In the plugin, packages/qoder bun test: 375 pass, and the 11 new Lingma tests are red on 0.2.55. Broken by hand (in the plugin): keeping Cosy-Scene and Cosy-Business-*, or reading past an error said in an OK frame, turns 2 of the 11 red. Not tried: - A real Lingma dedicated domain or a real Qoder CN IDE cache. No such account is at hand, so Milktea is asked to try it. - A move with this min in a sandbox (only the min changed). |
||
|
|
7c115f6f5b |
provider: picks gone from a list for over an hour serve the list (maxleebeta)
maxleebeta on Discord: with WorkBuddy and WorkBuddy AI both signed in, the Agents page's model picker had no WorkBuddy AI model, and its Providers row read "已登录 · 1 个图像模型 · Free plan" where WorkBuddy's read "1 个模型". WorkBuddy AI's /v3/config (read 2026-11-03 with the owner's account) no longer lists deepseek-v4.1-flash, its free model until now; hy3 is at x0.00 instead. The China build still lists deepseek-v4.1-flash. A pick a plugin's list stops listing goes to Delisted ( |
||
|
|
39f83063ce |
provider: WorkBuddy's mover min is 0.2.16, Extra credits beside the plan's (Jiabubu)
Jiabubu (Discord, magpie 0.1.2738, Windows): a WorkBuddy account's quota line under Routing → Accounts and keys showed the plan's Credits only, with no extra credits (gifted, promo, bought). Fixed in the plugin, magpie-community/plugins 52fff4d (workbuddy 0.2.16): "Extra credits" is every kind but the plan's base, as WorkBuddy's own usage panel and the summary's CreditGroups say (plan_bonus, addon, benefit), so a Pro account's plan bonus no longer sits inside "Credits". This raises the min so keepMovedCurrent brings every moved user to it. npm view --prefer-online @magpie-community/opencode-workbuddy-auth version: 0.2.16, before this commit. Run on mote at this tree: gofmt -l internal/provider clean; go vet and go test ./internal/provider -count=1: ok. The plugin's own run is in its commit (whole plugins repo 4872 pass, 0 fail). Not tried: a real account with extra credits on screen. The owner's WorkBuddy AI account has plan base credits only (its card reads "0.19 / 100", unchanged), and the China account's meter answered 401. |
||
|
|
f3681b90c3 |
gui: the Agents page says a model's load by the picked model and in its picker (axelburks on Discord)
axelburks (Discord #feedback) could see a model's load only on its provider's page, too deep to judge which model to pick on the Agents page. A plugin's reported load (magpie.load) now shows there too, as the same quiet grey badge the provider page uses: - by the picked model in each agent's model row, before the chevron; - on each row of that row's model picker, after the speed. GET /api/model-loads (speeds.go) answers every fresh load (LoadFresh, 5 minutes) by "provider/model" lowercased, the ref /api/model-speeds uses: plugin.FreshLoads copies the fresh entries under one lock, and provider.ModelLoads keys them by magpie's provider id, the user's own listed id too (ModelIDs), with model@size falling back to its model as ModelLoad does. With no plugin reporting it is one lock and an empty map. The page reads it when a model picker opens and with the Agents page's 15s drift check, each throttled to once per 30s, and the drift read only while a row shows a magpie model. No new poll; /api/state and Option are unchanged. The core script stays under its budget (1,533,802) by shortening comments in the picker and agent-row code; no budget raised. The route is named in the CLI's route list (read-only, U) like model-speeds. Run at this head (rebased on origin/main b4073c06a; the rebase onto |
||
|
|
3a74cd92e8 |
claude: /usage waits for its figures, and a read without them is unknown
Seagull fries (haioushutiao, Discord #help; magpie 0.1.2704, Claude Code
2.1.316, Windows 11, Claude Pro): the Claude card said 暂时无法获取额度,
"Claude Code's /usage told no allowance: ❯ /usage ─── Settin s Status
Config Usage …". Reproduced with a real Claude Code 2.1.316 under
Windows' pseudo console in a sandbox: /usage's panel is drawn first with
"Loading usage data…" while Claude Code asks Anthropic for the figures
(5s timeout, retried only on a 401), and the helper took 3s of a still
screen as the panel drawn whole. On a slow answer it told the panel's
frame as the result, and parseClaudeUsage called any text with no window
"told no allowance". A failed load ("Error: Failed to load usage data",
"r to retry") went the same way.
claudetui:
- screen.go: a small terminal grid (CUP/CUU..CHA/VPA, EL, ED, ECH, CR/LF
with scrolling, OSC/DCS skipped, an escape or UTF-8 character cut
between reads kept), 200x50 on Windows as the pseudo console is made,
80x24 elsewhere. The pseudo console sends only the cells that changed,
skipping a cell that holds the same letter ("Settin\x1b[1Cs"), so the
stream read split words and kept a redrawn digit beside the old one.
While /usage is read, each look of the screen with a window is kept
(panel), and usageText reads that before the stream.
- command(), built on b4073c06a's wait for the panel (ikunbots; its
usageDrawn and "hadn't drawn" error kept, now also judged on the grid,
since the pseudo console's split "Settin s" never matched its tabs):
"Loading usage data" on screen is waited out (to
commandWait, s.doing "was still loading /usage's figures" for the
deadline message); "Failed to load usage data" gets one "r"; a panel
still with no figure and loading or failed on screen is an
error_during_execution result, "/usage couldn't load the plan's usage:
<screen>".
- the fake draws the panel a frame at a time (fakeFrames), as Claude Code
does: with one write, the pseudo console passed on only the last
frame, which no longer shows the windows. TestShimReadsUsage now passes
on Windows (#4820, the fake's side; a real panel with figures was not
seen on Windows, see below).
provider:
- parseClaudeUsage: a panel with no figure is "Claude Code's /usage
showed no usage figures: …", not "told no allowance" (kept for
claudeUsageDenied's refusals).
- claudeUsageUnknown: Claude Code's "temporarily unavailable" and the
helper's "couldn't load the plan's usage" keep the account's reported
reading (quota_last), as the first did alone before. Other no-figure
text is still shown as an error (TestClaudeHeaderSurvivesUnclassified-
UsageFailure, TestClaudeUsageReadingAloneDoesNotHideUnclassifiedFailure
hold that).
Fixtures are the reporter's case as the pseudo console passed it on for
the real 2.1.316 (a temporary dump of the helper's screen bytes, sandbox config,
proxy that never answers / refuses): testdata/usage-loading-win-2.1.316.bin
and usage-failed-win-2.1.316.bin.
Run at the pushed head:
- mote: go test ./internal/claudetui ./internal/provider ok; go test
-run 'Claude|Usage|TUI' ./internal/gateway ok; GOOS=darwin/linux/
windows go vet ./internal/claudetui ./internal/provider ok; gofmt -l
clean.
- xiaomi-gpu (win-run): go test ./internal/claudetui: all pass except
TestShimFirstMessageWaitsForTools, red on Windows at main (#4810).
- xiaomi-gpu, real Claude Code 2.1.316 (npm), sandbox CLAUDE_CONFIG_DIR
with a fake token, magpie.exe built from this tree, helper run as the
gateway runs it: a proxy that never answers gives is_error "/usage
couldn't load the plan's usage: … Settings Status … Loading usage data…"
after the 20s wait (was a success with the chrome); a refused proxy
shows "Failed to load usage data", "r" is pressed, and the same error
comes back in 6.6s. "Settings" is whole now.
Broken by hand (before the rebase onto b4073c06a; the merged loop is
re-checked below):
- old tui.go: TestShimWaitsForUsageFigures slow, retried and failed again
all red, each telling the reporter's chrome as success.
- the "r" not written: TestShimWaitsForUsageFigures/retried red.
- old parse message: TestClaudeUsageWithoutFiguresIsUnknown red ("told
no allowance"); old quota_last check: its couldn't-load cases red.
- after the rebase, on the merged loop: the "r" not written,
TestShimWaitsForUsageFigures/retried red; the old "anything still 3s"
in place of usageDrawn on the grid, TestShimWaitsPastTheBanner red.
Not tried: a real account (the box has none of the owner's), so a real
2.1.316 panel with figures was never seen through the pseudo console;
whether Claude Code's frames that show the windows reach the pseudo
console's output before it renders the next one is shown only by the
fake. Not taken: asking Anthropic's /api/oauth/usage, which the owner
ruled out (
|
||
|
|
311ec2ac0c |
provider: the Command Code mover installs opencode-commandcode-auth 0.1.22 (EDwinpzy)
0.1.22 sends reflection/beam each earlier assistant message's reasoning back as reasoning_content, "." where the history has none, so Beam's second turn is no longer turned away with 400 "Missing required parameter: 'messages[N].reasoning_content'" (EDwinpzy on Discord, #feedback, magpie 0.1.2717). A model the Provider API asks the same of is asked once more with it and filled from then on; other models' requests go as they came. keepMovedCurrent updates every moved user. npm view --prefer-online --registry https://registry.npmjs.org @magpie-community/opencode-commandcode-auth version: 0.1.22 (plugins 38ef050; publish run 41498900393 is red only for think-tags, plugins#180). Run on mote: go test -count=1 ./internal/provider ok. Not tried: a real Beam request; the Command Code key here answers 401. The plugin's bun tests cover the reporter's two-turn shape as the chat-completions and responses routes hand it to the plugin. |
||
|
|
8f128877ae |
provider: the ZCode mover installs opencode-zcode-auth 0.1.43 (plugins#649, frank6com)
0.1.43: when zcode.z.ai's edge firewall (Aliyun) answers a Start Plan
request (POST /api/v1/zcode-plan/anthropic/v1/messages) with its 405
block page, every account of the plugin holds off zcode.z.ai for three
minutes. The Start Plan and -Trial requests are answered locally with
the same 405 and provider.BlockedHint, so EdgeBlocked and retryable still
fall back. Free first stays on the coding plan. frank6com's two Start
Plan accounts and three sessions with subagents went on knocking from
both accounts after the block, and ZCode's own app got the same 405, so
the address was blocked, not the account. npm --prefer-online had 0.1.43
when this landed.
Run on mote: go test ./internal/provider ok, gofmt -l clean, GOOS=linux
and GOOS=windows go vet ./internal/provider clean. That run was on
|
||
|
|
253aee08b4 |
provider: an AI Studio key's Gemini URL is filled in once, and stays empty when the user clears it
|
||
|
|
2ff93ffd64 |
provider: the Qoder movers install opencode-qoder-auth 0.2.55 (plugins#643)
0.2.55 has a request that names no effort and a max_tokens of 1024 or less think at none (the lowest level for a model that always thinks) rather than at the model's default. This is WorkBuddy's #643 rule applied to the same default in qoderBody. npm --prefer-online had 0.2.55 when this landed. Run on mote at this head plus the next commits' one-line Qoder/ZCode mover mins: go test ./internal/provider ok, gofmt -l clean, GOOS=linux and GOOS=windows go vet ./internal/provider clean (TestQoderMoversSendTheClientsModelConfig still holds). The plugin's own run record is in plugins 58adead. |
||
|
|
a2837c1f50 |
provider: the WorkBuddy mover installs opencode-workbuddy-auth 0.2.15 (plugins#643, itspig)
0.2.15 gives a chat whose max_tokens (or max_completion_tokens) is 1024 or less no default reasoning effort. On 0.2.14, a 64-token session title on deepseek-v4.1-flash-sg ended "length" with 64 reasoning tokens and no text. npm --prefer-online had 0.2.15 when this landed. Run on mote at this head plus the next commits' one-line Qoder/ZCode mover mins: go test ./internal/provider ok, gofmt -l clean, GOOS=linux and GOOS=windows go vet ./internal/provider clean. The plugin's own run record is in plugins d51bd50. |
||
|
|
5ec2375688 |
gateway: a call's HTTP headers both ways, masked, folded under its bodies
usrname1833 on Discord asked to see the raw request and response HTTP headers (查看原始请求和原始响应的http头), to debug as with a capture. magpie kept the client's request headers and its own response headers only in the request archive, and nothing of what went upstream. Now a call keeps its headers both ways (internal/gateway/wire_headers.go): - the client's, as they reached magpie: headerLogged in Handler() clones them for every request that isn't a GET, HEAD or OPTIONS; - each request magpie sent upstream for the call: method, address, headers, and the answer's status, protocol, headers and time, or the error. rpmTransport (under s.client) records it as it is sent; provider.SendsThroughPlugin records a plugin account's hand-off, shown as handed to the plugin, since the plugin's own request to its vendor is made in Bun and magpie doesn't see it (the view says so). The first 8 tries are kept, the rest counted. Recording copies each header map; nothing is masked or sorted as a request goes. Secrets are taken out when the headers are read (Call.Headers): by what each header is (new redact.SecretHeader, now behind redact.ScrubHeader: Authorization, cookies, x-api-key, api-key, any *-Key, *-Token, *-Secret, *-Auth, *-Signature, but Idempotency-Key and a count of tokens such as anthropic-ratelimit-tokens-remaining), any Bearer or Basic value, and redact.Scrub on the rest; an address loses its password, a secret-named query value (?key=) and its fragment. They live with the call in the 40-call ring; /api/gateway/call gives them as "headers". The request archive keeps the upstream ones as "upstream" beside the request's and response's headers, masked the same way. No body is stored that wasn't before. GUI: under a recent call's bodies on Gateway and a request's on Routing, "HTTP headers" folds open the client's headers, then each upstream request beside its answer (wireHeadersView, plugins/usage/page.js); the archive's copy shows its upstream requests too. Strings in all four languages. docs/subsystems/gui-shell.md describes it. Also changed by SecretHeader: the request archive no longer masks a rate-limit count header (…-tokens-remaining), which the old name rule took for a token. (provider.SecretHeader, which backups use, is another function and unchanged.) Tests: TestRecentCallHeadersBothWays (a fake vendor; the client's key and cookie, magpie's upstream key and the vendor's Set-Cookie all masked; status, protocol and response headers kept), TestRecentCallHeadersEachTry (a 429 then the next key, both kept in order), TestPluginHandOffHeaders, TestScrubURL, TestSecretHeaderRealNames (real header names both ways), TestArchiveOnThisComputer and TestRecentCallBodiesOnDemand extended, call-headers.test.cjs (Gateway, Routing and the archive's copy; chromium and webkit; en at 1100px, zh, zh-TW, ja, de at 380px and Routing at 440; nothing out of the box, no left-border accent). Run (on mote, macOS 27.2, through mote-run, unless named): - Full suite at ebd22b1b4 (the same change on |
||
|
|
3e61d814e5 |
gateway: an AI Studio key speaks the Gemini API too, and searches by googleSearch
cocoasoda (Discord) asked for a native Gemini API mode on the Gemini API provider, so it can search with Google Search on the API credit a Gemini subscription comes with. The Google Gemini preset (and any provider whose Chat URL is AI Studio's OpenAI-compatible one) now gets AI Studio's Gemini API base, https://generativelanguage.googleapis.com/v1beta, at the same key, filled in by normalize, so existing providers get it on load. A Gemini URL of the provider's own is kept; other hosts, Vertex and sign-ins get nothing. Ordinary turns stay on Chat as before. What changes: - A Gemini client (Gemini CLI) is relayed natively, its googleSearch tool included, instead of being translated onto Chat. - A web search with no tools of the client's own (Claude Code's WebSearch) goes to the Gemini API with tools [{"googleSearch":{}}], and the grounding comes back as the client's search result. - A turn with function tools stays on Chat: Gemini doesn't take googleSearch beside function declarations, so before this the switch to Gemini dropped the search silently. Its model is given magpie's search tool, and the same key answers it by a tool-less googleSearch request (searchesOwn / ownSearcher, as Google sign-ins do since #757), on the user's own credit, not another provider's. - The model list isn't asked twice: AI Studio's OpenAI-compatible list is its Gemini API's list. Run on mote at this change on |
||
|
|
d8a34cbcf6 |
provider: WorkBuddy's mover min is 0.2.14, whose free window is set aside (plugins#641)
XiaoFeiyu9 (plugins#641): a WorkBuddy account paying credits read 99% on deepseek-v4.1-flash's free window at 187.7M tokens, with 937 calls answered and no refusal from WorkBuddy, and magpie routed away from it. The window's 190M was a soft cap measured on two other accounts. Plugin 0.2.14 (plugins eea8c9b) shows the window's sum against 200M, marks it aside so routing never counts it as the allowance, and only WorkBuddy's own 429 refusal makes it 100%. The gateway already rests that model on that account until the refusal's reset. npm has 0.2.14 (npm view --prefer-online). This raises the mover's min so every moved user gets it. Run: go test ./internal/provider -run 'Mover|Moved|Migrat|WorkBuddy|Min' on mote: ok. Plugin: bun test in packages/workbuddy, 314 pass; with the aside taken out, 2 fail. Not tried: a real China-build account; whether a paid account shares the Free plan's window at all is unknown, the refusal decides either way. |
||
|
|
952309abcf |
provider: a provider of keys' picks saved before PickedFrom are served as they are (yuancjun)
yuancjun (#help on Discord, magpie web on Linux at v0.1.2679) found that the provider editor saved every model when one was picked, and sent the fix from their fork (yuancjun/magpie, fix/legacy-picks-serve-all, 2d82267d2). Ported here, with the Save side added. withNewlyListed reads picks saved before PickedFrom was kept as "held every model" when they hold every model released up to the newest pick, and adds every model released after it. A pick of one OLD model reads the same way, so every newer model was served beside it, the editor showed them all as picked, and the next Save wrote them all down. With 10 models released 2026-01..10 and "models":["m0"] with no "pickedFrom", Exposed() was 10. PickedFrom is nil too for a provider whose picks were saved before its list was fetched (an import), not only for old ones. - A provider of keys (no Account) with no PickedFrom: its picks are served as they are (yuancjun's change). A subscription keeps the date rule: its list is the catalog's and Select all is a state its editor offers (TestClaudePicksOfEveryModelTakeOnesListedSince). - listedWith: such a provider's next Save keeps the list with its picks, the same picks too (it used to keep was.PickedFrom, nil, so a key provider whose every model was picked before PickedFrom would never be given a model listed later). A subscription's same-picks Save still keeps what it had. Every path that writes picks reads them through Picks(): the GUI editor (PicksOf in /api/providers' chosen), the TUI's model toggles (pages.go). The CLI's `provider set models=` and the importers write the ids given, and their Save goes through listedWith. Users whose picks were already saved as every model can't be told from a real Select all: those picks have PickedFrom kept and are served as saved. They unpick in the editor (Picked only, or Select none, then the models wanted). A provider that showed every model but was never saved since is back to its own picks at once. TestLegacyPicksServeWhatWasPicked (yuancjun's, plus a Save as the editor does it) and TestLegacyPicksOfEveryModelGetPickedFromAtSave. Run on mote at this commit: go test ./internal/provider ./internal/tui ok; go vet GOOS=linux and GOOS=windows ./internal/provider ok; gofmt -l clean. Broken by hand: the Account==nil branch off, the first test is red with all 10 served [m1..m9 m0]; the listedWith change off, both tests are red (PickedFrom [] after the Save; m3 not added). Not tried: a real relay with a real providers.json from before PickedFrom. |
||
|
|
17c465375d |
provider: Qoder's mover min is 0.2.54, which sends model_config as Qoder's client builds it (plugins#638)
square-235 (plugins#638): Qoder CN billed magpie's DeepSeek-Flash (dfmodel)
calls as Auto, at Auto's rate; Kimi-K3.1-Pro was billed as itself.
opencode-qoder-auth 0.2.54 (plugins fa144e4) stops sending the model's
whole model-list entry (minimal_version, strategies, prices,
thinking_config) as model_config and sends the trimmed object Qoder's own
client builds (CN CLI 1.1.81, desktop 0.4.3). A model with no key of its
own, or key auto, is refused with a 400, never sent. npm has 0.2.54
(npm view --prefer-online). This raises both Qoder movers' min, so moved
users get it.
Run (mote), at this tree on origin/main
|
||
|
|
95d0c97bf9 |
routing: "Use before expiry" counts credits that expire before the reset (lcyksp)
lcyksp on Discord: the 「重置前用完」 strategy (pace) ranked a WorkBuddy
account by its monthly 500 credits ("积分 0 / 500 · 已用 0% · 28 天后重置").
WorkBuddy spends check-in credits first because they expire sooner
("70.85 积分 将于 2026/11/3 09:28:52 过期"), and the account was ranked as
if nothing would be lost for 28 days.
What changed:
- provider.Allowance.Pace takes a budget window's soonest expiry into
account (Limit.RunsOut, from QuotaWindow.RunsOutAt, which the
WorkBuddy plugin and others set on the credits window). When that
expiry comes before the window's reset, the window's pace is the
higher of:
- what is left per hour until the reset;
- the share that expires (QuotaWindow.RunsOut, now carried as
Limit.RunsOutLeft) per hour until it expires. When the amount isn't
told, all that is left counts. A share is capped at 100%, and the
hours at no less than one.
The account whose credits are lost soonest per hour goes first.
Expiry at or after the reset, or already past, changes nothing.
Zero-config: nothing new to set.
- The trace says DueBy "expiry" when the expiry set the deadline. The
Routing page's reason then reads "Use before expiry: {who} has the most
credits expiring per hour until they expire — {n} of its allowance
expires in {d}."
- Label: "Weekly pace" / 重置前用完 / 週ペース / Wochentempo becomes
"Use before expiry" / 到期前用完 (zh, zh-TW) / 期限前に使い切る /
Vor Ablauf aufbrauchen. Product call: the strategy's goal was always
"lose nothing at the deadline". A reset and an expiry are both such a
deadline, and "到期" covers both, where 「重置」 names only one. The id
stays pace, so saved groups are unchanged.
- The descriptions (Routing, Settings, group editor), docs/reference.md,
docs/subsystems/gateway-routing.md and the site's start page (en, zh,
ja) say the same.
Go, run on mote at base
|
||
|
|
c47fc516a4 |
provider: Tencent Cloud's Token Plan is at tokenhub.tencentmaas.com/plan (ysm119)
ysm119 (Discord) showed Tencent's docs: Token Plan's OpenAI base is now https://tokenhub.tencentmaas.com/plan/v3 and the Anthropic one on tokenhub.tencentmaas.com is the recommended one, with api.lkeap.cloud.tencent.com marked as going away. Tencent's current pages (product/1823/130060 个人版 overview, 130070 Claude Code, 130071 Codex, 130119 quickstart, 136601 CC Switch, all updated 10-15 to 10-22) give 个人版 the same endpoints as 企业版 China (130659): chat/responses at https://tokenhub.tencentmaas.com/plan/v3, messages at https://tokenhub.tencentmaas.com/plan/anthropic, one sk-tp- key for 通用 and Hy plans. - The tencent-cloud preset's plan region (and the preset default) are at those endpoints, with Responses added (Codex's page uses wire_api "responses"). magpie tells regions apart by endpoint, so the personal and China enterprise regions, now one address, are one: "plan", models the union of both lists. "enterprise" stays an alias (regionAliases, RegionID): a key saved on it, an import link with region=enterprise and `region=enterprise` on the CLI land on plan. Singapore 企业版 (enterprise-intl) is unchanged. - A Tencent Cloud provider saved at the old lkeap /plan/v3 or /plan/anthropic is moved to TokenHub at load (moveEndpoints in normalize), and gains the Responses endpoint when it had chat. A Responses address the user set stays. A provider of no preset (a custom one the user typed lkeap into) keeps its address: that is the user's value, and lkeap still answers today. - An app config still at lkeap (Tencent's OpenClaw page, 130062, still gives it) imports as tencent-cloud at the new endpoints. - Usage: DescribeTokenPlan is 企业版's API (api/1823/132270 lists enterprise products only), and Guangzhou's endpoint now serves 个人版 too, so a Guangzhou provider with no SecretId no longer gets the card asking for one (tcSharedRegion); Singapore's still does. The editor shows the optional SecretId/SecretKey at the plan region, so a personal user sees them too. - docs/subsystems/providers-accounts.md says all of this. Run at the pushed head's base |
||
|
|
5daba8337b |
provider: zed's mover min is 0.1.15, which sends Zed compaction edits only (nllay, plugins#636)
Claude Code's clear_thinking_20251015 context edit was answered 400 by
Zed's cloud ("unknown variant ..., expected `compact_20260112`"). zed
0.1.15 (plugins 48d0cec) keeps only compact_20260112 edits and leaves
context_management out when none remain. npm has 0.1.15
(npm view --prefer-online). keepMovedCurrent brings every moved Zed
user up to it.
Run on mote at
|
||
|
|
b0174e7615 |
usage: a ChatGPT card says why its allowance can't be read, and a ChatGPT API account says where it shows
hmy on Discord: five ChatGPT accounts each said only "暂时无法获取额度"
(Allowance unavailable). danzi002 on Discord: accounts added through the
API never show usage, ones added as ChatGPT do.
What changed:
- Codex's usage read (codexWindows) now words its failure
(codex_usage_words.go): a Cloudflare challenge names the proxy/VPN
address as the usual cause; any other HTTP answer names its status and
what ChatGPT said; a network error says chatgpt.com couldn't be
reached; a reply magpie can't decode says so. The error still unwraps
to accountStatusError, so expiry and passing logic is unchanged.
- A ChatGPT API account (chatgpt-api) was read as a Codex account: a
saved one said "chatgpt-api accounts can't be used side by side", the
one in use read Codex's own sign-in ("Codex is signed out", or another
account's allowance under its name). OpenAI's API tells no plan usage,
so its row now says so, names chatgpt.com/settings/usage (SeeAt) and
says the same account added as ChatGPT shows it here.
- GUI quotaError translates each of these (en, zh, zh-TW, ja, de), and
"not read yet" (errNotAsked) gets its own words. The generic fallback
now reads "Allowance unavailable — hover for why"; the row's tooltip
has always been the raw error. Comments in app.js were shortened to
stay under TestCoreScriptBudget, which is not raised.
- docs/subsystems/providers-accounts.md describes the words.
Endpoint: the real wham/usage read of the owner's accounts in a sandbox
HOME copy (read-only, ~/.codex untouched) answered 200 and parsed, so
the endpoint itself is not broken; the "error decoding response body"
work is another session's and is not touched here.
Run (on mote; provider and gui again at the pushed head, rebased on
18c69aa46;
|
||
|
|
2251ca1ce9 |
providers: a ChatGPT account's row says when its paid plan ends (danzi002)
danzi002 on Discord (#general, 11-02): 「codex 账号什么是可以加一个 plus 账号到期时间」. The Usage page, the tray panel, the TUI and `magpie quota` have shown "Until …" for the signed-in Codex account since |
||
|
|
a32588528f |
provider: WorkBuddy's mover min is 0.2.13, whose free window reads the ledger in linear time (xmoon76)
xmoon76 on Discord: with WorkBuddy on, the bun plugin host sat at 99% CPU and every session hung. Restarting didn't help; turning WorkBuddy off did. The plugin's free-model daily window read magpie's usage ledger in O(n^2), because pinned(chain) ran after every kept row. 16k rows took 10.5 s on each card refresh, all of it on the host's single JS thread, so every plugin's chats waited behind it. workbuddy 0.2.13 (plugins 3167531) pins once per read and takes 14 ms. Raising the min makes keepMovedCurrent bring every moved user to it. npm view --prefer-online --registry https://registry.npmjs.org @magpie-community/opencode-workbuddy-auth version: 0.2.13. Run at this tree on mote (rebased onto |