Repository navigation
fix(permissions): warn about Codex CLI auto_review keys removed in Codex 0.169.0 - #3934
Merged
dyoshikawa merged 4 commits intoNov 22, 2026
Merged
Conversation
…x 0.169.0 Codex 0.169.0 removed `auto_review.extra_policy` and `auto_review.experimental_policy_template` (openai/codex#60646). Codex ignores them now, 0.170.0 warns at startup, and strict config validation rejects the file. Stop modeling `extra_policy` in the codexcli override schema, drop both keys with a warning on generate (pointing to `auto_review.policy` or a managed `guardian_extra_policy`), and leave them out on import so they do not round-trip back into the override. Refs #2496 Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01JdNNKCxxrKAMDANMGDEGP4
…nstead Codex 0.169.0 removed `auto_review.extra_policy` and `auto_review.experimental_policy_template`, but `AutoReviewToml` does not deny unknown fields: newer Codex only ignores them and warns at startup, and only `--strict-config` rejects them. Dropping them gained nothing on newer Codex and weakened the reviewer on Codex 0.168.0 and older, and an existing hand-written value survived the shallow merge anyway. Write and import both keys exactly as before and only warn on generate when they are authored, recommending `auto_review.policy` or a managed `guardian_extra_policy`. Refs #2496 Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01JdNNKCxxrKAMDANMGDEGP4
…dex-auto-review-removed-keys Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01JdNNKCxxrKAMDANMGDEGP4
…dex-auto-review-removed-keys # Conflicts: # src/generated/docs-content.ts
dyoshikawa
deleted the
resolve-issue-2496-codex-auto-review-removed-keys
branch
November 22, 2026 09:10
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Follows up the 2026-11-19 upstream re-check on #2496. Codex 0.169.0 removed
auto_review.extra_policyandauto_review.experimental_policy_templatefromAutoReviewToml(openai/codex#60646).AutoReviewTomldoes not deny unknown fields, so Codex 0.169.0+ only ignores the keys and warns at startup (strict_config.rsat rust-v0.169.0). Only the opt-in--strict-configrejects them. Codex 0.168.0 and older still honor them.Checked against
codex-rs/config/src/config_toml.rs: the keys are present at rust-v0.168.0 and gone at rust-v0.169.0 / rust-v0.170.0.Dropping the keys would gain nothing on newer Codex and would weaken the reviewer for users on Codex 0.168.0 or older. So rulesync keeps writing and importing them as before, and now tells the author they are on their way out.
Changes
generate: whencodexcli.auto_reviewsetsextra_policyorexperimental_policy_template, a warning says that Codex 0.169.0+ ignores the key (it warns at startup, and only--strict-configrejects it). The warning recommends moving the text toauto_review.policy, or toguardian_extra_policyin a managedrequirements.toml. The output is unchanged.@seenow points at rust-v0.169.0.codexclioverride paragraph ofdocs/reference/file-formats.md, plus the regenerateddocs-content.ts.extra_policystill parses.extra_policyis preserved is unchanged.What stays open in #2496
The earlier status comments left these items for the maintainer, and they are unchanged:
[hooks]inconfig.tomlAGENTS.md/AGENTS.override.md## Code Review Ruleschecks[agents]/[[skills.config]]/project_doc_*features.network_proxyapprovals_reviewer = "auto_review"default (upstream still documentsuser) and thetrust_leveldocs noteauthorization_server_issuer/ema_auth)Refs #2496
Test plan
src/features/permissions/codexcli-permissions.test.ts,src/types/permissions.test.tspnpm run check,pnpm run check:docs-content🤖 Generated with Claude Code
https://claude.ai/code/session_01JdNNKCxxrKAMDANMGDEGP4