Handle OAuth denial and deduplicate login output - #260
Merged
Merged
Conversation
masnwilliams
approved these changes
Sep 17, 2026
masnwilliams
left a comment
Contributor
There was a problem hiding this comment.
approved. this is a focused improvement: OAuth denial is handled after state validation, terminal output now has one owner, success is reported only after credentials are persisted, and the new failure paths have solid coverage. the callback refactor also leaves the files easier to navigate.
left two non-blocking follow-ups around cancellation classification and coverage of the real spinner behavior.
Contributor
Author
|
bugbot run |
There was a problem hiding this comment.
✅ Bugbot reviewed your changes and found no new issues!
Comment @cursor review or bugbot run to trigger another review on this PR
Reviewed by Cursor Bugbot for commit d99e4da. Configure here.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
OAuth consent denial returns
error=access_deniedwithout a code. The CLI previously treated that valid error response as a malformed success callback, showing “missing authorization code” in the browser. Native login also emitted duplicate terminal statuses and reported success before credentials were persisted.Validation
go test ./pkg/auth ./cmd -count=1go test -race ./pkg/auth -count=1go vet ./pkg/auth ./cmdgo build ./...d99e4da9b708e119211d76dec6e5047305d8858f.Released as
v0.39.1from merge commit76daab28eabfc97bdb729d3fa579d9e2bbe99ecb. A live provider denial retest is still pending; the loopback fixture above was local only.