65cb76ca2e2b59892ecb41fd3fcf6dbe07dde1c3
961
Commits
| Author | SHA1 | Message | Date | |
|---|---|---|---|---|
|
|
e0b67f342b |
gui: times follow the system's 12 or 24 hour clock (iXerol on X)
An en-US Mac set to 24-Hour Time showed Routing's request times in 12
hours: no webview hands the page the system's clock, and navigator.language
carries only the region. boot.js now says it as hourCycle ("h23" or "h12",
left out when the system names none, and for a browser tab, which keeps its
own): macOS from AppleICUForce24HourTime / AppleICUForce12HourTime, Windows
from Control Panel\International sTimeFormat, Linux from gsettings
clock-format. intlLang() adds -u-hc-<cycle> to its tag, so every formatter
that takes it follows, and the places that forced 24 hours (hour12: false,
hourCycle h23) spread hourClock() instead: 24 unless the system says 12.
Read once per 30s, so a change in System Settings shows at the next load.
Run on mote: new hc-clock.test.cjs (en-US on a 24h system, en-GB on a 12h
one, a silent system), chromium and webkit; Go tests for the three readers
and boot.js; gofmt; go vet darwin, windows and linux nogui; internal/gui
tests; GUI files of gui-*, i18n-*, panel-*, quota-*, reset-*, routing-*,
usage-* in chromium and webkit. TestCoreScriptBudget was over by 77 bytes
and passes with two app.js comments cut, no raise.
Broken by hand: hc-clock is red without the intlLang suffix.
Not tried: a real Windows or Linux session's setting (the readers are
unit-tested on their formats), a live Mac.
|
||
|
|
c1a91b5a52 |
agents: Mistral Vibe is an agent, and a Library target (alterxyz4 on X)
Vibe (mistralai/mistral-vibe, the `vibe` CLI) keeps its settings in config.toml in $VIBE_HOME, else ~/.vibe. magpie now connects it: a [[providers]] entry named magpie (the gateway's /v1, api_style openai, backend generic), one [[models]] entry per catalog model aliased magpie/<provider>/<model>, and active_model set to the alias, with the previous value stashed and put back on Disconnect. Vibe reads keys only from the environment, the keyring or ~/.vibe/.env, so the key naming Vibe goes in the provider's extra_headers as an Authorization header; nothing is put in the user's environment. Avibe's `vibe` command is turned away by binNot. Library (#5595): instructions are $VIBE_HOME/AGENTS.md and skills $VIBE_HOME/skills (vibe/core/system_prompt.py, vibe/core/config/harness_files/_paths.py, read at 3.1.2). VIBE_HOME is in appdir's usable list and agentenv. README (en, zh), docs/reference.md and docs/subsystems/agent-wiring.md list it; the restart notice is in zh, zh-TW, ja, de. Run (mica, sandbox HOME): - go test -count=1 ./internal/agent ./internal/library ./internal/appdir ./internal/agentenv ./internal/gateway ./internal/gui: ok. - gofmt -l clean; go vet darwin, linux -tags nogui, windows on the touched packages: clean. - Real vibe 3.1.2 (uv tool install mistral-vibe) with the file shape magpie writes, against a fake OpenAI upstream: the alias with slashes resolves as active_model, the request goes to /v1/chat/completions with model kimi/k2, Authorization: Bearer <key> from extra_headers and user-agent Mistral-Vibe/3.1.2. - GUI: agent-notice-lang, i18n-keys, i18n-en-no-cjk, gui-zh-tw pass. - Broken by hand: vibeMine returning false fails TestVibe, TestVibeOwnModelTakesMagpieOut and TestVibeSyncKeepsTheirs. Not tried: the file written by the built magpie binary itself (the unit tests write it through the same code), Windows runs of the new tests, a Vibe signed in to Mistral with its own models alongside. gui-de and gui-ja "every zh string" were red on the base for the "{agent} isn't installed here" string, not for this change. |
||
|
|
1b884225ad |
gateway: agy's own /effort or --effort level beats the Agents row's pick (haohaolee on X)
Antigravity CLI on a Google model through an API provider: the row's effort field was there and applied (TestAgyAgentEffort), but agy's own /effort (works on the Google names agy knows, which the gateway serves by bare name) and --effort low|medium|high (any model) send a thinkingLevel that the row's pick then rewrote, so the session's choice seemed to do nothing. A request naming a level is now left as asked (agyLevelAsked); a request with thinkingBudget -1 still gets the row's. "/effort" stays "not adjustable" for "magpie/..." model keys: agy 1.5.5 and 1.5.6 have no settings or ModelInfo key that enables it (tried thinkingLevel, thinkingBudget, displayName, vertexModelId). Run: TestAgyAgentEffort, TestWithGeminiEffort on mote; the new case is red (sent "low" for an asked HIGH) with the condition removed by hand and green with it. Real agy 1.5.5/1.5.6 against a fake Gemini upstream in a sandbox HOME showed the levels reaching the gateway. Not tried: a real Gemini API key, agy against the real gateway end to end. |
||
|
|
b4b82e5857 |
agents: Codex's profile list drops a deleted provider's models (JNDliuliuM on X)
Codex wired by its profile alone (codex -p magpie) kept offering the models of a provider that was deleted. The profile's model was one of that provider's, so it no longer resolved as a magpie model, wired() was false, and the profile's Sync returned before it wrote magpie-models.json again. The old list stayed, new providers' models never reached it. The Sync now writes the list again whenever the profile names magpie as provider and its list, even when the model it was set to is gone. All-of-Codex scope already did this (asProvider and ownCatalog), as did the models_cache.json staling. Found by syncing a sandbox HOME in both scopes after a provider edit and a provider delete: only profile scope plus delete left the old list. TestCodexProfileListDropsADeletedProvider is red on the old code (listed added/m2 and added/m3 after the delete) and green now. Run on mote: internal/agent package, go vet darwin, linux nogui, windows. Not tried: a real Codex CLI reading the list; the viaBase models_cache.json path (covered by existing tests, not changed). |
||
|
|
52b516da6d |
agents: a model of no known window is told the default under the longest context too (ul3140773077392 on X, #6259)
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. |
||
|
|
138d806f7a |
codex: "applies to" waits while Codex is routed through magpie by the base URL too (kakzyanaba on X)
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. |
||
|
|
80dcd34729 |
codex: connect Codex through codex -p magpie alone (hpnjstar on X)
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). |
||
|
|
972f69fdc7 |
dsh: a start's first round goes by the last magpie's record (#2278)
A start's first dsh round read every profile through the yaml emitter to
find what the last magpie's round had found: nothing to write. On a real
account that was ~60 MB of the first minute's 523 MB.
The round's key (dsh's files, the gateway, the models) is now summed with
sha256, the same in every process, and a round that ends with nothing to
write records it in the cache folder (dsh-rounds.json, temp + rename).
A start's first round goes by that record when it is this magpie
version's; a dev build never does. A file, the models or the version
changed has the round run as before.
Run:
- go test ./internal/agent (mica): ok 188s.
- GOOS=darwin/linux/windows go vet ./internal/agent ./internal/gateway
./internal/appdir: ok.
- Broken by hand: with the record not read, TestDshFirstRoundGoesByTheLastMagpies
is red ("read and wrote dsh's files 1 times").
- Real account, mote sandbox HOME, a start after one start (pprof
alloc_space at 50s): dshRounds.once 101 MB -> 38 MB (the catalog
only), yaml emitter 43 MB -> none, total 522 MB -> 463 MB. Footprint
peak 168 MB (w11) -> 165 MB.
Not tried: Windows and Linux real starts; the record is plain JSON in
appdir.Cache() there too.
|
||
|
|
e0a1ab0a47 |
agent: RenameLegacy reads no thinking level as a model
RenameLegacy looks for model fields still holding a legacy provider id.
It read every field's value, Pi's defaultThinkingLevel too, and Pi's
effort Get checks the level against the models Pi offers: the whole
catalog built for Pi at every start, though no thinking level is ever a
model id. A field whose key ends in "effort" is now skipped.
Measured on mote with a real account (its providers, Codex and dsh
homes), the profile 8s after start, two runs each:
- before (w5): RenameLegacy 67 MB allocated, piOffered/sharedModels
46-48 MB of it
- after (w6): RenameLegacy 25 MB, piOffered gone from the profile;
the diff of the two profiles: sharedModels -47 MB, but the dsh round
now builds its own list (+27 MB) where it used the one Pi built, so
~20 MB less allocated at start. liveHeap 104.5 MB both, footprint
134-137 MB both: this is garbage saved, not memory kept.
Run: TestRenameLegacyBuildsNoModels (new) passes; with the old
legacy.go it fails ("RenameLegacy built pi's models"). gofmt, go vet
and go test ./internal/agent on mica at
|
||
|
|
c75a1a0f83 |
agent: dsh's bili route asks sharedModels for the catalog, as every reader of the list does (TestModelReadersShareTheList)
The previous commit read len(magpieModels(...)) in dshThrough; the guard test that lists readers of the shared catalog went red. Run (mica): go test -tags nogui ./internal/agent: ok (202s); ./internal/library: ok (139s); go vet darwin, GOOS=linux -tags nogui, GOOS=windows on agent and library: clean; GUI library-bili, library-all, i18n-keys, i18n-en-no-cjk and site node --test: exit 0 at the commit before. |
||
|
|
a1a3b6fadb |
library: DeepSeek Harness folds its context with billion-context through its /bili/ prefix (VantH_off on X)
VantH_off asked for DeepSeek Harness in billion-context's support.
Library's billion-context tab offered Pi, omp, OpenCode, Claude Code, Hermes
and Zed. bili's dsh route is `dsh plugin add billion-context` (billion-context
0.1.213 README), which loads in dsh's process and takes traffic by proxy
settings; magpie's dsh route is baseURL http://127.0.0.1:3425/v1, plain http
on loopback, so that never sees it and the plugin would add tools and fold
nothing (the Hermes case,
|
||
|
|
a6d84e13a9 |
agent: Claude Desktop can use this computer's LAN HTTPS address for SSH remote sessions (zyc-bit on X, #4546)
Desktop's built-in SSH remote sessions hand the profile's gateway address
and key to the remote host. magpie wrote 127.0.0.1 and this computer's own
key there, so the host refused it (provider_loopback; a non-loopback address
must be https), the gateway turned the key away from another machine, and
3p mode's sshHostAllowlist (empty) allowed no host.
Desktop's row gets a "gateway" picker, drawn only while LAN sharing is on
and an address of this computer is https (gateway.LANURLs: HTTPS on, or
MAGPIE_PUBLIC_URL): "This computer" (default, loopback) or that address.
The pick is settings.DesktopGateway (carried by the settings save, kept by
KeepOwn). desktopOn / desktopCheck / desktopKeyApplied write and compare
desktopGateway() and the key at it (agentKeyAt: the sharing key). On a
non-loopback address sshHostAllowlist is seeded once with ["*"]
(desktopSeedOnce; the user may narrow it, never rewritten). The pick holds
only while it is still one of the https addresses; Agent.Gateway is
desktopGateway, so Rekey (after the sharing toggle, and now after the HTTPS
toggle) sets Desktop again, back to loopback when sharing goes off.
desktopIsOurGateway takes this computer's LAN addresses; realReachProbe no
longer verifies the certificate (magpie's CA is not trusted on this
computer), which read a LAN https address as unreachable.
Run (mica, sandbox HOME): go test ./internal/agent ./internal/settings
./internal/settingsapi ok; ./internal/gui ok except
TestPanelHiddenByWailsMarksPageOutOfSight, flaky the same on origin/main
|
||
|
|
7e3e0fec4f |
gui: put agents back as they were when magpie quits, connect them again at start (tudjam17795 on X)
New Settings > General switch, "Put agents back when quitting" (zh: 退出时还原 Agent 配置),
default off. With it on, quitting the GUI app runs the same restore Disconnect does
for every agent magpie has connected (*.before-magpie files back byte for byte), and the
next start connects those agents again. Off keeps today's behaviour: a connected agent
keeps magpie as it quits.
- agent.RestoreOnQuit disconnects each wired agent that the user did not disconnect, then
forgets the <id>.disconnected mark, so the quit leaves no mark; it stashes the list of ids.
agent.RewireOnStart takes that list once and connects those still unwired and not
disconnected since. An agent the user disconnected stays disconnected.
- gui: OnShutdown restores only when the setting is on and this process served the
gateway; start re-wires in the background (not while the gateway is paused). A restore
on quit also quits at once without the ask.
- settings.RestoreOnQuit, settingsapi key kept unless sent, row in index.html, i18n for
zh, zh-TW, ja, de, docs in gui-shell.md and agent-wiring.md.
- app.js: the repeated Off/On settings rows go through one helper (segsOO), 422 bytes
smaller overall, so TestCoreScriptBudget passes without raising the budget.
Run (sandbox HOME, mica because mote was loaded):
- go test internal/agent, internal/gui, internal/settings, internal/settingsapi, internal/cli
at the rebased head: the new tests and the budget test pass.
- GUI, chromium and webkit, five languages, widths 1100 and 420: restore-on-quit (new),
quit-ask-setting, quit-ask, settings-general, settings-sections, settings-places,
i18n-keys, i18n-en-no-cjk, gui-de, gui-ja, gui-zh-tw, and for the rows moved to
segsOO: reduce-motion, skeleton-bird, lightweight, keep-login, checkin-at,
update-auto, update-hide, update-restart, update-download, tray-bird, tray-logos,
tray-cost, wsl-agents-setting, login-allow. All 0 fail.
- gofmt -l clean; go vet darwin, windows, linux -tags nogui clean.
Broken by hand: not forgetting the disconnected mark turns
TestRestoreOnQuitAndRewireOnStart and TestRestoreOnQuitLeavesUserDisconnected red;
dropping the Disconnected() checks turns TestRestoreOnQuitLeavesUserDisconnected red;
dropping the setting gate turns TestRestoreAgentsOnQuit red.
Known reds, not from this change (same on the base
|
||
|
|
7b9ae7cf9c |
agent tests: Pi's group entry counts the group look-ups, not the process's bytes (#6178)
TestPiGroupEntryKeepsItsMembers (
|
||
|
|
85e6ec5406 |
agent: Paseo's Claude model picker lists magpie's models (@TheMist016 on X)
Paseo (getpaseo/paseo) starts the same Claude Code, but builds its own model
list: first-party models plus settings.json's `model` and a few
ANTHROPIC_*_MODEL variables (providers/claude/models.ts). It never reads
Claude Code's modelPicker, where magpie writes every model, so the rest were
not selectable in Paseo. Paseo's own ~/.paseo/config.json takes
agents.providers.claude.additionalModels ([{id,label,description}], checked
against protocol/src/provider-config.ts) and passes each id to Claude Code as
written.
New agent "Paseo" (detected by ~/.paseo or PASEO_HOME): its switch writes the
models Claude Code's /model lists (same ids, [1m] marks, names; only the ones
picked for it) there, marked "via magpie" in the description; the user's own
entries and keys stay, off takes out only magpie's, a sync refreshes when on.
Claude Code must be connected to magpie as well.
Run (mote-run, sandbox HOME in tests): TestPaseoAdditionalModels,
TestStateListsPaseo, internal/agentenv, internal/gui full package ok;
internal/agent full run red only on TestPiGroupEntryKeepsItsMembers, which is
red the same on origin/main
|
||
|
|
efdca11be3 |
agent: Pi's group entry keeps whether a member speaks Messages across polls
Pi's Drift is asked on every /api/drift poll, about every 12s on every page. Each poll wrote the entry of the model the agent is set to. For a routing group, piModelJSON found all of the group's members again (GroupFinder, membersFound, resolveIn) only to see whether one speaks Anthropic's Messages API, for #5037's short promptCache. With the real-account copy on mote, an alloc_space diff of 55s with the Sessions page open showed 21.7MB allocated, 17.1MB of it under Drift (5 polls, ~3.4MB each), 16.1MB of that in this look-up. provider.GroupHasNative answers it through keptOf: kept across requests while the files' stamp stays the same, a minute at most, as the catalog's other kept builds are. Outside a request it is found afresh, as before. The entry is the same. Test: TestPiGroupEntryKeepsItsMembers. Over successive requests, a group's entry allocates under half of one provider.FindGroup: 3,600 bytes against 71,040 for a 40-member group. With the old agents.go it is red: 72,672 against 71,040. TestPiGroupPromptCache and TestPiGroupThinkingIsWhatPiRuns pass. |
||
|
|
f3cdb03c8a |
agents: a Claude Code kept in another config folder is a row of its own (BieJian21872 on X)
Only the folder CLAUDE_CONFIG_DIR (else ~/.claude) names was found. Every
other ~/.claude… folder holding Claude Code's files (settings.json,
.credentials.json or projects/) is now claude#<name>, "Claude Code · <name>",
made by claudeIn at that folder (place.dir, as claude#launch is): connected,
model picked and checked in its own settings.json. With the variable
elsewhere, ~/.claude is claude#default. ~/.claude.json, another tool's
.claude-… folder and the launch file's folder are not rows. A folder
outside the home folder is not found (documented in agent-wiring.md).
Run at the pushed head's parent
|
||
|
|
19782923c5 |
codex: the compaction magpie makes can go on a model of its own (0neB1aze on X)
Codex's memories had a model of their own, its compaction did not. Codex's row has a compaction model square (compact_model, settings.CodexCompactModel), read by the gateway on each compaction (codexCompactTo, before codexCompact). Only a compaction magpie makes is moved: it asks for a plain-text summary any model reads back. One a ChatGPT account seals, or a pick that compacts natively, is left, since only the writing account reads it (#1099); a disabled, unserved or key-barred pick is left with a log line. The text sent to the model is unchanged. Run on mote: TestCodexCompactOnItsOwnModel (red with the move taken out) and TestCodexCompactToLeavesNative; go test for gui, settings, settingsapi, agent, provider, gateway; darwin, linux and windows vet; the GUI files in both engines. Not tried: a real Codex session compacting on the chosen model. |
||
|
|
80e4856803 |
agent: an agent's command in ~/.local/bin is found on Linux and macOS too (Xuanwo on X)
Detected asked only magpie's own PATH off Windows. A magpie started from a desktop launcher has no ~/.local/bin on it, where the official Antigravity CLI installer puts agy, so the Plugins page said "Antigravity CLI isn't in Agents: magpie doesn't find it in ~/.gemini/antigravity-cli". binAt now asks proc.FindTool on every OS (PATH, then ~/.local/bin, npm, bun, Volta, cargo and the other folders a user's tools live in), as Windows already did and as CLIMissing already did. Run: TestDetectedFindsBinInLocalBin on Linux (wsl-run, magpie-desktop): red with binAt put back to LookPath only, green with the change. On mote: go test ./internal/agent ./internal/proc ./internal/gui ok, gofmt clean, go vet for darwin, windows and linux nogui clean. Not tried: a real agy install on the Linux VM, and the GUI Plugins page. |
||
|
|
e3e774be7a |
agents: Claude Code's Co-Authored-By commit signature on or off from its settings (9_bishi on X)
Claude Code's row in Agents > Settings gets a "Commit signature" On/Off menu. Off writes Claude Code's own key attribution.commit = "" in settings.json; On takes out only what hid it (attribution.commit "" , attribution false, includeCoAuthoredBy false), so the default comes back. A custom attribution text is the user's own: the row shows "Your own text", is disabled, and is never written over. attribution.pr is untouched. Route POST /api/settings/claude-attribution, S2 in the settings parity test. Run at the rebased head (on |
||
|
|
7050da0a4c |
hermes: each other profile is an agent row with its own skills and MCP servers (Norethcy on X)
Hermes reads skills/ and mcp_servers from each profile's own home, but the
Library only reached the connected profile. Every other profile is now an
agent row hermes#<name> ("Hermes · <name>"), like omp#<name>: its model pick
stays, and the Library target points at that profile's config.yaml and
skills/. No row is listed while Hermes itself is gone (CLIMissing). Tool
off-lists (tools.exclude) work on the rows too. The GUI says "starts on the
model picked here" for them as for Hermes.
Run: wsl-run go test ./internal/agent ./internal/library (ok, full packages);
GUI hermes-profile-row, hermes-profiles, omp-profile-connect, i18n-keys in
chromium and webkit, five languages; gofmt; go vet GOOS=darwin and windows
for agent and library.
Broken by hand: without hermesProfileAgents in onMachine,
TestHermesProfilesAreAgents is red; without the hermes# branch in targetOf,
TestHermesProfilesGetTheirOwnLibrary is red; without the app.js change the new
GUI test is red (10 of 10).
Not tried: a real Hermes with real profiles, Windows via win-run, the full
GUI suite, the internal/gui Go package (wsl lacks gtk4, build fails there).
|
||
|
|
164826d8b6 |
agent tests: a settled dsh round's allocations are held to the same round over fewer models (#6118)
TestDshRoundWithNothingChangedBuildsNothing held the round to a fixed 300
allocations, and Windows CI read 421 with the skip working. It now settles
the route over 2 models and over 402, and fails when the larger is over
1.5x the smaller + 50: reading the files differs by system, building the
catalog grows with the models.
Broken by hand (`if false && r.done && key == r.last` in dshRounds.once):
red on Windows, 78375 allocations over 402 models against 1780 over 2.
Run at
|
||
|
|
5c02be05b8 |
agent: agy moves onto the community agent-agy plugin
The built-in agy agent (Antigravity CLI) is the first built-in agent a community agent plugin serves, as the retired subscriptions moved onto provider plugins. While @magpie-community/agent-agy is installed and on, magpie's agy is the plugin's: the built-in leaves the list (here and in WSL), its id and aliases are the plugin's, and what the built-in wired is handed over. Turned off or removed, the built-in is back. Nothing is forced yet; the forced install and the built-in's retirement come once the plugin is on npm and a real run with it is on record. The plugin (plugins ebcff866, 0.2.0) follows the built-in since |
||
|
|
fe8c05e0c8 |
agent: Claude's model variables hold Anthropic's own ids on Claude Code's own subscription, so Desktop's Code tab stops failing WebFetch (iryan_sun on X)
ANTHROPIC_DEFAULT_<TIER>_MODEL, ANTHROPIC_SMALL_FAST_MODEL, CLAUDE_CODE_SUBAGENT_MODEL and the auto mode model stayed "claude/claude-haiku-4-5[1m]" after the main model became an alias. A tier variable can't be an alias of itself, so on this computer's own file a Claude model of Claude Code's own subscription is now written as Anthropic's bare id (provider.ClaudeBare): through magpie that id goes to the same subscription (OwnRoute), and Anthropic knows it. Haiku has no 1M window, so its [1m] mark is taken off. Read back, a bare Claude id is the subscription's ref (ClaudeUnbare), so every field, the tiers' follow logic and the gateway's stand-in read it as before. Old files: a settings.json written with the prefixed ids is rewritten by the next Sync (the check that already brought dashed spellings up to date), for every user. Models of other vendors or a relay keep their ref: Anthropic has no id for them. A distro's file and the claude-magpie launch file keep refs. Run (wsl-run, Ubuntu, at the pushed head after rebasing on origin/main): internal/agent -run "Claude|Tier|Folder" ok; internal/provider ok; gofmt -l clean; go vet -tags nogui for linux, darwin and windows clean. Before the rebase, the whole internal/agent package had two reds: TestFolderVarsAreListed (BUN_INSTALL, fixed on main since) and TestGrokInstalled (WSL2 binfmt, already #3548). Neither touches this change. Real claude 2.1.316 with a fake upstream showed Desktop's PROVIDER_MANAGED_BY_HOST sends the tier env as written, so prefixed ids go to Anthropic. Broken by hand: with ClaudeBare turned into a no-op, TestClaudeModelVariablesAreAnthropicsOwnIDs fails on the bare ids and on the Sync rewrite. Not tried: the real Claude Desktop Code tab, a WSL distro user, real accounts through magpie end to end. A non-Claude model or a relay-served Claude model still has no Anthropic id, so its tier variable keeps the ref and Desktop's Code tab still can't use it. |
||
|
|
6c95722da6 |
agents: OpenMausBot's row draws its real logo, not a black square (HulaSup on X)
The Agents row showed a plain black square for OpenMausBot. Its icon file (OpenMausBot's build/icon.svg, a black tile with a silver cursor, Apache-2.0, byte-identical to upstream at main) was named openmausbot.svg, and app.js draws an SVG without the -color suffix as a one-tone mask: the black tile became a black square. Renamed to openmausbot-color.svg, which app.js loads as an image (as Antigravity, Cherry Studio). TestEveryClientHasNameAndIcon now fails a client whose SVG holds gradients but isn't named -color; it is red on the old name (checked by hand), green now. Run (wsl-run, magpie-desktop, nogui tag; mote's disk is full): - go test ./internal/agent: ok. go test -run 'Icon|Client' ./internal/gui: ok. The full ./internal/gui run hung 600s in TestGatewayMode (gatewaymode_test.go:63) on WSL, a test this change doesn't reach; not filed or investigated. - go vet on linux (nogui) ./internal/agent ./internal/gui and windows ./internal/agent: ok. - gofmt -l: clean. Not tried: the live GUI in chromium/webkit; the full suite. Protocol (HulaSup's question): magpie writes OpenMausBot an engine of its own as a Claude endpoint (driver claudeAgent, ANTHROPIC_BASE_URL), Anthropic messages. |
||
|
|
612dc1956f |
agent: BUN_INSTALL is an agent folder variable; TestGrokInstalled's fake is not an MZ file (#3548)
Both were red on origin/main
|
||
|
|
d78d853a4e |
agent: telemetry off for Crush, Kimi Code, Goose, Pi and Cline too (daoche_wuzui on X)
Settings > Privacy "Turn off telemetry for all agents" and each agent's own Telemetry row now also cover Crush (options.disable_metrics), Kimi Code (top-level telemetry in config.toml), Goose (GOOSE_TELEMETRY_ENABLED in config.yaml), Pi (enableInstallTelemetry; Pi itself, not its forks) and Cline CLI (telemetryOptOut in data/settings/global-settings.json). Each key was read from that app's source, docs or binary. Same rules as before: only missing keys are written, a user's own value is never overwritten, an unreadable file is unknown (TOML and YAML are parsed strictly). Antigravity (app and agy) has no local key: agy's EnableTelemetry is json:"-" and the setting lives on the Google account. Droid (org-set), OpenCode/omp (OTel is opt-in), Cursor CLI (account privacy mode) and Hermes (sends none) have none either. Grok Build, Kiro, CodeBuddy, Command Code and Amp were not looked at. Run (wsl-run, mote's disk is full): telemetry_more_test.go green; broken by hand twice (wrong off test: crush and cline red; lenient unreadable read: kimi and goose red). go vet for windows, darwin and linux nogui clean. internal/agent whole package: only TestGrokInstalled red, a WSL exec "Invalid argument" in a /tmp stand-in, not touched here; the one red this change caused (TestFolderVarsAreListed, CLINE_GLOBAL_SETTINGS_PATH) is fixed in agentenv.Vars. Real goose and crush binaries read the sandbox paths; not tried: that any of the five honours the written key at run time, Windows run. |
||
|
|
0c44b9ece4 |
agent: a dsh round builds the provider catalog once
keepDshWired's round ran outside any provider.Hold, so every PublicRef, RenamedRef and Exposed it asked built every provider's models again. With a real account, 158 MB of what magpie allocated in its first minute was this round, 72.55 MB of it dshStartOnItsRoute's four refs, all worked out before the first was looked up. The round now holds the catalog for its whole run, and the start's refs are worked out only when the one before isn't listed. provider.EntriesBuilt exposes the build count for the test. Test: TestDshRoundBuildsTheCatalogOnce gives the start an auto ref no model has and counts catalog builds in a writing round. On the old dsh.go it is red with 3 builds; with the change, 1. |
||
|
|
1ccacad632 |
agent: Obsidian is listed only when a vault has Copilot (iEthan333 on X)
detect was "obsidian's config folder exists", so every Obsidian user got a
row whose provider field could only fail ("no Obsidian vault here has
Copilot"). It now needs a vault in obsidian.json with Copilot installed
(.obsidian/plugins/copilot/manifest.json) or magpie's provider already in
its data.json, so a wired vault can still be disconnected. Every OS's config
folder (mac, Windows, Linux, Flatpak, Snap) is already read by obsidianDirs.
Siblings checked: Zoo Code and Copilot (JetBrains) already require the
plugin installed; VS Code forks and Raycast are the apps that hold the
setting themselves. None changed.
Run: go test ./internal/agent -run Obsidian (wsl-run); the new no-Copilot
vault assertion is red on the old detect (checked by hand). Full agent
package, gofmt, linux and windows vet: see push notes. Not tried: a real
Obsidian install.
|
||
|
|
0052c860e0 |
library: billion-context installed with bun is found on Windows (Zerenjie on X)
biliPath looked for bili.cmd on PATH and in %APPDATA%\npm only. bun add -g puts bili.exe (with a bili.bunx) in the bin of BUN_INSTALL or ~\.bun\bin, so a bun install was never found. It now asks proc.FindTool, which tries .exe and .cmd in every folder a user's tools are installed in. proc's UserBinDirs also takes BUN_INSTALL's bin (Windows and elsewhere), and Kiro Crew's adapter search gets ~/.bun/bin, BUN_INSTALL's bin and, on Windows, %APPDATA%\npm, its siblings that had the same hole. Run: on xiaomi-gpu (Windows 11) really `bun add -g billion-context` into a sandbox BUN_INSTALL with PATH holding no bun bin. Before the fix biliPath was "" ; after, it was bili.exe and `bili --version` answered 0.1.213. go vet and go test -run Bili|KiroCrew|ToolIn|UserPath for library, agent and proc passed on Windows and in WSL (magpie-desktop). The three new tests fail on the old code in WSL (broken by hand with the sources stashed). Not run: the full suite, a darwin vet and a mote run (mote's disk was full, 226Mi free), the GUI suites (no GUI file touched). |
||
|
|
aa2ea5c906 |
agent: Claude's main model is written as a tier alias, so Claude Desktop on a subscription no longer sends magpie's prefixed id (iryan_sun on X)
Claude Desktop's Code tab sets CLAUDE_CODE_PROVIDER_MANAGED_BY_HOST=1. Claude
Code then ignores the env block of settings.json (base URL, token, tier model
vars) but still honours the top-level `model`. magpie wrote `model` as the
provider-prefixed id (anth/claude-opus-4-7), so the official API rejected it
and WebFetch failed.
writeTiers now writes `model` as the tier alias (opus/sonnet/haiku/fable, with
[1m]) whose ANTHROPIC_DEFAULT_<TIER>_MODEL already maps to the main model, on
this machine's ~/.claude only. A distro file, the claude-magpie launch file and
a main with no tier keep the id. The model field reads the alias back through
the tier env, also while the gateway is unreachable (drift). Unwire drops
`model` when magpie wrote the alias.
What happens to old values: a settings.json an older magpie wrote with the
prefixed id (model "up/big-x") is rewritten to the alias at the next catalog
sync, for every user, with no step on their side; the tier env already maps it
to the same model. A prefixed id picked from the modelPicker rows is brought to
the alias the same way. A model the user set themselves (claude-haiku-9,
own/xyz, opusplan) is never rewritten.
Ran:
- Real Claude Code CLI (~/.local/bin/claude) in a sandbox HOME and
CLAUDE_CONFIG_DIR, wired by a magpie built from this tree (gateway :38760)
to a scripted upstream that logs each request's model: main -> big-x,
`--model haiku` -> fast-x, a subagent (Agent tool) -> sub-x, WebFetch's
extraction of https://example.com -> fast-x (haiku's). Old prefixed file
migrated to "sonnet" by a catalog sync; the three user models above stayed.
- TestClaudeMainModelIsAnAlias: red on the old code, red again with mainWord
broken by hand, green with the fix; it also covers the user's own models.
- 11 existing tests read the raw `model` as an id; they read it through
writtenModel now. TestWSLClaudePick compares the distro's file with the
native one after normalising `model` (the distro keeps the id by design).
- go test ./internal/agent ok at the pushed head; gofmt; go vet darwin, linux
nogui, windows for internal/agent.
- internal/cli: TestGatewayKeyLimitCLI is red on origin/main
|
||
|
|
d7978141bb |
sessions: WSL sessions go when the last agent in a distro is uninstalled (_SekiBetu_ on X)
wslList kept every distro's listing, cold, whenever WSLHomes named no distro. That is also what it names once the last agent in WSL is taken away, so the sessions of a removed agent stayed listed for good, unopenable and undeletable. internal/agent now says whether wsl.exe answered the list of distros (sessions.WSLListed); an answer with no distro an agent is in drops the listings, no answer keeps them as before. Run (win-run, xiaomi-gpu; mote refused SSH all session): the new TestWSLAgentsGoneListingDrops and TestGoneAgentLeavesNoSession (native Claude and Codex folders deleted: nothing listed, no parse kept; green on the old code, so macOS/Linux/Windows native lists were already right), go test ./internal/sessions ./internal/agent, go vet on both. Broken by hand: with the WSLListed check turned off the new test is red (7 sessions listed after the agents were taken away). Not tried: a real WSL distro with a real uninstall; GUI; full suite. |
||
|
|
245f07b19e |
agent: the pages that poll name rows from a list built once a while
The Sessions page polls its list and its stats every 15s, the Usage page its clients, and each asked agent.Clients() only for each agent's id, name and icon. Clients() builds every agent (30+ constructors): 2.5 ms, 378 KB and 3411 allocations a call on the Windows box with discovery's real 2s look window, mostly os.Stat, filepath.Join and Getenv. On the real-account run (t69, 4 min) agent.All under the sessions handler was 22 MB of 210 MB allocated. agent.Looks keeps that id/name/shared-name/icon list for 30s, built again at once when the plugins' agents change (agentplug's set) or the Agents page's refresh (Rescan). A new omp or QwenPaw profile shows by its id for up to 30s. Nothing is kept in a test binary unless a test says, so tests that add an agent read it at once. The GUI's sessions list, stats, one session, markdown export, trash, manage and reads views, and usageapi.Clients, read Looks. Tests: TestLooksBuiltOnceAWhile — six asks build once, the list equals Clients(), a plugin agent switched on and off shows at once, Rescan builds again. Broken by hand (memo check made false): "six asks built the agents 6 times; want once". Run on the Windows box: go test ./internal/agent ./internal/gui ./internal/usageapi at the pre-rebase base |
||
|
|
d1b4eff5aa |
agent: version detection and updates for agents installed in WSL distros (mewcoder on X)
A WSL twin row (<kind>@wsl:<distro>) showed no CLI version and no Update button; the host path's cliupdate machinery only knew host binaries. Now a twin in a running distro is read and updated inside the distro, for every cliSpecs kind that has a command (cliupdate_wsl.go): - one `wsl.exe -d <distro> -e sh` probe prints the command's real path, --version and exit code, with its own folder, npm prefix, ~/.local/bin and ~/.bun/bin first on PATH (wsl.exe -e has no login PATH, node CLIs exit 127); kept 10 min in wslProbes, dropped by Rescan and after an update. - wslHowInstalled applies the host rules to the Linux path: own updater (spec.self), Homebrew, npm, bun, pnpm; volta, yarn and unwritable prefixes are left alone. - the update runs in the distro through wsl.exe (wslRunUpdate); a Linux brew's newest is asked in the distro too. - a stopped distro is never started: no version, and an update says to start it. CLIs() lists twins, so Update all takes them in. No GUI change: the Agents row is keyed by agent id. Run: gofmt clean; go vet darwin, linux, windows on internal/agent; go test ./internal/agent ok on mote. TestWSLAgentCLIVersionAndUpdate (fake registry + fakeWSL distro with an nvm prefix) goes red with the CLI hook removed from CLI(). Real: win-run on xiaomi-gpu, magpie-desktop's own codex read 0.162.1, Update true, updated to 0.167.1. internal/gui on mote: only TestPanelHiddenByWailsMarksPageOutOfSight failed (AppKit test killed at 120s, mote load ~80; no GUI file touched). Not tried: real brew in a distro, proxy env inside the distro, sudo-owned npm folders, kinds without a bin (Goose, mu), starting a stopped distro. Host's proxy settings are not carried into the distro. |
||
|
|
0cc91af3db |
agy: magpie's models go in a settings file of its own, so agy's remote control works (baysonfox on X)
magpie wrote modelProvider gemini, the model and its custom models into agy's settings.json. That made every agy an API-key session: no Google account, so no remote control (needs the sign-in plus Google's server-side flag), and a plain agy asked for GEMINI_API_KEY too. Now they go in ~/.gemini/antigravity-cli/magpie-settings.json, handed to agy as --settings for the one session (the launch command, magpie agy run, and the function in a shell or a WSL distro). settings.json stays the user's. An older wiring is given back (stashed model and provider) at the next Sync or pick. agy remote-control and --remote-control run plain, on the sign-in. Run (mote): go vet, GOOS=windows and linux nogui vet, agent/cli/sessions/update packages (see push note). Real agy 1.5.3 in a sandbox HOME: plain agy with the user's untouched settings.json now asks for sign-in (no GEMINI_API_KEY error); the new launch reached a stub gateway at /v1beta/models/<m>:streamGenerateContent. Broken by hand: remote-control bypass removed, TestAgyRun red; TestAgy red on the old code (settings.json written). Not tried: real remote control (needs a Google sign-in, none in the sandbox); signed-in BYOM custom models; Windows PowerShell function run. |
||
|
|
90a028d2c1 |
air: JetBrains IDEs get a Magpie agent for each running WSL distro (yanghonghang on X)
IDEA 2026.3 starts a WSL project's ACP agent inside the distro through EEL.
An absolute Windows command whose environment differs from the project's is
refused ("ACP executable belongs to a different environment"), which the AI
Assistant shows as "Magpie does not run". The host entry in ~/.jetbrains/acp.json
therefore never worked for a WSL project.
Now each running distro that has opencode gets its own "Magpie (WSL <distro>)"
entry: command is the distro's opencode as a \\wsl.localhost UNC path (the
WSL descriptor, accepted), env OPENCODE_CONFIG points at a magpie-opencode.json
written in the distro's ~/.jetbrains. Set, Sync, Check and the uninstall path
all reach the entries; a stopped distro is never started. The probe now
records the binary paths (distro.Paths).
Ran: mote-run go test -run 'TestAir|TestWSLProbeKeepsPaths' ./internal/agent
(ok), the same on win-run and wsl-run (ok), gofmt, GOOS darwin/linux/windows
go vet ./internal/agent. Broke by hand: turning the WSL branch off in airAt
turns TestAirIDEAddsMagpieAgentForWSLProjects red.
Not tried: a real JetBrains IDE (none on the Windows box); the EEL rule was
read from the IDE's bytecode.
|
||
|
|
92c798aac5 |
agent: dsh's models are built again every 30 minutes at rest, not 5
With a real-account HOME, an idle magpie allocated ~53 MB per 4 minutes, and ~42 MB of it was dsh's wiring round building magpie's models again because dshModelsFor (5 minutes) had passed, with provider.StampNow unchanged. The forced build is only for what the stamp can't see: another app rewriting an account's file, and models retired by date. Now it runs every 30 minutes, and once more when the local day changes, so a dated retirement still reaches dsh's lists that day. Run on mote: - go test -count=1 ./internal/agent: ok (244s) - GOOS=windows go vet, GOOS=linux go vet -tags nogui ./internal/agent: ok - gofmt -l: clean Broken by hand: dshModelsFor back at 5 minutes, TestDshModelsStale is red (10 and 29 minutes counted stale). The existing "unseen" subtest still rebuilds models dshModelsFor old. Not tried: a measured idle allocation on a real binary; that comes with the next release's acrss/ad run. |
||
|
|
bf0a1252fa |
codex: the chat open in the Codex app follows a provider switch (hubo31377762 on X)
Switching Codex between magpie and OpenAI left the chat that was open unusable. The Codex app holds the writer lock of every chat it has loaded, so no move touched that chat's row, and Codex 0.167 refuses to resume a chat whose provider isn't the configured one (modelProviderMismatch openai to magpie, modelProviderNotConfigured magpie to openai). Reopening it did not help. Just before magpie ends the Codex app's app-server for the route change, the held chats are now moved to the provider Codex is on: a paginated one by its row, a legacy plain rollout in place at equal id length (openai and magpie), packed legacy rollouts and other lengths left to the next sync (provider.CodexBeforeAppEnd, agent.codexRetagOpenThreads, sessions.RetagLoadedCodexThreads). The end is a clean SIGTERM and Codex writes nothing back. Run (mote-run): gofmt -l on the three packages; go vet for darwin, windows and linux with nogui over ./internal/...; go test internal/sessions, provider and agent. Real codex 0.167.1 app-server in a sandbox CODEX_HOME, both ways: no retag gives modelProviderMismatch (openai to magpie) and modelProviderNotConfigured (magpie to openai); with the row retagged and the app-server SIGTERMed, thread/resume succeeds on the new provider in both. Broken by hand: the hook call removed and the retag call emptied; both new tests go red (open chat stays on the old provider, order is [end] only). Not tried: the Codex app GUI itself, Windows runs, a packed legacy thread held open (left to the next sync). A resumed thread's sandbox falling back to config.toml's default happens with no provider change and is #6028. |
||
|
|
1c3056a2ee |
agent: dsh_idle_test.go's stream idle tests are back
|
||
|
|
8fa91a8520 |
agent: dsh's parsed entries and patch lists go when idle
Startup's RenameLegacy parses every dsh profile's patch list and entries
(dshNodes and filememo's "dsh list"; ~2 MB of YAML nodes in the t60 idle
heap with real accounts), and KeepDshWired's round reads none of them
while nothing changed, so they were kept for the life of the process for
nobody. Two minutes after the last look they are let go (dsh_idle.go, the
same pattern as usage, sessions and catalog); the drift poll and a round
that writes parse them again.
Run on mote at this head: go test ./internal/agent ok (255s); gofmt
clean; GOOS=windows go vet and GOOS=linux go vet -tags nogui
./internal/agent ok.
Broken by hand: without the dshNodes reset, TestIdleDshParsesLetGo fails
("idle: 1 parsed entries kept"); without DropKind("dsh list") it fails
("the patch list kept while idle").
Not tried: a fresh real-account heap at this head (next acrss run).
|
||
|
|
edbc700dc3 |
agent: dsh's round keeps the sum of magpie's models, not the list
Each dsh round (every 30s, for dsh's home and dsbot's) kept the model list it last built between rounds, for the life of the process, though a round that finds nothing changed only compares its sum. With a copy of the real accounts the end heap of an idle v0.1.3641 still held 9.7 MB of catalog (catalogKept, keptFit) after the held/kept sweep let its own copy go: the dsh rounds' lists shared it. Now a round keeps the stamp, the time and the sum, and builds the list again only for a round that writes, which is what it did when a file changed anyway. |
||
|
|
036b691542 |
agent: a kept model list past its minute is let go, not kept for good
stampedLists (each agent's magpie models, options, Codex's picks) builds
a list again once it is older than magpieModelsFor, but never let the old
one go. Every agent's list a window poll asked for once stayed for the
life of the process, though it would never be served again: with real
accounts, Pi's alone was 10.9 MB of an idle heap and dsh's 4.1 MB
(piOffered.sharedModels, dshRounds.magpieModels). Now a sweep, armed when
a list is kept, drops the lists past their minute and looks again when the
next of the rest will be; it stops when none is left.
Ran on mote at this head (rebased on 459405960; internal/agent again ok at
|
||
|
|
1d41799f2a |
agent: turn off every agent's telemetry from Settings › Privacy (OipsAnthony on X)
OipsAnthony on X: "magpie 设置 - 隐私,支持统一关闭所有 Agent 的遥测功能, 这个统一管理的地方优先级最高". v0.1.3562 gave Codex, Claude Code, Gemini CLI and Qwen Code a Telemetry row each; there was no one switch for all. Settings › Privacy now has "Turn off telemetry for all agents" (settings.AgentTelemetryOff, POST /api/settings/agent-telemetry, agent.SetTelemetryAll in internal/agent/telemetry_all.go): - On: every agent found here with a telemetry switch is turned off through its own switch and that switch's rules (only keys the file lacks are written; a value of the user's own that keeps telemetry on is never written over: the agent stays on and the reply's "refused" names it and why). Each agent the switch turned off gets a stash marker, <id>.telemetry.all. An agent found later is turned off on the next state the window reads and by a one-minute gateway loop (KeepTelemetryAllOff, in WhileServing). - While on, each agent's own Telemetry row shows off, says "Off for all agents in Settings › Privacy" and its buttons are disabled; the API refuses it too (ErrTelemetryAllOff). - Off: only the marked agents are turned back on, which takes out only magpie's keys. An agent off by its own row or the user's own config before stays off. - An unreadable settings.json is unknown: nothing is written. - The setting is per computer (KeepOwn) and the generic settings POST can't change it (settingsapi.Merge carries it). app.js pays for its ~650 bytes with ten Privacy-section comments cut (core 1,533,550, under its 1,533,802 budget, no raise). Run (mote, first on |
||
|
|
418bb6c9e1 |
codex: Show Codex's own models off leaves them out of Codex's own picker (iiiiiimone on X)
The switch (#1642) only narrowed the Agents page's pickers. Codex's own list, which the gateway hands it beside its sign-in and as the Codex app's list file, kept every model of the ChatGPT account, also with the Codex provider switched off. codexMerged now leaves the sign-in's visible models out when the switch is off (provider.CodexOwnLeftOut); the model Codex is set to, models magpie serves on a ChatGPT account and hidden jobs stay, and the list's ETag carries the switch so Codex asks again. Codex has one openai_base_url for every model, so one it is still set to goes through the gateway to OpenAI on its own sign-in; a model of it can't be sent direct beside magpie's models. Run: TestCodexListWithOwnModelsOff, red with the filter turned off (own models all listed, ETag unchanged); gateway, provider tests at this tree. Not tried: a real Codex app against the list. |
||
|
|
3a3d161fa0 |
agent: Claude Desktop uninstalled on Windows is no longer listed (alien_jambob on X)
alien_jambob (Windows 11, 0.1.3603) uninstalled Claude Desktop and magpie still listed it under 未设置. The uninstall leaves %APPDATA%\Claude behind with its claude_desktop_config.json (their Everything search shows it), and Desktop counted as here whenever any of its folders was. - On Windows Desktop is listed only while its program is installed (desktopInstalled): Squirrel's %LOCALAPPDATA%\AnthropicClaude\claude.exe, the MSIX's package folder (desktopdir.Installed, as before), or its package in the AppX registry (Claude_… or the Store's AnthropicPBC.Claude_…, main package only). A Desktop still on magpie stays listed, so it can be turned off, as Alma's fix ( |
||
|
|
40cd70d54e |
agent: an agent behind billion-context's /bili/ lane still goes through magpie (33sczf on X)
The Library's billion-context tab puts Claude Code behind bili's lane: ANTHROPIC_BASE_URL http://127.0.0.1:18787/bili/http://127.0.0.1:3425, which forwards to the gateway. A local proxy with a path is checked by asking GET / there for magpie's info (#1985), and a bili lane runs only beside its agent, so the probe said no: the Agents page showed "配置已变更" with Reconnect, which would have written the gateway over the user's billion-context. chainsToGateway (reach.go): an address on this machine's loopback whose path ends in the gateway's own URL (/bili/<gw>, /bili/anthropic/<gw>, any port) reaches magpie without a probe. reachesMagpie and surelyMagpie take it, so every agent's drift check (wiringOff, Claude's managed settings, Reasonix, T3 Code, Zed) holds, and Claude Code's writes (a pick, Reconnect) keep ANTHROPIC_BASE_URL on the lane (gwAt/claudeProxied). The sync's kept-away filter (keptaway.go) kept nothing for a file that already named the gateway: chainPrefix now keeps one such proxy in front of the gateway wherever the file had it, for every agent's sync. Codex is left as it was: its openai_base_url check is exact, and bili's Codex lane is an MCP server that never takes this address. Run (mote): - go test -run 'TestBiliChain|TestChainsToGateway|TestClaudeBehindBili' ./internal/agent: ok - go test -run 'TestBiliChain|TestChainsToGateway|TestReverseProxy|TestClaudeManagedProxy|Kept|Away|Elsewhere|Proxy' ./internal/agent: ok - gofmt -l clean; go vet ./internal/agent for darwin, linux (nogui) and windows Broken by hand: chainsToGateway taken out of reachesMagpie/surelyMagpie and chainPrefix off: TestBiliChainIsStillMagpie red with the reporter's exact message for claude, claude-desktop, gemini, opencode and others, 53 files back on the gateway after a sync; TestClaudeBehindBiliLaneKept red. Not tried: a real bili lane with a real Claude Code; the full suite (started after the tag). |
||
|
|
c6bdce26fe |
agent: auto mode works on every model; its check is turned off unless each model gets Anthropic's results back (JoyYoung2Lucky on X)
Claude Code 2.1.322 in auto mode, routed through magpie, denied every action it would check with "Auto mode can't check actions in this session. Its safety check runs on the server, and your requests go through 127.0.0.1:3425, which doesn't pass it through" (auto_mode_no_check_in_session), on DeepSeek and on a Claude model alike. 2.1.316 fell back to its own classifier there; 2.1.322 doesn't when telemetry or feature flags are off (DISABLE_TELEMETRY, CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC, ...), unless CLAUDE_CODE_AUTO_MODE_SERVER is "0". magpie wrote that "0" only when no model Claude Code could reach was reviewed. Any reviewed one, a relay's Claude on its Anthropic endpoint included, left it unset, and /model (or a route that drops safeguard_results) then left the session with no check. That is why a Claude model failed too. Now claudeReviewed asks every reachable model (shown entries, group members, fallbacks, the models it is set to) for gateway.AutoModeAnswered: a reviewable model on the Claude subscription or on api.anthropic.com. Any other writes "0", and Claude Code runs its own classifier through the gateway, fitted to any model (classifierStandIn); its model is the Claude Code card's auto mode square (CLAUDE_CODE_AUTO_MODE_MODEL). An empty slot Sync passes (no small model, say) is skipped, not judged as a model. The gateway still passes safeguards to relays as before. Nothing mimics Claude Code and CLAUDE_CODE_ENTRYPOINT is not set. Real runs, Claude Code 2.1.322 in a sandbox HOME against the live gateway as a client, auto mode, `ls /`, DISABLE_TELEMETRY=1: - deepseek/deepseek-flash: the user's exact denial (before). - deepseek/deepseek-flash with CLAUDE_CODE_AUTO_MODE_SERVER=0 (what the fix writes), with and without a classifier model set: the local classifier ran (permission_check_status checking -> done), Bash ran. - openrouter/anthropic/claude-opus-5.5: ran (OpenRouter returned the results; the fix still writes "0" for it, which also works). - claude/claude-sonnet-5 (subscription bridge): ran. Fake upstreams with and without safeguard_results (in a stream's message_delta delta) showed the same split. Tests: TestClaudeAutoModeReview (DeepSeek beside a Claude model writes 0, the user's case), TestClaudeReviewedOnlyWhereResultsComeBack, TestClaudeReviewedJudgesTheSetModelWhereItGoes (empty slot), TestT3CodeAutoModeReview, TestAutoModeAnsweredOnlyWhereResultsComeBack. Broken by hand on WSL, each went red: AutoModeAnswered true for any reviewable model (relay cases red in agent and gateway); the old "any shown entry reviewed" rule (the user's case and T3 Code red); an empty slot judged as a model (three Claude-alone cases red). Runs, each at the tree named (the diff is the same in all three): - On |
||
|
|
0baa223ec9 |
agent: Kun, magpie as a provider connection through its runtime API (zhongxingyuyes on X)
Kun (KunAgent 0.4.5, Electron, com.xingyuzhong.deepseekgui) keeps its
model providers in ~/.kun/data/model-connections.v2.json (or
$KUN_DATA_DIR) and changes them only through its runtime's admin API,
whose address and token are in runtime.json. magpie wires Kun by
calling that API while Kun runs:
POST /v1/model-connections/connect the magpie connection
PATCH /v1/model-connections/:id models, gateway address
POST /v1/model-connections/select the default model
DELETE /v1/model-connections/:id off
POST /v1/provider-config/transactions/preview, then commit
off when magpie's connection is the default: Kun refuses a
plain DELETE of the connection its default names, so the
transaction clears the default and removes it in one step,
and the default the user had before is put back.
When Kun isn't running, wiring says "open Kun, then try again"; the
file is never written behind Kun's back. Kun joins the agent list,
desktop-app detection, the env guard, the icon set (kun.png), the
READMEs and docs/reference.md and docs/subsystems/agent-wiring.md.
Run:
- WSL (Ubuntu 24.04), at the rebased head: go test -tags nogui
-run 'Kun|ListsModels|Picker|Spelled|HandWired|Sync|Drift|ListOnly|
Moved|LAN|Proxy' ./internal/agent ./internal/agentenv ok;
./internal/library ok; ./internal/gui -run 'Icon|Budget|CSS|I18n|
Picker' ok (agentenv: no tests match the filter).
- Windows (win-run): go test -run 'Kun|ListsModels|Picker|Spelled|
HandWired|Drift|ListOnly' ./internal/agent ok. CGO_ENABLED=0 go vet
for windows (agent, gui, agentenv), darwin nogui (agent, agentenv)
and linux nogui (agent, agentenv, gui): clean. gofmt -l clean.
- GUI (WSL, chromium + webkit): i18n-keys, i18n-en-no-cjk,
icon-one-tone, routing-client-icons, icon-tile together 63/63 at
this head. An earlier run at the pre-rebase head was 60/63, the 3
reds icon-one-tone's "Open Design one-tone ... Plugins page"
(chromium), which passed 48/48 alone there and at origin/main: a
load red (#5425).
- Real Kun 0.4.5 (Linux build, sandbox HOME, `kun serve`): connect,
a second model, Sync, restart, off. `kun run`
finished a turn through the gateway (POST /v1/chat/completions,
Bearer magpie-kun, reply "hello from magpie"). Off restored the
previous default, and with no previous default Kun was left with
none and no magpie connection.
Broken by hand: off through the plain DELETE again. The fake Kun now
refuses it as the real one does, and TestKunFromNothing and
TestKunFollowsTheGateway went red with "Deleted connection still has
references: default.providerId"; green with the transaction.
Not tried: Kun's desktop window itself (the runtime was driven
headless); macOS (mote refused SSH all session); `kun run --model`
(run uses its own default model, not the registry's default, so a
CLI run picks magpie's model only with --model).
|
||
|
|
388ca9ad45 |
agent: Claude Desktop says how to go on with the signed-in chats on magpie (Jacky_yyyyyyyy on X)
Jacky_yyyyyyyy on X asked that connecting Claude Desktop keep the earlier chats and let them be continued. They are kept already: in 3p mode Desktop runs in Claude-3p (its own userData), the signed-in profile's Code and Cowork sessions stay untouched in Claude/, claude.ai chats stay on Anthropic's servers, and Off brings them all back ( |
||
|
|
6a450c4982 |
agent: Shelley, magpie's models as its custom models (on X, tweet 2120109384315658393)
"Can support Shelley?" Shelley is boldsoftware/shelley (Apache-2.0, Go,
`shelley serve`). It keeps models and profiles in its SQLite database,
not in a config file, so magpie talks to a running Shelley through the
same API its own Models and Profiles pages use, on the Unix socket it
opens for its CLI ($SHELLEY_SOCKET, else shelley.sock / shelley-N.sock in
$XDG_CONFIG_HOME/shelley or ~/.config/shelley; read from its source).
- Connect: each magpie model is a custom model (POST /api/custom-models,
provider_type openai, endpoint = the gateway's /v1, Shelley's own
gateway key, model_name = the catalog id, reasoning/images/max_tokens
from the catalog). Picking one makes it the default profile's model
(PUT /api/profiles/{name} with the whole profile, as the API requires)
and clears a thinking level the model can't take.
- The user's own values: the profile's model and thinking level are
stashed once and put back on Disconnect (to the server's default if
that model is gone); only the custom models magpie made (ids stashed)
are deleted, so a model the user pointed at the gateway by hand stays.
- Sync re-points magpie's models when the gateway port moves; Check names
a model left on an old address. Shelley not running is an error on a
pick and nothing on Sync/Check; turned off while Shelley is uninstalled,
the takeout is stashed and done when Shelley answers again (Alma's way).
- A notice: new conversations start on the pick, an open one keeps its
model. i18n for zh, zh-TW, ja, de.
- Icon: Shelley's own S mark from its assets, one tone. README (en, zh),
site index, docs/reference.md, docs/integrating.md, site integrate
pages (en, zh), docs/subsystems/agent-wiring.md.
- Library: listed as "not looked at (#5897)" like the other new agents.
- Shelley has no Windows build, so there is no Windows or WSL wiring.
Run (mote refused SSH for the whole session, kex reset, so runs went to
the Linux VM and the Windows box):
- Real binary: shelley v0.1718.926152762 linux_amd64 (sha256 66cb5acb…
checked) in a sandbox HOME/XDG_CONFIG_HOME/-db on the Linux VM, with a
throwaway test driving it against a fake OpenAI upstream at
MAGPIE_ADDR: connect made custom model glm-4-6-… and the default
profile's model; POST /api/conversations/new sent two
/v1/chat/completions with model=relay/glm-4.6, auth magpie-shelley,
UA Shelley/58d5f200; disconnect left the profile as before and no
custom models. Check "" and Drift nil while connected.
- Linux (wsl-run, nogui): go vet ./internal/agent ./internal/agentenv
./internal/library; go test ./internal/agent ./internal/agentenv
./internal/library ./internal/profile ./internal/sessions: ok except
TestGrokInstalled (#3548, red on base too) and, before its fix here,
TestEveryAgentInLibrary. internal/cli times out there in
TestEveryAgentFieldNameWritesNothing (43m, the #5234 class).
- Windows (win-run): go vet ./internal/agent ./internal/agentenv;
GOOS=darwin and GOOS=linux -tags nogui vet; the Shelley, applied,
rewire, disconnect, mark and kept tests: red only in
TestAppliedOfParsesAnUnchangedFileOnce (#5950),
TestAsideOfflineDisconnectRestoresWithoutDaemon (#5951) and the #4786
allocation tests, all red on base
|