byterover-cli icon indicating copy to clipboard operation
byterover-cli copied to clipboard

ByteRover onboarding does not resume provider setup after successful OAuth login

Open AmElmo opened this issue 7 months ago • 0 comments

Pre-flight checklist

  • [x] I have searched existing issues and this bug has not been reported yet

Bug description

When selecting ByteRover as the LLM provider during onboarding, the CLI opens a browser for OAuth login. After successfully authenticating in the browser ("You can now close this window"), returning to the CLI shows the provider selection list again — same state as before login. The user has to re-select ByteRover from the list to actually connect.

The OAuth callback is received correctly (isAuthorized flips to true in the auth store), but the flow does not resume the previously selected provider.

Steps to reproduce

  1. Run brv in a fresh project (no existing provider configured)
  2. At the LLM provider prompt, select ByteRover
  3. Confirm the "ByteRover requires authentication. Sign in now?" prompt
  4. Browser opens, complete login successfully
  5. Return to the CLI

Expected behavior

After successful ByteRover OAuth login, the CLI should automatically resume the in-progress provider setup and complete ByteRover activation, instead of sending the user back to the provider list.

Actual behavior

After returning from successful browser login, the CLI shows the provider selection list again. The user must manually select ByteRover a second time to finish setup.

Likely root cause

In the provider flow (src/tui/features/provider/components/provider-flow.tsx), the login completion handler (handleLoginComplete) appears to detect successful auth but always returns the UI to the provider selection step, rather than resuming the previously selected ByteRover setup flow. The login callback itself succeeds, but the post-login state transition does not continue into the normal ByteRover connect/activate path.

CLI version

byterover-cli/3.7.0 darwin-arm64 node-v24.13.1 (bundled Node from the shell-script installer)

Installation method

Shell script (curl)

Node.js version

N/A — installed via shell script (bundled Node v24.13.1 shown above is what brv runs on).

Operating system

macOS (ARM64 / Apple Silicon)

LLM provider and model

ByteRover (during onboarding, no model selected yet)

Relevant logs

N/A — UX flow issue, no errors logged.

AmElmo avatar Apr 20 '26 02:04 AmElmo