-
Notifications
You must be signed in to change notification settings - Fork 4.9k
fix stray login url characters persisting in login #3639
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
@codex do a review |
Codex Review: Didn't find any major issues. Bravo. About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you open a pull request for review, mark a draft as ready, or comment "@codex review". If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex fix this CI failure" or "@codex address that feedback". |
if !did_full_clear_after_success | ||
&& onboarding_screen.steps.iter().any(|step| { | ||
if let Step::Auth(w) = step { | ||
let g = w.sign_in_state.read().unwrap(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This use of unwrap()
is the source of the clippy failure?
Though strangely it seems like other uses of unwrap()
in this file are accepted?
&& onboarding_screen.steps.iter().any(|step| { | ||
if let Step::Auth(w) = step { | ||
w.sign_in_state.read().is_ok_and(|g| { | ||
matches!(&*g, super::auth::SignInState::ChatGptSuccessMessage) | ||
}) | ||
} else { | ||
false | ||
} | ||
}) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So we iterate over onboarding_screen.steps
and take the read lock of the mutex each time...should we just take the read lock and then iterate over onboarding_screen.steps
?
@easong-openai I pushed a change to update your PR to fix the clippy issue. Please take a look. |
Fixes this.