Skip to content

Remove smart_approvals alias migration#15464

Merged
charley-oai merged 1 commit intomainfrom
remove-smart-approvals-alias-migration
Mar 23, 2026
Merged

Remove smart_approvals alias migration#15464
charley-oai merged 1 commit intomainfrom
remove-smart-approvals-alias-migration

Conversation

@charley-oai
Copy link
Copy Markdown
Contributor

Remove the legacy smart_approvals config migration from core config loading.

This change:

  • stops rewriting smart_approvals into guardian_approval
  • stops backfilling approvals_reviewer = "guardian_subagent"
  • replaces the migration tests with regression coverage that asserts the deprecated key is ignored in root and profile scopes

Verification:

  • just fmt
  • cargo test -p codex-core smart_approvals_alias_is_ignored
  • cargo test -p codex-core approvals_reviewer_
  • just argument-comment-lint

Notes:

  • cargo test -p codex-core still hits an unrelated existing failure in tools::js_repl::tests::js_repl_imported_local_files_can_access_repl_globals; the JS REPL kernel exits after mktemp fails under the current environment.

Enhancement request: requested cleanup to delete the smart_approvals alias migration; no public issue link is available.

Stop rewriting config.toml entries that use the deprecated smart_approvals feature alias.

Keep regression tests that assert the alias is ignored in both root and profile scopes.

Co-authored-by: Codex <noreply@openai.com>
@charley-oai
Copy link
Copy Markdown
Contributor Author

@codex review

@chatgpt-codex-connector
Copy link
Copy Markdown
Contributor

Codex Review: Didn't find any major issues. Swish!

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

Copy link
Copy Markdown
Collaborator

@dylan-hurd-oai dylan-hurd-oai left a comment

Choose a reason for hiding this comment

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

nice cleanup!

@charley-oai charley-oai merged commit e830000 into main Mar 23, 2026
34 of 36 checks passed
@charley-oai charley-oai deleted the remove-smart-approvals-alias-migration branch March 23, 2026 00:10
@github-actions github-actions bot locked and limited conversation to collaborators Mar 23, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

2 participants