Unable to create an account - infinite redirect to finalize account
Version
latest: 0.22.3
Operating System
Windows
Distribution Method
msi (Windows)
Describe the issue
Bug Description
I installed the GitButler Windows desktop application and successfully connected the GitHub integration. However, when I try to enable/use the AI features, GitButler prompts me with:
Authorization Required Please sign in to use the GitButler API.
I clicked Log in / Sign up and chose Sign up with GitHub. The GitHub authentication succeeds and redirects me to the GitButler Finalize Account page.
I enter a preferred username and submit the form. The request returns HTTP 200, but the page does not redirect yet i do receive a success message indicating that account setup completed succesfully.
Afterward, I am unable to access my GitButler account because navigating to the account page simply redirects me back to the Finalize Account page and asks me to choose a username again. Attempting to complete the process again results in the same behavior.
I also cannot sign out because the site redirects me to the Finalize Account page before the normal account UI is available.
Environment
- OS: Windows
- Browser: Chrome
- GitButler: Windows desktop application
- Authentication provider: GitHub
- GitHub integration: Successfully connected
How to reproduce (Optional)
- Install GitButler on Windows.
- Connect the GitHub integration.
- Attempt to use the AI features.
- When prompted, select Log in / Sign up.
- Select Sign up with GitHub.
- Complete the GitHub OAuth flow.
- On the GitButler Finalize Account page, enter a preferred username.
- Submit the form.
- The request returns HTTP 200, but no redirect occurs.
- Navigate to the GitButler account page or reload the page.
- The application redirects back to Finalize Account and asks for a username again.
Expected behavior (Optional)
After successfully submitting the preferred username, the GitButler account should be finalized and I should be redirected to my account or otherwise authenticated. The desktop application should then be able to authenticate with the GitButler API for AI features.
Actual Behavior
The account appears to remain stuck in an incomplete setup state. The Finalize Account page is shown repeatedly, and there is no way to reach the account page or sign out. Consequently, the desktop application cannot authenticate with the GitButler API.
Relevant log output (Optional)
Source: gitbutlerapp/gitbutler