Files
hermes-agent/tools
chugiacan 0abc3b044b fix(agent,cli): skip WSL/system bash.exe in Windows bash discovery (#116818)
_windows_bash_candidates in tools/environments/local.py appended
shutil.which("bash") to the candidate list without filtering — when Git Bash
is installed but PATH resolves `bash` to WSL's stub (C:\Windows\System32\bash.exe)
or WindowsApps bash.exe, that stub enters the candidate list.

Fix: skip paths whose normalized form contains `system32` or `windowsapps`,
logging at debug level. Git Bash (already searched explicitly in the roots list)
remains the first usable candidate.

Fixes #116818
2026-09-20 15:50:26 -07:00
..