yetone
696c8e70e7
group: rules send a kind of turn to a chosen model — a group's Rules (Routing view, or magpie group rule add|rm|mv) put one of its models first for a turn that is long (tokens ≥ N), carries an image, asks for reasoning (on or at least a level) or comes from certain agents; the first that matches decides as the turn begins and the turn stays there through its tool rounds, moving only if it outgrows its model's context, the others staying behind it for failover; a subagent keeps a place of its own so a rule can send it elsewhere while its agent stays; the trace says which rule sent a turn where. Turn affinity also now sees past the system message Claude Code puts after tool results, which made each of its tool rounds look like a new turn
2026-09-26 03:53:33 +08:00
yetone
31fbf611e7
docs: what an import link's catalog gives — besides names, context sizes and reasoning levels it is the model list when the provider's /models can't be read and the prices behind the Usage page's USD estimate, and several ids may be given
2026-09-26 02:47:19 +08:00
yetone
6da20f50f6
gateway: an agent's run that fails mid-reply ends on the error — Claude Code, Cursor, Grok and Devin runs still wrote message_stop / response.completed / [DONE] after the error event, so a client could take the half reply as complete; the same fix #78 made for translated streams
2026-09-26 02:15:23 +08:00
Charan Rathore
fa25a50936
gateway: a reply translated from a dying stream no longer reads complete ( #78 )
...
translate ignored readSSE's return, so an upstream that severed mid-reply left a buffered client holding the partial text under finish_reason "stop" and a streaming client with a synthetic stop chunk, final usage and [DONE]; the buffered path now answers 502 and the streamed path emits the client protocol's error event and skips the normal completion, covered by tests that hijack an httptest upstream and close it mid-stream plus a control that a properly finished stream still translates end to end
2026-09-26 02:14:52 +08:00
Charan Rathore
f298bb4feb
test: keep smart routing reset fixture within one hour ( #77 )
2026-09-26 01:40:57 +08:00
yetone
c25cc6a5fd
gui: the profile chips are a target to hit — 25px tall with 12px text under the agents, easy to miss for what the panel is most opened for; now 30px, 13px, with more room between them and bigger ↻ and ×
2026-09-26 01:38:38 +08:00
yetone
257b6fa80e
group: a removed found group is said to be removed wherever it is — once its model was down to one provider, magpie no longer found it, so magpie group rm said no group "auto-…" and magpie groups didn't list it though its record was still in providers.json; both now know it, restore takes the record out, and group help and groups say that the {"hidden": true} record is what keeps a found group removed
2026-09-26 01:38:38 +08:00
yetone
530734ff46
library: magpie library from the command line, and the app writes the library into the agents when it starts — there was no library command (status, sync, instructions get/set/agents, mcp add/agents/rm, skill agents/rm now), and Sync ran only from the page's button, so an agent installed or a file edited since kept what it had until the Library page was visited
2026-09-26 01:38:37 +08:00
yetone
7c3fa7d19e
update: on Windows an update goes in while what the last one moved aside still runs — a magpie serve started before an update runs from magpie.exe.old, which then can't be removed, and moving the running exe onto it failed with "Access is denied"; it now goes beside it (magpie.exe.old-2…), the leftovers are removed once free, the download is kept for another try, and the Update button says Update failed (the error in its tooltip) instead of seeming to do nothing. Reproduced on Windows 11 with a running .old: the old swap fails, the new one passes
2026-09-26 01:38:37 +08:00
yetone
40812f1d2b
gateway: a vendor saying the conversation is too long is said the client's way, so the agent compacts and retries — Volcengine's "Input exceeds the context limit (1048568 tokens)" reached Claude Code and Codex as a plain error they stop on; a 4xx that says the input is past the model's context (context_length_exceeded, maximum context length, prompt is too long, exceeds the context limit, 超过上下文…) now answers 400 with Anthropic's "prompt is too long: …" on /v1/messages and code context_length_exceeded on chat and Responses; one about max_tokens is left alone
2026-09-26 01:38:37 +08:00
yetone
c330e20231
provider: an account's "only through routing groups" holds, and one removed stays removed — All() merged a signed-in account's picks without Unlisted, so provider listed claude no saved but claude/* stayed in /v1/models; and any save of an account rebuilt its entry without Hidden, so a removed one came back; a save now keeps it removed, and Add it back (and magpie provider add <account>, which made claude-2) goes through ShowAccount, keeping its picks; and magpie provider set <id> k=v… changes a provider with add's pairs (the v0.1.77 notes named it, it didn't exist)
2026-09-26 01:38:37 +08:00
yetone
ac352a7755
provider(zcode): a ZCode subscription — Z.ai's GLM Coding Plan, as ZCode uses it: ZCode's own account is read from its credential store (~/.zcode/v2/credentials.json, decrypted as ZCode does, never written), and more are added from magpie with ZCode's own sign-in (zcode.z.ai's polling flow, then the account's zcode-api-key, made if missing), kept in logins.json beside it; requests go to the plan's Anthropic endpoint with the key, the models are ZCode's coding-plan list (GLM-5.3, -Flash, 5.2, 5-Turbo), and usage shows the five-hour and weekly credits. A phone sign-in is named by its number
2026-09-26 01:37:01 +08:00
yetone
1de4bbc715
agent(zcode): magpie's models reach ZCode 3.14 — it moved its providers to ~/.zcode/v2/provider_config.json and reads config.json's only once, to import them, so a magpie provider set up since never showed in its picker; magpie now writes its provider rule (standard-personal, api-key access, anthropic-messages at the gateway) and a model rule per model (context window, images) there too, keeps every other rule and a model the user set by hand in ZCode, and leaves a provider turned off in ZCode off. Checked against ZCode's own schemas
2026-09-26 01:27:54 +08:00
yetone
a9aeb4d45f
agent(codex): a Codex that couldn't reach magpie says so — the Codex app writes no history.jsonl, so a Codex it started while magpie wasn't running (the gateway refused it, and it built its model list without magpie's) or before magpie set it up (its requests still went to chatgpt.com or an old port) looked fine; magpie now reads the newest model request Codex logged since it was set (logs_*.sqlite, read-only, a day at most) and shows Apply again with the time and why, and to quit and reopen Codex
2026-09-26 01:16:27 +08:00
yetone
c8aeff4cea
gui: a picker opened upward sits on its button — with no room below, it was placed the most it could be tall (420px for a model picker) above the button, so a short list, like ZCode's two, hung a few rows up over another agent's row; opened upward, its bottom edge is held to the button now
2026-09-26 01:13:06 +08:00
yetone
1b5d1f87db
agent: every agent on a magpie model says when it was taken off magpie behind its back, not only Codex — each checks what magpie wired into it to reach the gateway (Claude Code's env base URL and token, and a managed-settings base URL that wins over them; Gemini CLI's .env and its auth type; OpenCode, Pi, Crush, Command Code, Hermes, omp and Grok Build's magpie provider; DeepSeek Harness's llm-deepseek entry and its key in .env), and one pointed elsewhere or gone shows Apply again with what is off in its tooltip; Claude Code, like Codex, is also said to be bypassed when it was used and nothing of it reached the gateway (its history.jsonl), and slash commands no longer count as use. A test takes every such agent off the gateway and back
2026-09-26 01:10:40 +08:00
yetone
31aabbce43
provider: a key added or turned on has its models asked for at once - which models a key sees is known only from its own list, and since #76 an off key's isn't asked, so a key turned back on (or a new one) waited for the next Refresh: a relay that hands out a key per group sent it nothing, or every model; and a Codex reasoning item whose content is null is kept for OpenAI like one without content ( #75 dropped it as malformed)
2026-09-26 01:07:47 +08:00
herrkaefer
fa38ca4a96
codex: omit incompatible reasoning before OpenAI replay ( #75 )
2026-09-26 01:06:41 +08:00
Charan Rathore and Charan Rathore
3212566901
provider: a key that is off is no longer asked for its models - Fetch treated len(allKeys()) > 1 as "ask every saved key", and allKeys() includes the KeyAccount entries marked Off, so a disabled or expired key was called on every refresh and its list merged into the catalog, where a text-only answer could take image input off a model a key that is on serves; the live fetch path now uses KeysOn(), off keys get no requests and add nothing to the catalog, and turning a key back on includes it on the next refresh, covered by TestOffKeyIsNotFetched ( #76 )
...
Co-authored-by: Charan Rathore <ra7hore.charan@gmail.com >
2026-09-26 01:06:36 +08:00
yetone
04302b1e63
agent(codex): a Codex taken off magpie behind its back says so, with Apply again — something else rewriting config.toml (another switcher, an installer, a profile of its own) left the row showing a magpie model while Codex asked OpenAI for it, and the user blamed magpie; magpie now remembers what it set on each agent (applied.json) and tells three kinds of drift apart: the wiring gone (the provider table, catalog or base URL, or a profile overriding them), a magpie model replaced by one of Codex's own, and a Codex used since with none of its requests reaching the gateway (history.jsonl against when the gateway last saw it — an old process on an old config). A drifted row carries a coral Apply again pill on its name's line (a badge on the logo in the panel), the reason in its tooltip, Keep current settings in the row menu; the window asks /api/drift every 15s, so it shows without a reload
2026-09-26 01:05:19 +08:00
yetone
5474a977fc
gui: magpie's Dock icon is sharp — the app was given the 64px icon, which macOS puts in the Dock in place of the bundle's .icns and scaled up to the Dock's size, so the magpie there was blurred; it is given a 1024px one (30 KB, from the same drawing, made by make icons), and the 64px one stays for the trays of Windows and Linux
2026-09-26 01:03:33 +08:00
yetone
75217233b8
provider: a custom provider can be added with only a Responses URL - the editor's base URL was the OpenAI (chat completions) or the Anthropic one, so a vendor that serves only the Responses API had to be given a chat URL it answers with 404, and Test failed on it; the base URL now takes a third kind, OpenAI Responses, which is saved as the Responses URL alone, tested at /responses only, and served to chat and Anthropic clients through the gateway; switching the kind moves the URL over, and More endpoints lists the other two ( #73 )
2026-09-26 00:32:13 +08:00
Charan Rathore and Cursor Agent
20fe8b4fac
provider: a second Codex account's prompts stay cached when two saves share an mtime - the list on disk was merged, but the in-process cache re-read it only when ModTime changed, so a second write in the same tick left the first account's list in memory; a successful save now drops that cache, and a test puts the mtime back with Chtimes so the collision happens every run ( #74 )
...
Co-authored-by: Cursor Agent <cursoragent@cursor.com >
2026-09-26 00:26:41 +08:00
yetone
0396080cf6
provider: AiHubMix shows the whole account's balance when it has the account's access token — a key is told only what is left on itself, and one with no limit nothing at all, so its card said only "Usage unavailable"; the provider's editor now takes the System Access Token AiHubMix's settings generate (kept like the key, shown only as saved, kept when left blank, with Remove), and with it the card asks /api/user/self and shows its quota in dollars, one card for the account rather than one per key. Without one, the card says the key has no limit and where the token goes, and a token AiHubMix won't take says so; saving a provider has its balance asked again rather than a minute later
2026-09-26 00:22:08 +08:00
yetone
afd831980a
agent(zcode): the user-agent test knows ZCode's requests
2026-09-25 23:57:00 +08:00
yetone
c0cbf90eeb
agent(zcode): ZCode is an agent — its provider field puts every magpie model in ZCode's own model picker, as a provider named magpie in ~/.zcode/v2/config.json (kind anthropic, asked at the gateway's /v1/messages), kept in step with the catalog like OpenCode's list, and taken out again when cleared; its requests are known by the ZCode/ User-Agent ( #72 )
2026-09-25 23:53:59 +08:00
yetone
1dfbc10af8
agent(claude): a Claude account signed in through magpie on a Mac signs Claude Code in again — the sign-in went into the keychain as indented JSON, and security find-generic-password -w prints a password with a newline as hex, so Claude Code (and magpie) read no sign-in and the account never showed ( #70 ); it is written on one line as Claude Code writes it, one magpie wrote before is read and rewritten, and the keychain account falls back to the login name as Claude Code's does
2026-09-25 23:40:50 +08:00
yetone
b1c5e739f7
library: switching an agent on or off for an MCP server or a skill no longer makes the row flicker — the page was drawn again, so the chips lost their hover, folded together and spread out again under the pointer; the chip now shows the click at once and what magpie wrote is painted onto the same buttons ( #69 ); and an agent hidden on the Agents page is left out of the Library too — its instructions row, its chips and the defaults for a new server or skill — while what it already has stays with it ( #71 )
2026-09-25 23:03:53 +08:00
yetone
f1fba8d7eb
usage: a GLM Coding Plan's allowance and OpenCode Go's show on the Usage page — Zhipu's (open.bigmodel.cn) and Z.ai's 5-hour and weekly windows and the month's MCP calls, with the plan's level, and OpenCode Go's 5-hour, weekly and monthly ones, each asked of the vendor with the provider's key, a card for each key when it has several; a pay-as-you-go GLM key, which has no windows, shows none ( #68 )
2026-09-25 22:27:18 +08:00
yetone
81342b1b05
provider: a custom provider can list its models from a URL of its own — Xiaomi MiMo's plans are served at their own hosts while the list is at api.xiaomimimo.com/v1/models, so fetching models from the base URL found nothing; More endpoints has a Models URL (模型列表地址), asked with the key and nowhere else, and magpie provider set <id> models.url=… sets it ( #67 )
2026-09-25 22:16:11 +08:00
herrkaefer
daaeee95b2
codex: preserve native compaction for built-in models ( #65 )
2026-09-25 22:12:30 +08:00
Zhizhen He
d36dbe46f5
chore: go mod tidy ( #66 )
2026-09-25 22:11:19 +08:00
yetone
9e7853906c
gateway: a request for a reply of a token or two reaches a provider that answers no less ( #64 ) — an app checking a model is up asks for max_tokens 1, which some providers turn away with 400 "max_tokens must be greater than 2"; the least the provider named is read from that error, and the request is sent once more asking for it (max_tokens, max_completion_tokens, max_output_tokens or Gemini's maxOutputTokens, whichever it set), before any of the reply reaches the app; the routing page says so
2026-09-25 21:40:20 +08:00
yetone
d1fe7a32ae
library: a skill CC Switch installed can be updated from GitHub — linked from ~/.cc-switch/skills it had no source, so it showed no update button; the repository and branch CC Switch recorded for it are read (read-only) from its database, and updating fetches the skill from there and makes it the library's own copy, leaving CC Switch's folder as it was
2026-09-25 21:34:02 +08:00
yetone
43a30080d0
gateway: an account or key added while an agent works no longer takes over its running conversation ( #63 ) — who answered a conversation was remembered only when there were two or more to route to, so the first request after a second ChatGPT or Claude account (or key) was added went wherever routing put it, and Codex reasoning sealed by the first account came back 400 "The encrypted content … could not be verified" and ended the session; who answered is remembered with one as well, and matched by the key itself, not by an id that changes once a second key is on. A conversation that still reaches another account (the first used up, or magpie restarted) has the other account's sealed reasoning taken out and is asked again, and the routing page says so
2026-09-25 21:29:05 +08:00
yetone
618f529fb5
agent(grok): Grok Build's terminal front end, grok-pager, is known by its User-Agent as Grok Build's shell is — its requests were drawn as an unknown client named grok-pager, with no logo
2026-09-25 21:22:22 +08:00
yetone
70b7b3a058
routing: an account pool's Routing and Stays controls line up — each label sat inline before its segments, so the segments started wherever "Routing" or "Stays" (路由, 会话保持) ended, and at the window's usual width the two wrapped under the name on rows of their own; they are a label column and a control column now, beside the name
2026-09-25 21:19:39 +08:00
yetone
0423553454
gui: magpie can stay in the Mac's Dock — Settings → Dock → Show keeps it there as well as in the menu bar, for a menu bar too full to show its icon; it takes effect at once and at every start, the Dock icon opens the window (only the window: Wails would have shown the panel too), and it stays each computer's own in sync and backups
2026-09-25 21:13:30 +08:00
yetone
3173029853
agent: Grok Build starts on the model picked in magpie again — a signed-in grok takes xAI's remote campaign patches above config.toml, and the grok-4.7-launch campaign sets models.default to grok-4.7, so every new session started there whatever [models] default said (grok -p honoured it only without a sign-in). A default picked in magpie now writes [features] campaigns = false, a sync puts it back for a default already picked, and clearing the model removes it
2026-09-25 21:09:14 +08:00
yetone
d89739425e
gui: the window opens in the chosen language and theme — they came with the settings request, so with Chinese picked the tabs showed English for a moment first; boot.js in the page's head now carries both, so the first paint is already in them
2026-09-25 21:07:16 +08:00
yetone
081d8369e0
gateway: Claude 4.6 and later are asked to think adaptively — Codex on a relay's claude-opus-5-5 got "requires adaptive thinking; omit thinking or use thinking.type=adaptive", since magpie turned the reasoning effort into thinking.type=enabled with a budget; those models now get thinking.type=adaptive with the effort in output_config (xhigh as max), older Claude and other models keep the budget
2026-09-25 20:59:08 +08:00
yetone
925e4a6ccd
provider: a provider can serve only through routing groups — ticked, its models leave the list agents pick from (and /v1/models) while the groups they are in, and a request naming provider/model, still reach them (magpie provider listed <id> no); the routing groups come first in the list; a model list fetched from the vendor can be forgotten; magpie group add under a name in use replaces that group; and the Library gives MCP servers to Claude Desktop, the ones it runs as a command — a remote one is added in its Connectors, which the page says
2026-09-25 20:11:29 +08:00
yetone
9c119f2086
provider: importing from CC Switch or Alma works on Windows — the database was opened as file://C:/…, which SQLite reads as a host and fails with "out of memory"; it is opened as file:///C:/… now, and the import tests keep USERPROFILE and APPDATA in their sandbox so they never read the machine's own apps
2026-09-25 20:11:28 +08:00
yetone
4c67d069d0
sync: magpie's setup kept the same on every computer through WebDAV (坚果云, Nextcloud, a NAS…) — Settings has Sync and backup: the providers with their keys, groups and icons, the settings, the profiles and each agent's models go to the server as one file sealed with a passphrase, so the server never sees them; the magpie serving the gateway looks every three minutes, sends what changed here and brings in what changed elsewhere, a removal too; a part changed on both sides goes to the newer one, and the copy it replaced is kept in the sync folder with a note saying what was replaced; the proxy and the window size stay each computer's own, and a computer set not to send keys never strips them from the server; Export and Import carry the same file by hand ( #28 )
2026-09-25 19:52:37 +08:00
yetone
a1e546d4a1
provider: saved accounts are kept signed in — a Claude or ChatGPT account saved in magpie but not the one the agent is on was refreshed only when used or its usage looked at, and smart routing leaves the ones waiting their turn idle for days; the magpie serving the gateway now renews each such sign-in about once a day (hourly check, so a machine that slept catches up), never the agent's own; a refresh the vendor refuses (400/401) marks the account signed out — the account list says to add it again, magpie accounts too — and one that succeeds clears it; magpie accounts refresh renews them all now, for cron or launchd; a switch waits for a refresh in flight, so the agent is never handed a refresh token being spent ( #53 )
2026-09-25 19:22:37 +08:00
yetone
ba78ea4218
gui: a profile can be updated to the current setup — its chip has ↻ beside ×, which saves the agents as they are now over it; saving under the same name did the same, but nothing said so
2026-09-25 19:00:10 +08:00
yetone
08d1e71aff
gui: the window opens at the size it was last given — a resize is kept once it settles, in settings.json, unless the window is maximised, full screen or minimised
2026-09-25 19:00:10 +08:00
yetone
4075ccc188
gui: Windows and Linux draw a thin rounded scrollbar, not the classic one with arrows, and the model picker's logo rail no longer shows a scrollbar of its own — it draws its own thumb, and the native one also pushed its logos sideways into a horizontal scroll
2026-09-25 19:00:10 +08:00
yetone
47f5a0e1ac
provider: Zhipu GLM and Z.ai ask which plan the key is for — a GLM Coding Plan is served at its own OpenAI endpoint (/api/coding/paas/v4), and a plan key sent to the pay-as-you-go one is told it has no balance; the editor offers Pay as you go or Coding Plan, and the base URLs follow
2026-09-25 19:00:10 +08:00
yetone
032bcfc8b0
provider: the Grok subscription is called Grok (SuperGrok) — the plan xAI sells, so it reads as the account it signs into; Grok Build stays the name of the agent, the grok CLI the subscription runs through
2026-09-25 18:33:21 +08:00