Skip to content

Rename approvals reviewer variant to auto-review#19056

Merged
won-openai merged 1 commit into
mainfrom
feat/auto-review-approvals-reviewer-symbols
Apr 23, 2026
Merged

Rename approvals reviewer variant to auto-review#19056
won-openai merged 1 commit into
mainfrom
feat/auto-review-approvals-reviewer-symbols

Conversation

@won-openai

Copy link
Copy Markdown
Collaborator

Why

approvals_reviewer now uses auto_review as the canonical config/API value after #18504, but the Rust enum variant and nearby helper/test names still used GuardianSubagent / guardian approval wording. That made follow-up code and reviews confusing even though the external value had already moved to Auto-review.

What changed

  • Renamed ApprovalsReviewer::GuardianSubagent to ApprovalsReviewer::AutoReview.
  • Updated protocol, app-server, config, core, TUI, exec, and analytics test callsites.
  • Renamed nearby helper/test names from guardian approval wording to Auto-review wording where they refer to the approvals reviewer mode.
  • Preserved wire compatibility:
    • auto_review remains the canonical serialized value.
    • guardian_subagent remains accepted as a legacy alias.

This intentionally does not rename the [features].guardian_approval key, Feature::GuardianApproval, core/src/guardian, analytics event names, or app-server Guardian review event types.

Verification

  • cargo test -p codex-protocol approvals_reviewer_serializes_auto_review_and_accepts_legacy_guardian_subagent
  • cargo test -p codex-app-server-protocol approvals_reviewer_serializes_auto_review_and_accepts_legacy_guardian_subagent
  • cargo test -p codex-config approvals_reviewer
  • cargo test -p codex-tui update_feature_flags
  • cargo test -p codex-core permissions_instructions
  • cargo test -p codex-tui permissions_selection

@won-openai won-openai requested a review from a team as a code owner April 22, 2026 23:49
@won-openai

Copy link
Copy Markdown
Collaborator Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown
Contributor

Codex Review: Didn't find any major issues. Chef's kiss.

ℹ️ 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".

#[serde(rename = "auto_review", alias = "guardian_subagent")]
#[strum(serialize = "auto_review")]
GuardianSubagent,
AutoReview,

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.

do we still need the strum macro or the rename here?

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.

yea i have to make this change in the next PR

@won-openai won-openai merged commit 83ec1eb into main Apr 23, 2026
25 checks passed
@won-openai won-openai deleted the feat/auto-review-approvals-reviewer-symbols branch April 23, 2026 00:22
@github-actions github-actions Bot locked and limited conversation to collaborators Apr 23, 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.

2 participants