Repository navigation
fix(ai): make Log In Again visibly do something - #323
Conversation
|
Reviewed by review agent (Claude Opus 5.5) at e96da48. Verdict: approve.
Looks good otherwise: the browser opens only after the daemon returns the login, and since labels are now unique the |
Clicking Log In again for the same account stacked pending logins whose PKCE state nobody could finish any more. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Log In Again started a login whose finish row only rendered under Add Account at the bottom of the panel, below the policy editors, so the click looked like it did nothing. The row now renders under the account that was clicked (matched by id), the authorize page opens in the browser as soon as a login starts, and repeated clicks while a command is in flight are ignored. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A pasted login code is longer than the row; without min_w_0 the flex input grew to the text's width and pushed Finish past the panel edge. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A single-line SimpleInput neither scrolls nor clips, so a long code ran under the Finish and Cancel buttons. The code input now wraps (Enter still does not insert a newline) and both login inputs clip. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
e96da48 to
e507110
Compare
|
Rebased onto Verified locally: @matej21 this is ready to merge once CI is green. |
Problem
Settings → AI Proxy → Log In Again on an account that needs login looked like it did nothing. It did start a pending OAuth login, but the finish row (Open Login Page / paste code / Finish) only rendered in the Add Account section at the bottom of the panel, below Default Policy and Project Policies — offscreen. No browser opened either, and every extra click stacked another pending login.
Fix
SimpleInputneither scrolls nor clips); both login inputs getmin_w_0+ clipping so they stay inside the row.start_loginreplaces a pending login with the same label instead of stacking it.Testing
cargo test -p okena-ai(newstarting_a_login_again_replaces_the_pending_one)cargo clippy -p okena-app -p okena-ai --all-targetsclean🤖 Generated with Claude Code