mirror of
https://github.com/cline/cline.git
synced 2026-09-19 02:05:44 +08:00
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.