From 7c65799934c960aba6461dc463d06efd688fe3d5 Mon Sep 17 00:00:00 2001 From: rreichel3-oai Date: Thu, 16 Apr 2026 13:31:30 -0400 Subject: [PATCH] codex: fix CI failure on PR #18161 --- codex-rs/tui/src/local_chatgpt_auth.rs | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/codex-rs/tui/src/local_chatgpt_auth.rs b/codex-rs/tui/src/local_chatgpt_auth.rs index c0b353434a..270d64f5f7 100644 --- a/codex-rs/tui/src/local_chatgpt_auth.rs +++ b/codex-rs/tui/src/local_chatgpt_auth.rs @@ -34,13 +34,10 @@ pub(crate) fn load_local_chatgpt_auth( .or(tokens.id_token.chatgpt_account_id.clone()) .ok_or_else(|| "local ChatGPT auth is missing chatgpt account id".to_string())?; if let Some(expected_workspaces) = forced_chatgpt_workspace_id - && !expected_workspaces - .iter() - .any(|expected_workspace| chatgpt_account_id == *expected_workspace) + && !expected_workspaces.contains(&chatgpt_account_id) { return Err(format!( - "local ChatGPT auth must use one of workspace(s) {:?}, but found {chatgpt_account_id:?}", - expected_workspaces + "local ChatGPT auth must use one of workspace(s) {expected_workspaces:?}, but found {chatgpt_account_id:?}", )); }