mirror of
https://github.com/diegosouzapw/OmniRoute.git
synced 2026-08-01 21:02:12 +03:00
The locateCommand function returned the bare command name instead of parsing the where output. On Windows, npm global installs create both a Unix shell script (no extension) and a .cmd wrapper. where returns both, and the bare name resolves to the Unix script first, causing healthcheck failures for OpenClaw and OpenCode. Fix: parse where output and prefer paths with Windows executable extensions (.cmd, .exe, .bat, .com). Related: #935, #863