edussss (Windows 11) on 10-15: "昨天早上的版本还能找到,今天早上更新后又找不到了".
Their screenshot shows both Claude Code and Codex marked "CLI not found",
with no model or effort pickers. v0.1.1231 listed both.
Cause: d0fcb8bcd (#2177, in v0.1.1238). It made cliHeld declare a shared
folder (~/.claude, ~/.codex, ~/.cline) a leftover when neither the CLI nor
a known reader is here. The known readers are editor extensions under
~/.<editor>/extensions, Claude.app, Claude Desktop, JetBrains and Zed. Before
that commit a shared folder was never gone. The list was checked on a Mac
only. On Windows, other programs read these folders too: a Store app, an
editor run portable or with --extensions-dir, or a CLI on a PATH that only
a shell profile sets (fnm). The Agents page, the TUI, `magpie ls`, Install
another agent and the Library targets (all through CLIMissing) treated both
of the reporter's agents as uninstalled.
Fix: on Windows, cliHeld says "can't tell" for a shared folder whose CLI
isn't found. A shared folder is then never gone, as before v0.1.1238, and
as OpenCode and Goose already are off a Mac. A found CLI still holds it.
Agents whose folder only their CLI keeps (dsh, Hermes) are still gone on
Windows. The Windows-only branches in that path became unreachable and are
dropped: desktopdir.Installed in the claude case, and the Windows dirs of
jetBrainsHere and zedAgentsHere. goneOS lets a test judge for Windows on
any host. docs/subsystems/agent-wiring.md says so.
What was run:
- Windows box (Windows 11 x64), sandbox USERPROFILE/APPDATA/LOCALAPPDATA
holding only ~\.claude\settings.json and ~\.codex\config.toml, PATH
C:\Windows\system32 (the registry PATH has the box's real
~\.local\bin\claude.exe; there is no codex on the box):
- `magpie ls` at v0.1.1231 lists Codex "gpt-5 · effort".
- At origin/main 69d7ee33a it lists "Codex CLI not found". That is the
regression.
- With this fix it lists "Codex gpt-5 · effort" again.
- At main, a fake openai.chatgpt extension in ~\.vscode or ~\.cursor
also kept Codex listed. So the extension check works on Windows, and
the reporter's reader is something cliHeld doesn't list.
- agent.test.exe -test.run TestCLIMissing on the Windows box: all four
pass (TestCLIMissing, Hermes, SharedFolders, SharedFoldersWindows).
- Broken by hand: with the Windows branch disabled,
TestCLIMissingSharedFoldersWindows goes red for claude, codex and cline.
Each is taken for gone and offered again as missing.
- gofmt -l clean. go vet -tags nogui passes for GOOS darwin, linux and
windows.
- set -o pipefail; go test -p 4 -timeout 40m ./... on macOS at base
69d7ee33a plus this change: all 55 packages ok, exit 0 (internal/agent,
cli, gui, library and tui among them).
Not tried: the reporter's own setup. Their screenshot doesn't say what
reads their folders. The reply on #1482 asks for `where.exe claude`, the
install method and the magpie version.