yetone
39569d5604
claude desktop: an optional Claude Magpie app beside your own Claude ( #5671 )
...
baranwang on X asked to keep Claude Desktop's own (1P, Anthropic) sign-in
while using magpie. Turning on "Separate app" in Claude Desktop's row on
the Agents page (or `magpie claude-desktop launcher add`) moves magpie's
3P wiring into ~/Library/Application Support/Claude-Magpie-3p and adds
~/Applications/Claude Magpie.app. That launcher opens Claude.app with
--user-data-dir on that folder, so it runs side by side with the user's
own Claude.app. Its icon is Claude's icon with a magpie badge. Off is the
default, and turning it off (`launcher remove`) moves the wiring back
and removes the app. It is macOS only: Desktop's packaged app strips
CLAUDE_USER_DATA_DIR, and on Windows it hardcodes LOCALAPPDATA\Claude-3p.
The folder ends in -3p because Desktop adds -3p to any other name.
Restarting the isolated app ends only its own process (pkill on its
--user-data-dir) and opens the launcher again.
Run at 1b25cda26 (this change on origin/main be9dbce02 ); rebased onto
fdabddeb4 (catalog only), then go build ./..., vet and the budget and
launcher tests again: ok. All
on mote:
- gofmt -l clean; go vet ./internal/...; GOOS=linux go vet -tags nogui
and GOOS=windows go vet on agent, cli, desktopiso, desktopdir, gui.
- go test (whole packages) desktopiso, desktopdir, settings, settingsapi,
proc: ok. -run Isolated|TestDesktopInstance|TestAddStartsDesktopOnTheFolder|
TestScript|TestAddLeavesTheirs|ClaudeDesktop|Restart in agent;
TestClaudeDesktopLauncher|TestEveryRouteHasACommandOrIsNamed|Help in cli;
TestCoreScriptBudget|TestSettingsSaveKeepsWhatItDoesNotSend|Budget|Desktop
in gui and gateway: ok.
- An earlier full `go test ./...` at fef23255f had four reds, all from
this change and fixed here: the route without a command (now in
notYet), settings_keep's DesktopIsolated, os/exec instead of proc, and
the core script budget (paid by sharing the switch helper with the
largest-window line and cutting comments; no raise). A second full run
of the touched packages queued ~7h on mote's suite lock behind other
sessions and was stopped; the targeted runs above replace it.
- GUI on mote, both engines: desktop-isolated (new; en, zh, zh-TW, ja,
de; 1100 and 640; aria-checked, posts, status text, no scroll, no
select, absent without `isolated`), desktop-longest, click-scroll,
plain-names, i18n-keys: ok. page-width-steady, panel-fold and
zero-priced-free are red, the same 33 tests at origin/main be9dbce02
(diffed): #4541/#5013, #5796 , #5262 . i18n-keys' "a plugin's words are
its own" is red on main too (#5332 ).
- Whole GUI suite on WSL at an older head: 400 of 22778 red across
~100 files of other pages, in line with #5559 (478 of 21666 on main
there). Not rerun on mote.
Real use, on mote in a sandbox HOME with Claude.app 4.23118 linked in:
`claude-desktop magpie`, then `launcher add`, moved the wiring to
Claude-Magpie-3p (deploymentMode 3p, mcpServers and locale carried).
Opening Claude Magpie.app started Claude with
--user-data-dir=.../Claude-Magpie-3p; it wrote configLibrary and
model-catalog there (3P mode) and no -3p-3p folder. A second, 1P Claude
ran beside it on its own sandbox folder. Opening the launcher again
kept one instance; the pkill pattern matched only the isolated pid; both
quit on SIGTERM. `launcher remove` put the wiring back and removed the
app.
Broken by hand: a folder without -3p (Desktop made -3p-3p), the
CLAUDE_USER_DATA_DIR env route (ignored by the packaged app), os/exec in
the quit (TestNoCommandBypassesProc red).
Not tried: a screenshot of the running app (screencapture fails over
ssh); a model request through a gateway from the isolated app; Windows
and Linux (not offered there). Known: the Dock shows Claude's own icon
for the running isolated app, and Chrome pairing is off in a moved
userData folder.
2026-11-09 22:31:16 +08:00
..
2026-11-08 19:09:21 +08:00
2026-11-06 10:44:24 +08:00
2026-11-07 19:48:49 +08:00
2026-11-08 19:09:21 +08:00
2026-11-09 04:48:46 +08:00
2026-11-09 00:19:51 +08:00
2026-11-09 00:19:51 +08:00
test: every package's tests pass on Windows, and none writes outside its sandbox (the user: 把 Windows 上那几个失败的测试修掉) — on a Windows box the suite failed in most packages, and the root package hung for 25 minutes. Tests set HOME, which os.UserHomeDir ignores on Windows (it reads USERPROFILE), so they read and wrote the runner's own home; each now sets USERPROFILE beside HOME, and Devin's, Goose's, Crush's and Claude Desktop's tests set APPDATA/LOCALAPPDATA, where those keep their files there. said() read the command's output only once it returned, and a pipe holds a few KB on Windows, so magpie model --help blocked forever; it reads while the command writes. Unix permission bits (the gateway key store's 0600 too), exec bits and symlinks Windows lacks are checked only off Windows; TOML strings hold Windows paths as literal strings, JSON as marshalled ones; a URL's path is compared as one. The provider and usage packages run in a home of their own (TestMain, as the gateway's already does), since a CLI's identity kept by a refresh still going when its test ended landed in the runner's ~/.config/magpie — and on a Mac in the user's own. Two product fixes came out of it: imagemcp took a file:///C:/… root or image for the path /C:/…, which doesn't exist on Windows, and now makes a Windows path of it (a host for a UNC share); and session discovery could keep a new Cowork session hidden on Linux, where a folder's mtime is a kernel tick and its size doesn't change, so an entry added within the tick of the last listing left both as they were — a listing made within 2s of its folder's last change is read again, as git does for racy files. TestFilePath and TestRacyDirectoryListedAgain fail without the change. On Windows 11 every package passes (32 of 32) and a run of each package in a fresh home leaves nothing in home, APPDATA or LOCALAPPDATA; on Linux (WSL) and macOS go test -tags nogui ./... passes. go vet, go build -tags nogui (darwin, GOOS=linux), GOOS=windows go build pass.
2026-10-01 23:15:07 +08:00
2026-11-09 04:48:46 +08:00
2026-11-08 19:09:21 +08:00
2026-11-08 19:09:21 +08:00
2026-11-02 19:00:29 +08:00
2026-11-06 15:02:53 +08:00
2026-11-05 11:50:13 +08:00
2026-10-31 18:33:03 +08:00
2026-11-06 12:48:50 +08:00
2026-10-08 20:11:05 +08:00
2026-11-06 12:10:43 +08:00
2026-11-01 04:40:44 +08:00
2026-11-01 06:09:56 +08:00
2026-11-06 21:21:34 +08:00
2026-11-06 21:21:34 +08:00
2026-10-15 09:36:26 +08:00
2026-11-01 05:00:36 +08:00
2026-11-09 16:28:02 +08:00
2026-10-29 09:24:31 +08:00
2026-11-03 09:50:31 +08:00
2026-10-29 09:24:31 +08:00
2026-10-29 09:24:31 +08:00
2026-11-08 19:09:21 +08:00
2026-10-29 22:25:36 +08:00
2026-11-08 10:55:49 +08:00
2026-11-04 14:25:43 +08:00
2026-11-09 22:31:16 +08:00
2026-11-01 08:12:34 +08:00
2026-10-10 23:35:05 +08:00
2026-10-31 21:29:22 +08:00
2026-10-13 04:27:40 +08:00
2026-10-10 23:35:05 +08:00
2026-10-10 23:35:05 +08:00
2026-10-29 15:50:37 +08:00
2026-10-13 05:48:39 +08:00
2026-10-10 23:35:05 +08:00
2026-10-10 23:35:05 +08:00
2026-10-10 23:35:05 +08:00
2026-10-10 23:35:05 +08:00
2026-11-01 07:54:54 +08:00
2026-10-11 00:41:09 +08:00
2026-11-01 07:54:54 +08:00
2026-10-04 15:00:56 +08:00
2026-11-01 07:54:54 +08:00
2026-10-30 03:09:29 +08:00
2026-10-30 03:09:29 +08:00
2026-11-08 19:09:21 +08:00
2026-11-08 19:09:21 +08:00
2026-10-25 16:49:29 +08:00
2026-10-25 16:49:29 +08:00
2026-10-14 15:34:16 +08:00
2026-10-14 15:34:16 +08:00
2026-10-02 11:08:14 +08:00
2026-10-19 18:12:45 +08:00
2026-11-03 09:33:25 +08:00
2026-11-03 09:33:25 +08:00
2026-11-07 05:16:53 +08:00
2026-11-06 22:50:26 +08:00
2026-10-24 19:47:12 +08:00
2026-10-15 07:41:30 +08:00
2026-11-04 16:17:47 +08:00
2026-10-11 08:18:27 +08:00
2026-10-19 04:09:16 +08:00
agent, gui: Claude Code taken off magpie by Default goes under Not set up and says Default (EZN7L2C3, #834 on v0.1.920) — picking Default and confirming Use default left the row up among the connected ones while it said Not connected, its model read Pick a model and its list had magpie's models alone. Default takes Claude Code's tiers and subagent model out with magpie's endpoint; Apply recorded only the field picked, so those read as changed outside magpie (replaced drift) and the drift kept the row up. Apply now records every field magpie set before that the change moves too. An agent not connected whose list has models of its own (Claude Code's, asked of Anthropic directly) now says what it is on, its Default or its own model, and lists everything as when connected: Default, its own models, magpie's. TestClaudeDefaultLeavesNoDrift (fails on the old code: drift replaced opus; a tier changed outside magpie is still said to be); claude-default-off.test.cjs (WebKit, en and zh: folded under Not set up, switch off, Default shown, Default current with the direct and via-magpie models listed, no scroll; fails on the old code: Pick a model / 选模型). agent-path-same, agent-leave-magpie, claude-picker-fold, claude-direct, agent-start-pick, model-rate, unlisted-models, agent-connect, agent-field-names, pi-default-note, click-scroll, desktop-model-menu, model-pick, favorite-star, agent-disconnect, agent-layout, gui-ja and gui-de pass on WebKit. go vet, builds (darwin, GOOS=linux nogui, GOOS=windows) and go test -tags nogui -count=1 ./... under a temp HOME pass.
2026-10-05 06:40:46 +08:00
2026-10-31 16:37:42 +08:00
2026-10-11 08:18:27 +08:00
2026-10-30 15:53:22 +08:00
2026-10-12 23:18:32 +08:00
2026-10-30 15:53:22 +08:00
2026-10-15 06:07:43 +08:00
2026-10-08 05:00:55 +08:00
2026-10-29 12:42:52 +08:00
2026-11-06 17:31:04 +08:00
2026-11-06 17:31:04 +08:00
2026-10-29 12:22:05 +08:00
2026-11-03 19:18:50 +08:00
2026-10-06 15:28:27 +08:00
2026-10-30 15:53:22 +08:00
2026-10-20 00:18:51 +08:00
2026-10-13 16:26:10 +08:00
2026-11-01 23:00:10 +08:00
2026-10-31 20:54:37 +08:00
2026-10-31 20:54:37 +08:00
2026-10-14 05:29:56 +08:00
2026-10-22 18:19:00 +08:00
2026-11-03 16:03:14 +08:00
2026-11-03 16:03:14 +08:00
2026-10-23 03:44:55 +08:00
2026-10-17 16:12:14 +08:00
2026-11-05 06:43:51 +08:00
2026-10-22 10:52:04 +08:00
2026-10-23 03:44:55 +08:00
2026-11-01 16:15:27 +08:00
2026-11-01 08:35:37 +08:00
2026-11-08 10:55:10 +08:00
2026-10-11 08:18:27 +08:00
2026-11-09 22:31:16 +08:00
2026-11-09 22:31:16 +08:00
2026-11-06 22:50:26 +08:00
2026-11-03 09:33:25 +08:00
2026-11-03 11:24:14 +08:00
2026-11-09 22:31:16 +08:00
2026-11-08 22:30:07 +08:00
2026-11-09 17:46:13 +08:00
2026-11-09 17:46:13 +08:00
2026-11-09 17:46:13 +08:00
2026-10-11 06:03:05 +08:00
2026-10-14 09:21:18 +08:00
2026-11-01 07:54:54 +08:00
2026-10-11 05:33:23 +08:00
2026-11-09 12:56:42 +08:00
2026-11-05 11:50:13 +08:00
2026-11-05 11:50:13 +08:00
2026-11-05 11:50:13 +08:00
2026-11-05 11:50:13 +08:00
2026-11-05 11:50:13 +08:00
2026-11-05 11:50:13 +08:00
2026-10-09 13:44:50 +08:00
2026-11-09 12:56:42 +08:00
2026-10-28 22:48:07 +08:00
agent: CodeBuddy Code (Tencent's CLI, codebuddy/cbc, the China edition too) is an agent that uses magpie's models ( #980 , yujianbinm) — the CLI (npm @tencent-ai/codebuddy-code 2.161.4, one package for codebuddy.ai and codebuddy.cn, CODEBUDDY_INTERNET_ENVIRONMENT=internal) takes models of one's own from ~/.codebuddy/models.json ($CODEBUDDY_CONFIG_DIR), the format WorkBuddy reads, hot-reloaded, and starts a session on settings.json's "model". magpie now writes its models there as WorkBuddy's are written (vendor magpie, key magpie-codebuddy, url the gateway's /v1/chat/completions), keeping the user's own entries, their order, a model turned off and availableModels (magpie's ids added when the list is there), and sets "model" to the pick, the user's other settings kept; one of CodeBuddy's own models, or default, takes magpie's models out again. A new models.json is {"models":[…]} as CodeBuddy's docs give it. workbuddyWrite becomes buddyWrite(agent), the same writer for both. CODEBUDDY_CONFIG_DIR joins agentenv.Vars; cliupdate knows the npm package. TestCodeBuddyCode (user's model, availableModels and settings kept; magpie pick; sync; back to own; default) and TestCodeBuddyCodeNewFile fail without the agent ("no codebuddy agent") and pass; -race -count=5 on the CodeBuddy/WorkBuddy tests. End to end, the real CLI 2.161.4 under a temp HOME with CODEBUDDY_INTERNET_ENVIRONMENT=internal and no CodeBuddy sign-in: magpie codebuddy magpie/mock/pro against a sandbox gateway on 3462, then codebuddy -p with no --model, answered through the gateway from a mock upstream, and magpie's usage counted it under CodeBuddy Code (the CLI sends "CLI/2.161.4 CodeBuddy/2.161.4", so it is told by its key); magpie codebuddy default took it out. A bare-list models.json is read by the CLI too. Not tried with a real CodeBuddy account or a real model vendor. go test ./internal/agent/ ./internal/agentenv/ ./internal/usage/ ., go vet, darwin, linux (nogui) and windows builds pass.
2026-10-06 15:32:23 +08:00
2026-11-01 07:54:54 +08:00
2026-10-11 20:09:15 +08:00
2026-10-13 12:11:23 +08:00
2026-11-05 08:14:57 +08:00
agents: Codex signed in with only an API key gets magpie as its provider, its picker listing magpie's models ( #322 , dakango: switching the Codex app to one of its own models went to OpenAI, 502) — magpie counted an API key in auth.json as a ChatGPT sign-in and only set openai_base_url, counting on Codex to ask the gateway for its models; but Codex asks for none with an API key (models-manager refresh_available_models returns early), so the picker showed Codex's built-in models and the one magpie model, and a built-in one went to OpenAI with the relay's key. Now only a ChatGPT sign-in takes that route; with an API key alone magpie is the model_provider with model_catalog_json listing every magpie model on for Codex, as when signed out, and a sync moves a setup an older magpie wrote; going back to Codex's own model restores the user's model_provider. A Codex model whose OpenAI can't be reached now fails naming the model and what to do instead of a bare 502. TestCodexAPIKeyUsesProvider, TestCodexAPIKeyBaseURLMoved and TestCodexOwnModelUnreached fail without the change. go vet, go build -tags nogui (darwin, GOOS=linux), GOOS=windows go build, go test -tags nogui ./... pass.
2026-09-30 20:08:27 +08:00
2026-11-07 00:07:00 +08:00
2026-11-07 00:07:00 +08:00
2026-11-01 00:32:35 +08:00
2026-10-30 13:42:48 +08:00
2026-10-31 16:08:28 +08:00
2026-10-24 22:02:49 +08:00
2026-11-01 05:32:29 +08:00
2026-11-04 23:16:23 +08:00
2026-10-14 18:44:45 +08:00
2026-11-01 04:06:09 +08:00
2026-10-30 03:47:58 +08:00
2026-10-22 20:14:54 +08:00
2026-10-10 09:07:44 +08:00
2026-10-11 04:10:30 +08:00
2026-10-16 00:16:43 +08:00
2026-11-04 15:12:08 +08:00
2026-10-12 23:16:54 +08:00
2026-10-31 09:03:01 +08:00
2026-10-31 09:03:01 +08:00
2026-10-16 00:26:29 +08:00
2026-10-11 02:34:30 +08:00
2026-10-26 11:48:48 +08:00
2026-10-26 11:48:48 +08:00
2026-10-30 21:47:07 +08:00
2026-10-27 18:38:27 +08:00
2026-11-06 12:48:51 +08:00
2026-10-12 23:18:32 +08:00
2026-10-15 00:53:58 +08:00
2026-10-09 14:10:13 +08:00
2026-10-30 00:19:43 +08:00
2026-10-20 00:18:51 +08:00
agent, gui: Codex left on model_provider = "magpie" with no [model_providers.magpie] loads its config again, and connecting with nothing in magpie says what to do, in the reader's language (Tystem on Discord) — the Codex app said "无法加载 config.toml … Model provider magpie not found", magpie showed Codex as not connected on "deepseek-flash", and its switch answered only "Codex can't be connected to magpie", in English. Codex looks model_provider up in [model_providers.*] as it loads config.toml (codex-rs: "Model provider {id} not found"), so the key without the table keeps it from loading any config, a new thread too, not just an old one. magpie never writes one without the other: it takes model_provider out whenever it steps out as the provider (disconnect, Unwire, a model of Codex's own, Join) and keeps the table so the threads started on magpie still open. That is unchanged, and TestCodexSteppingOutLeavesNoHalfState now covers it. Another tool or a hand edit had taken the table away. Sync, at magpie's start and whenever the catalog changes, now writes the table back whenever the config names magpie as its provider, at the top or in a profile, and has no table, whether Codex is connected or not. Check reports that state too. A config magpie can't parse is still only reported, never written to. A Connect that finds none of magpie's models because no provider or subscription has been added answers agent.NoModelsError, "Add a provider or subscription in magpie first, then connect Codex". /api answers it with code no_models and the agent's name, which app.js says through t() (en/zh/ja/de). docs/reference.md no longer says the table goes with a native model. TestCodexProviderWithoutTable (top and profile: Check says so, Sync writes the table) and TestConnectWithNoModels in internal/agent, TestAgentConnectNoModels in internal/gui, and agent-connect-no-models.test.cjs (WebKit, en/zh/ja/de: the toast in the reader's language, the switch back off, no scroll, no native dialog) are new and fail without the change; the latter's en case passes either way, as the server's message is English. Chromium wouldn't launch on this machine for this test or the existing agent-connect.test.cjs. TestCodexSyncAddsBaseURLToProvider now expects the table added to a hand-made provider that had none. go vet, go build (darwin, GOOS=linux nogui, GOOS=windows) and go test -tags nogui ./... under a temp HOME pass. In the first full run, internal/gui's TestProvidersAnswerWhileListsComeIn and internal/proc's TestUserPath failed under load; both passed alone and in the second full run.
2026-10-05 21:09:13 +08:00
2026-10-27 17:02:55 +08:00
2026-10-09 13:50:53 +08:00
2026-10-27 23:30:37 +08:00
2026-10-29 18:20:50 +08:00
2026-10-28 13:52:08 +08:00
2026-10-29 01:18:59 +08:00
2026-10-15 23:08:04 +08:00
2026-11-06 10:44:24 +08:00
2026-11-06 00:51:01 +08:00
2026-10-31 16:08:28 +08:00
2026-11-06 09:59:56 +08:00
2026-11-07 03:00:10 +08:00
toml: Codex's config.toml with a multi-line array (notify = [ … ]) is edited right, and an edit that fails leaves every file as it was ( #253 kerwinliu00001: "edited TOML is invalid: line 2, column 1: incomplete number", config.toml left with model_provider gone and [model_providers.magpie] added but no model) — the top-level key edits (GetTOMLTop, SetTOMLTop, DelTOMLTop) went line by line with regexes: a new key went after the last line that looked like key = …, which for notify = [ was inside the array; key = value lines inside a multi-line string were read as keys and a line starting with [ as a table; replacing or deleting a multi-line value touched only its first line. They now locate the top-level keys with the TOML parser, as the table edits already did, each with its value's whole range however many lines it takes (parseTOMLFile, the unnamed root table beside the tables); SetTOMLTop finds all its keys in the file as read and writes once. A file the parser refuses is still read line by line, so a broken config keeps showing its model, and writes to it are refused untouched. And a pick is several writes (Codex: drop model_provider, add magpie's provider table, set openai_base_url and model), each checked, so one failing left the earlier ones on disk: edit.Atomically(fn, paths…) puts each file back to its bytes and mode, or removes one it created, when fn fails, and every field set and Sync of Codex (config.toml and magpie-models.json, so Codex in WSL too), Kimi and Grok goes through it, as do Codex's MCP server writes (putCodex, delCodex). Tested in temp dirs and a temp HOME: the reporter's file read, set and deleted directly and through Codex's model field (signed in, with model_provider and model above the array, with magpie as the provider), the array's text kept and the TOML valid, and back to a Codex model; nested arrays, trailing commas, comments in arrays, [x] and a = b in strings, an inline table in an array; """ and ''' strings holding model = … and [table] lines not read as keys, new keys after their closing quotes, one deleted whole; a forced failure of Codex's last write leaving config.toml byte-identical; TestAtomically. They fail on main (the Codex ones with the reporter's error). go vet ./internal/..., go build -tags nogui (and GOOS=linux, GOOS=windows) and go test -tags nogui ./... pass. Not tried against a real ~/.codex, in WSL or in the GUI; multi-line inline tables (TOML 1.1) are refused by the parser and so left untouched with an error.
2026-09-30 09:31:59 +08:00
2026-10-30 21:01:09 +08:00
2026-11-07 20:57:30 +08:00
2026-10-30 18:02:42 +08:00
2026-11-05 08:14:57 +08:00
2026-11-06 12:48:51 +08:00
2026-10-31 17:47:20 +08:00
2026-10-31 17:47:20 +08:00
2026-10-15 08:03:20 +08:00
2026-11-05 08:14:57 +08:00
2026-10-29 17:13:05 +08:00
2026-10-17 05:35:45 +08:00
2026-10-30 15:53:22 +08:00
2026-10-29 07:32:05 +08:00
2026-11-08 02:37:42 +08:00
2026-10-24 23:40:44 +08:00
2026-11-01 02:22:17 +08:00
2026-10-28 16:16:02 +08:00
2026-10-30 01:40:48 +08:00
2026-10-25 01:49:13 +08:00
2026-10-13 14:35:08 +08:00
2026-10-13 16:34:23 +08:00
2026-11-06 11:26:41 +08:00
2026-10-26 22:02:03 +08:00
agent, gui: Codex left on model_provider = "magpie" with no [model_providers.magpie] loads its config again, and connecting with nothing in magpie says what to do, in the reader's language (Tystem on Discord) — the Codex app said "无法加载 config.toml … Model provider magpie not found", magpie showed Codex as not connected on "deepseek-flash", and its switch answered only "Codex can't be connected to magpie", in English. Codex looks model_provider up in [model_providers.*] as it loads config.toml (codex-rs: "Model provider {id} not found"), so the key without the table keeps it from loading any config, a new thread too, not just an old one. magpie never writes one without the other: it takes model_provider out whenever it steps out as the provider (disconnect, Unwire, a model of Codex's own, Join) and keeps the table so the threads started on magpie still open. That is unchanged, and TestCodexSteppingOutLeavesNoHalfState now covers it. Another tool or a hand edit had taken the table away. Sync, at magpie's start and whenever the catalog changes, now writes the table back whenever the config names magpie as its provider, at the top or in a profile, and has no table, whether Codex is connected or not. Check reports that state too. A config magpie can't parse is still only reported, never written to. A Connect that finds none of magpie's models because no provider or subscription has been added answers agent.NoModelsError, "Add a provider or subscription in magpie first, then connect Codex". /api answers it with code no_models and the agent's name, which app.js says through t() (en/zh/ja/de). docs/reference.md no longer says the table goes with a native model. TestCodexProviderWithoutTable (top and profile: Check says so, Sync writes the table) and TestConnectWithNoModels in internal/agent, TestAgentConnectNoModels in internal/gui, and agent-connect-no-models.test.cjs (WebKit, en/zh/ja/de: the toast in the reader's language, the switch back off, no scroll, no native dialog) are new and fail without the change; the latter's en case passes either way, as the server's message is English. Chromium wouldn't launch on this machine for this test or the existing agent-connect.test.cjs. TestCodexSyncAddsBaseURLToProvider now expects the table added to a hand-made provider that had none. go vet, go build (darwin, GOOS=linux nogui, GOOS=windows) and go test -tags nogui ./... under a temp HOME pass. In the first full run, internal/gui's TestProvidersAnswerWhileListsComeIn and internal/proc's TestUserPath failed under load; both passed alone and in the second full run.
2026-10-05 21:09:13 +08:00
2026-11-06 00:51:01 +08:00
2026-11-07 18:08:39 +08:00
2026-11-07 18:08:39 +08:00
2026-11-05 16:11:14 +08:00
2026-10-30 21:47:07 +08:00
2026-11-04 10:05:32 +08:00
2026-11-02 05:38:11 +08:00
agent: Codex Desktop with WSL counts as connected when its gateway address is the one the user set for WSL, and magpie keeps that address ( #816 ) — with Codex Desktop's "run in WSL" on, Codex runs inside WSL: the absolute Windows path magpie wrote for model_catalog_json didn't load there, and 127.0.0.1 is WSL's own loopback, not Windows'. After the user pointed openai_base_url and [model_providers.magpie] at the Windows host's address, magpie's check still said 未接入 (it asked for its own loopback URL), and a re-wire or sync would have put 127.0.0.1 back. On Windows magpie now writes model_catalog_json = "magpie-models.json", which Codex resolves against CODEX_HOME on either side (checked with Codex 0.160), and still reads the absolute path it wrote before as its own. A gateway address on a non-loopback host, on magpie's port path and with magpie's token, is taken as magpie's: Check passes, the agent is Routed, and setting a model or syncing keeps the address; a relay's address is not taken. TestCodexWSLAppAddressKept (fails on the old code with "no longer points at magpie's gateway") and TestCodexKeptGatewayOnlyMagpies. go vet, builds (darwin, GOOS=linux nogui, GOOS=windows) and go test -tags nogui -count=1 ./... under a temp HOME pass.
2026-10-05 02:03:10 +08:00
2026-11-09 19:07:06 +08:00
2026-11-07 21:21:27 +08:00
2026-11-07 21:21:27 +08:00
2026-10-14 05:43:48 +08:00
2026-10-06 02:16:08 +08:00
2026-10-14 20:01:06 +08:00
2026-11-03 20:38:11 +08:00
2026-10-31 00:00:11 +08:00
2026-11-01 10:32:21 +08:00
2026-11-04 05:13:45 +08:00
2026-11-04 05:13:45 +08:00
2026-11-01 07:06:19 +08:00
2026-10-08 18:12:10 +08:00
2026-11-01 06:09:56 +08:00
2026-10-04 19:27:23 +08:00
2026-10-16 05:10:43 +08:00
2026-10-16 05:10:43 +08:00
2026-10-16 05:10:43 +08:00
agent: Cursor Private Inference is connected by its row's switch, as other agents are, with no command to run (mamba on Discord: 这个单独搞个启动命令和别的供应商格格不入啊) — its Open configuration's base URL and key are kept in the state.vscdb regular Cursor shares, and are regular Cursor's own override settings too, so magpie still writes nothing of Cursor's. It sets CURSOR_LOCAL_AGENT_BASE_URL (<gateway>/v1) and CURSOR_LOCAL_AGENT_API_KEY (magpie-cursor-local), which only this build reads, for the user: launchctl setenv on the Mac (apps opened from the Dock or Finder from then on have them), HKCU\Environment plus a WM_SETTINGCHANGE on Windows, ~/.config/environment.d/magpie-cursor-local.conf (from the next login) and systemctl --user set-environment on Linux; switched off, it clears them. magpie notes it in cursor-local.env in its config folder, which the row reads as connected, and sets them again whenever it serves the gateway (launchd forgets them at a restart; the port may have changed). The row has the provider field (magpie) and the connect switch; connecting says to quit the app and open it again, and that a base URL in Open configuration still comes first. The launch command stays as the square beside it, for a start from a shell. TestCursorLocalConnects (connect sets them, a serve sets them again, disconnect clears them, off a serve sets nothing) fails on the old code; cursor-local-launch.test.cjs now checks the switch connects it with no command copied (WebKit, en and zh); agy-launch passes. Not tried with the real app (not installed here), and launchctl/the registry are not touched under tests. go vet, builds (darwin, GOOS=linux nogui, GOOS=windows) and go test -tags nogui -count=1 ./... under a temp HOME pass.
2026-10-05 00:18:22 +08:00
agent: Cursor Private Inference is connected by its row's switch, as other agents are, with no command to run (mamba on Discord: 这个单独搞个启动命令和别的供应商格格不入啊) — its Open configuration's base URL and key are kept in the state.vscdb regular Cursor shares, and are regular Cursor's own override settings too, so magpie still writes nothing of Cursor's. It sets CURSOR_LOCAL_AGENT_BASE_URL (<gateway>/v1) and CURSOR_LOCAL_AGENT_API_KEY (magpie-cursor-local), which only this build reads, for the user: launchctl setenv on the Mac (apps opened from the Dock or Finder from then on have them), HKCU\Environment plus a WM_SETTINGCHANGE on Windows, ~/.config/environment.d/magpie-cursor-local.conf (from the next login) and systemctl --user set-environment on Linux; switched off, it clears them. magpie notes it in cursor-local.env in its config folder, which the row reads as connected, and sets them again whenever it serves the gateway (launchd forgets them at a restart; the port may have changed). The row has the provider field (magpie) and the connect switch; connecting says to quit the app and open it again, and that a base URL in Open configuration still comes first. The launch command stays as the square beside it, for a start from a shell. TestCursorLocalConnects (connect sets them, a serve sets them again, disconnect clears them, off a serve sets nothing) fails on the old code; cursor-local-launch.test.cjs now checks the switch connects it with no command copied (WebKit, en and zh); agy-launch passes. Not tried with the real app (not installed here), and launchctl/the registry are not touched under tests. go vet, builds (darwin, GOOS=linux nogui, GOOS=windows) and go test -tags nogui -count=1 ./... under a temp HOME pass.
2026-10-05 00:18:22 +08:00
agent: Cursor Private Inference is connected by its row's switch, as other agents are, with no command to run (mamba on Discord: 这个单独搞个启动命令和别的供应商格格不入啊) — its Open configuration's base URL and key are kept in the state.vscdb regular Cursor shares, and are regular Cursor's own override settings too, so magpie still writes nothing of Cursor's. It sets CURSOR_LOCAL_AGENT_BASE_URL (<gateway>/v1) and CURSOR_LOCAL_AGENT_API_KEY (magpie-cursor-local), which only this build reads, for the user: launchctl setenv on the Mac (apps opened from the Dock or Finder from then on have them), HKCU\Environment plus a WM_SETTINGCHANGE on Windows, ~/.config/environment.d/magpie-cursor-local.conf (from the next login) and systemctl --user set-environment on Linux; switched off, it clears them. magpie notes it in cursor-local.env in its config folder, which the row reads as connected, and sets them again whenever it serves the gateway (launchd forgets them at a restart; the port may have changed). The row has the provider field (magpie) and the connect switch; connecting says to quit the app and open it again, and that a base URL in Open configuration still comes first. The launch command stays as the square beside it, for a start from a shell. TestCursorLocalConnects (connect sets them, a serve sets them again, disconnect clears them, off a serve sets nothing) fails on the old code; cursor-local-launch.test.cjs now checks the switch connects it with no command copied (WebKit, en and zh); agy-launch passes. Not tried with the real app (not installed here), and launchctl/the registry are not touched under tests. go vet, builds (darwin, GOOS=linux nogui, GOOS=windows) and go test -tags nogui -count=1 ./... under a temp HOME pass.
2026-10-05 00:18:22 +08:00
2026-10-10 17:52:30 +08:00
2026-10-10 17:52:30 +08:00
2026-10-10 17:52:30 +08:00
2026-11-09 04:48:46 +08:00
2026-11-02 06:59:17 +08:00
2026-11-03 09:50:31 +08:00
2026-10-15 03:34:59 +08:00
2026-10-15 23:08:02 +08:00
2026-10-15 23:08:01 +08:00
2026-10-15 23:08:02 +08:00
2026-11-07 19:48:49 +08:00
2026-11-07 19:48:49 +08:00
2026-10-30 09:57:50 +08:00
2026-10-30 09:57:50 +08:00
2026-10-30 09:57:50 +08:00
2026-10-30 09:57:50 +08:00
2026-10-30 09:57:50 +08:00
2026-10-13 10:57:32 +08:00
test: every package's tests pass on Windows, and none writes outside its sandbox (the user: 把 Windows 上那几个失败的测试修掉) — on a Windows box the suite failed in most packages, and the root package hung for 25 minutes. Tests set HOME, which os.UserHomeDir ignores on Windows (it reads USERPROFILE), so they read and wrote the runner's own home; each now sets USERPROFILE beside HOME, and Devin's, Goose's, Crush's and Claude Desktop's tests set APPDATA/LOCALAPPDATA, where those keep their files there. said() read the command's output only once it returned, and a pipe holds a few KB on Windows, so magpie model --help blocked forever; it reads while the command writes. Unix permission bits (the gateway key store's 0600 too), exec bits and symlinks Windows lacks are checked only off Windows; TOML strings hold Windows paths as literal strings, JSON as marshalled ones; a URL's path is compared as one. The provider and usage packages run in a home of their own (TestMain, as the gateway's already does), since a CLI's identity kept by a refresh still going when its test ended landed in the runner's ~/.config/magpie — and on a Mac in the user's own. Two product fixes came out of it: imagemcp took a file:///C:/… root or image for the path /C:/…, which doesn't exist on Windows, and now makes a Windows path of it (a host for a UNC share); and session discovery could keep a new Cowork session hidden on Linux, where a folder's mtime is a kernel tick and its size doesn't change, so an entry added within the tick of the last listing left both as they were — a listing made within 2s of its folder's last change is read again, as git does for racy files. TestFilePath and TestRacyDirectoryListedAgain fail without the change. On Windows 11 every package passes (32 of 32) and a run of each package in a fresh home leaves nothing in home, APPDATA or LOCALAPPDATA; on Linux (WSL) and macOS go test -tags nogui ./... passes. go vet, go build -tags nogui (darwin, GOOS=linux), GOOS=windows go build pass.
2026-10-01 23:15:07 +08:00
2026-10-11 02:34:30 +08:00
2026-10-10 19:17:53 +08:00
2026-10-19 18:12:45 +08:00
2026-10-11 15:32:45 +08:00
2026-11-01 06:30:39 +08:00
2026-11-04 19:36:14 +08:00
2026-11-04 19:36:14 +08:00
2026-11-07 05:43:04 +08:00
2026-11-07 05:43:04 +08:00
2026-10-31 22:00:28 +08:00
2026-10-31 10:08:40 +08:00
2026-10-23 01:20:37 +08:00
2026-10-17 00:39:36 +08:00
2026-10-30 14:45:56 +08:00
2026-10-15 23:56:05 +08:00
2026-10-28 04:34:45 +08:00
2026-10-17 18:51:53 +08:00
2026-10-31 19:50:39 +08:00
2026-10-14 15:30:43 +08:00
2026-10-05 07:48:17 +08:00
agent: dsh's home patch layer, ~/.dsh/cordis.patch.yml, gets magpie's route and start model when it overrides the profiles' ( #804 , liuweifeng) — dsh applies $DSH_HOME/cordis.patch.yml over every profile's own, so a llm-pi-ai or agent-default-model entry there replaced what magpie wrote in profiles/*/cordis.patch.yml, and dsh ran the home layer's old snapshot while magpie read as connected. When the home layer has a llm-pi-ai entry, magpie's route is written in it beside the user's routes (a sync, a model picked, the 30 s round, and taken out on Disconnect); when it has an agent-default-model, the model and effort magpie set go there (the user's one stashed and put back when magpie's goes). A home layer without those entries is left as it is. Reading goes by the home layer too (the model and effort shown, Joined, the checks), and Check says when the home layer's llm-pi-ai lacks magpie's route. TestDshHomePatchLayer and TestDshHomePatchLayerUnwire fail on the old code. go vet, builds (darwin, GOOS=linux nogui, GOOS=windows) and go test -tags nogui -count=1 ./... under a temp HOME pass (TestProvidersAnswerWhileListsComeIn and TestUserPath flaked, pass alone).
2026-10-05 00:39:40 +08:00
2026-11-01 04:23:05 +08:00
2026-10-09 22:26:00 +08:00
2026-11-04 19:23:49 +08:00
2026-11-07 20:38:57 +08:00
2026-10-24 23:27:25 +08:00
2026-10-23 22:26:33 +08:00
2026-10-11 04:52:26 +08:00
2026-10-20 20:32:05 +08:00
2026-11-01 13:29:19 +08:00
2026-10-12 22:08:57 +08:00
2026-10-12 22:08:57 +08:00
2026-11-02 06:30:12 +08:00
2026-11-07 05:43:04 +08:00
2026-11-07 19:48:49 +08:00
2026-10-13 10:57:32 +08:00
2026-10-03 04:44:37 +08:00
2026-11-01 07:54:54 +08:00
2026-10-11 22:04:46 +08:00
2026-10-14 09:21:18 +08:00
2026-11-01 07:54:54 +08:00
2026-11-08 19:09:21 +08:00
2026-11-06 22:11:02 +08:00
2026-10-07 03:00:47 +08:00
2026-11-01 07:54:54 +08:00
2026-10-31 10:07:24 +08:00
2026-10-14 09:21:18 +08:00
2026-11-01 06:09:56 +08:00
2026-10-21 04:16:24 +08:00
2026-11-04 16:17:47 +08:00
2026-11-04 16:17:47 +08:00
2026-10-13 05:09:18 +08:00
2026-11-01 07:54:54 +08:00
2026-11-01 02:45:01 +08:00
test: every package's tests pass on Windows, and none writes outside its sandbox (the user: 把 Windows 上那几个失败的测试修掉) — on a Windows box the suite failed in most packages, and the root package hung for 25 minutes. Tests set HOME, which os.UserHomeDir ignores on Windows (it reads USERPROFILE), so they read and wrote the runner's own home; each now sets USERPROFILE beside HOME, and Devin's, Goose's, Crush's and Claude Desktop's tests set APPDATA/LOCALAPPDATA, where those keep their files there. said() read the command's output only once it returned, and a pipe holds a few KB on Windows, so magpie model --help blocked forever; it reads while the command writes. Unix permission bits (the gateway key store's 0600 too), exec bits and symlinks Windows lacks are checked only off Windows; TOML strings hold Windows paths as literal strings, JSON as marshalled ones; a URL's path is compared as one. The provider and usage packages run in a home of their own (TestMain, as the gateway's already does), since a CLI's identity kept by a refresh still going when its test ended landed in the runner's ~/.config/magpie — and on a Mac in the user's own. Two product fixes came out of it: imagemcp took a file:///C:/… root or image for the path /C:/…, which doesn't exist on Windows, and now makes a Windows path of it (a host for a UNC share); and session discovery could keep a new Cowork session hidden on Linux, where a folder's mtime is a kernel tick and its size doesn't change, so an entry added within the tick of the last listing left both as they were — a listing made within 2s of its folder's last change is read again, as git does for racy files. TestFilePath and TestRacyDirectoryListedAgain fail without the change. On Windows 11 every package passes (32 of 32) and a run of each package in a fresh home leaves nothing in home, APPDATA or LOCALAPPDATA; on Linux (WSL) and macOS go test -tags nogui ./... passes. go vet, go build -tags nogui (darwin, GOOS=linux), GOOS=windows go build pass.
2026-10-01 23:15:07 +08:00
2026-10-07 00:17:38 +08:00
2026-11-01 07:54:54 +08:00
2026-11-07 05:43:04 +08:00
2026-11-05 15:53:16 +08:00
2026-10-30 14:45:56 +08:00
2026-11-05 15:53:16 +08:00
agents: Pi's model picker lists the models of its openai-codex sign-in from Pi's own registry, and its Default says it lets Pi pick ( #709 ) — Pi's native options came from models.dev by provider id, and models.dev has no openai-codex (Pi's "OpenAI Codex (legacy)" ChatGPT sign-in), so a Pi signed in to both openai and openai-codex was offered openai/… only. Pi's (and OmO's) own options now come first from the model registry in the package Pi was installed from: the pi command on PATH leads to @earendil-works/pi-coding-agent, and pi-ai's dist/providers/data/<provider>.json (Pi 1.0) is read as is, in its order, chat models only (no gpt-image-2), memoized by the file's stamp — the list Pi's /model offers, which moves with every Pi update. A provider the registry doesn't have keeps models.dev's list; openai-codex with no registry in reach falls back to Codex CLI's models_cache.json (the same ChatGPT backend); models.dev's openai list isn't mapped onto it. The rows are openai-codex/<model> under "OpenAI Codex" with OpenAI's logo, a row each beside openai/<model> of the same name; picking one writes defaultProvider=openai-codex, defaultModel=<model> as before. omp shared the gap for its current model's provider (ownOptions): it now reads omp's own catalog (@oh-my-pi/pi-catalog src/models.json, non-chat kinds left out); omp's signed-in providers that aren't the current one are still #341 's. Default in Pi's and OmO's model picker now says "clears the default model; Pi picks one on its own" (zh 清除显式默认模型,由 Pi 自动选择; no ja table exists), other agents' still say what they ship with. TestPiOffersItsOwnOpenAICodexModels (a fake npm-linked Pi 1.0 install, temp HOME and PI_CODING_AGENT_DIR, auth.json with openai and openai-codex oauth test metadata), TestPiOpenAICodexWithoutItsRegistry and TestOmpOffersItsOwnOpenAICodexModels fail on the old code (no openai-codex rows) and pass; pi-default-note.test.cjs (webkit, en/zh) fails on the old app.js and passes; agent-disconnect, agent-models and agent-model-groups GUI tests pass. Read-only against this machine's real installs: Pi 1.0.0 gives openai-codex 9 models and openai 44, omp's catalog openai-codex 8. go vet, builds (darwin, GOOS=linux, GOOS=windows) and go test -tags nogui -count=1 ./... under a temp HOME pass but TestProvidersAnswerWhileListsComeIn, TestClaudeSignedOut, TestClaudeAccountNamedAsItsLogin and TestClaudeIdentityServedWhileAsked, timing tests that pass alone. Not tried in the GUI with real Pi sign-ins, nor with a Pi older than 1.0 (no data folder: models.dev and Codex CLI's list as before) or a Windows npm shim.
2026-10-04 01:53:58 +08:00
2026-10-14 18:21:44 +08:00
2026-11-01 02:45:01 +08:00
2026-10-27 18:15:16 +08:00
2026-11-05 11:50:13 +08:00
2026-11-05 11:50:13 +08:00
2026-10-20 00:18:51 +08:00
2026-10-12 00:22:49 +08:00
2026-10-21 04:16:26 +08:00
2026-10-12 00:44:47 +08:00
2026-11-01 07:54:54 +08:00
2026-11-01 10:26:42 +08:00
2026-10-15 23:08:02 +08:00
2026-10-15 23:08:02 +08:00
2026-10-31 14:59:44 +08:00
test: every package's tests pass on Windows, and none writes outside its sandbox (the user: 把 Windows 上那几个失败的测试修掉) — on a Windows box the suite failed in most packages, and the root package hung for 25 minutes. Tests set HOME, which os.UserHomeDir ignores on Windows (it reads USERPROFILE), so they read and wrote the runner's own home; each now sets USERPROFILE beside HOME, and Devin's, Goose's, Crush's and Claude Desktop's tests set APPDATA/LOCALAPPDATA, where those keep their files there. said() read the command's output only once it returned, and a pipe holds a few KB on Windows, so magpie model --help blocked forever; it reads while the command writes. Unix permission bits (the gateway key store's 0600 too), exec bits and symlinks Windows lacks are checked only off Windows; TOML strings hold Windows paths as literal strings, JSON as marshalled ones; a URL's path is compared as one. The provider and usage packages run in a home of their own (TestMain, as the gateway's already does), since a CLI's identity kept by a refresh still going when its test ended landed in the runner's ~/.config/magpie — and on a Mac in the user's own. Two product fixes came out of it: imagemcp took a file:///C:/… root or image for the path /C:/…, which doesn't exist on Windows, and now makes a Windows path of it (a host for a UNC share); and session discovery could keep a new Cowork session hidden on Linux, where a folder's mtime is a kernel tick and its size doesn't change, so an entry added within the tick of the last listing left both as they were — a listing made within 2s of its folder's last change is read again, as git does for racy files. TestFilePath and TestRacyDirectoryListedAgain fail without the change. On Windows 11 every package passes (32 of 32) and a run of each package in a fresh home leaves nothing in home, APPDATA or LOCALAPPDATA; on Linux (WSL) and macOS go test -tags nogui ./... passes. go vet, go build -tags nogui (darwin, GOOS=linux), GOOS=windows go build pass.
2026-10-01 23:15:07 +08:00
test: every package's tests pass on Windows, and none writes outside its sandbox (the user: 把 Windows 上那几个失败的测试修掉) — on a Windows box the suite failed in most packages, and the root package hung for 25 minutes. Tests set HOME, which os.UserHomeDir ignores on Windows (it reads USERPROFILE), so they read and wrote the runner's own home; each now sets USERPROFILE beside HOME, and Devin's, Goose's, Crush's and Claude Desktop's tests set APPDATA/LOCALAPPDATA, where those keep their files there. said() read the command's output only once it returned, and a pipe holds a few KB on Windows, so magpie model --help blocked forever; it reads while the command writes. Unix permission bits (the gateway key store's 0600 too), exec bits and symlinks Windows lacks are checked only off Windows; TOML strings hold Windows paths as literal strings, JSON as marshalled ones; a URL's path is compared as one. The provider and usage packages run in a home of their own (TestMain, as the gateway's already does), since a CLI's identity kept by a refresh still going when its test ended landed in the runner's ~/.config/magpie — and on a Mac in the user's own. Two product fixes came out of it: imagemcp took a file:///C:/… root or image for the path /C:/…, which doesn't exist on Windows, and now makes a Windows path of it (a host for a UNC share); and session discovery could keep a new Cowork session hidden on Linux, where a folder's mtime is a kernel tick and its size doesn't change, so an entry added within the tick of the last listing left both as they were — a listing made within 2s of its folder's last change is read again, as git does for racy files. TestFilePath and TestRacyDirectoryListedAgain fail without the change. On Windows 11 every package passes (32 of 32) and a run of each package in a fresh home leaves nothing in home, APPDATA or LOCALAPPDATA; on Linux (WSL) and macOS go test -tags nogui ./... passes. go vet, go build -tags nogui (darwin, GOOS=linux), GOOS=windows go build pass.
2026-10-01 23:15:07 +08:00
2026-10-09 12:51:30 +08:00
2026-10-31 15:20:39 +08:00
2026-10-14 09:21:18 +08:00
2026-10-02 02:48:47 +08:00
2026-11-01 07:54:54 +08:00
2026-10-26 16:31:14 +08:00
2026-11-01 05:32:29 +08:00
2026-11-01 05:00:36 +08:00
2026-11-06 12:48:50 +08:00
2026-10-30 14:45:56 +08:00
2026-10-30 14:45:56 +08:00
2026-10-30 14:45:56 +08:00
2026-11-07 13:13:36 +08:00
2026-11-07 20:43:28 +08:00
2026-11-07 20:43:28 +08:00
2026-10-25 14:13:38 +08:00
2026-11-03 09:50:31 +08:00
2026-11-01 00:07:57 +08:00
2026-11-07 13:13:36 +08:00
2026-10-29 17:42:35 +08:00
2026-10-29 17:42:35 +08:00
2026-11-02 14:05:34 +08:00
2026-10-09 14:08:07 +08:00
2026-11-02 14:05:34 +08:00
2026-10-07 03:34:05 +08:00
2026-10-30 14:45:56 +08:00
2026-10-04 07:57:44 +08:00
2026-11-01 07:54:54 +08:00
2026-10-15 23:08:03 +08:00
2026-11-01 07:54:54 +08:00
test: every package's tests pass on Windows, and none writes outside its sandbox (the user: 把 Windows 上那几个失败的测试修掉) — on a Windows box the suite failed in most packages, and the root package hung for 25 minutes. Tests set HOME, which os.UserHomeDir ignores on Windows (it reads USERPROFILE), so they read and wrote the runner's own home; each now sets USERPROFILE beside HOME, and Devin's, Goose's, Crush's and Claude Desktop's tests set APPDATA/LOCALAPPDATA, where those keep their files there. said() read the command's output only once it returned, and a pipe holds a few KB on Windows, so magpie model --help blocked forever; it reads while the command writes. Unix permission bits (the gateway key store's 0600 too), exec bits and symlinks Windows lacks are checked only off Windows; TOML strings hold Windows paths as literal strings, JSON as marshalled ones; a URL's path is compared as one. The provider and usage packages run in a home of their own (TestMain, as the gateway's already does), since a CLI's identity kept by a refresh still going when its test ended landed in the runner's ~/.config/magpie — and on a Mac in the user's own. Two product fixes came out of it: imagemcp took a file:///C:/… root or image for the path /C:/…, which doesn't exist on Windows, and now makes a Windows path of it (a host for a UNC share); and session discovery could keep a new Cowork session hidden on Linux, where a folder's mtime is a kernel tick and its size doesn't change, so an entry added within the tick of the last listing left both as they were — a listing made within 2s of its folder's last change is read again, as git does for racy files. TestFilePath and TestRacyDirectoryListedAgain fail without the change. On Windows 11 every package passes (32 of 32) and a run of each package in a fresh home leaves nothing in home, APPDATA or LOCALAPPDATA; on Linux (WSL) and macOS go test -tags nogui ./... passes. go vet, go build -tags nogui (darwin, GOOS=linux), GOOS=windows go build pass.
2026-10-01 23:15:07 +08:00
2026-11-01 07:54:54 +08:00
2026-10-05 14:37:44 +08:00
2026-10-12 19:52:37 +08:00
2026-10-31 19:39:38 +08:00
2026-10-27 11:03:41 +08:00
2026-11-01 06:09:56 +08:00
2026-10-11 02:34:30 +08:00
2026-10-11 02:34:30 +08:00
2026-11-06 23:47:29 +08:00
2026-10-31 21:29:22 +08:00
2026-10-30 20:01:38 +08:00
2026-11-02 21:33:06 +08:00
test: every package's tests pass on Windows, and none writes outside its sandbox (the user: 把 Windows 上那几个失败的测试修掉) — on a Windows box the suite failed in most packages, and the root package hung for 25 minutes. Tests set HOME, which os.UserHomeDir ignores on Windows (it reads USERPROFILE), so they read and wrote the runner's own home; each now sets USERPROFILE beside HOME, and Devin's, Goose's, Crush's and Claude Desktop's tests set APPDATA/LOCALAPPDATA, where those keep their files there. said() read the command's output only once it returned, and a pipe holds a few KB on Windows, so magpie model --help blocked forever; it reads while the command writes. Unix permission bits (the gateway key store's 0600 too), exec bits and symlinks Windows lacks are checked only off Windows; TOML strings hold Windows paths as literal strings, JSON as marshalled ones; a URL's path is compared as one. The provider and usage packages run in a home of their own (TestMain, as the gateway's already does), since a CLI's identity kept by a refresh still going when its test ended landed in the runner's ~/.config/magpie — and on a Mac in the user's own. Two product fixes came out of it: imagemcp took a file:///C:/… root or image for the path /C:/…, which doesn't exist on Windows, and now makes a Windows path of it (a host for a UNC share); and session discovery could keep a new Cowork session hidden on Linux, where a folder's mtime is a kernel tick and its size doesn't change, so an entry added within the tick of the last listing left both as they were — a listing made within 2s of its folder's last change is read again, as git does for racy files. TestFilePath and TestRacyDirectoryListedAgain fail without the change. On Windows 11 every package passes (32 of 32) and a run of each package in a fresh home leaves nothing in home, APPDATA or LOCALAPPDATA; on Linux (WSL) and macOS go test -tags nogui ./... passes. go vet, go build -tags nogui (darwin, GOOS=linux), GOOS=windows go build pass.
2026-10-01 23:15:07 +08:00
2026-10-14 18:17:38 +08:00
2026-10-08 19:22:14 +08:00
2026-10-11 00:28:27 +08:00
2026-10-13 13:03:26 +08:00
2026-10-13 13:03:26 +08:00
2026-10-30 14:45:56 +08:00
2026-10-07 07:08:16 +08:00
agent: an omp in WSL under NAT gets the gateway's network key, and one bun installed is found and asked its version (whqtian on Discord: a WSL omp connected only once auth: none was swapped for the key by hand, and Kimi K3's max still read xhigh) — a distro not in mirrored networking reaches the gateway at Windows' address (172.23.80.1), where a request without a named key is turned away, yet magpie wrote auth: none there too. Its models.yml now carries the key the gateway is shared on the network with (access.LANSecret: the default LAN key, "" while nothing is shared or it is off) in place of auth: none; an omp on loopback stays keyless. The probe asked omp its version only when sh -l found it on PATH, but bun's and nvm's installers put theirs on PATH in ~/.bashrc, which sh -l doesn't read: the version stayed unknown and max was offered as xhigh, as for an omp older than 16.4.0. It now also looks in ~/.bun/bin, ~/.local/bin, ~/.npm-global/bin, ~/.volta/bin, pnpm's, nvm's, mise's and asdf's folders, and runs --version with the command's folder on PATH, where bun's #!/usr/bin/env bun finds bun. TestOmpKeyBeyondLoopback (NAT address shared or not, loopback, localhost) and TestWSLProbeFindsBunOmp (the probe script run with a bun-installed omp off PATH; fails on the old script: no bin, no version). go vet, builds (darwin, GOOS=linux nogui, GOOS=windows) and go test -tags nogui -count=1 ./... under a temp HOME pass but for TestSavedButSignedOutClaudeServed, which timed out once under load and passes 3 of 3 alone.
2026-10-05 14:40:49 +08:00
2026-11-09 21:51:53 +08:00
2026-11-02 05:37:32 +08:00
2026-11-02 05:37:32 +08:00
agent: the disconnect preview right on Windows, and the Codex panel says what connecting does (owner: 去 Windows 测试机上测一下 / 是不是需要界面上解释一下现在的逻辑) — on the Windows test box Claude Code's and OpenCode's disconnect previews were empty though both were connected. Claude: the dry run's temporary home has no ~/.codex/auth.json, so a codex/… model wasn't magpie's there; the magpie asking now writes the providers it has on into that home and the dry run takes their models as magpie's (TestDryRunKnowsTheAskersProviders). OpenCode: magpie/codex/gpt-6.1-sol, a model its copy of magpie's list didn't have yet, read as not connected and Disconnect left it on magpie; a magpie/… value whose model magpie routes is magpie's (TestOpenCodeOnAModelNotInItsList). The preview pairs a line going back only with one as deep (Claude's model, not a modelPicker row) and doesn't mask …_TOKENS counts. The Codex panel, joined: 「重开 Codex 后,/model 里自己的模型照旧,magpie 的模型也在里面。」, and 新会话默认 says 「和 Codex 的 /model 是同一个选择,在哪边改都行」 rather than 「不设就用 Codex 自己上次的选择」 beside a value (/api/state: joined). On Windows (sandbox USERPROFILE/APPDATA, real accounts): previews for Claude, OpenCode, Codex and Gemini; disconnecting all four restored them (Claude back to opus, Gemini to Google sign-in, Codex keeps its [model_providers.magpie] by design), real ~/.claude untouched; real Claude Code requests via yylx/claude-opus-5-5 and codex/gpt-5.5 answered. The new tests fail on the old code. go vet, builds (darwin, GOOS=linux, GOOS=windows), go test -tags nogui -count=1 ./... under a temp HOME and the 34 agent GUI tests pass but cli-update, menu-scroll and old-webkit, which fail on main too.
2026-10-04 02:05:10 +08:00
2026-11-03 20:38:11 +08:00
2026-10-29 05:06:50 +08:00
2026-11-09 21:47:24 +08:00
2026-11-06 15:02:53 +08:00
2026-10-15 23:08:04 +08:00
2026-11-03 20:38:11 +08:00
2026-11-06 15:02:53 +08:00
2026-11-01 02:45:01 +08:00
2026-11-08 10:55:49 +08:00
2026-11-08 10:55:49 +08:00
2026-10-16 11:43:51 +08:00
2026-11-01 06:09:56 +08:00
2026-11-08 19:05:37 +08:00
2026-11-08 19:05:37 +08:00
2026-10-14 15:23:05 +08:00
2026-11-03 10:08:44 +08:00
2026-11-01 06:53:25 +08:00
agent: DeepSeek Harness's own models say they go straight to DeepSeek ( #955 ) — #834 had every agent's own models say which way they go, Codex's, Grok Build's and Antigravity CLI's custom ones; dsh's three (DeepSeek-V41-Flash, V4-Pro, V4-Flash) still said nothing (EZN7L2C3: DeepSeek Harness 未看到同样的直连入口). Since dsh 0.1.5 magpie is a custom provider beside dsh's own llm-deepseek row, which is left to dsh, so its own models go to DeepSeek on its own key: they now say direct, DeepSeek. Before 0.1.5 magpie took that row over, so nothing is said there. TestOwnModelsSayTheirPath fails without it. go vet, go test ./internal/agent ./internal/gui, GOOS=windows build pass; agent-own-path, agent-path-same and claude-picker-fold pass in Chromium and WebKit, en and zh (no GUI code changed).
2026-10-06 10:44:33 +08:00
agents: Pencil (pen.dev) is an agent magpie sets up, its custom models in ~/.pencil/models.json (徐小小 on Discord: Pencil keeps its custom model file at ~/.pencil/models.json, in Pi's format) — Pencil's settings take a custom provider on OpenAI Completions, OpenAI Responses or Anthropic Messages (docs.pen.dev, Authentication), Pi's openai-completions, openai-responses and anthropic-messages, set for the provider as a whole, and its models.json is Pi's: {"providers":{"<id>":{"name","baseUrl","api","models":[{"id","name","reasoning","input","cost":{input,output,cacheRead,cacheWrite},"contextWindow","maxTokens","compat"}]}}}. The new pencil agent (pencil.go) adds magpie there as the provider "magpie": baseUrl the gateway's /v1, api openai-completions, apiKey magpie-pencil (its User-Agent isn't known, so its requests are told by the key), and every model as Pi's entry — Pi's model loop is now piModelJSON, shared — without a model's own api and baseUrl, which Pi reads but Pencil's own editor never writes, so every model goes to the gateway's Chat endpoint whatever Pencil makes of them; each model carries every field Pencil writes for one, Pi's defaults (128K window, 16K out) where magpie knows none, no cost and an empty compat. The model is picked in Pencil's agent composer, not in a file known to magpie, so its field is "provider", as for WorkBuddy and ZCode: whether magpie's models are in Pencil's picker; the user's other providers, their keys and Pencil's other keys stay, off takes only magpie's out, and the catalog sync rewrites it only where it is. It is found by ~/.pencil (the app's and pen.dev's CLI's) or, on a Mac, Pencil.app / pen.dev.app in /Applications or ~/Applications; not by a command, pencil and pen being common names. After a change it asks for Pencil to be restarted when Pencil is running (and always on Windows, where that can't be told): whether it reloads models.json on its own isn't known. No official icon with a licence that allows it was found, so it has the generic one. Nothing of Pencil's was downloaded or run; whether Pencil reads a model's thinkingLevelMap, a settings file naming a default model, and its paths on Windows and Linux (taken as ~/.pencil, as Node's homedir gives) aren't verified. TestPencilModels (the reporter's file with a key and a key of Pencil's: kept through on, sync and off; magpie's provider decoded strictly as Pencil's format, every model's fields of their types, no per-model api or baseUrl; found only with ~/.pencil; among All()) and TestStateListsPencil (the page's state lists Pencil with its provider field once ~/.pencil is there, not before) fail without the change. go vet ./internal/..., go build -tags nogui (darwin, GOOS=linux), GOOS=windows go build, go test -tags nogui -count=1 ./... under a temp HOME pass (TestClaudeSignedOut failed once on its 5 s wait, passes alone; untouched).
2026-10-02 14:43:06 +08:00
2026-11-01 06:09:56 +08:00
2026-10-27 15:17:26 +08:00
2026-10-27 01:38:45 +08:00
2026-11-01 07:54:54 +08:00
2026-11-06 19:07:15 +08:00
2026-10-08 07:31:15 +08:00
2026-11-02 15:43:43 +08:00
2026-11-02 15:43:43 +08:00
2026-11-02 15:43:43 +08:00
2026-10-30 17:30:23 +08:00
2026-11-06 19:07:15 +08:00
agents: Pi's model picker lists the models of its openai-codex sign-in from Pi's own registry, and its Default says it lets Pi pick ( #709 ) — Pi's native options came from models.dev by provider id, and models.dev has no openai-codex (Pi's "OpenAI Codex (legacy)" ChatGPT sign-in), so a Pi signed in to both openai and openai-codex was offered openai/… only. Pi's (and OmO's) own options now come first from the model registry in the package Pi was installed from: the pi command on PATH leads to @earendil-works/pi-coding-agent, and pi-ai's dist/providers/data/<provider>.json (Pi 1.0) is read as is, in its order, chat models only (no gpt-image-2), memoized by the file's stamp — the list Pi's /model offers, which moves with every Pi update. A provider the registry doesn't have keeps models.dev's list; openai-codex with no registry in reach falls back to Codex CLI's models_cache.json (the same ChatGPT backend); models.dev's openai list isn't mapped onto it. The rows are openai-codex/<model> under "OpenAI Codex" with OpenAI's logo, a row each beside openai/<model> of the same name; picking one writes defaultProvider=openai-codex, defaultModel=<model> as before. omp shared the gap for its current model's provider (ownOptions): it now reads omp's own catalog (@oh-my-pi/pi-catalog src/models.json, non-chat kinds left out); omp's signed-in providers that aren't the current one are still #341 's. Default in Pi's and OmO's model picker now says "clears the default model; Pi picks one on its own" (zh 清除显式默认模型,由 Pi 自动选择; no ja table exists), other agents' still say what they ship with. TestPiOffersItsOwnOpenAICodexModels (a fake npm-linked Pi 1.0 install, temp HOME and PI_CODING_AGENT_DIR, auth.json with openai and openai-codex oauth test metadata), TestPiOpenAICodexWithoutItsRegistry and TestOmpOffersItsOwnOpenAICodexModels fail on the old code (no openai-codex rows) and pass; pi-default-note.test.cjs (webkit, en/zh) fails on the old app.js and passes; agent-disconnect, agent-models and agent-model-groups GUI tests pass. Read-only against this machine's real installs: Pi 1.0.0 gives openai-codex 9 models and openai 44, omp's catalog openai-codex 8. go vet, builds (darwin, GOOS=linux, GOOS=windows) and go test -tags nogui -count=1 ./... under a temp HOME pass but TestProvidersAnswerWhileListsComeIn, TestClaudeSignedOut, TestClaudeAccountNamedAsItsLogin and TestClaudeIdentityServedWhileAsked, timing tests that pass alone. Not tried in the GUI with real Pi sign-ins, nor with a Pi older than 1.0 (no data folder: models.dev and Codex CLI's list as before) or a Windows npm shim.
2026-10-04 01:53:58 +08:00
2026-10-14 13:33:28 +08:00
2026-10-13 16:57:58 +08:00
2026-09-30 15:41:17 +08:00
2026-11-01 06:09:56 +08:00
test: every package's tests pass on Windows, and none writes outside its sandbox (the user: 把 Windows 上那几个失败的测试修掉) — on a Windows box the suite failed in most packages, and the root package hung for 25 minutes. Tests set HOME, which os.UserHomeDir ignores on Windows (it reads USERPROFILE), so they read and wrote the runner's own home; each now sets USERPROFILE beside HOME, and Devin's, Goose's, Crush's and Claude Desktop's tests set APPDATA/LOCALAPPDATA, where those keep their files there. said() read the command's output only once it returned, and a pipe holds a few KB on Windows, so magpie model --help blocked forever; it reads while the command writes. Unix permission bits (the gateway key store's 0600 too), exec bits and symlinks Windows lacks are checked only off Windows; TOML strings hold Windows paths as literal strings, JSON as marshalled ones; a URL's path is compared as one. The provider and usage packages run in a home of their own (TestMain, as the gateway's already does), since a CLI's identity kept by a refresh still going when its test ended landed in the runner's ~/.config/magpie — and on a Mac in the user's own. Two product fixes came out of it: imagemcp took a file:///C:/… root or image for the path /C:/…, which doesn't exist on Windows, and now makes a Windows path of it (a host for a UNC share); and session discovery could keep a new Cowork session hidden on Linux, where a folder's mtime is a kernel tick and its size doesn't change, so an entry added within the tick of the last listing left both as they were — a listing made within 2s of its folder's last change is read again, as git does for racy files. TestFilePath and TestRacyDirectoryListedAgain fail without the change. On Windows 11 every package passes (32 of 32) and a run of each package in a fresh home leaves nothing in home, APPDATA or LOCALAPPDATA; on Linux (WSL) and macOS go test -tags nogui ./... passes. go vet, go build -tags nogui (darwin, GOOS=linux), GOOS=windows go build pass.
2026-10-01 23:15:07 +08:00
2026-10-25 03:39:50 +08:00
2026-10-15 23:08:05 +08:00
2026-10-30 14:45:56 +08:00
2026-10-27 10:01:46 +08:00
2026-10-13 10:55:45 +08:00
2026-11-05 10:46:46 +08:00
2026-10-10 18:39:47 +08:00
2026-11-05 10:46:46 +08:00
2026-10-15 23:08:04 +08:00
2026-10-05 14:37:44 +08:00
2026-11-07 04:55:56 +08:00
2026-10-28 18:21:38 +08:00
2026-10-05 01:56:02 +08:00
2026-11-07 04:55:56 +08:00
2026-10-11 05:43:45 +08:00
2026-10-31 21:29:22 +08:00
2026-10-15 08:33:54 +08:00
2026-11-01 05:00:36 +08:00
2026-10-02 00:46:45 +08:00
2026-10-14 09:21:18 +08:00
2026-11-01 07:54:54 +08:00
2026-10-13 14:06:23 +08:00
2026-11-01 07:54:54 +08:00
2026-11-01 10:54:38 +08:00
2026-11-01 10:54:38 +08:00
2026-10-15 23:08:02 +08:00
2026-11-01 06:09:56 +08:00
2026-10-18 07:13:11 +08:00
2026-10-30 15:53:22 +08:00
2026-10-06 16:14:35 +08:00
2026-10-06 16:14:35 +08:00
2026-10-12 23:56:20 +08:00
2026-10-06 16:14:35 +08:00
2026-10-06 16:14:35 +08:00
2026-10-06 16:14:35 +08:00
2026-10-06 16:14:35 +08:00
2026-10-06 16:14:35 +08:00
2026-10-30 15:53:21 +08:00
2026-10-06 16:14:35 +08:00
2026-11-01 07:54:54 +08:00
2026-10-31 19:39:38 +08:00
2026-10-30 14:45:56 +08:00
2026-11-06 05:53:50 +08:00
2026-11-06 05:53:50 +08:00
2026-11-09 16:28:02 +08:00
2026-11-09 16:28:02 +08:00
2026-11-01 06:21:39 +08:00
2026-11-01 05:00:36 +08:00
2026-10-14 22:24:11 +08:00
2026-11-06 19:07:15 +08:00
2026-10-20 20:23:51 +08:00
2026-11-01 10:32:21 +08:00
2026-11-01 10:32:21 +08:00
2026-11-01 10:32:21 +08:00
2026-11-01 10:32:21 +08:00
2026-10-14 13:33:28 +08:00
2026-11-01 05:32:29 +08:00
2026-10-11 01:13:52 +08:00
2026-11-01 06:09:56 +08:00
2026-10-13 05:48:39 +08:00
2026-10-11 15:56:06 +08:00
2026-11-01 07:54:54 +08:00
2026-10-15 23:08:04 +08:00
2026-11-07 05:43:04 +08:00
2026-11-01 01:28:58 +08:00
2026-10-13 09:38:25 +08:00
2026-11-01 05:32:29 +08:00
2026-10-15 09:36:26 +08:00
2026-11-01 05:32:29 +08:00
2026-10-14 13:33:28 +08:00
2026-11-01 07:54:54 +08:00
2026-10-30 14:45:56 +08:00
2026-10-30 14:45:56 +08:00
2026-11-07 13:13:36 +08:00
2026-10-27 17:26:30 +08:00
2026-10-30 14:45:56 +08:00
2026-10-31 00:11:10 +08:00
2026-10-14 05:28:39 +08:00
2026-11-01 16:15:27 +08:00
2026-10-15 23:08:04 +08:00
2026-11-04 16:17:47 +08:00
2026-11-07 05:16:53 +08:00
test: every package's tests pass on Windows, and none writes outside its sandbox (the user: 把 Windows 上那几个失败的测试修掉) — on a Windows box the suite failed in most packages, and the root package hung for 25 minutes. Tests set HOME, which os.UserHomeDir ignores on Windows (it reads USERPROFILE), so they read and wrote the runner's own home; each now sets USERPROFILE beside HOME, and Devin's, Goose's, Crush's and Claude Desktop's tests set APPDATA/LOCALAPPDATA, where those keep their files there. said() read the command's output only once it returned, and a pipe holds a few KB on Windows, so magpie model --help blocked forever; it reads while the command writes. Unix permission bits (the gateway key store's 0600 too), exec bits and symlinks Windows lacks are checked only off Windows; TOML strings hold Windows paths as literal strings, JSON as marshalled ones; a URL's path is compared as one. The provider and usage packages run in a home of their own (TestMain, as the gateway's already does), since a CLI's identity kept by a refresh still going when its test ended landed in the runner's ~/.config/magpie — and on a Mac in the user's own. Two product fixes came out of it: imagemcp took a file:///C:/… root or image for the path /C:/…, which doesn't exist on Windows, and now makes a Windows path of it (a host for a UNC share); and session discovery could keep a new Cowork session hidden on Linux, where a folder's mtime is a kernel tick and its size doesn't change, so an entry added within the tick of the last listing left both as they were — a listing made within 2s of its folder's last change is read again, as git does for racy files. TestFilePath and TestRacyDirectoryListedAgain fail without the change. On Windows 11 every package passes (32 of 32) and a run of each package in a fresh home leaves nothing in home, APPDATA or LOCALAPPDATA; on Linux (WSL) and macOS go test -tags nogui ./... passes. go vet, go build -tags nogui (darwin, GOOS=linux), GOOS=windows go build pass.
2026-10-01 23:15:07 +08:00
2026-10-31 04:12:17 +08:00
2026-10-13 17:02:05 +08:00
2026-11-01 08:35:37 +08:00
2026-11-01 04:25:59 +08:00
vision: while a model that sees describes images, agents are told every model takes them (Discord, Fate: with Settings › Vision set, a text-only model in Codex still said it "does not support image input") — the gateway already described an image for a text-only model on every wire format, but the agents were told the model was text-only (Codex input_modalities ["text"], opencode modalities, dsh/omp input, droid NoImageSupport, cline/zed/qoder/workbuddy flags…), so they turned the image away before magpie was asked. provider.Described, set by the gateway to whether seer() finds a describer (Vision names one, or Automatic finds a model that sees; not with Vision off), makes magpieModels (every agent's model file) and codexListed (the ChatGPT backend's /models list and its ETag) say images for every model; Vision changed in Settings rewrites the agents' lists (catalog.Touched). TestDescribedModelsTakeImagesInAgentsLists (Codex list, input_modalities, tag) and TestDescribedModelTakesImages (agent files) fail on the old code and pass; TestDshModelLimits and TestMiniMaxCode turn Vision off to keep testing a text-only model as such. go vet, builds (darwin, GOOS=linux, GOOS=windows) and go test -tags nogui -count=1 ./... under a temp HOME pass. Not tried in the Codex App with a real account.
2026-10-03 15:25:43 +08:00
2026-10-29 23:03:29 +08:00
2026-10-08 11:52:20 +08:00
2026-11-01 11:55:33 +08:00
2026-11-02 04:04:47 +08:00
2026-11-02 04:04:47 +08:00
2026-10-31 10:11:07 +08:00
2026-10-05 20:02:08 +08:00
2026-10-15 14:52:51 +08:00
2026-10-28 09:30:24 +08:00
2026-11-01 06:09:56 +08:00
agents: each agent's CLI shows its version and updates in one click ( #202 JoeyMa-zh: Agents 页面增加"更新 CLI"功能 — 检查各 agent CLI 的版本并一键更新) — the Agents page now puts each CLI's installed version after its name (read with <cli> --version, 10s timeout, no stdin) and, when a newer one is out and magpie can tell how it was installed, a small "Update to x.y.z" pill. How it was installed comes from the resolved binary: the vendor's own installer first (Claude Code's ~/.local/share/claude/versions → claude update, Codex standalone → codex update, ~/.opencode/bin → opencode upgrade), then a global node_modules (bun, pnpm, else npm, run as npm install -g --prefix <prefix> pkg@latest with that prefix's npm, and only where the prefix is writable), then a Homebrew formula or cask allowlisted per agent (brew upgrade [--cask]); anything else shows the version alone, with no button. The latest comes from the npm registry or brew info --json=v2 (no auto-update), cached 6h (15min after a failure); installed versions are cached by the binary's path, size and mtime. GET /api/agents/cli waits at most 3s and says pending, and the page asks again; POST /api/agents/cli/{id} runs the update (one at a time per agent, 10min cap), reads the version again and says so if it did not change, or gives the command's last lines when it fails. The pill goes busy in place and the page never scrolls; not in the tray panel. zh strings added. Tested with a new internal/agent/cliupdate_test.go (version order and parsing; npm/bun/pnpm/brew formula and cask/native installs, a read-only prefix, a local node_modules and unknown binaries in a fake PATH; an update against a fake registry and updater) and a new internal/gui/tests/cli-update.test.cjs in Chromium and WebKit (versions, pills only where magpie can update, row heights, an update with the view scrolled, a failing one, zh). No real update was run. go build (nogui, GOOS=windows, GOOS=linux), go test -tags nogui ./... and the GUI tests pass
2026-09-29 17:56:43 +08:00
2026-10-11 05:33:23 +08:00
2026-10-11 05:33:23 +08:00
2026-11-09 00:19:51 +08:00
2026-11-06 10:49:35 +08:00
2026-11-06 23:47:29 +08:00
2026-10-28 00:47:44 +08:00
2026-10-27 23:52:55 +08:00
2026-10-31 21:29:22 +08:00
2026-11-03 20:03:00 +08:00
2026-10-31 21:29:22 +08:00
2026-11-03 20:03:00 +08:00
2026-11-03 20:03:00 +08:00
2026-11-06 23:47:29 +08:00
2026-10-25 12:42:20 +08:00
2026-10-08 09:54:11 +08:00
2026-11-07 06:13:32 +08:00
2026-10-11 06:41:06 +08:00
2026-11-06 21:28:24 +08:00
2026-11-06 23:47:29 +08:00
2026-11-07 17:51:51 +08:00
2026-10-11 01:21:21 +08:00
sessions: the Sessions page and local usage read the agents in WSL too, and resume one there through wsl.exe (lgtm on Discord: magpie can't detect the session lists of agents inside WSL?) — on Windows magpie already finds the WSL distros an agent is set up in (internal/agent's wslDistros, the distro user's home as \\wsl.localhost\<distro>\home\<user>), but the session reader only looked at this computer's own ~/.claude, ~/.codex and ~/.pi. Now internal/agent hands those homes to the sessions package (sessions.WSLHomes, set in init, no second discovery), and the sessions of Claude Code, Codex and Pi in each distro are listed beside this computer's, with Session.WSL naming the distro: a "WSL <distro>" badge on the Sessions page's rows and the management page, a WSL line in the details, " · WSL <distro>" in the API's name. Resume runs in the distro: wsl.exe -d '<distro>' --cd '<cwd>' -e sh -lc 'exec ${SHELL:-sh} -lic ''claude --resume <id>''' (the user's own shell, so the agent's PATH is there; no double quotes, which PowerShell 5.1 mangles). Their calls count in local usage (callFiles). Reading a distro over \\wsl.localhost is slow and opening a file in a stopped distro starts it, so the files are listed in the background, at most every 30 s, the listing kept in sessions-wsl.json; the page waits for it only the first time ever (up to 3 s); a stopped distro's sessions stay listed as last read and nothing in it is opened (the parse cache and call shards keep them). magpie doesn't delete a session in WSL: the checkbox and Delete are off for them, with a note to delete them there, and sessions.Delete refuses. OpenCode in WSL isn't read (its SQLite over \\wsl.localhost isn't reliable). zh strings added. TestWSLSessionsListed, TestWSLStoppedDistroKept and TestWSLNoneWithoutHomes (internal/sessions) and TestWSLSessionsOfTheDistro (internal/agent, FakeWSL: a Claude Code session in a fake Ubuntu is listed with its distro and the wsl.exe resume line) fail on the old code and pass. go vet, builds (darwin, GOOS=linux, GOOS=windows) and go test -tags nogui -count=1 ./... under a temp HOME pass. Not tried on a real WSL with agent sessions: the Windows test box's distros have no Claude Code, Codex or Pi sessions; the resume line wasn't run in PowerShell, and the pages weren't opened in a browser.
2026-10-03 23:55:18 +08:00
2026-10-28 00:36:15 +08:00
2026-11-06 21:28:24 +08:00
2026-10-29 15:31:36 +08:00
2026-10-08 07:31:15 +08:00
2026-11-09 17:46:13 +08:00
2026-11-01 10:26:42 +08:00
2026-10-20 00:45:12 +08:00
2026-11-01 10:26:42 +08:00
2026-10-07 03:00:47 +08:00
2026-10-12 23:56:20 +08:00
2026-10-03 01:51:53 +08:00
2026-10-12 00:44:47 +08:00
2026-10-06 11:26:38 +08:00
2026-10-13 05:48:39 +08:00
2026-11-01 07:54:54 +08:00
2026-11-04 05:00:18 +08:00
2026-10-21 18:43:06 +08:00
2026-11-01 11:55:33 +08:00