Skip to content

Conversation

@zhao-oai
Copy link
Collaborator

@zhao-oai zhao-oai commented Nov 20, 2025

@zhao-oai zhao-oai mentioned this pull request Nov 20, 2025
Copy link
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.

ℹ️ 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 on lines +865 to +867
let policy =
crate::exec_policy::append_allow_prefix_rule_and_reload(&features, &codex_home, prefix)
.await?;
Copy link
Contributor

Choose a reason for hiding this comment

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

P0 Badge Restore missing execpolicy update helper

The new allow-prefix flow calls crate::exec_policy::append_allow_prefix_rule_and_reload when persisting approvals, but no such function exists in core/exec_policy. This call will not compile (unresolved function) and the allow-prefix approval path cannot run at all.

Useful? React with 👍 / 👎.

Comment on lines +248 to +252
let _ = codex
.submit(Op::ExecApproval {
id,
decision,
allow_prefix: None,
Copy link
Contributor

Choose a reason for hiding this comment

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

P1 Badge Delegate drops allow_prefix on exec approvals

When the delegate handles an exec approval request that includes allow_prefix, it forwards the decision back to the parent with allow_prefix: None. Any user choice to persist the prefix in a delegated session is silently discarded, so the execpolicy allow list is never updated in this flow.

Useful? React with 👍 / 👎.

@zhao-oai zhao-oai closed this Nov 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants