Commit Graph

2 Commits

  • Fix toasts on Windows under WSL 2 (#7137)
    Before this: no notifications or toasts when using Codex CLI in WSL 2.
    
    After this: I get toasts from Codex
  • 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>