Skip to content

Let CLI sign-in links use the normal sign-in and a plain confirmation - #434

Merged
tnkuehne merged 2 commits into
mainfrom
cli-login-plain-pages
Nov 26, 2026
Merged

tnkuehne merged 2 commits into
mainfrom
cli-login-plain-pages

Conversation

@tnkuehne

@tnkuehne tnkuehne commented Nov 26, 2026 •

Copy link
Copy Markdown
Contributor

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-login has no form of its own. A visitor who is not signed in goes to the normal /sign-in with the link as next, so every sign-in option is available. A signed-in visitor continues at once: chooseCliPlatform now 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.
  • Normal sign-in: when the address on Cloud belongs to a company installation and next is a CLI login, findSignInDestination selects 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 in selectCliPlatformByEmail. A new Google or Microsoft account also returns to the CLI login instead of starting Cloud onboarding, as after an email sign-in.
  • Sign-in for a device request that already carries an address (/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 with error and waits for the person; the address stays the login hint for a retry.
  • /device from 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.
  • Error messages a person sees in the browser no longer refer to commands.
  • docs/control-plane-experience.md describes the new constraint for CLI authorization.

Screenshots

Cloud account, not signed in:

Before After
Before: own email page After: normal sign-in
Before: second sign-in page After: code
Before: code After: confirm
Before: device code After: done
Before: authorize
Before: done

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.ts with the real CLI: automatic Cloud, signed-in Cloud (new), automatic company, explicit Cloud and saved company.
  • Full Playwright suite: 83 passed, 1 skipped; one unrelated personal-connections test failed once and passes on rerun.
  • cli-login.integration.test.ts, and with RUN_CLI_TESTS=1 discovery-cli.test.ts and auth-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.RetriggerView in GreptileConfidence 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.

  • CLI sign-in links continue through regular sign-in and reach the right installation.
  • Device sign-in keeps the address already included in its link.
  • Linked device requests show a plain confirmation with readable permissions.

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]
Loading

Reviews (2) · Last reviewed commit: "Keep new social accounts and email hints..." · Reviewed by Greptile

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.
@tnkuehne
tnkuehne merged commit 71f214f into main Nov 26, 2026
18 checks passed
@tnkuehne
tnkuehne deleted the cli-login-plain-pages branch November 26, 2026 19:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant