Skip to content

Conversation

easong-openai
Copy link
Collaborator

image

Fixes this.

@easong-openai
Copy link
Collaborator Author

@codex do a review

@easong-openai easong-openai enabled auto-merge (squash) September 15, 2025 11:32
Copy link
Contributor

Codex Review: Didn't find any major issues. Bravo.

About Codex in GitHub

Your 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();
Copy link
Collaborator

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?

Comment on lines +343 to +351
&& 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
}
})
Copy link
Collaborator

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?

@bolinfest
Copy link
Collaborator

@easong-openai I pushed a change to update your PR to fix the clippy issue. Please take a look.

@easong-openai easong-openai merged commit cf63cbf into main Sep 15, 2025
19 checks passed
@easong-openai easong-openai deleted the easong/fix-onboarding-characters branch September 15, 2025 15:44
@github-actions github-actions bot locked and limited conversation to collaborators Sep 15, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants