#8659·omnigent

[Bug] Windows: agent shell tools run inside WSL (System32\bash.exe) instead of against the Windows checkout

Author: GirishS2093Created Sep 30, 2026Updated Oct 1, 2026
LabelsBugP2-mediumtriagedcomp:harness-t2comp:sandboxvalidated:likely_repro

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

  1. Windows 11 with WSL and Git for Windows installed; start the host from PowerShell.
  2. Run any agent with an os_env and ask it to run echo $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).