From 8b4867b9f5444e27a32c5b2e9fad352039b1ebc0 Mon Sep 17 00:00:00 2001 From: rreichel3-oai Date: Thu, 16 Apr 2026 13:56:11 -0400 Subject: [PATCH] codex: fix remaining CI lint on PR #18161 --- codex-rs/app-server/src/codex_message_processor.rs | 7 ++----- codex-rs/login/src/auth/manager.rs | 4 +--- 2 files changed, 3 insertions(+), 8 deletions(-) diff --git a/codex-rs/app-server/src/codex_message_processor.rs b/codex-rs/app-server/src/codex_message_processor.rs index bc79f0bacf..2769974ed8 100644 --- a/codex-rs/app-server/src/codex_message_processor.rs +++ b/codex-rs/app-server/src/codex_message_processor.rs @@ -1628,15 +1628,12 @@ impl CodexMessageProcessor { } if let Some(expected_workspaces) = self.config.forced_chatgpt_workspace_id.as_deref() - && !expected_workspaces - .iter() - .any(|expected_workspace| chatgpt_account_id == *expected_workspace) + && !expected_workspaces.contains(&chatgpt_account_id) { let error = JSONRPCErrorError { code: INVALID_REQUEST_ERROR_CODE, message: format!( - "External auth must use one of workspace(s) {:?}, but received {chatgpt_account_id:?}.", - expected_workspaces + "External auth must use one of workspace(s) {expected_workspaces:?}, but received {chatgpt_account_id:?}.", ), data: None, }; diff --git a/codex-rs/login/src/auth/manager.rs b/codex-rs/login/src/auth/manager.rs index 6cda8efcf3..3f7d5f4236 100644 --- a/codex-rs/login/src/auth/manager.rs +++ b/codex-rs/login/src/auth/manager.rs @@ -1710,9 +1710,7 @@ impl AuthManager { ))); }; if let Some(expected_workspace_ids) = forced_chatgpt_workspace_id.as_deref() - && !expected_workspace_ids - .iter() - .any(|expected| chatgpt_metadata.account_id == *expected) + && !expected_workspace_ids.contains(&chatgpt_metadata.account_id) { return Err(RefreshTokenError::Transient(std::io::Error::other( format!(