What
Claude Code now uses native which (Unix) or where.exe (Windows) commands instead of the previous findActualExecutable approach for detecting executable paths.
Details
- More efficient and reliable command detection
- Uses
Bun.which()when running under Bun runtime - Falls back to shell-based
which/where.exeon other runtimes - Includes both async (
GC()) and sync (d1Q()) variants
Evidence
W94() at line 27476 (new which-based implementation, calls where.exe on Windows, which on Unix)
Strings lifted out of the shipped bundle, so the claim above can be checked against them.