yetone
97e55faca9
gui: the chart label comment sits over the rule it explains — #149 moved the last label's rule to every chart and left its comment above .sess-list
2026-09-28 20:10:06 +08:00
yetone
2baad5366c
provider: Antigravity's models at several levels are one model with those levels ( #150 : 统一 Antigravity 模型变体与客户端推理档位的映射) — Antigravity lists gemini-3.7-flash-low, -medium and -high as three models, "Gemini 3.7 Flash (Low)" …, so a client picked a level twice: once in the model, once as its reasoning effort, with no telling which won. Now ids that are one id with an effort word after it (-low, -medium, -high, -extra-low, -minimal, -xhigh) are one model, gemini-3.7-flash "Gemini 3.7 Flash", declaring only the levels there are (low,medium,high; Gemini 3.1 Pro low,high), so Codex, Pi and the rest get reasoning levels for it. The level a variant is at is what Antigravity's name says where each name says a different one (gemini-3.5-flash-extra-low is "(Low)", gemini-3.5-flash-low "(Medium)"), else its id's word; a model only named like another (gemini-3-flash-agent, "Gemini 3.5 Flash (High)"; gemini-pro-agent) or with no sibling (gpt-oss-120b-medium) stays as listed. A request asks for the variant the effort picks, an effort it lacks at the nearest level (xhigh is high; medium on low/high is high); with none asked, the id without a level if Antigravity has one, else high — what Gemini 3 does unasked — else the highest. A variant's request carries no thinkingLevel, so the id and the level can't disagree. An old variant id still works: as named with no effort, and moved to the effort asked for. Saved picks and agents set to a variant (antigravity/gemini-3.7-flash-high) are moved to the family, at that level where the agent's own is unset, as Cursor's are. For Gemini 3 models without variants, medium now goes as medium to Flash (which takes minimal/low/medium/high) and still as high to Pro (low/high). Tested against the list an account's fetchAvailableModels gave (sandbox cache)
2026-09-28 20:10:00 +08:00
tinywaves and Codex
89bfde701f
fix(gui): keep usage chart last label inside card ( #149 )
...
* fix(gui): keep usage chart last label inside card
Co-authored-by: Codex <noreply@openai.com >
* fix(gui): align final usage chart label
Co-authored-by: Codex <noreply@openai.com >
---------
Co-authored-by: Codex <noreply@openai.com >
2026-09-28 20:10:03 +08:00
yetone
fb4b6c76cd
library: a skill whose folder is gone can be removed ( #151 ) — its folder was moved aside with the backups on removal, and with no folder the move failed (rename …: The system cannot find the file specified), so a skill marked as no longer in the library stayed listed for good. Now only its entry is taken out when its folder isn't there
2026-09-28 20:01:48 +08:00
yetone
e9b3c8f2ca
provider: Cursor's per-effort picks become the model with efforts (Leo: Cursor 旧模型清单没有迁移) — a Cursor model list picked before each family was one model still named grok-4.7-low … -xhigh and the -fast ones, so /v1/models and the model lists written for agents (Pi's models.json) kept those ids with no reasoning, and Pi never sent reasoning_effort. Now each saved pick that is one of Cursor's ids at an effort is the family magpie offers for it (grok-4.7, grok-4.7-fast), in the order picked, once; ids of a family of one stay. An agent set to such an id (magpie/cursor/grok-4.7-low) is moved at start-up to the family, spelled its way, and to the effort the id was at when its own is unset and it has that one; a model the picker doesn't offer is left. A request naming one of Cursor's own ids with a reasoning_effort goes at that effort where Cursor has the id (grok-4.7-low at high is grok-4.7-high), else as named; and Chat Completions' service_tier: priority asks for the fast id as Responses' does. Tested with sandbox HOME/cache: legacy picks → grok-4.7|low,medium,xhigh, grok-4.7-fast; a sandbox Pi moved to curs/grok-4.7 at low
2026-09-28 19:59:08 +08:00
yetone
24695c19ba
library: the MCP page's note on an agent's own servers says what they are (ARNO: mcp服务器页面好像有些多余的内容被显示到ui上了) — "Codex 每次启动都会自己加上这些…: node_repl" read as if it pointed at servers listed above it, which it doesn't; it now says node_repl is Codex's own MCP server, one it adds itself each time it starts, and that magpie leaves it as it is
2026-09-28 19:59:07 +08:00
yetone
ee8f9eca24
provider: Jev's endpoint can be given in the editor (ARNO: ui中没有地方给我填写自定义的端点) — v0.1.294 took Cloudflare's documented address, …/accounts/<id>/ai/run, but a Jev preset's editor only showed its endpoint, and a save rebuilt the provider from the preset, so there was nowhere to paste it. A Jev provider (TypeSafe, Vercel, Cloudflare) now has a "Jev endpoint" field, the preset's address to start with, kept on save and shown again when it's opened; a preset with no decision API is given none. Tested in a sandbox web UI (WebKit): Cloudflare Jev added with an /accounts/<id>/ai/run endpoint, saved as given, reopened with it and saved again unchanged
2026-09-28 19:51:46 +08:00
yetone
0de3094d67
agent: WorkBuddy takes magpie's models (能否作为Agent的支持WorkBuddy) — a WorkBuddy agent whose provider field puts every magpie model into WorkBuddy's picker: entries in ~/.workbuddy/models.json ($WORKBUDDY_CONFIG_DIR), the custom-model list WorkBuddy reads and watches (no restart), as OpenAI chat-completions models at the gateway's /v1/chat/completions under magpie-workbuddy, with each model's context, output, images and reasoning levels (reasoning.supportedEfforts, canDisableThinking where it can think off). WorkBuddy's own entries (its local models) and the CLI's {models, availableModels} form are kept; a magpie model turned off in WorkBuddy stays off; off takes only magpie's out. Its requests say CLI/<ver> WorkBuddy/<ver>, so they're known by the key. Tested with WorkBuddy 5.5.6's own CLI against a sandbox gateway: deepseek/deepseek-v4-pro answered, reasoning_effort sent, usage under WorkBuddy
2026-09-28 19:24:40 +08:00
yetone
3ad65b03ed
gateway: Linux builds again — syscall has no SO_REUSEPORT on linux (only darwin), so e0c6892's dev handover broke every Linux release from v0.1.291 on (listen_reuseport.go: undefined: syscall.SO_REUSEPORT); it's taken from golang.org/x/sys/unix, which has it on both
2026-09-28 19:18:01 +08:00
yetone
571766e6ff
provider: Jev on Vercel is asked at its TypeSafe API, and on Workers AI at the account the endpoint names (ARNO: Vercel Jev 的默认端点为什么不是 https://ai-gateway.vercel.sh/typesafe;Cloudflare 官方写的是 …/accounts/$CLOUDFLARE_ACCOUNT_ID/ai/run,当前默认端点好像没起作用) — Vercel's preset now points at https://ai-gateway.vercel.sh/typesafe , its documented TypeSafe-compatible API: System One's own request and answer at /v1/systemone with typesafe-ai/jev, the key checked by /v1/models; …/typesafe/v1, …/v1/systemone and the bare host are taken for it, and a saved /v4/ai base keeps the AI SDK evaluation-model protocol it used (ViaVercelEval). Workers AI takes the address Cloudflare's docs give — an endpoint with /accounts/<id> in it, /ai/run after it or not, is asked there as it is and its key checked by that account's /ai/models/search, since a token made for Workers AI alone may not list /accounts; a placeholder ($CLOUDFLARE_ACCOUNT_ID) is looked up as before, and a token /accounts refuses is told to put its account ID in the endpoint
2026-09-28 19:14:49 +08:00
yetone
aed12ac60f
codex: the ChatGPT account's own models Codex lists follow the user's picks too (在magpie里把ChatGPT提供商只勾选GPT-6-Sol,codex里还是显示所有模型 — @vemsux) — signed into ChatGPT with magpie as the base URL, Codex asked the backend for its model list and magpie passed every model the account can reach straight through, so picking among them on the codex provider only ever narrowed magpie's own added models, never ChatGPT's. Now the gateway keeps that /models answer to the slugs the user kept (provider.CodexNativePicked, from the codex provider's picks); untouched picks leave the list whole, as before. The dedup that skips a ChatGPT account's models in CodexListed is unchanged — the backend still lists them, now only the kept ones
2026-09-28 19:06:32 +08:00
yetone
c8d7a995d1
rtk: Codex isn't given an rtk older than 0.50 (LeeHom: rtk's installer didn't add its hook to Codex) — rtk has a hook for Codex (rtk hook codex in hooks.json) from 0.50.0 on; an older rtk init -g --codex only puts @RTK.md in AGENTS.md, which rewrites no command, so switching Codex on ran it and then said the hook wasn't there. With an rtk before 0.50 the Library shows Codex with "Update RTK" (需更新 RTK), its switch off, the tooltip and magpie library rtk saying to update it (brew upgrade rtk, or its installer again) first
2026-09-28 19:02:23 +08:00
yetone
e0c6892f56
dev: a Go change hands the backend over instead of cutting the agents off (为什么老是会reconnecting) — make dev killed the backend, and the dev gateway with it, on every Go save, so Cindy's Pi on :3426 lost its stream and reconnected; now the new backend listens beside the old one (SO_REUSEPORT, dev only), and once it does the old one is sent USR2, stops taking requests, finishes those in flight — a stream as long as it takes — and exits. A backend that builds but never comes up leaves the old one serving. Tested in a sandbox: a 12s stream through the gateway ran to [DONE] across a handover, new requests went to the new backend, and the old one exited when the stream ended
2026-09-28 18:56:50 +08:00
yetone
9eccb96a51
provider: ZCode's and WorkBuddy's models take the reasoning levels their apps offer them (当然要做) — ZCode's from its modelRules' reasoningLevel (disabled is none; enabled, GLM-5-Turbo's one level, is high): GLM-5.3 low/high/max, GLM-5.2 none/high/max; WorkBuddy's from its config's reasoning.supportedEfforts, with none only where its CLI offers thinking off (deepseek-v4-pro): hy3 low/high, glm-5.2 high/xhigh, kimi-k3-1 low/high/xhigh, and a model it gives no levels still takes any. The written-in lists carry them too. gateway: Z.ai's GLM-5.2 and GLM-5.3 are asked their effort in output_config.effort beside thinking on, as ZCode asks them, built or passed through and fitted to their levels — a budget alone left them at their default: tested live, budget_tokens 4096 thought 4.8k–7.6k chars, output_config low 0.9k
2026-09-28 18:56:04 +08:00
yetone
35f43e6665
gateway: Claude Desktop keeps every magpie model ( #148 ) — its gateway check drops any id naming another vendor's model (deepseek, kimi, gpt, codex, glm, qwen… anywhere in it, anthropic/ in front or not), so anthropic/deepseek/deepseek-flash was turned away and, asked without the magpie-claude-desktop key, /v1/models gave it bare ids it kept none of ("returned 0 usable models { rawCount: 13 }"). A model whose id doesn't already read as Claude's is listed to it as anthropic/magpie-<number>, a hash of its magpie id that magpie serves again (/v1/messages, count_tokens, /v1/models/{id}, with [1m] too), its name as display_name and its magpie id as description; Desktop is known by its Electron User-Agent (… Claude/<ver> Chrome/…) as well as by the key. Checked with Desktop's own checks cut out of its app.asar against a sandbox gateway: 4 of 4 kept, was 0
2026-09-28 18:50:11 +08:00
yetone
29c27c65f2
routing: an account out of quota rests until it says it's back, not an hour at a time (关于路由组优先级高的模型异常的展示文案 #147 ) — ChatGPT's usage-limit refusal reaches the failover put in words, its resets_at only as the Retry-After magpie made of it, and a Retry-After is trusted for an hour at most, so a Plus account out until 21:34 read "59 分钟后恢复" and was tried, refused and benched again each hour; the reset now goes on beside the error for the rest to take as the vendor's own, the window it filled renews next, a bare Retry-After alone keeps the hour, a rate limit and a failure keep their short rests, and a Codex reset spent in magpie brings the account back at once. The Routing page says when as well as how long: "quota used up · back at 10:29 PM · in 3 h 41 min" (额度用尽 · 22:29 恢复 · 还有 3 小时 41 分钟)
2026-09-28 18:50:10 +08:00
yetone
33ea9a58ab
warm-up: the 5-hour windows can start at a time of day (预热是重置之后发,时间不一定是我想要的…早上六点发送一个请求,这样就可以做到一天三个五小时) — Settings has "Codex daily warm-up" and "Claude Code daily warm-up" under the warm-ups, Off or On with a time field (06:00 to begin with, local time, codexWarmAt / claudeWarmAt); each day at that time every signed-in account of that kind whose 5-hour window isn't running is sent the warm-up's one tiny request, once a day an account, the day kept in codex-warmup.json / claude-warmup.json so a restart doesn't send it again; a machine asleep then sends it on waking up to an hour late and leaves the day be after that; a failed one is tried again within the hour. It works with the reset warm-up off, weekly or on; with "Weekly and 5-hour" a window that would still be running at the time isn't started on its reset, so the windows follow one another from it (06, 11, 16, 21, then 06 again) instead of drifting round the clock. The warm-up loop looks at the wall clock every minute, running as before every 5 and at once when the time comes
2026-09-28 18:47:30 +08:00
yetone
44cd8fac4c
sessions: OpenCode's and Pi's sessions are listed too (貌似没有opencode和pi的session,能支持一下么) — Usage → Sessions, magpie sessions and the TUI read OpenCode's opencode.db (or $OPENCODE_DB) read-only, or its older storage/ JSON files when there is no database, under $XDG_DATA_HOME/opencode or ~/.local/share/opencode, a subagent's session counted under the one that started it; and Pi's JSONL sessions under $PI_CODING_AGENT_DIR or ~/.pi/agent, plus $PI_CODING_AGENT_SESSION_DIR or settings.json's sessionDir, a forked session not counting again what it copied from its parent. Each gets its title, folder, times, tokens per model with cache reads and writes, cost, and a resume command (opencode --session <id>, pi --session <id>); the folders note names only the agents that are there
2026-09-28 18:45:07 +08:00
yetone
33ffb48f50
tray: clicked, the bird flaps as the header logo does on hover (一定要用应用里的那个 Magpie icon 被 hover 的动画效果) — the frames were a bend of the outline of my own; now build/icon/gen.go draws app.css's .logo.wag itself: the bird cut into body, tail and wing by index.html's clip paths, each turned about the same origin through the same keyframes, cubic-bezier(.3, 0, .3, 1) between each two, the whole bobbing about its feet, over the same .9s — 29 frames played 30ms apart. Checked against Chrome's own rendering of the logo paused at the same 29 moments: at most 0.7% of pixels differ, all of them at anti-aliased edges
2026-09-28 18:43:55 +08:00
yetone
e8eb7078db
provider: ZCode's and WorkBuddy's plans list the models their apps offer now, not a list written into magpie (我觉得一定有API来查询动态的模型列表) — ZCode's come from its built-in provider config, which zcode.z.ai names (/api/v1/client/configs → a release on cdn-zcode.z.ai) and ZCode also ships and caches: the later revision of those is read, as ZCode does, the coding plan's models taken from its providerRules and builtinProviderModelRules (bigmodel.cn's plan its own), and each one's context, output limit and images from the modelRules that match it; WorkBuddy's come from its product config, GET /v3/config signed as a chat, asked with the CLI's User-Agent (CLI/<v> WorkBuddy/<v>; a bare WorkBuddy/<v> gets CodeBuddy IDE's config), its cli agent's models with their names, input and output limits and images — Kimi-K2.8-Preview is there now, and Auto is 256k. The written-in lists are what shows before the first read. Tested live against both with the accounts signed in here
2026-09-28 18:26:07 +08:00
yetone
23e9c0bba3
agent: Cindy's global build is found too (Magpie在Cindy里面显示的图标不对) — its data is in CindyGlobal, one cindy-<account>.db per signed-in account, where magpie only looked in Cindy/cindy-local-v1.db, so the row said Magpie wasn't added when it was; both folders are looked in and every account's database read, read-only as before. The icon itself is Cindy's: it takes no icon on import and draws its own logos only for providers it knows by id or host, a first-letter badge for any other
2026-09-28 18:23:09 +08:00
yetone
9946d4cc85
usage: a Codex reset used is the one that runs out first, and its button says so (hover 的时候详细说明一下,不然用户不敢点,怕用掉了保质期最长的那个) — magpie named no credit when it spent one, leaving the vendor to choose; now it reads the account's credits and names the one to go first (credit_id, as Codex's own client does), one that never runs out last, and spends none when it can't tell which that is. The button's tooltip says it uses the one running out first, and when, and that it asks first; the confirmation and magpie quota reset say which too
2026-09-28 18:22:34 +08:00
yetone
a1ca00d31b
routing: a request shows the reasoning its model was actually sent at (显示意图路由实际的推理强度 #144 ) — the trace keeps the effort the agent asked for and, on each try, the one sent upstream after the turn's pick and fitting to the model's levels (picked marks the turn's pick), so the Routing list reads "Fake · m-big · high", its tooltip says what the agent asked for, and the request's story adds "The turn's pick replaced the medium Codex asked for."; usage.jsonl records the sent effort too, and the Usage session list shows where magpie routed a session's calls and at what reasoning ("→ m-big · high +1", with a Routed line per model and effort in its detail)
2026-09-28 18:11:58 +08:00
yetone
def870f026
provider: ZCode's and WorkBuddy's plans aren't asked for a model list they don't have — with no list of their own to fetch, a refresh asked their endpoints' /models as if they were keyed APIs, unsigned, and each start logged "zcode: https://api.z.ai/models : 404" and "workbuddy: https://copilot.tencent.com/v2/v1/models : 404"; a plan without a list gives its own models now and asks nothing
2026-09-28 18:10:13 +08:00
yetone
10d4e98e19
provider: ~/.gemini/oauth_creds.json is Gemini CLI's only when Gemini CLI's OAuth client minted it ( #143 ) — a sign-in whose ID token names another client (Antigravity's) can't be refreshed as Gemini CLI's and is no longer listed as its account; agy keeps its sign-in in the system keyring, not there, so a personal account Google turns away from Gemini CLI is now told to add itself under Antigravity in magpie
2026-09-28 18:01:49 +08:00
yetone
502246c563
usage: a Codex account's rate-limit resets are on its card, so they don't go unused (可能把 resets card 在里边反应出来么?免得我们忘了用) — wham/usage's rate_limit_reset_credits count, and from /wham/rate-limit-reset-credits when the first of those left runs out, show as "↺ 2 resets · until Sat 22:30" under a hairline on the tray's Usage card, under the account's windows in the window's Usage view, and in magpie quota / accounts and the TUI (nothing when there are none, no date when none expire); "Use one…" asks first — which account, that its windows start again at once, that it can't be undone, and that there is nothing to start again when no window has been used — then spends one with a fresh redeem_request_id on that account (POST /api/usage/codex-reset, or magpie quota reset [<account>] [--yes]), says what came of it in words and reads the usage again; the account signed in now is found from Codex's own auth.json, not only the list magpie keeps. panel: a section's account count is a quiet rounded pill by its name, not a bare 2 at the far end (那个 2 是没有仔细打磨), the "N accounts" kept as its tooltip
2026-09-28 18:01:48 +08:00
yetone
b12c8a4d0c
provider tests: a signed-in test's home is Windows' home too — os.UserHomeDir reads USERPROFILE there, not HOME, so #145 's Windows fixture path was looked for under the real profile
2026-09-28 18:01:17 +08:00
SadWood
70f2153463
test: 修正跨平台测试路径并补充下拉菜单回归 ( #145 )
...
WorkBuddy 测试固定使用 macOS 登录文件路径,导致 Ubuntu 无法读取测试账号。按当前系统选择测试文件目录,保留账号读取、刷新和加密凭证的原有断言。
为已合并的下拉菜单修复补充浏览器回归,覆盖滚轮、滚动条、键盘选择和关闭行为,测试数据使用中性名称。
2026-09-28 18:00:38 +08:00
yetone
663e9c861a
agent: Cindy is an agent row (Cindy 的支持应该放在 Agent 里) — magpie can't write Cindy's providers, so its row is Cindy's own import link, cindy://provider/import, which opens Cindy to add magpie as one custom provider (Claude Code, Codex and Pi endpoints, keyed magpie-cindy so its use is counted as Cindy's) for the user to confirm there; the row says whether Cindy has it already, read from Cindy's database read-only; magpie cindy add does the same from the terminal, and the TUI leaves out an agent with nothing to pick
2026-09-28 17:58:52 +08:00
yetone
f416609a02
gui: an agent with nothing to pick no longer blanks the Agent view — its fields went out as null rather than an empty list (Go's nil slice), and the view's first fields.some threw "null is not an object (evaluating 'a.fields.some')", so none of the agents were drawn; fields is always a list now
2026-09-28 17:56:41 +08:00
yetone
33a645b99d
providers: every row's key pill is one width, so its dot lines up down the list whatever it says ( #146 did it for labels up to 120px) — a plan or key name too long for it ends in … and the tooltip says it whole
2026-09-28 17:53:36 +08:00
yetone
ab3291964d
dev: a backend restart no longer shows "502 Bad Gateway" — the shell asks a read cut off in flight again, of the backend that comes up, and only a write, which may have landed, still fails (Image #14 )
2026-09-28 17:51:03 +08:00
elonnzhang
a2cd79da96
fix(gui): align provider status dots on providers page ( #146 )
...
Give the .key status pill a fixed min-width and hidden overflow so its
left edge (and the green ::before dot) lands at the same x on every
provider row, instead of shifting with label length.
2026-09-28 17:49:50 +08:00
yetone
b552027932
panel: a balance shows its provider's logo before its name (这里也要有Provider的Icon), the generic one for a provider without; the footer is even to the eye (底栏的上下间距是一致的吗) — its rule was a pixel of the space above and the panel's rim takes about one off the space below, 7 against 5 on the Mac, so it's 1+5 over and 7 under now; and a picker comes and goes like an iOS menu (Modal Selector的弹出跟关闭都要有丝滑的动画) — it grows out of the button's middle from .94 on a quick-to-answer curve with a long soft settle and no bounce, .42s, shown at once as it fades in over .18s, and closing leaves its likeness (scrolled and typed as it was, no ids, inert) to fade and sink back toward the button over .22s while the real one is put back at once; under reduced motion it only fades in
2026-09-28 17:49:07 +08:00
yetone
1ae838fc98
gateway: no Add to Cindy — the Gateway view's connect card no longer has a button for one app, which read as an advert and showed whether or not Cindy was installed; the link, its strings and the cindy:// allowance on /api/open go with it
2026-09-28 17:45:39 +08:00
yetone
ea6a5f53e7
agent: the Windows-only WSL test builds again — wslList returns the names and whether wsl.exe answered, and the test took it as the names alone
2026-09-28 17:43:10 +08:00
yetone
6294dd0ac5
provider: WorkBuddy usage shows up — send a WorkBuddy User-Agent and read string capacities (workbuddy 订阅的usage能显示出来吗)
...
copilot.tencent.com's gateway answers 10085 '请求不合法' to a request whose
User-Agent it doesn't know, so the resource-summary meter came back rejected
and the credits window stayed empty; every call to it — chat sign included,
not only billing — now goes out as WorkBuddy/<version>. And the meter sends
its capacities as JSON strings ('3300', '438.88000002'), which wouldn't
unmarshal into float64, so a wbNum type parses either a string or a number.
Verified against the live API (GET /console/accounts + POST
/billing/meter/get-user-resource-summary both 200 with the account's real
credits) from app.asar 5.5.6.
2026-09-28 17:40:12 +08:00
yetone
23f1db6dba
panel: the model's logo on a row's hover comes in on the row's spring (这里的icon出现的时候的动画有点太突兀了 / 像iOS的动画一样丝滑) — its box opens from nothing to a real width measured as the pointer comes onto the row, not a grid column going 0fr→1fr, which WebKit doesn't lay out frame by frame, so the logo jumped to its size over the words; the logo sits against the words and fades and grows in from their side a beat behind the box, .46s open, and goes first on the way out, .36s; the box's padding is counted in its width now, so the leftmost disc's ring is whole; none of it moves under reduced motion
2026-09-28 17:39:05 +08:00
yetone
e6e09aa348
panel: nothing is shaved at an edge (竟然有裁边 / 上面这个border也被裁掉了) — the model's logo on a row's hover comes in as its column opens from nothing to its own width, so a stack of three is as whole as one, with its clip padded past the discs' rings; and the tab's view, which scrolls and so clips at its own top, has the 2px the card's ring outside its box needs, taken from the gap under the tabs. usage: an account's last allowance read is kept (quotas.json beside magpie's settings) and shown in place of one that can't be read for a reason that says nothing about the account — Anthropic rate limiting its usage endpoint, a 5xx, a timeout — across restarts too, with its windows that have reset since starting again from nothing and a tooltip saying when it was read; a reading that comes back is used at once, and a sign-in gone bad is still said (因为rate limit获取不到用量的情况下,能否先暂时用上一次获取到的用量顶替着)
2026-09-28 17:34:08 +08:00
yetone
f8be98bc8a
gui: a dialog's head and buttons stay put and only the fields between them scroll — openModal lays an editor out as head, body, bar (the fields moved into .ebody, the only part that scrolls, and a re-render keeps its place), and the head and the button bar are the same 48px with what's in them centred, so they sit the same above and below (上边栏跟下边栏要固定着,只有内容区可以上下滚动 / 上下间距要保持一致)
2026-09-28 17:30:39 +08:00
yetone
5741e3fc95
provider: WorkBuddy credits are at /billing/meter/... — not /v2
...
The get-user-resource-summary meter, unlike the older /v2/billing meters,
has no /v2 gateway prefix; WorkBuddy's own client asks it at
/billing/meter/get-user-resource-summary on both desktop and web. magpie
was asking under /v2 and would have gotten nothing, so no credits showed.
2026-09-28 17:30:39 +08:00
yetone
9661b8f302
gui(routing): on a wide window the request list and Accounts and keys sit side by side at the same width — they were 1.25fr to 1fr, the left wider than the right (reported by @duanckham on X)
2026-09-28 17:28:14 +08:00
yetone
f6301b0837
panel: a shut agent row is its 36px again — the opening part now always there sat in a second grid row under the row's 9px row gap, so every row had a strip beneath it and its line sat high (每个Item的上下间距竟然不一致); the tab card glides — the panel's height changing on a tab was taken for a resize and the card put still, cutting its glide off, so now only the bar's width changing puts it; and a row opens and closes on a critically damped spring fitted to a cubic-bezier (.25,.3,.1,1), .48s open and .4s shut, with the panel's edge on the same curve and time: it sets off gently, settles without a tail, what's inside comes down into place as it clears and is gone first when it shuts (展开有点突兀,折叠有点油腻 / 像iOS动画一样)
2026-09-28 17:24:14 +08:00
yetone
3f3cdff119
stats: magpie counts its users — once a day a running app or magpie serve sends PostHog (the Magpie project) one "magpie active" event under a random id made up on this computer (~/.config/magpie/install-id), with the version, the system and the architecture and nothing else, no person profile kept; off in Settings → Privacy → Count me as a user, or with DO_NOT_TRACK=1 or MAGPIE_NO_STATS=1, and never from a build from source; the README says what goes
2026-09-28 17:23:41 +08:00
yetone
7dff31fc46
agent: a WSL distro that isn't running is never started to be looked at — any access to its files through \\wsl.localhost starts it — so only running distros (wsl.exe -l --running -q) are probed, once each, and those Codex is in are kept in wsl.json beside magpie's settings (not the stash, which profiles and backups carry) with their fields as last read; a stopped one stays listed as magpie last saw it, with a notice saying so, no path, and nothing checked, synced or migrated, so the minute's list, Detected and Current never open it; picking a value is the user asking, so it starts the distro with wsl.exe -d <distro> -e true first (opening a stopped distro's files is aborted rather than waited for) and then writes, keeping what it wrote at once; a distro no longer installed is forgotten, and one without Codex isn't kept. Tested on the Windows box with a throwaway Alpine distro: listed while running, then after wsl --terminate listed with its last model and effort by magpie ls and magpie codex@wsl:<distro> with wsl -l -v still showing it Stopped, then a model set on it started it, wrote its config and updated wsl.json
2026-09-28 17:22:30 +08:00
yetone
52b3ad3a9e
agent: on Windows, Codex installed in a WSL distro is an agent of its own, codex@wsl:<distro> ("Codex · WSL Ubuntu") — the distros are listed with wsl.exe -l -q (UTF-16LE, or UTF-8 under WSL_UTF8), each asked once through proc for its $HOME, its ~/.codex, a codex on its PATH and its default route, and shown only where Codex is; its files are Codex's own reading and writing (codexIn, at a place rather than a home) through \\wsl.localhost\<distro> (\\wsl$ before that), with the catalog path written in as the distro spells it and what was there stashed under the distro's agent; the gateway written in is 127.0.0.1 when .wslconfig has networkingMode=mirrored and otherwise the Windows host by the distro's default route, with a notice that NAT needs the gateway beyond loopback and through Windows' firewall and that mirrored is the way; its requests stay counted as Codex's, and a profile key is split at its last dot for distro names like Ubuntu-24.04. Nothing runs off Windows. Kimi CLI isn't an agent magpie has yet, so there is no Kimi in WSL. Tested on a Windows box under NAT with a throwaway Alpine distro: detected (the real distros without Codex left out), a magpie model set and reset from the CLI and a test binary, the catalog read inside WSL at /root/.codex; mirrored networking tested only in unit tests
2026-09-28 17:22:30 +08:00
yetone
0984edaa03
cursor: the Run goes to the agent API Cursor's server config names for the account — ServerConfigService/GetServerConfig on api2.cursor.sh, whose agentUrlConfig cursor-agent reads to pick agentUrl in privacy mode (which the Run always asks for) and agentnUrl otherwise — asked once a token, kept by the token's hash so another account asks again, asked afresh and the Run tried once more after a region error, and the global agentn.global.api5.cursor.sh while the config can't be had (retried after a minute), as a team served in one region only was turned away by the global API with 'This region is not yet available for your team'; Cursor's errors have words of their own, no longer Devin's: an unauthenticated or expired sign-in says to sign in to Cursor again in magpie, a region or team restriction says so plainly with a 403 and doesn't ask for a sign-in; and Cursor's expanded ids (grok-4.7-low … grok-4.7-xhigh-fast, Claude with and without thinking, gpt-5.5-extra-high) are offered as one model a family, with the efforts it really has, named as Cursor names its default without the effort and holding what the least of its variants holds, fast and thinking families of their own (GPT-5.5 is 1M, GPT-5.5 Fast isn't said to be) and a family of one kept as Cursor's id — the list saved stays Cursor's own, and the gateway turns model and effort (and Codex's Fast) back into the variant at that effort, Cursor's default for one between those it has, else the nearest, while any of Cursor's own ids still goes as it is
2026-09-28 17:14:07 +08:00
4df6cd14ac
provider: a Claude account's Fable week is read and routed on ( #139 ) — /api/oauth/usage gives a week's allowance per model only in its limits[] array, which readClaudeWindows didn't parse, so magpie accounts, magpie quota and the app never showed Fable's, often the first to run out on Max, and routing went on sending Fable requests to an account whose Fable week was used up. Each weekly_scoped item with a scope.model.display_name is now a window "7 days · <name>", counted in percent, renewing at resets_at, a week long and counting only its model (the name lowercased, spaces and dots as dashes, so "Fable" counts every claude-fable-*), which Allowance.For and Full already weigh against that model alone, as they do the Opus and Sonnet weeks; one without a scope (seven_day again) or one for a model seven_day_opus/seven_day_sonnet already told is left out. Claude Code's rate_limit_event names the same window seven_day_overage_included, its "Fable limit" (in 2.1.283's bundle, for its allowlist Fable, Fable 5, Fable 5.1); claudeKinds takes it too, so the Fable week stays known while the usage endpoint turns magpie away. Reported by Cyb3rN8
...
Co-authored-by: Cyb3rN8 <99947149+Cyb3rN8@users.noreply.github.com >
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com >
2026-09-28 17:12:12 +08:00
44acea90db
gateway: a subagent Codex's MultiAgentV2 spawns from a magpie-served lead gets its task ( #141 ) — a namespaced call (spawn_agent, send_message, followup_task) now carries "encrypted_function_args": [], since Codex reads a call without that list as sealed and handed spawn_agent's plain message on as encrypted_content, which OpenAI could not decrypt for a gpt-6 subagent; and the agent_message item V2 hands a subagent its task in, and agents their messages to each other, is read as the receiving agent's user turn instead of being dropped, so a magpie-served subagent no longer started with nothing to do (an item with no content adds no turn). Top-level calls and the other encoders are as before. Checked end to end with Codex 0.155.1 and features.multi_agent_v2=true in a sandbox HOME against a scripted upstream: before, the subagent's request held only the environment context; after, it holds "Message Type: NEW_TASK … Payload: …" and answers it. Patch and tests by relus-cy, who found and reported both gaps
...
Co-authored-by: relus-cy <14657224+relus-cy@users.noreply.github.com >
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com >
2026-09-28 17:12:11 +08:00
yetone
25aae87511
panel: things move as they change — the tab picked has a card that glides to it; an agent's effort is a drawn slider whose knob and fill glide from stop to stop; a row opens and closes by easing its height, the panel's edge moving with it over the same time and curve; hovering an agent brings in its model's logo beside the name; Add provider scrolls the window to the sheet it opens; and a reply that isn't JSON shows its own words rather than WebKit's "The string did not match the expected pattern" (切换Tab不是丝滑的左右滑动 / 这又是啥报错 / 展开折叠也要有丝滑的动画 / hover显示模型图标 / 自动滚动到展开内容顶部)
2026-09-28 17:08:29 +08:00