Skip to content

fix: reject legacy profile selectors#24059

Merged
jif-oai merged 2 commits into
mainfrom
jif/profile-field
May 22, 2026
Merged

fix: reject legacy profile selectors#24059
jif-oai merged 2 commits into
mainfrom
jif/profile-field

Conversation

@jif-oai
Copy link
Copy Markdown
Collaborator

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

Why

--profile now selects <name>.config.toml, so the legacy profile selector should not be reintroduced through config write or MCP tool paths. A matching legacy selector in base user config also needs the same migration guard as a matching legacy [profiles.<name>] table so profile loading fails with one clear migration error instead of mixing the old and new profile models.

What

  • reject non-null app-server config writes to the top-level legacy profile selector
  • make --profile <name> reject base user config that still selects the same legacy profile = "<name>" value, alongside the existing matching legacy profile-table guard
  • reject removed MCP codex tool fields such as profile by denying unknown tool-call parameters and exposing that restriction in the generated schema
  • add regression coverage for the app-server write paths, config loader guard, and MCP tool input/schema behavior

Verification

  • targeted regression tests cover the new app-server, config loader, and MCP rejection paths

@jif-oai jif-oai changed the title chore: profile field fix: reject legacy profile selectors May 22, 2026
@jif-oai
Copy link
Copy Markdown
Collaborator Author

jif-oai commented May 22, 2026

@codex review

@jif-oai jif-oai merged commit 932f72c into main May 22, 2026
30 checks passed
@jif-oai jif-oai deleted the jif/profile-field branch May 22, 2026 11:19
@github-actions github-actions Bot locked and limited conversation to collaborators May 22, 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