Skip to content

fix(ui): recover gracefully from auth failure#753

Open
stavxyz wants to merge 1 commit intoayn2op:mainfrom
stavxyz:fix/685-auth-failure-recovery
Open

fix(ui): recover gracefully from auth failure#753
stavxyz wants to merge 1 commit intoayn2op:mainfrom
stavxyz:fix/685-auth-failure-recovery

Conversation

@stavxyz
Copy link
Copy Markdown

@stavxyz stavxyz commented Feb 25, 2026

Summary

Fixes #685.

  • When a saved token fails authentication (e.g. wrong token entered on first run), the app now clears the bad token from the keyring and falls back to the login form with an error modal showing what went wrong, instead of leaving the terminal in a broken state (blank screen, unresponsive to keystrokes)
  • Also handles the same failure path when entering a bad token directly from the login form — the error is shown to the user instead of silently logged

Test plan

  • Build from source and run with no saved token — login form should appear normally
  • Enter an invalid token and click Login — error modal should appear with the auth failure reason, login form remains usable
  • Kill the app and relaunch — login form should appear (bad token was cleared from keyring)

🤖 Generated with Claude Code

When a saved token fails authentication, the app now clears the bad
token from the keyring, falls back to the login form, and shows the
error to the user instead of leaving the terminal in a broken state.

Co-Authored-By: stavxyz <hi@stav.xyz>
@stavxyz stavxyz force-pushed the fix/685-auth-failure-recovery branch from 951ed45 to 7c0fdff Compare February 25, 2026 05:13
@Z1xus
Copy link
Copy Markdown
Contributor

Z1xus commented Feb 25, 2026

hey, just a heads up i actually have an open pr for the same issue (#700) from january that covers the terminal cleanup and the keyring logic

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Login screen bugging out

2 participants