Claude Desktop's Code tab, and Claude Code under it, write the id the gateway
listed the model by (magpie-<number>.anthropic.<Claude model>,
mythos-magpie-<n>, anthropic/magpie-<n>, claude-magpie-<n>) as each turn's
model. The gateway's log counts the turn under the model that served it, and
the agent's file counted it again under the alias: a row for a model that is
none, its cost on top of the real one.
Only the gateway knows those ids, so a call that names one went through it.
Such calls are now left out of what Direct, the ledger and the Requests
page's chunks take from session files, for every agent that records one.
Calls under a model of the agent's own are unchanged. usage.MagpieAlias
mirrors the gateway's alias forms; a gateway test fails when the two differ.
Run (mote, at the pushed head): TestAliasCallsAreTheGatewaysNotDirect, TestMagpieAliasForms and
the gateway's TestUsageKnowsEveryAliasForm pass; with ownCalls returning its
input the first fails (7 rows, four under aliases). go test internal/usage,
internal/gui, internal/sessions ok; vet darwin, linux nogui and windows of
usage and gateway clean; gofmt clean. Go-only change, so no GUI file was run.
Not tried: a real Claude Desktop 3p session (none on this machine; the model
forms come from the gateway's own alias code and its tests, not JSONL bytes).
Existing persisted request chunks rebuild with the new binary.
/docs/paimon says how magpie sets up Paimon (aisk/paimon), the terminal
coding agent on pydantic-ai: config.json in $PAIMON_CONFIG_HOME or
~/.config/paimon (Windows too); model set to litellm:<catalog id>,
providers.litellm to the gateway's /v1 and magpie's key for Paimon, and
compaction.context_window to the model's window, since Paimon compacts
only against it for names genai-prices doesn't know; why the litellm
provider (OpenAI-compatible, profiles vendor/model names, not offered by
Paimon's login); a file magpie makes kept 0600; Paimon in a WSL distro;
restarting a running Paimon; switching back to the stashed model,
provider and window, a model picked in Paimon since kept as the user's,
and a file magpie made removed once empty. Each claim is from
internal/agent/paimon.go. Linked from each language's Muse Code page; in
the sitemap, llms.txt and llms-full.txt.
Run: the three pages' JSON-LD parsed with node; llms-full.mjs rebuilt;
node --test site/*.test.mjs on the WSL box (magpie-desktop, wsl-run):
115 pass, 0 fail.
Not tried: Paimon itself with magpie for this page; it names only what
magpie's source says.
Claude Desktop reaches magpie with a gateway key, which Claude Code takes
for an API key (docs: automatic is 1 hour on a subscription, 5 minutes on
an API key) and marks with no ttl. runTTLFor read that as the client's
word, since claudeTTLOf gave Desktop no pick, and the bridge's run wrote
5-minute caches. Desktop with no pick now gets "default" (this computer's
Claude Code pick, else an hour); a 1h mark and a magpie's header stay as
they are.
Run: TestClaudeCacheTTLOf and TestClaudeDesktopRunKeepsAnHour (both red on
the old code, checked by reverting remote_magpie.go), go test -run
'Cache|TTL|Claude' ./internal/gateway ok on mote, gofmt, go vet darwin,
linux, windows.
Not tried: a real Claude Desktop turn and a usage row's ephemeral_1h in a
sandbox (needs Desktop signed in to a gateway and a live account). A
Desktop user who picked 5m in its own config is now given an hour: its
marks can't tell that from the API-key default.
After an app update the service (`magpie daemon`, ~/.local/bin/magpie)
ran on as the old version until its own look at the disk found the gateway
idle, and `magpie daemon restart` by hand showed the app "Port 3425 is in
use by ~/.local/bin/magpie (pid N): quit it" while the new service came up.
- PortHeld.Own: a holder that is a magpie running this install's program
(same file, symlinks followed) is marked; the Gateway card then says
"Starting the gateway…" instead of the port-in-use error.
- The app asks an older service of its own install (the pid the service
manager reports, program from the unit/plist: daemon.Program) to restart,
once per process, through gateway.RestartPath, as `magpie update` does:
it restarts into the new version once idle, bounded by its drain, under
the same service manager.
Run on mote: go test of the new tests in internal/gui, internal/daemon,
internal/gateway; go vet darwin, linux nogui, windows; gofmt; gateway-*
and i18n GUI files in chromium and webkit. Broken by hand: dropping the
Older check makes TestNudgeAsksOwnOlderDaemonOnce red.
Not tried: a real app update over a real launchd service. The restart is
an in-place re-exec of the service, not a socket handover, so the port is
closed for the service's start-up.
GUI (mote, chromium+webkit): gateway-port-holder, older, skew, takeover, port, i18n-keys, i18n-en-no-cjk 36 of 36 ok. All gateway-* files: 30 reds, all in gateway-card (shares on the network, #6267) and gateway-key-arrange (420px, #6268); the same 30 with client.js reverted to origin/main, so not from this change.
Not tried: a real app update over a real launchd service; the daemon re-execs in place, it is not a socket handover.
GeminiBase gave every bare host /v1beta on Save (normalize), so a relay's
root typed in the editor came back as …/v1beta when reopened. Only Google's
own bare host (generativelanguage.googleapis.com) is given /v1beta now; any
other URL stays as typed. The detection (DetectBase), which proposes a base
rather than keeping one, still adds it (geminiVersioned). Siblings checked:
OpenAI/Responses bases are only trimmed on save (no /v1 added; fixV1 is the
5ba92aaf8 probe); the editor's respellURL runs only when the protocol is
switched or a URL pasted. Not changed: the Anthropic base still loses a
typed /v1 or /v1/messages, because requests add /v1/messages themselves and
the version would be sent twice.
Run (mote): TestGeminiBase and the new TestGeminiBaseSavedAsTyped red on the
old gemini_api.go/detect.go (relay root saved as …/v1beta), green after;
go test ./internal/provider ok; new GUI test provider-base-as-typed (save,
reload, reopen for gemini/openai/responses/anthropic) ok in chromium and
webkit, with provider-add-gemini, provider-base-api and provider-detect-draft
(46 tests; one failure seen on the first run was this file's own Escape
dialog, fixed by reloading). go vet darwin, linux, windows; gofmt clean.
Not tried: a real relay; the full suite runs after the tag.
Interactive mode dropped --thinking-display, so no summary reached the client, and -p set it only when an effort was known: both runs now get showThinkingSummaries in --settings. A High carried in the turn's own message (output_config on a {role:system} message) lost to a 31999 budget read as xhigh; the turn's level now wins in parse and in routing's requestEffort.
Red on the old code: TestClaudeBridgeTakesTheEffortOfEveryRoute (3 new rows), TestTurnEffortBeatsBudget.
/docs/muse-code says how magpie sets up Muse Code, Meta's muse CLI:
settings.json in ${XDG_CONFIG_HOME:-~/.config}/muse, refused without
schema_version 1, which magpie adds; endpoint_transport set to the
gateway's /v1 (Muse streams to /responses there) with auth none, so the
Meta sign-in's token is neither read nor sent, and the top-level model
set to the catalog id; the other keys left; the model list from
/muse-code/models on base_url's host, which the gateway serves; Muse in
a WSL distro set up in ~/.config/muse there; restarting open sessions;
switching back to the stashed endpoint_transport and model, and a file
magpie made removed once only the schema version is left. Each claim is
from internal/agent/muse.go. Linked from each language's Prime Agent
page; in the sitemap, llms.txt and llms-full.txt.
Run: the three pages' JSON-LD parsed with node; llms-full.mjs rebuilt;
node --test site/*.test.mjs on the WSL box (magpie-desktop, wsl-run):
115 pass, 0 fail.
Not tried: Muse Code itself with magpie for this page; it names only
what magpie's source says.
d31988c95 (the Mac title bar at first show) also carried, unnamed, the
reverse of 1648fcfe2 and 95eab9a66: withMistralCacheKey and isMistral
were taken out of gateway.go, mistral_cache_key_test.go was deleted,
and TestOwnCacheKey lost its two Mistral rows. Its body names only the
title bar. So Mistral users lost the cache key daoche_wuzui asked for
(poor cache hits on X) with no commit saying so.
This restores those four gateway files to what 95eab9a66 left; the
title bar change (internal/gui) is kept as it is.
Run (mica): gofmt clean; go vet ./internal/gateway on darwin,
GOOS=windows and GOOS=linux -tags nogui ok; go test -run
'Mistral|OwnCacheKey|CacheKey|DesktopProbe|PromptCache' ./internal/gateway ok.
Not tried: the full suite, a real Mistral key.
b70563ec6 kept one process-wide "accounts reordered at" stamp. affine
dropped any conversation's stick older than that stamp, so reordering
Claude's accounts in the GUI cost a running Codex (or any other
provider's) conversation its account and its prompt cache on the next
turn. In tests, any earlier SetAccountOrder set the stamp, and later
tests that backdate a stick to check an hour's cache saw it dropped:
TestAffinityKeepsAnHourCachePastFiveMinutes,
TestChatGPTConversationStaysPastFiveMinutes and
TestClaudeConversationKeepsItsAccountsCache went red in package and
subset runs (#6249, #6262, one cause).
The stamp is now per provider (provider.NoteReordered(id),
ReorderedAt(id)), and affine compares the stick only with the
reorder of the provider whose account it holds. fresh(t) and the
tests that reorder call provider.ForgetReorders.
Run (mica, darwin):
- go test -run 'Codex|Draw|Image|Keep|Relay|Reorder|Affinity|ChatGPTConversation|ClaudeConversation|AccountOrder|AccountRank' ./internal/gateway:
ok 253s; the same run at origin/main FAILs in the three tests above.
- go test ./internal/provider ok 128s; ./internal/cli ok 46s.
- go vet darwin (provider, gateway, cli, gui), GOOS=windows (same),
GOOS=linux -tags nogui (provider, gateway, cli): ok. gofmt -l: clean.
- Broken by hand: the new case "another provider reordered keeps it"
on the old affinity.go answers "k1 k2 k2, want k1 k1 k1"; green now.
Not tried: the full suite, the GUI suite, a reorder with real accounts.
Not changed: `magpie accounts order` (internal/cli) notes the reorder
in its own process, so a running gateway never sees it and keeps the
old stick until it expires; that was so before this change too.
DeepSeek Harness's desktop app puts one paragraph on @ paths in every
system prompt. With it word for word, gemini-4-argon on Antigravity
answered most requests in about 3s, with no thinking, and stopped after
one shallow step. The reporter found that removing just that paragraph
fixed it, and a recorded DSH request with the paragraph reworded was
answered normally 20 of 20 times. The antigravity plugin 0.1.7 now sends
it reworded; this is the same for magpie's built-in Antigravity.
codeAssistBody, for an Antigravity account and unless the prompt is set
to go as written, now sends antigravityReword(antigravityCloak(system)).
antigravityReword replaces each exact paragraph in agReworded with a
rewording that says the same, and leaves the rest alone. The caller's
request keeps the system prompt as written, as it does for the cloak.
Run (mica, at origin/main d31988c95):
- go test ./internal/gateway -run "Antigravity|Cloak|CodeAssist": ok
- GOOS=linux and GOOS=windows go vet ./internal/gateway: ok; gofmt -l clean
- Broken by hand: dropping antigravityReword at the call site turns
TestAntigravityDSHAtPathsGoReworded red with the paragraph sent as
written; restored, green.
The test also checks Gemini CLI and prompt=as-written get the paragraph
as written, and that a prompt merely mentioning @ paths is untouched.
Not tried: a real Antigravity account through the built-in path (the
plugin's rewording was what the reporter's recorded request measured).
Reported-by: xueyinmei-dot
On macOS 26 an update's silent relaunch (open -n -g) deadlocked the new
process's main thread: ApplicationStarted ran plainTitlebar -> insetLights ->
toolbarRounder, which allocates a temporary NSWindow and releases it while the
hidden background launch is still inside FBSWorkspaceScenesClient
createSceneWithIdentity. Every InvokeSync waiter (tray usage, lighten, the
resize/move timers) then blocked behind it, so the old tray left and the new
one never came up.
The Mac's title bar is now done in reveal, just before the window is first
shown (a user action, never inside the launch); Linux keeps it at start.
Their other two suggestions need no change: keepAt already returns while
h.placed isn't the window, and with the main thread free the ready waiters
no longer pile up.
Run: gofmt; go vet darwin, linux nogui, windows; go test ./internal/gui on
mote (ok, 136s). New TestMacTitleBarNotDoneAtStart, red with the call put
back in ApplicationStarted and red with it removed from reveal.
Not tried: the real deadlock. It needs macOS 26's hidden relaunch through
LaunchServices from an updated bundle; mote (macOS 27) was not driven that
way, so it is not shown not to reproduce there either. The full suite was
not run before the tag.
withFields re-sorted the client's message keys, which the Mistral reasoning tests (byte-for-byte) caught. The fake Mistral's known fields now list prompt_cache_key, as Mistral's chat docs do. Run: Mistral, CacheKey, Hermes and the five full-run reds alone (all ok); gofmt.
Mistral routes a request by prompt_cache_key to the server holding its
prompt cache; magpie sent none, so cache hits were poor. A Chat request
bound for Mistral (preset or api.mistral.ai) with no key gets the sha256
hex of the session, else the conversation id: opaque, stable per
conversation, never the raw id. A client's own key and a user's extraBody
key are kept; translated requests get it through ownCacheKey (its
refusal retry applies). Other vendors are unchanged.
Run (mote): TestMistralPromptCacheKey, TestOwnCacheKey, CacheKey tests,
then gofmt, go vet on darwin/windows/linux nogui, and the gateway
package. TestMistralPromptCacheKey was red on the old code (no key).
Not tried: a real Mistral API key.
/docs/openpencil says how magpie sets up OpenPencil (ZSeven-W/openpencil,
openpencil-desktop): its settings.json per system; magpie's entry in
builtin_agents (id magpie, openai-compat at the gateway's /v1, the key
magpie-openpencil that tells its requests apart), with the user's other
entries, name and on/off kept; version 1 required, and a file of an
unknown version left alone; OpenPencil writing its settings back when it
quits, so magpie refuses a change while it runs (a notice on Windows);
the model list, at most 64, written as models for two or more, v0.8.4
reading only model; the model picked in OpenPencil's own chat picker;
switching back removing the entry (and the file magpie made); and the
other open-pencil app reaching magpie through an agent or a base URL.
Each claim is from internal/agent/openpencil.go. Linked from each
language's Alma page; in the sitemap, llms.txt and llms-full.txt.
Run: the three pages' JSON-LD parsed with node; llms-full.mjs rebuilt;
node --test site/*.test.mjs on the WSL box (magpie-desktop, wsl-run):
115 pass, 0 fail.
Not tried: OpenPencil itself with magpie for this page; it names only
what magpie's source says.
Codex sends its image tool's calls to the ChatGPT backend path magpie serves
(/backend-api/codex/images/generations and /images/edits). codexBackend
relayed them as they came, signed with Codex's own sign-in. With Codex kept
signed in to account A (KeepLoginAs) and the pool ordered to put B first,
text turns went to B, but every image call still spent A's image allowance,
so once A's was used up no image could be drawn while B had room.
Now, when magpie has more accounts than the sign-in (and the call carries
no API key, names no account, and is signed by the sign-in), the call is
served by the images handler on codex/<model>: drawOnAccounts goes over the
accounts in the pool's order, past one whose image allowance is spent
(restDrawer), signed with that account's own token and chatgpt-account-id.
A sign-in alone, an API key, a request signed by an account magpie lacks
and a model with a namespace are relayed as before.
Run on mote: TestDrawingFollowsThePoolNotTheKeptLogin (two fake accounts,
acct-1 answering usage_limit_reached, pool order spare first, Codex kept on
acct-1) red on the old code for the /backend-api/codex path (asked acct-1,
429), green now for it and for /v1/images/generations; TestCodexImagesRelayedWithTheSignInAlone
green. go vet darwin, windows, linux nogui ok; gofmt clean. internal/gateway
-run "Codex|Draw|Image|Keep|Relay" ran: two reds, TestAffinityKeepsAnHourCachePastFiveMinutes and
TestClaudeConversationKeepsItsAccountsCache, both ok alone and neither near this change (see issue).
Not tried: a real Codex account; Codex's real image request body (edits shape taken
from the images API's); the full suite (started after the tag).
settings.ContextCap held every window magpie knew, but fourteen agents
write a default of their own (128000 or 200000) for a model whose window
magpie doesn't know, and that default went out past the cap: Crush, ZCode,
VS Code and its forks (Copilot, Zoo Code, Air), Copilot for JetBrains, Zed,
jcode, Pencil, AtomCode, Kimi, OpenClaw, Snow, WorkBuddy and CodeBuddy.
unknownWindow holds each default to the cap. AtomCode's output clamp used
the constant and now uses the window it is told.
BaoCode (a Claude Code front end) keeps its own context per model and
reads no window from magpie; Claude Code gets the cap through
CLAUDE_CODE_MAX_CONTEXT_TOKENS, which it does follow. Not changed.
Guard: TestEveryAgentFollowsContextCap connects every agent that can be
here to a provider with a 987654 model and a model of no window, under a
cap of 99999, and fails on any agent file holding either window or a
default. Red on the old code in 14 agents' files (checked on mote), green
after.
Run on mote: go test ./internal/agent ./internal/provider ok; go vet
darwin, GOOS=windows, GOOS=linux -tags nogui ok; gofmt clean.
Not tried: a live BaoCode, the full suite (started after the tag), GUI.
80dcd3472's "applies to" field (All of Codex / codex -p magpie only) was
refused only while Codex was Wired(). Codex routed through magpie by
openai_base_url alone (beside its ChatGPT sign-in, or for failover) reads as
not wired, yet magpie keeps config.toml and its list there. Moving the choice
to the profile then made codexIn read magpie.config.toml (nothing in it): the
row showed disconnected, config.toml's wiring stayed behind unmanaged, and
Codex went on with its own default list, magpie's models gone from the picker.
The choice now also waits while Codex is Routed() or FailingOver(). Someone
already switched stays switched: disconnect, then choose All of Codex.
Run (mote): go test ./internal/agent ./internal/gui ok; gofmt clean; go vet
darwin, linux nogui, windows ok. TestCodexScopeWaitsForBaseURLRouteToo is red
with the guard back to Wired() alone (scope changed while Codex is routed),
green with it.
Not tried: a real Codex app, the GUI row in a live window; I could not
confirm the reporter's exact state, only that this path produces it. A cache
poisoned by a timed-out refresh (#6142) is a separate cause and not changed.
The Usage page's Context tab keyed each session by the id the gateway saw
and filled a missing title from the listed sessions by that id exactly. A
ZCode request names its session by the bare id (its database gives sess_ in
front), and a subagent's own session is no listed row (ocRoots files it under
its parent's), so the tab drew the id's first eight characters for every
ZCode session. db0c1b039 gave Titles the app's task-index fallback, but the
tab never asked Titles, so it did not reach this case. The tab now asks
sessions.Titles for the keys it has no title for, as the Routing cards do.
Ported from Flandern1211's 743f92898 (#5754), author kept.
Run (mote): TestContextZCodeSessionTitles red on the old context.go (titles
all empty), green with it; internal/gui and internal/sessions whole packages,
gofmt, go vet darwin/linux/windows ok.
Not tried: a real ZCode database here; full suite not run before the tag.
A custom provider whose API has no /v1 listed its models under
base/v1/models only; every models fetch then rewrote the saved chat and
responses URLs to …/v1 (fixV1), so the user's removal of /v1 came back each
time and requests went to /v1/chat/completions. fixV1 now POSTs an empty body
to base/chat/completions (or /responses) first; any answer but 404/405 (a 400
for the model, a 401) means the URL as typed has its endpoint and it is kept.
Only a base whose endpoint is missing and whose models sit under /v1 gets it.
Run (mote): new TestFetchKeepsTypedBaseThatServesChat red on the old code
(chat changed to …/v1), green after; go test ./internal/provider ok;
TestFetchAddsMissingV1 and TestArkBaseKeepsItsPath unchanged; go vet darwin,
linux, windows. Not tried: a real vendor; the GUI is unchanged (respellURL
only fills an empty URL), so no GUI run.
/docs/alma says how magpie sets up Alma: its providers and settings are
in the app, so magpie goes through the local API Alma serves on
localhost:23001 while it runs, and asks for Alma to be opened when it
isn't; the magpie provider of type openai at the gateway's /v1 with
Alma's own key, which is how the gateway knows Alma's requests;
chat.defaultModel set with the rest of the settings put back; each
model's capabilityOverrides (thinking levels, window, output limit,
images), since magpie's ids aren't models.dev's, with the user's own
tool-calling setting kept; magpie's image model made Alma's when Alma's
is Auto; switching back clearing a default of magpie's, the image model
back to Auto and the provider removed, or later when Alma was
uninstalled. Each claim is from internal/agent/alma.go. Linked from each
language's Kun page; in the sitemap, llms.txt and llms-full.txt.
Run: the three pages' JSON-LD parsed with node; llms-full.mjs rebuilt;
node --test site/*.test.mjs on the WSL box (magpie-desktop, wsl-run):
115 pass, 0 fail.
Not tried: Alma itself with magpie for this page; it names only what
magpie's source says.
host.js keeps an OAuth sign-in only when "refresh" is in the plugin's
result, as OpenCode's CLI does. codearts' "Sign in from CodeArts Agent"
returned an access with no refresh field, so the callback said ok and
nothing was stored: the CLI printed "signed in" and no account showed.
callback now keeps an access with no refresh as an OAuth sign-in with an
empty refresh, and a success with nothing to keep (no refresh, key or
access) fails with "<provider>'s sign-in gave nothing to keep", as
apiKey's "gave no key" already did. The plugin side is fixed too
(codearts 0.3.14, plugins 4e3a7868); this covers any other plugin that
leaves the field out.
TestSignInWithNoRefreshIsKept drives both through the signinend fixture
(methods 8 and 9) and checks the kept record is oauth with refresh "".
Ran on mica: go test -count=1 ./internal/plugin/ ./internal/provider/ ok;
GOOS=windows and GOOS=linux go vet ./internal/plugin/ ok; gofmt -l clean.
Broken by hand: with host.js at its parent, the new test fails on both
cases (nil error, nothing kept).
Not tried: the full suite at this head (one is running on mica for
805e5c29a), a real CodeArts Agent sign-in.
Reported-by: AyakaChen1 <AyakaChen1@users.noreply.github.com>
plugins #1027 made eight auth hooks say rotating: Cline, CodeArts (with
OfficeAce), Factory, MiniMax, Nous Portal, Qoder, SenseNova and WorkBuddy.
magpie reads that from the plugin host's list, but a sync that runs at
start can come before the list is read. rotatesKnown covers that window,
and it held only MiniMax and Qoder. It now holds all twelve provider ids,
so none of those sign-ins is carried to another computer by an early
Sync, backup or Restore. MiniMax and Qoder stay listed for the same
reason.
TestRotatingKnownBeforeHostList checks each id. With the old list put
back by hand it was red (workbuddy-ai and the others named).
Run on mica at this tree: go test -count=1 ./internal/provider/ ok
(128s); go vet ./internal/provider/ on darwin, windows and linux ok.
Not run: the full suite (it runs after the push, per the ship rule).
Not tried: a real sync between two computers.
/docs/kun says how magpie sets up Kun (KunAgent), its desktop app and the
kun TUI, both clients of kun serve: the connections in
model-connections.v2.json in ~/.kun/data (or $KUN_DATA_DIR) with keys in
Kun's protected store, so magpie goes through the runtime's admin API
with runtime.json's address and token, as Kun's Settings > Providers and
kun provider do; the magpie connection at the gateway's /v1 as chat
completions with Kun's own key, its models the ones picked for Kun (at
most 500), kept in step by sync; picking a model making it Kun's default
with the previous one stashed; Kun having to run; switching back to the
stashed default, then removing the connection. Each claim is from
internal/agent/kun.go. Linked from each language's OpenHanako page; in
the sitemap, llms.txt and llms-full.txt.
Run: the three pages' JSON-LD parsed with node; llms-full.mjs rebuilt;
node --test site/*.test.mjs on the WSL box (magpie-desktop, wsl-run):
115 pass, 0 fail.
Not tried: Kun itself with magpie for this page; it names only what
magpie's source says.
Auto affinity kept a conversation on the account that answered it by its cache, so an account moved down (or another made First) still took the next turn. SetAccountOrder, the login switch and the CLI switch now call provider.NoteReordered; affine drops a stick last answered before it, in Auto and not within a turn (Session and Strict keep it).
Run on mote: TestReorderedAccountsTakeTheConversationAtItsNextTurn red with the check off (k1 k1 k1), green with it; go test internal/provider, internal/cli ok; internal/gateway -run Affinity|Ordered|Stick|Reorder|Strict|Conversation|Fallback ok; go vet darwin, windows, linux nogui ok; gofmt clean.
Not tried: a real Codex account; GUI tests (no GUI file touched beyond the switch handler); the full suite (started after the tag). The image-quota half of the report is not fixed: no real refusal body was available.
The "Left over time" curve drew one descending segment per recorded cycle
of every window. Over the cycle range of a weekly window, the 5-hour
window therefore showed a run of sawtooth drops, each resetting to 100%
and falling again. @xxxxxthhh: "the 5-hour window's lines dropping one by
one are too messy, like bugs crawling".
Chosen: a window far shorter than the span (the existing `short` case in
drawQuotaPlot) keeps only the points of its current cycle, so the plot has
one drop at the right edge and the legend carries its figure. Past 5-hour
cycles are not drawn faint or banded: they say nothing the weekly line
beside them doesn't, and a band or a second style would add marks to a
52px plot. Longer windows, the 2-day range, the picked past cycle, the
colours and the layout are unchanged; the short line is now one
segment, so it is a little firmer (1.25px, .7) than the faint comb was.
Run on mote: quota-curve.test.cjs in chromium and webkit (en, zh, zh-TW,
ja, de) with its 5-hour assertion now one subpath; it fails on the old
assets (two subpaths). Before/after screenshots in
magpie-wt/leftover-chart-scratch/shots. Whole GUI suite and
internal/gui Go tests are run after this commit; see the follow-up note.
Not tried: a real account's week of readings.
Remove was only at the foot of the expanded card. The row menu now ends with
it, set apart, running the card's own groupAction("delete"): the same
question first, the same groups/delete call.
Run (mote): group-menu-remove (new, 10 tests: chromium and webkit, en zh
zh-TW ja de; cancel posts nothing, confirm posts groups/delete and the row
goes), group-share, group-duplicate, i18n-keys, i18n-en-no-cjk: 38 of 38.
group-*, route-menu-pointer, click-scroll and panel-routing* run next.
Broken by hand: with client.js at HEAD the new test is 0 pass, 10 fail.
Not tried: the real app; the item reuses "Remove", already in every language.
/docs/openhanako says how magpie sets up OpenHanako (HanaAgent): the
magpie provider in ~/.hanako's provider catalog (or $HANA_HOME's), on
openai-completions at the gateway's /v1 with magpie's catalog as its
models; the primary agent's models.chat, primaryAgent or the first agent
with a config, and opening OpenHanako once when it has no agent; changes
through its local API while it runs, the files otherwise; the catalog
sealed since 1.0, the plugin file kept up to date and adding or removing
magpie needing OpenHanako open; switching back to the stashed model, or
OpenHanako's first own model. Each claim is from internal/agent/hanako.go.
Linked from each language's DS Bot page; in the sitemap, llms.txt and
llms-full.txt.
Run: the three pages' JSON-LD parsed with node; llms-full.mjs rebuilt;
node --test site/*.test.mjs on the WSL box (magpie-desktop, wsl-run):
115 pass, 0 fail.
Not tried: OpenHanako itself with magpie for this page; it names only
what magpie's source says.
The Codex agent gets an "applies to" field: All of Codex (as before) or
"codex -p magpie only". In the second mode magpie writes
<CODEX_HOME>/magpie.config.toml (model_provider, model, effort,
model_catalog_json, its own [model_providers.magpie]) and a catalog beside
it, and never touches config.toml: its top-level model_provider, model and
openai_base_url stay the user's. Disconnect deletes that file and magpie's
catalog (kept if the user added to it). Plain `codex` keeps its own provider.
Codex 0.165 reads `--profile NAME` from NAME.config.toml and refuses -p while
config.toml holds a legacy [profiles.NAME] or profile = "NAME", so this is
the file form, not a [profiles.magpie] table. Codex without profile files
(older than the May 2026 removal of legacy profiles) isn't served in this
mode. The choice changes only while Codex is disconnected, so the two wirings
never share a config. Only magpie's models are offered in this mode; no
joining, failover or subagent fields.
Run (mote, at the rebased head): go test ./internal/agent ./internal/gui ok;
gofmt clean; go vet darwin, linux nogui, windows ok; GUI i18n-keys,
i18n-en-no-cjk, gui-zh-tw, codex-signin-always, agent-connect,
agent-disconnect in Chromium and WebKit. Real codex 0.165.0 in a sandbox
CODEX_HOME against a fake server: `codex -p magpie` sent one request
(Bearer magpie, model fake/m1); plain `codex` sent none; config.toml was
byte-identical after connect, effort change, sync and disconnect.
Broken by hand: letting scope change while connected turns two
TestCodexProfileOnly tests red.
Not tried: a real account, the Codex app, the GUI row in a live window, an
older Codex without profile files. gui-de and gui-ja "has every zh string"
are red on main without this change (#6234).
TestPanelHiddenByWailsMarksPageOutOfSight failed on mica (macOS 26) with
marked=false play="running". WebKit fired a visibilitychange of its own as
the panel ordered out, hidden by its own value, before magpie's hide
signal reached the page. The page took it for the hiding, sent /hidden,
and the host showed the panel again before the page was ever told.
The page now records a hiding, and sends /hidden, only while magpie's
signal says hidden (outOfSight). Test-only change; app code untouched.
Run on mica at this tree:
- before: -count=6 of both window visibility tests, 4 failed, all
marked=false play="running"
- after: -count=8 of both, ok (16 of 16)
- broken by hand: pageHiddenJS = "void 0" (no hide signal) -> both
tests red, "timed out waiting for the page to see itself hidden";
restored
.sess-pick.open svg rotated every svg in an opened picker, and the effort
icon (four bars, an svg) sits in the same button as the chevron, so Library
-> Memory -> Learn from conversations' reasoning-depth button spun its bars
while the menu was open. The rule now takes the button's direct svg, the
chevron. Every other sess-pick that opens a menu draws only a direct
chevron svg, so no sibling lost its turn.
Run: library-memory.test.cjs in chromium and webkit on mote (22 of 22 ok),
with a new check that the bars' computed transform is none while the
picker is open and the chevron's is not. On the old CSS the same file was
12 of 22 red. Not tried: the real Linux app, the other 10 sess-pick GUI
files (none reads the chevron's transform; grep for rotate(180 in tests is empty).
698ed4adb (a busy port names its holder) was committed from a tree made
before 919780414 and 88d2962e0 landed (09:38, eight minutes before it),
and took both out with no word in its body: quotatable.js, the Usage
Cards / Table switch and its test, and sessions' 16-byte head and
prefix hashes (digest.go) were gone from main from v0.1.3823. This puts
both back as they were, on top of 698ed4adb's own change, which is kept.
Run at this tree, on mote (cherry-pick of both onto origin/main
db0c1b039, no conflicts):
- gofmt -l internal/sessions: clean.
- go vet ./internal/sessions ./internal/gui; GOOS=windows and
GOOS=linux -tags nogui go vet ./internal/sessions: ok.
- go test -count=1 ./internal/sessions: ok 83.6s.
- go test -run 'Budget|Lazy|I18n' ./internal/gui: ok (the core script
budget holds with both changes).
- GUI, chromium and webkit: usage-quota-table, gateway-port-holder,
i18n-keys, i18n-en-no-cjk, old-webkit: 44 of 46. The two reds are
old-webkit's "compat.js is the first" (headerpresets.js, #6030) and
"the styles hold up in Safari 15.0" (#5919), red the same on an
origin/main db0c1b039 copy.
Not run: the full Go and GUI suites.
Titles named a ZCode session only from files in the CLI database
(~/.zcode/cli/db/db.sqlite). A session the app keeps only in its own
tasks-index.sqlite (a request names it without the sess_ prefix) had no file,
so the Context page showed the id's first eight characters. Titles now asks
the task index for each ZCode key still unnamed, by sess_<bare id>, skipping
default titles. b0b995e08 covered only sessions that have a CLI row.
Run (mote): internal/sessions and internal/gui whole packages ok; gofmt clean;
go vet darwin, linux nogui, windows ok.
Broken by hand: the fallback removed -> TestZCodeTitleOfSessionOnlyTheAppKnows
red (empty title).
Not tried: a real ZCode on this machine (its CLI db is absent here; the index
has only two sessions); other agents' desktop indexes were not audited beyond
claude-desktop and PI-Desktop, which Titles already reads. Full suite not run
before the tag.
/docs/prime-agent says how magpie sets up Prime Intellect's Prime Agent
(prime-agent), which keeps Pi's settings.json and models.json: the
magpie provider in models.json at the gateway's /v1, defaultProvider,
defaultModel and defaultThinkingLevel in settings.json; the key
magpie-prime-agent, since its requests carry no User-Agent; the folder,
~/.prime/agent or PRIME_AGENT_CODING_AGENT_DIR with ~ expanded, a
relative one not taken, and WSL; a project's settings, allowedModels
and subagentDefaultModel left to the user; switching back with the
.before-magpie copies. Each claim is from internal/agent/primeagent.go
and piLikeKeyed in agents.go. Linked from each language's Pi page; in
the sitemap, llms.txt and llms-full.txt.
Run: the three pages' JSON-LD parsed with node; llms-full.mjs rebuilt;
node --test site/*.test.mjs on the WSL box (magpie-desktop, wsl-run):
115 pass, 0 fail.
Not tried: Prime Agent itself with magpie for this page; it names only
what magpie's source says.
y0ngb1n runs magpie on a server behind Cloudflare and uses it from a local
magpie as a Remote magpie. Cloudflare's analytics showed /v1/models asked
~3.7k times an hour (one a second) since Nov 10, 175k in 7 days.
Cause: the follower (KeepRemoteListsFollowed, 11-06/11-08) waits at the
other magpie's /v1/models with X-Magpie-List-Wait and If-None-Match, and
the gateway holds the wait while the tag is the one named. Cloudflare
compresses the list and so turns its ETag weak (W/"ml-..."); the follower
sent that back, and modelsOnceChanged compared it exactly (tag != since),
so every wait was answered 200 at once. The tag it answered equalled the
follower's, so no refetch, only followGap (1s) before the next ask: a
request a second for ever, for as long as the local magpie runs.
Fix:
- gateway/models_wait.go: the wait compares the tag weakly (tagNamed, as
listModelsTagged already does), so it is held to its end and answered 304.
- provider/remote_follow.go: a 200 that carries the tag the follower has,
answered sooner than followQuick, is a wait that was not held (an older
gateway behind such a proxy): the remote is left to its schedule
(errListNotWaited, again after followOldAgain) as other non-waiting
magpies are. Tags are compared without W/.
Run:
- Two magpie processes in sandbox HOMEs on mote (A serving, B a Remote
magpie of A through a counting proxy that makes ETags weak, as
Cloudflare does): old code 14-15 /v1/models per 15s on A, with the fix
4 at start and none in the next 30s. Without the proxy's weakening the
old code was already quiet (1 per ~50s), so the cause is the weak tag.
- TestModelsWaitNamedByAWeakTag and TestRemoteMagpieWeakTagNotAskedOver:
each red with its half of the fix reverted (200 instead of 304; 32 asks
in 400ms), green with it.
- go test -run 'TestRemoteMagpie|TestModelsWait|TestModelsList' on
internal/provider and internal/gateway; gofmt; vet darwin, linux nogui,
windows: clean. Full packages internal/provider (160s) and
internal/gateway (929s) on mote at the head before the rebase: ok.
Not tried: the user's real Cloudflare; GUI.
The Gateway page, `magpie serve` and the app log said only "port N is held by another program". pluoki's was `tailscale serve` on the same port number.
proc.PortHolder reads the holder (lsof on the Mac, /proc on Linux, Get-NetTCPConnection on Windows). Tailscale's daemon is root's and often unreadable, so `tailscale serve status --json` is the fallback for the port. gateway.NoteHeld / PortHeld.Sentence say who holds it, and for Tailscale give `tailscale serve --https=<other> http://127.0.0.1:<port>`. Shown in the `magpie serve` standby line and bind error, the app log, `gatewayHeld` in /api/state (Gateway page) and Start's "taken" answer, in en, zh, zh-TW, ja, de. A holder that can't be read says nothing; the old wording stands. Nothing is killed or touched.
Run: gofmt clean; go vet darwin, linux nogui, windows (mica); go test ./internal/proc ok; targeted holder/gateway tests on macOS (mica), Windows (win-run) and Linux (wsl-run); parser tests with real lsof output; GUI gateway-port-holder, gateway-takeover, gateway-older, gateway-skew, gateway-port, i18n-keys, i18n-en-no-cjk in chromium and webkit. Real run on WSL: a holder named tailscaled on the LAN address with magpie on 0.0.0.0 gives the Tailscale sentence at the bind error; a Python holder on loopback gives "held by python3.12 (pid N)".
Broken by hand: each fix reverted in turn, its test went red.
gateway-card.test.cjs is red on origin/main too (#6029). internal/gateway, gui and cli package runs were still going at push; the full suite follows the tag.
Not tried: a real `tailscale serve` (changes live config), a real Windows holder end to end, the bind-error path on macOS (a wildcard bind coexists with a specific one there).
Each kept file's state held its head hash as 64 hex characters and its
sampled prefix hash as "sample-v1:" and 64 more, two allocations of 64
and 80 bytes beside the state. They are only compared, so they are now
a digest: the first 16 bytes of the same SHA-256, inline in the state's
own 16 bytes where each string header was. The state's size class is
unchanged (416), and the 144 bytes a file are gone.
A cache written before reads as the same files: digest reads the old
hex (with or without "sample-v1:") as its first 32 characters, which
are what headDigest and prefixHash give now, so the first start after
the update reads nothing again. The call shards' gob keeps its string
fields, written and read through the digest, so a shard written before
restores the same too. File names still use hashHead's full hex.
Run, on a sandbox HOME holding the owner's real account history (18,346
session files), the same sessions.json before each run, web mode, at
120 s:
- w14 (main): live heap 88.8 MB, footprint 129 MB, 127 MB after GC,
CPU 2.35 s
- w15 (this): live heap 86.1 MB, footprint 124 MB, 121 MB after GC,
CPU 2.48 s; at 30 s 2.31 s of CPU against 2.15 s, so no file was read
again from the old cache
Broken by hand: digest no longer stripping "sample-v1:" turns
TestDigestReadsTheHashesWrittenBefore and
TestPrefixHashUnchangedAndUnbuffered red.
At the pushed head (rebased on 848269fcf): gofmt clean, go vet for darwin,
windows and linux (nogui) ok, go test ./internal/sessions/ ./internal/usage/
ok on mica. The full suite runs after the push (both test boxes were
loaded).
With a dozen accounts the packed card grid is hard to scan. The Usage
page's Allowances header now has a Cards / Table switch (a segmented
control, remembered per user in localStorage "quotaView"; the default stays
Cards, and nothing is written until the user picks). The table has one row
per account: subscription, account, then the four most common windows
(used % with a bar and the reset time), an Other column for extra windows
and balances, sortable by any column (click again to reverse, a third
time to clear; rows with no value stay last). Balance-only and error rows
span the window columns. Same data and helpers as the cards (quotaFill,
resetClock, quotaWho). At narrow widths the table box scrolls, not the page.
The code is a lazily imported quotatable.js, so app.js stays inside its
code budget. "Cards" and "Table" are translated in zh, zh-TW, ja and de.
quotatable.js is listed in old-webkit's lazy-script exceptions;
docs/subsystems/gui-shell.md has a paragraph on it.
Run (on mica/mote, Playwright): the new usage-quota-table.test.cjs, 22 of 22
in chromium and webkit, in en/zh/zh-TW/ja/de, at 1100px and 420px (14 faked
accounts: default is cards and saves nothing, row count and figures,
persistence across reload, sort cycle and account sort, no page overflow,
back to cards). TestCoreScriptBudget, i18n tests 8/8, gofmt, go vet for
darwin, linux -tags nogui and windows. Whole GUI suite (make test-ui)
at 1ad0f4cc4+this: started before the tag; first 890 results green except account-arrange (#6010, red the same on origin/main).
Broken by hand: with the default flipped to table, 10 of the new tests
failed; restored.
Not tried: the real app, Linux WebKitGTK, a real account's data (the
fixtures are faked, with the shapes the cards read).
Codex through an OpenRouter DeepSeek model (window 1048576, catalog output
943718) failed every long turn. Checked against the code, the report's
four claims hold: the catalog gives that output; magpie translates the
Responses turn to Chat Completions; Codex names no max_output_tokens and
the translation fills in askedOutput (fillsOutput); and replyLeft, which
asks again for what the window has left, read only DeepSeek/vLLM/Anthropic
wording, not OpenRouter's "(N of text input, M of tool input, K in the
output)".
- replyLeft reads OpenRouter's message (every "N of <kind> input" is
the prompt).
- The filled-in limit (translated turns, and withOwnOutput for DeepSeek's
own API) is lowered to window minus the prompt estimated from its size,
when that leaves at least 8192; otherwise as before. Anthropic's fill is
unchanged: its refusal wording was already read.
Run (mote, at this head): gofmt clean; go vet darwin, linux nogui, windows
for internal/gateway; go test ./internal/gateway ok. New tests
TestReplyLeftOpenRouter and TestOpenRouterReplyFitsTheWindow use the
report's literal message. Broken by hand: with the regex changed both
fail (replyLeft 0, HTTP 400 with the report's text); with roomedOutput
returning n unchanged the second test fails (asked [943718]).
Not tried: a real OpenRouter account; the full suite (started after tag).
/docs/ds-bot says how magpie adds itself to DS Bot (once DeepSeek Bot,
an Electron app on the DSH it ships): the data folder found in DS Bot's
own order (DS_BOT_HOME, locations.json's dataDir under DS_BOT_SHELL_DATA
or <config dir>/DS Bot with the older DeepSeek Bot folder, ~/.ds-bot),
an unreadable locations.json touching no folder; the route in
profiles/ds-bot/cordis.patch.yml, the key in .env and DSH's key store
and agent-default-model, as for DSH; new Bots starting on it unless a
Bot default is set in DS Bot, older Bots keeping theirs; the web search
notice; setting it up before the first open, the patch list kept; the
plugin in DSH Desktop following the DSH row; switching back. Each claim
is from internal/agent/dsbot.go. Linked from each language's Tuanjie
Cowork page; in the sitemap, llms.txt and llms-full.txt.
Run: the three pages' JSON-LD parsed with node; llms-full.mjs rebuilt;
node --test site/*.test.mjs on the WSL box (magpie-desktop, wsl-run):
115 pass, 0 fail.
Not tried: DS Bot itself with magpie for this page; it names only what
magpie's source says.
/docs/tuanjie-cowork says how magpie adds itself to Tuanjie Cowork
(团结 Cowork, Unity China's coworker app on Codely): a provider and a
model with id magpie in ~/.codely/settings.json's customModelProviders
and customModels (the gateway's /v1, magpie's key for Cowork, authType
openai, wireApi chat, supportsMultimodal from the catalog); the user's
entries and fields on magpie's kept, a new file made 0600, and a
same-id entry of the user's or an unreadable file left alone; Cowork's
model menu pick made once, since the id stays magpie and a later model
change in magpie is what that pick sends; the notice; switching back
removing magpie's entries and an empty file magpie made. Each claim is
from internal/agent/tuanjiecowork.go. Linked from each language's
OpenBot page; in the sitemap, llms.txt and llms-full.txt.
Run: the three pages' JSON-LD parsed with node; llms-full.mjs rebuilt;
node --test site/*.test.mjs on the WSL box (magpie-desktop, wsl-run):
115 pass, 0 fail.
Not tried: Tuanjie Cowork itself with magpie for this page; it names
only what magpie's source says.
With any model alias set, every Stats read copied each kept range's
days and every session's summary into a second, aliased Stats, and kept
that copy (aliasedKept) beside the unaliased one. With a long history
(~14k sessions) the copy held ~5 MB of summaries for as long as the
kept ranges lived.
Now statsKept aliases a range's Stats in place right after
statsOfRange made it (aliasOwned: only st's own Days and Sessions
arrays are written; the usage, model and effort slices are replaced,
never written into) and keeps that one. keptStats carries the alias
names it was made under, so a changed alias makes the ranges again,
as a changed price or title already did. aliasedKept, aliasKept and
aliasStats are gone.
Tests: TestSessionsCountAliasedModelsAsOne now checks that the kept
range's summaries are the very ones the read returned. Broken by hand
(a copy of Sessions before keeping): it went red ("an aliased read
keeps a copy of its summaries beside the kept ones"), and so did
alias_kept_test's "range 0 named again with nothing changed".
TestAliasOwnedLeavesSharedSlicesAlone replaces
TestAliasStatsLeavesItsInputAlone.
Run at 846cc2b9b (rebased on 96c65e3e7), on mica: gofmt -l clean; go vet,
GOOS=windows go vet and GOOS=linux go vet -tags nogui ./... ok;
go test -timeout 45m -count=1 ./...: 97 packages ok, none failed.
Real account (mote, sandbox HOME with the owner's history and an alias
set), late.sh at 120s, v0.1.3814 vs this: footprint 127 → 124 MB, live
heap after GC 100.8 → 95.9 MB; aliasStats' 5.01 MB is gone from the
profile.
Not tried: Windows and Linux runs of the package (no OS-specific code).
qhyqhy1s asked for best-practice templates in routing groups, as only
three were offered. The Routing page's template cards and Templates menu
(and `magpie group template`) now carry three more, each only a setting
the engine already has:
- Plan first (plan): the strongest model of up to three providers, the
ones billed by a plan (Provider.BillingKind) ahead of pay-as-you-go
ones. Not made when no provider is on a plan (NeedPlan).
- Fastest first (fast): the same members, routing "fast".
- Spread evenly (even): the one strongest model from up to four providers
that serve it, routing "rotate" over all their keys and accounts.
Names, one-line descriptions and the new "Needs a subscription or token
plan" are in zh, zh-TW, ja and de. docs/subsystems/gateway-routing.md has
a Routing recipes section.
Run on mote at the pushed tree: go test ./internal/provider ./internal/cli
./internal/gui (Template|SizeOf|Group) ok; gofmt -l clean; group-template,
getting-started, i18n-keys and i18n-en-no-cjk GUI files, 98 tests, chromium
and webkit, 420px, every language, ok. Broken by hand: routing left unset
on Fastest first, TestRecipeTemplates red. Not tried: a real account
adding each template; the full GUI and Go suites are started after the tag.
amhcwushuang on X runs Claude Code -> new-api -> magpie on a server ->
the Claude subscription, and says the thinking level is lost.
Read from new-api (QuantumNous/new-api main): a Claude channel keeps
thinking and output_config as written (relayconvert shared/claude
ApplyReasoning passes a native request through), including the
{role: system} turn's output_config; an OpenAI channel turns the request
into Chat with reasoning_effort (reasoning.ApplyToOpenAIChat), and an
OpenRouter-dialect channel into a `reasoning` object. Claude Code's own
fixture (claude-code-2.1.296.json) carries top-level output_config.effort,
thinking adaptive, and the same effort on a system turn.
magpie already passed, to the spawned Claude Code's --effort: Messages with
a thinking budget or a top-level output_config, Chat reasoning_effort,
Responses reasoning.effort (checked by the new test on the old code).
It did not take the level from:
- a Messages request whose only effort is the last turn's output_config;
- a Chat request with reasoning.effort (an object), output_config.effort
or a thinking budget in place of reasoning_effort.
Those now set the request's effort. reasoning_effort, when present, stays
the client's word; no setting of the user is read or overridden.
Run: TestClaudeBridgeTakesTheEffortOfEveryRoute red on the old chat.go and
decide.go (4 of 9 cases), green now; gofmt; go vet darwin, linux nogui,
windows on internal/gateway; internal/gateway full package on mote.
Not tried: a real Claude subscription behind new-api; Claude Code's
interactive mode with a message-only effort (the -p stand-in was used).
Claude Code's refusal for a used-up window is "You've hit your limit" and
names no window, and its rate_limit_info may carry no rateLimitType (the
transcript's rejected row). restAfter read the account's windows as they
were cached before the Fable week filled (Fable 60%, nothing full), so
Pooled said no and the whole account rested for the refusal's time:
Opus, Sonnet and Haiku with it, though the other weekly quota was left.
A quota refusal on an account whose reading holds a window of some models
only that counts the model, none known full, now asks for the reading
again and narrows the rest to the model when it shows that pool full
(narrowWhenRead, as for an unread account, #2036). Every route rests
through restAfter, so Messages, Chat Completions, Responses and the group
fallback share it; Claude is not a plugin.
Run at this tree (mote): TestClaudeFableWeekRestsFableOnly red on the old
routing.go (rests the account), green with the fix; internal/provider,
gofmt, vet on darwin, linux and windows. Full internal/gateway follows.
Not tried: a real Fable-limited account; a usage reading that keeps
failing leaves the account resting whole, as before.
0.2.29 pins WorkBuddy AI's free window at the reset a routed-past refusal names (yetihan, plugins #910, #1022). 0.2.28 lists an enterprise's custom: models (plugins #1015). Both are on npm (npm view --prefer-online: latest 0.2.29).
Ran: go test -count=1 ./internal/provider/ on mica, ok.
/docs/openbot says how magpie adds itself to OpenBot (the Electron
workspace running Codex, Claude, OpenCode and others): where
openbot-custom-providers-v1.json is on each OS; the entry magpie writes
(version 1, id magpie, baseUrl /agent/openbot/v1, secret null since the
key is sealed with safeStorage, which magpie doesn't open; the path is
how the gateway counts OpenCode's requests as OpenBot's); a file OpenBot
can't read left alone; the user's name, harness and key on magpie's
entry kept; models limited to those picked for OpenBot, at most 64,
with ids and context windows OpenBot accepts, since one bad entry
empties the list; the start-up read and the restart notice; MCP servers
in its SQLite database added by hand; switching back removing only
magpie's entry, and the file when nothing is left. `magpie openbot
provider magpie` and `magpie openbot default`. Each claim is from
internal/agent/openbot.go and internal/cli/main.go. Linked from each
language's miniQ page; in the sitemap, llms.txt and llms-full.txt.
Run: the three pages' JSON-LD parsed with node; llms-full.mjs rebuilt;
node --test site/*.test.mjs on the WSL box (magpie-desktop, wsl-run):
115 pass, 0 fail.
Not tried: OpenBot itself with magpie for this page; it names only what
magpie's source says.