You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Feb 15, 2026. It is now read-only.
Bug: Login command hangs in headless/CLI environments
Problem
When running keyway login in certain CLI environments (VS Code integrated terminal, SSH sessions, headless servers), the login flow hangs after displaying the verification URL. The CLI never starts polling for OAuth completion.
Root Cause
The browser.OpenURL() call is blocking in these environments. The function waits for the browser process to complete, which prevents the polling loop from starting.
Bug: Login command hangs in headless/CLI environments
Problem
When running
keyway loginin certain CLI environments (VS Code integrated terminal, SSH sessions, headless servers), the login flow hangs after displaying the verification URL. The CLI never starts polling for OAuth completion.Root Cause
The
browser.OpenURL()call is blocking in these environments. The function waits for the browser process to complete, which prevents the polling loop from starting.Current Behavior
│ Code: ABCD-1234
│ Open: https://api.keyway.sh/v1/auth/device/verify?user_code=ABCD-1234
[hangs indefinitely - no "Waiting for authorization..." spinner]
Expected Behavior
The CLI should display the URL, attempt to open the browser non-blocking, and immediately start polling for OAuth completion.
Solution
browser.OpenURL()in a goroutine to avoid blockingAffected File
internal/cmd/login.go