An unofficial terminal client for Tangled, optimized for humans and agents. tgcli.wisp.place

Auth under WSL silently fails to open browser #54

Merged aly.codes
targeting master
Merged opened by and assigned to aly.codes
targeting master

On WSL xdg-open under the hood calls explorer.exe <url> which has a limit of ~2080 characters. Our OAuth url is ~2140. So instead of doing its job, it is silently swallowing the error and falling back to a blank explorer.exe window.

Quick demo of the issue to prove I'm not crazy: https://www.youtube.com/watch?v=HfgxHCY9fus

I propose a very simple workaround, if we're running in wsl, just call powershell.exe instead which is more reliable and doesn't have this silly link length limit.

This pull request has no versions submitted yet.