Files
orca/src/shared
Jinwoo Hong 000cfe5193 Add "Copy sign-in link instead" for Claude accounts (STA-9912) (#26990)
* Catch Claude's sign-in link through BROWSER and wait 10 minutes for sign-in

A hidden claude auth login now runs with BROWSER pointed at a small script in the
account folder that hands the localhost-callback link back to Orca. Orca opens it
in the default browser as before, or hands it to Settings to copy when asked.
Windows host sign-ins keep Claude opening the browser itself.

* Add Copy sign-in link instead to Claude Add Account and Sign in again

* Only catch the Claude sign-in link when copying it

Plain Add Account and Sign in again no longer set BROWSER, so Claude opens the
browser itself exactly as before. A copy-link sign-in that cannot prepare its
BROWSER stand-in now fails instead of opening the default browser, a failed
chmod in WSL no longer stops the login, and a failed clipboard write shows the
existing copy-failed toast.

* End a copy-link Claude sign-in that gets no sign-in link, and simplify its plumbing

A missing or unexpected link now fails the sign-in instead of leaving a 10-minute
spinner. The link check moves to main and only tells the localhost link from the
pasted-code one; the poll is a plain loop, the pending link exists only for
copy-link sign-ins, and copyLink travels as a plain boolean.

* Pass the started Claude sign-in to the copy-link helper and give its copy-failed toast its own key

* Remove a partly written Claude sign-in script when setup fails
2026-10-09 18:57:35 -04:00
..
2026-09-03 17:32:59 -07:00