Files
cline/apps
Saoud Rizwan 4061dda034 fix(cli): close remaining open-package gaps in browser URL opening (#12822)
Follow-up to #12782, which replaced the open package with openUrlInBrowser
but missed two call sites and dropped some platform handling the package
provided:

- Migrate the two remaining open users (skills marketplace open in
  tui/root.tsx and ACP OAuth in acp/auth.ts) to openUrlInBrowser; the
  listenerless-child crash fixed by #12782 was still reachable there.
- Treat containers running on a WSL2 kernel (Docker Desktop for Windows,
  devcontainers) as plain Linux: /proc/version says microsoft but there is
  no Windows interop, so use xdg-open instead of powershell.exe (matches
  the is-inside-container check open@10 performed).
- Try opener candidates in order: on WSL, powershell.exe on PATH, then the
  absolute /mnt/c/... path (covers appendWindowsPath=false), then xdg-open
  (sandboxed WSL with WSLg); on win32, the %SystemRoot% absolute PowerShell
  path first (what open@10 used), then PATH lookup.
- Convert Linux file paths to \\wsl$ UNC paths via wslpath before handing
  them to Start-Process, so 'cline doctor log' works on WSL.
- Remove the now-unused open dependency from apps/cli.
2026-07-31 22:07:36 -07:00
..