Skip to content

chore: stop consuming legacy config profiles#24076

Merged
jif-oai merged 3 commits into
mainfrom
jif/more-porfile-machinerie
May 26, 2026
Merged

chore: stop consuming legacy config profiles#24076
jif-oai merged 3 commits into
mainfrom
jif/more-porfile-machinerie

Conversation

@jif-oai
Copy link
Copy Markdown
Collaborator

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

Why

The old config-profile mechanism should no longer influence runtime behavior now that profile selection has moved to file-based --profile config files. Core already rejects a selected legacy profile = "..." with a migration error in core/src/config/mod.rs, but a few residual consumers still read legacy [profiles.*] data while performing managed-feature checks and personality migration.

That kept dead legacy profile state relevant after selection had been removed, and could make personality migration depend on a stale or missing old profile.

What changed

  • Stop scanning legacy [profiles.*] feature settings when validating managed feature requirements.
  • Make personality migration consider only top-level personality and model_provider settings.
  • Remove the now-unused ConfigToml::get_config_profile helper.
  • Update personality migration coverage to verify that legacy profile personality fields and missing legacy profile names no longer affect that migration path.

This keeps the legacy profile / profiles config shape available for the remaining compatibility and migration diagnostics; it only removes these behavior consumers.

Verification

  • Updated core/tests/suite/personality_migration.rs for the new legacy-profile behavior.
  • Focused test command: cargo test -p codex-core personality_migration.

@jif-oai jif-oai requested a review from a team as a code owner May 22, 2026 13:27
@jif-oai jif-oai changed the title chore: drop more old profile machinerie chore: stop consuming legacy config profiles May 22, 2026
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: d6451fcb79

ℹ️ 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/config/managed_features.rs
@jif-oai jif-oai merged commit 4f7d6b4 into main May 26, 2026
31 checks passed
@jif-oai jif-oai deleted the jif/more-porfile-machinerie branch May 26, 2026 08:34
@github-actions github-actions Bot locked and limited conversation to collaborators May 26, 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