Skip to content

feat: add --ignore-user-config and --ignore-rules#18646

Merged
jif-oai merged 5 commits into
mainfrom
jif/add-flags
Apr 20, 2026
Merged

feat: add --ignore-user-config and --ignore-rules#18646
jif-oai merged 5 commits into
mainfrom
jif/add-flags

Conversation

@jif-oai
Copy link
Copy Markdown
Collaborator

@jif-oai jif-oai commented Apr 20, 2026

Add those 2 flags to be able to fully isolate a run of codex exec from any rules or tools.
This will be used by Chronicle

Copy link
Copy Markdown
Contributor

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: e75ff5a792

ℹ️ 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
  • 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 address that feedback".

Comment thread codex-rs/core/src/config_loader/mod.rs Outdated
@jif-oai
Copy link
Copy Markdown
Collaborator Author

jif-oai commented Apr 20, 2026

@codex review

Copy link
Copy Markdown
Contributor

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

exec_policy_config_folders(parent_config) == exec_policy_config_folders(child_config)
&& parent_config.config_layer_stack.requirements().exec_policy
== child_config.config_layer_stack.requirements().exec_policy

P2 Badge Include ignore-rules in exec-policy inheritance check

load_exec_policy() now changes behavior based on ConfigLayerStack::ignore_user_and_project_exec_policy_rules() (set by --ignore-rules), but child_uses_parent_exec_policy() does not compare that flag. A child thread can therefore reuse the parent ExecPolicyManager even when the two configs should load different rule sets, leading to incorrect allow/deny decisions.

ℹ️ 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
  • 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 address that feedback".

@jif-oai jif-oai merged commit be4fe9f into main Apr 20, 2026
24 of 25 checks passed
@jif-oai jif-oai deleted the jif/add-flags branch April 20, 2026 10:27
@github-actions github-actions Bot locked and limited conversation to collaborators Apr 20, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

1 participant