Repository navigation
Let CLI sign-in links use the normal sign-in and a plain confirmation - #434
Merged
Merged
Conversation
People often open a CLI sign-in link that their coding agent relays, without seeing the terminal. The link now opens the normal sign-in with all its options. Signed-in visitors continue with their session's address, and a company address continues at its installation without asking again. The confirmation names the organization, account and permissions in plain language and checks a linked code automatically. It no longer asks to compare a code with the terminal or to tick a checkbox; technical details stay available under Details.
A new Google or Microsoft account returns to the CLI login, which finds its installation from the address, instead of starting Cloud onboarding. A retry after a failed company sign-in keeps the address as login hint.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
People often open a CLI sign-in link that their coding agent relays, without ever seeing the terminal. The pages behind that link assumed a terminal: "Connect your CLI", "Keep the login command running", a device code to "compare with your terminal" and a checkbox stating "I started this request on my device and verified the code". The first page was also its own reduced email form, without the Google, Microsoft or sign-up options of the normal sign-in, followed by a second sign-in page that asked for the same address again.
Changes
/cli-loginhas no form of its own. A visitor who is not signed in goes to the normal/sign-inwith the link asnext, so every sign-in option is available. A signed-in visitor continues at once:chooseCliPlatformnow takes the address from the session instead of the browser. The page then waits for the device code and forwards to the installation, keeping the address for its sign-in.nextis a CLI login,findSignInDestinationselects that installation for the CLI request and returns to/cli-login. Without this, the company redirect would drop the CLI request. Discovery and selection for both paths live inselectCliPlatformByEmail. A new Google or Microsoft account also returns to the CLI login instead of starting Cloud onboarding, as after an email sign-in./device?…&email=) continues with it: the email form requests the code, or company SSO starts with the address as login hint. A failed attempt returns witherrorand waits for the person; the address stays the login hint for a retry./devicefrom a link checks the code on load and shows Confirm sign-in: the organization, the account and what the sign-in can do in plain language, with Confirm and Deny. The code, client, scopes and API are under Details. The manual entry from Connect CLI in the sidebar is unchanged.docs/control-plane-experience.mddescribes the new constraint for CLI authorization.Screenshots
Cloud account, not signed in:
A company address entered on the normal sign-in continues to the company's code step; a visitor already signed in sees only a short wait before Confirm sign-in:
Confirm and done at 390 px in dark mode:
Checked at 1280 and 390 px in light and dark for the Cloud, company and signed-in flows. Not rendered: Google and Microsoft buttons on the sign-in (the test environment has no credentials for them; the page is the unchanged normal sign-in), the denied state and an expired link.
Verification
pnpm check(typecheck, format, lint).cli-login.spec.tswith the real CLI: automatic Cloud, signed-in Cloud (new), automatic company, explicit Cloud and saved company.cli-login.integration.test.ts, and withRUN_CLI_TESTS=1discovery-cli.test.tsandauth-cli.integration.test.ts.

Confidence Score: 5/5
The PR appears safe to merge; both previous findings are fixed and no new blocking issue was found.Summary
CLI links now use normal sign-in and a plain confirmation page.
Diagram
%%{init: {'theme': 'neutral'}}%% flowchart TD A[Open CLI link] --> B{Signed in?} B -->|No| C[Normal sign-in] C --> D[Return to CLI login] B -->|Yes| D D --> E[Select installation using email] E --> F[Continue to device request] F --> G[Confirm or deny]Reviews (2) · Last reviewed commit: "Keep new social accounts and email hints..." · Reviewed by Greptile