Skip to content

extension-api: add approval review contributor flow#22344

Merged
jif-oai merged 3 commits into
mainfrom
jif/approval-contributor
May 13, 2026
Merged

extension-api: add approval review contributor flow#22344
jif-oai merged 3 commits into
mainfrom
jif/approval-contributor

Conversation

@jif-oai
Copy link
Copy Markdown
Collaborator

@jif-oai jif-oai commented May 12, 2026

Why

codex-extension-api needs an approval hook that lets an installed extension own a rendered approval-review prompt and produce the final ReviewDecision. The prior interceptor stub only exposed a yes/no claim and did not model the review result itself, which left the host with the missing half of the control flow.

What changed

  • Replaces ApprovalInterceptorContributor with ApprovalReviewContributor, which may claim a rendered prompt and return an async ReviewDecision.
  • Re-exports the new contributor and future types from extension-api.
  • Adds registry support through approval_review_contributor(...) plus ExtensionRegistry::approval_review(...), which returns the first installed contributor that claims the prompt.

@jif-oai jif-oai changed the title feat: approval contributor extension-api: add approval review contributor flow May 12, 2026
@jif-oai
Copy link
Copy Markdown
Collaborator Author

jif-oai commented May 12, 2026

@codex review

@chatgpt-codex-connector
Copy link
Copy Markdown
Contributor

Codex Review: Didn't find any major issues. Keep them coming!

ℹ️ 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 155c04a into main May 13, 2026
27 checks passed
@jif-oai jif-oai deleted the jif/approval-contributor branch May 13, 2026 08:39
@github-actions github-actions Bot locked and limited conversation to collaborators May 13, 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.

1 participant