Description
- While running the
supercode login command, the CLI prompted me with a Y/N question asking whether to open the browser automatically.
- Before responding to the prompt, I manually copied the authentication URL and completed the authorization flow in the browser.
- After returning to the terminal, there was no synchronization between the web app and the CLI.
- I then selected
No, after which the TUI started polling for the authorization response and continued polling indefinitely.
Expected Behavior
If the user completes the authorization flow manually before responding to the Y/N prompt, the CLI should first check whether the user has already been authenticated.
Suggested flow:
- Perform a direct database/auth state check to see if authorization has already been completed.
- If authorization is not found, start polling for the authentication response.
This would prevent unnecessary polling and ensure that manual authorization flows are handled correctly.
Screenshots:

Description
supercode logincommand, the CLI prompted me with aY/Nquestion asking whether to open the browser automatically.No, after which the TUI started polling for the authorization response and continued polling indefinitely.Expected Behavior
If the user completes the authorization flow manually before responding to the
Y/Nprompt, the CLI should first check whether the user has already been authenticated.Suggested flow:
This would prevent unnecessary polling and ensure that manual authorization flows are handled correctly.
Screenshots: