From 97d10706a087506939d8244cb73dc22fa6e0dcbc Mon Sep 17 00:00:00 2001 From: Abhinav Vedmala Date: Wed, 17 Jun 2026 00:41:04 +0000 Subject: [PATCH] Fix shell filter CI checks --- codex-rs/config/src/merge.rs | 2 +- codex-rs/core/config.schema.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/codex-rs/config/src/merge.rs b/codex-rs/config/src/merge.rs index 4fdb81c2f1..fad8a81c2d 100644 --- a/codex-rs/config/src/merge.rs +++ b/codex-rs/config/src/merge.rs @@ -155,7 +155,7 @@ fn remove_patterns_from_legacy_array( } items.retain(|item| { item.as_str() - .is_none_or(|candidate| !patterns.iter().any(|pattern| candidate == *pattern)) + .is_none_or(|candidate| !patterns.contains(&candidate)) }); } diff --git a/codex-rs/core/config.schema.json b/codex-rs/core/config.schema.json index 0bbcbea131..9735c4879a 100644 --- a/codex-rs/core/config.schema.json +++ b/codex-rs/core/config.schema.json @@ -2646,7 +2646,7 @@ "additionalProperties": { "$ref": "#/definitions/ShellEnvironmentPolicyFilter" }, - "description": "Pattern actions used by the canonical table representation.\n\nOrdinary config keeps accepting the legacy arrays above during the migration. Requirements will accept only this keyed form, keeping array compatibility isolated so the legacy fields can be deprecated later.", + "description": "Pattern actions used by the canonical table representation.\n\nOrdinary config keeps accepting the legacy arrays above during the migration. Requirements will accept only this keyed form, keeping array compatibility isolated so the legacy fields can be deprecated later. Pattern keys merge case-sensitively across config layers even though the resulting patterns match environment variable names case-insensitively.", "type": "object" }, "ignore_default_excludes": {