Commit Graph
1 Commits
Author SHA1 Message Date
yetone 0b904a3e60 agent: on Windows an agent CLI in ~\.local\bin, npm's, Volta's, bun's folder or on the registry's PATH now is listed, though magpie started before it was installed (#1482, edussss)
Detected and cliBin asked exec.LookPath against magpie's own PATH only.
On Windows that is the PATH magpie started with (proc.UserPath does
nothing there; a self-update restarts with the same one), so Claude
Code's native installer, which puts claude.exe in ~\.local\bin and adds
that to the user's PATH in the registry, and an npm -g install, weren't
seen by a running magpie. The sign-in already found the CLI through
proc.FindTool (#839); binAt now does the same for Detected and cliBin, so
the Agents page lists it and shows its version. On the Windows box the
ssh session's PATH lacks ~\.local\bin although the registry has it.

Run: TestClaudeFoundWhereWindowsInstallsPutIt (Windows-only) on the
Windows box: passes with this change, all five cases red with the
fallback disabled. go test of internal/agent on macOS, the full suite,
gofmt -l, go vet -tags nogui on darwin, linux and windows.
2026-10-11 08:18:27 +08:00