[Bug] Windows: agent shell tools run inside WSL (System32\bash.exe) instead of against the Windows checkout
Description
create_os_environment uses the first bash on PATH. On Windows machines with WSL installed, that is usually %SystemRoot%\System32\bash.exe (or the WindowsApps alias) — the WSL launcher — because Git for Windows' usr\bin is typically not on PATH in PowerShell / the host daemon. Every sys_os_shell call then runs in the Linux distro: agents cd /mnt/c/…, tests run against the distro's Python instead of the project venv, and git in WSL reads the Windows checkout with different line-ending/file-mode handling (a reviewer agent reported "the whole file's line endings changed" for a 15-line diff). The tool result even reports "shell": "C:\\WINDOWS\\system32\\bash.EXE".
Steps to reproduce
- Windows 11 with WSL and Git for Windows installed; start the host from PowerShell.
- Run any agent with an
os_envand ask it to runecho $0; uname -a→Linux … microsoft.
Version: 0.17.0.dev0 · OS: Windows 11 · Harness: Claude · Mode: SDK · Platform: Windows.
Reported by Sai Girish S (@GirishS2093).
Source: omnigent-ai/omnigent