Browser login opens the approve page itself
SP speedbegan .
5 files: client/src/box.ts, client/src/main.ts, client/src/open-browser.ts, client/test/box.test.ts, client/test/open-browser.test.ts
version 60abso login opens the approve page in the browser
Like gh auth login and wrangler login: abso login opens the approve page in the default browser with the code already in it, so nobody copies a link by hand. It still prints the link and the code, which stand when the open fails or is skipped.
- Windows opens with rundll32 url.dll,FileProtocolHandler, macOS with open, Linux with xdg-open. There's no shell, so a link with & in it arrives whole (cmd's start would cut it).
- No browser with --no-browser or ABSO_NO_BROWSER, over SSH (SSH_CONNECTION or SSH_TTY), under CI, or on Linux and other Unixes with neither DISPLAY nor WAYLAND_DISPLAY.
- Only http and https links are opened, so a link from a server is never handed to the desktop as a file or a program.
- The opener starts detached and isn't waited on; a failure is silent.
Tests: open-browser.test.ts (each skip, each platform's command, web links only, a failing opener is silent), and two login tests with an injected opener.
client/src/box.ts, client/src/main.ts, client/src/open-browser.ts, client/test/box.test.ts, client/test/open-browser.test.tsversion 62Open the link as it was checked
openInBrowser hands the opener the parsed link (new URL(url).href), the same one the web-link check read, rather than the raw text.
client/src/open-browser.ts- MCP
- change on this site's /mcp
- CLI
- abso review 785 --json
- JSON
- /christopher/abso-core/changes/785?format=json