Windows: Doctor binary resolver ignores %PATH%, reports installed git, gh, git-lfs, goose, cursor-agent as missing
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 64/100
- issue の種類
- バグ
- 明瞭さ
- おおむね明確
- 活発さ
- 活発
- 技術スタック
- typescript
調査の方向性
バイナリリゾルバーの resolve_binary 実装から始め、issue の resolver trace を使って Windows 上で Berd Doctor を再現します。修正が完了するのは、PATH/PATHEXT 解決で git、gh、git-lfs、Goose、Cursor Agent が見つかり、Windows では POSIX-only の戦略がスキップされ、そこで npm が npm.cmd 経由で呼び出される場合です。
索引モデルが issue の本文から書いたものです。
説明
Before filing
- I searched open and closed issues for duplicates.
- I reproduced this on the latest release.
- This is one bug, not several bundled together.
Closest existing issue
#108 (Windows extended-length path prefix in the terminal panel). Same platform, different code path. Not a duplicate.
What's broken
On Windows, the Berd Doctor binary resolver never consults %PATH% or PATHEXT. It reports git, GitHub CLI, git-lfs, Goose, and Cursor Agent as missing while all five are installed and resolvable on the system PATH.
Steps to reproduce
- Launch Berd on Windows 11.
- Install Git for Windows and GitHub CLI so they land on the machine PATH. In my case
C:\Program Files\Git\cmdandC:\Program Files\GitHub CLI\. - Confirm they resolve:
git --versionandgh --versionboth succeed in PowerShell and in Git Bash. - Run Berd Doctor.
- Read the Tools and Agents sections.
No chat session or agent turn is involved.
What you expected to happen
Berd Doctor finds any binary that Windows itself can resolve. Git, GitHub CLI, and git-lfs pass.
What actually happened
Git and GitHub CLI report FAIL. Git LFS, Goose, and Cursor Agent report WARN as not installed. GitHub Auth reports FAIL because it depends on the failed gh lookup.
All of them are present:
| Reported | Actual |
|---|---|
| Git not found | git 2.55.0.windows.5, C:\Program Files\Git\cmd |
| GitHub CLI not found | gh 2.98.0, C:\Program Files\GitHub CLI\ |
| Git LFS not installed | git-lfs 3.7.1 |
| Goose not installed | C:\Users\<user>\goose\goose.exe |
| Cursor Agent not installed | C:\Users\<user>\AppData\Local\cursor-agent\cursor-agent.cmd |
| GitHub Auth: gh not found | gh auth status shows a valid logged in account |
The resolver trace shows three strategies, and all three are Unix assumptions:
- Login shell lookup spawns
/bin/zsh -land/bin/bash -l. Neither path exists on Windows, so both fail with os error 3. - Common install paths are Unix prefixes only, and they are joined with a mixed separator, for example
/usr/local/bin\git. These can never match on Windows. - The npm strategy spawns bare
npm, which isnpm.cmdon Windows, so it fails with "program not found".
No strategy performs a plain %PATH% lookup with PATHEXT extension probing, which is where every one of these binaries actually lives.
Note that the Claude Code check passes. It resolves through Berd's own managed packages\bin directory rather than through resolve_binary, which is consistent with the resolver being the faulty component.
How often does it happen?
Every time. Reliably reproducible.
Berd version
0.6.2
Operating system
Windows
Model and provider
n/a
Relevant log output
berd.log records nothing for the doctor run. The doctor's own resolver trace is the relevant output. Paths left intact because they are the subject of the bug.
# Check: Git - verify git is installed and reachable
not found via resolve_binary
resolve 'git':
strategy 1 - login shell path lookup:
/bin/zsh -l -c 'whence -p -- 'git'' => error: failed to spawn `/bin/zsh -l -c 'whence -p -- 'git''`: The system cannot find the path specified. (os error 3)
/bin/bash -l -c 'type -P -- 'git'' => error: failed to spawn `/bin/bash -l -c 'type -P -- 'git''`: The system cannot find the path specified. (os error 3)
strategy 2 - common install paths:
/opt/homebrew/bin\git => not found
/usr/local/bin\git => not found
/usr/bin\git => not found
/home/linuxbrew/.linuxbrew/bin\git => not found
strategy 3 - npm global install dirs:
C:\Users\<user>\.npm-global/bin\git => not found
C:\Users\<user>\.npm/bin\git => not found
npm prefix -g => error: failed to spawn `npm prefix -g`: program not found
not found in any location
The gh, git-lfs, goose, and cursor-agent traces are identical in shape.
Suggested fix
Add a Windows strategy that resolves through %PATH% with PATHEXT, and skip the POSIX shell and Unix prefix strategies on Windows. Spawning npm should also use npm.cmd on Windows.
- 主要言語
- TypeScript
- スター
- 989
- フォーク
- 127
- 平均マージ
- 2日 7時間
- マージ済み PR(30日)
- 37
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
block/berd のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
メンテナーはふだん 1 日以内に返信
-
Saving a custom provider does not set Goose's default provider/model, leaving Goose unavailableオープンbug
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
block/berd#140 · コメント 1 件 · リアクション 3 件 ·
メンテナーはふだん 1 日以内に返信
似ている issue
-
a10y a10y-audit ai-driven-qa claude
難易度 2/5 1〜3時間 初心者へのやさしさ 86/100
linagora/twake-directory-manager#219 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
メンテナーはふだん 1 日以内に返信
-
type: bug
難易度 2/5 1〜3時間 初心者へのやさしさ 79/100
メンテナーはふだん 1 日以内に返信
-
0️⃣ phase/new
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
メンテナーはふだん 1 日以内に返信
-
Pulse v7: buildPreferencesFromTelos() bypasses telosSectionOrFile(), renders empty on unified-TELOS installs対応中かも @zephyr91 が今日担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
danielmiessler/LifeOS#2393 ·
メンテナーはふだん 4 日以内に返信