core-agent-ide/codex-rs/cli
Jakob Malmo 2eecc1a2e4
fix(wsl): normalize Windows paths during update (#6086) (#6097)
When running under WSL, the update command could receive Windows-style
absolute paths (e.g., `C:\...`) and pass them to Linux processes
unchanged, which fails because WSL expects those paths in
`/mnt/<drive>/...` form.

This patch adds a tiny helper in the CLI (`cli/src/wsl_paths.rs`) that:
- Detects WSL (`WSL_DISTRO_NAME` or `"microsoft"` in `/proc/version`)  
- Converts `X:\...` → `/mnt/x/...`  

`run_update_action` now normalizes the package-manager command and
arguments under WSL before spawning.
Non-WSL platforms are unaffected.  

Includes small unit tests for the converter.  

**Fixes:** #6086, #6084

Co-authored-by: Eric Traut <etraut@openai.com>
2025-11-07 14:49:17 -08:00
..
src fix(wsl): normalize Windows paths during update (#6086) (#6097) 2025-11-07 14:49:17 -08:00
tests chore: unify config crates (#5958) 2025-10-30 10:28:32 +00:00
Cargo.toml fix: --search shouldn't show deprecation message (#6180) 2025-11-04 00:11:50 +00:00