Skip to content

Open auth browser without keypress prompt#7668

Draft
gonzaloriestra wants to merge 1 commit into
mainfrom
open-auth-browser-directly
Draft

Open auth browser without keypress prompt#7668
gonzaloriestra wants to merge 1 commit into
mainfrom
open-auth-browser-directly

Conversation

@gonzaloriestra
Copy link
Copy Markdown
Contributor

@gonzaloriestra gonzaloriestra commented May 29, 2026

WHY are these changes introduced?

The login flow currently pauses in interactive terminals and asks users to press a key before Shopify CLI opens the browser. We want authentication to start directly by opening the browser, making it easier for agents.

WHAT is this pull request doing?

  • Removes the keypress() wait and "Press any key" message from the interactive device auth flow.
  • Keeps the existing manual-link fallback when the browser can't be opened.

How to test your changes?

shopify auth login

Checklist

  • I've considered possible cross-platform impacts (Mac, Linux, Windows)
  • I've considered possible documentation changes
  • I've considered analytics changes to measure impact
  • The change is user-facing — I've identified the correct bump type (patch for bug fixes · minor for new features · major for breaking changes) and added a changeset with pnpm changeset add

Copy link
Copy Markdown
Contributor Author

This stack of pull requests is managed by Graphite. Learn more about stacking.

@github-actions github-actions Bot added the Area: @shopify/cli @shopify/cli package issues label May 29, 2026

if (isCloudEnvironment() || !isTTY()) {
cloudMessage()
const opened = await openURL(jsonResult.verification_uri_complete)
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we harden openURL to more reliably return false in cloud environments? I guess non-TTY isn't a good enough signal (agentic flows are non-TTY) but I'm wondering about situations where open may just hang.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Area: @shopify/cli @shopify/cli package issues

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants