Antigravity CLI displays auth URL with spaces and carriage returns

When I am running the Antigravity CLI remotely, in a terminal via SSH, the terminal is not able to automatically spawn a browser, but the URL that it provides for you to login manually has carriage returns and spaces built into the url.

So, the text looks like this:

 Open this link in the browser (be sure to copy-paste the whole URL):
 ──────────────────────────────────────────────────────────────────────────────
 https://accounts.google.com/o/oauth2/auth?access_type=offline&client_id=123456
 6060591-abcdefgs2h21lcre235vtolojh4g403ep.apps.googleusercontent.com&code_chall
 enge=-nqR9DpolmtW7gYoj9PFiABtBGBDMKiDQthseuUZ9Sk&code_challenge_method=S256&pr
 ompt=consent&redirect_uri=https%3A%2F%2Fantigravity.google%2Foauth-callback&re
 sponse_type=code&scope=https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fcloud-platfor
 m+https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fuserinfo.email+https%3A%2F%2Fwww.g
 oogleapis.com%2Fauth%2Fuserinfo.profile+https%3A%2F%2Fwww.googleapis.com%2Faut
 h%2Fcclog+https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fexperimentsandconfigs+open
 id&state=bP6OOusEc_YSGjsi-ftHcQ
 ──────────────────────────────────────────────────────────────────────────────

So, in order to use this URL to login, you have to copy it into another tool and remove the spaces and carriage returns in order to sign in.

/l

Cc: @pradeepkuppala

Hi @lukwam,

Welcome to the Forum,

Are you able to open the link by using Ctrl+Click on the URL in your terminal?

No, because the link has carriage returns and spaces in it. I can control+click on the first line of the link, but that isn’t really helpful and wouldn’t produce a successfully login. The issue is that terminal isn’t smart enough to automatically remove the whitespace padding that is added to the beginning and end of each line of the url and so the url breaks at the first line break.

https://accounts.google.com/o/oauth2/auth?access_type=offline&client_id=123456