Skip to content

feat(auto-review) Handle request_permissions calls#18393

Merged
dylan-hurd-oai merged 5 commits intomainfrom
dh--guardian--request-perm
Apr 21, 2026
Merged

feat(auto-review) Handle request_permissions calls#18393
dylan-hurd-oai merged 5 commits intomainfrom
dh--guardian--request-perm

Conversation

@dylan-hurd-oai
Copy link
Copy Markdown
Collaborator

Summary

When auto-review is enabled, it should handle request_permissions tool. We'll need to clean up the UX but I'm planning to do that in a separate pass

Testing

  • Ran locally
Screenshot 2026-04-17 at 1 16 13 PM

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: dcca7d30e2

ℹ️ 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/codex.rs Outdated
@dylan-hurd-oai dylan-hurd-oai force-pushed the dh--guardian--request-perm branch from dcca7d3 to 840e9d9 Compare April 18, 2026 01:02
@dylan-hurd-oai dylan-hurd-oai force-pushed the dh--guardian--request-perm branch 3 times, most recently from 5f4a4a8 to c39399f Compare April 19, 2026 21:52
@dylan-hurd-oai dylan-hurd-oai changed the title feat(auto-review) Handle request_permissions request feat(auto-review) Handle request_permissions calls Apr 19, 2026
@dylan-hurd-oai dylan-hurd-oai force-pushed the dh--guardian--request-perm branch 2 times, most recently from bbb2990 to a5f62c1 Compare April 20, 2026 05:11
Copy link
Copy Markdown
Collaborator

@jif-oai jif-oai left a comment

Choose a reason for hiding this comment

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

After those 2 comments, lgtm

Comment thread codex-rs/core/src/session/mod.rs
_ = cancellation_token.cancelled() => return None,
decision = review_rx => decision.unwrap_or(ReviewDecision::Denied),
};
let response = match decision {
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

If I read this correctly, approved for session won't work anymore right? Is this expected?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

I think it's just that Guardian doesn't approve for session, which is fine?

@dylan-hurd-oai dylan-hurd-oai requested a review from a team as a code owner April 21, 2026 03:27
dylan-hurd-oai and others added 4 commits April 20, 2026 20:40
Co-authored-by: Codex <noreply@openai.com>
Route request_permissions approvals through guardian review when configured, while keeping the permission grant recorded against the originating turn.

Keep the request_permissions path simple by avoiding extra cancellation-token plumbing.

Co-authored-by: Codex <noreply@openai.com>
@dylan-hurd-oai dylan-hurd-oai force-pushed the dh--guardian--request-perm branch from 8f705ff to a9498a4 Compare April 21, 2026 03:50
Use the canonical FileSystemPermissions helper in the guardian request_permissions snapshot test so Bazel compiles against the current protocol shape. Refresh the snapshot footer for the rebased default model.

Co-authored-by: Codex <noreply@openai.com>
@dylan-hurd-oai dylan-hurd-oai merged commit 86535c9 into main Apr 21, 2026
25 checks passed
@dylan-hurd-oai dylan-hurd-oai deleted the dh--guardian--request-perm branch April 21, 2026 04:48
@github-actions github-actions Bot locked and limited conversation to collaborators Apr 21, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants