jif-oai
fd72e99384
config: remove legacy profile v1 resolution (#24051)
## Why
[#23883](https://github.com/openai/codex/pull/23883) moved user-facing
`--profile` selection onto profile v2, and
[#23886](https://github.com/openai/codex/pull/23886) removed the old CLI
`config_profile` override path. Core still had a second legacy path:
`profile = "..."` could select `[profiles.*]` values while runtime
config was built. Keeping that resolver alive preserves the old
precedence model and profile-carrying surfaces even though profile
selection now points at `$CODEX_HOME/<name>.config.toml`.
## What
- Reject legacy top-level `profile = "..."` config while loading runtime
config, with an error that points callers at `--profile <name>` and
`<name>.config.toml` in the [core load
path](https://github.com/openai/codex/blob/3d923366eca10a29143623124c6c6e538f058269/codex-rs/core/src/config/mod.rs#L2524-L2531).
- Remove the remaining profile-v1 merge points from runtime config
resolution, including features, permissions, model/provider selection,
web search, Windows sandbox settings, TUI settings, role reloads, and
OSS provider lookup.
- Drop the leftover profile override surface from
[`ConfigOverrides`](https://github.com/openai/codex/blob/3d923366eca10a29143623124c6c6e538f058269/codex-rs/core/src/config/mod.rs#L2118-L2148)
and from the MCP server `codex` tool schema.
- Prune profile-precedence tests that only exercised the removed
resolver and replace them with rejection coverage for the legacy
selector.
## Testing
- Not run in this metadata pass.
- Added
[`legacy_profile_selection_is_rejected`](https://github.com/openai/codex/blob/3d923366eca10a29143623124c6c6e538f058269/codex-rs/core/src/config/config_tests.rs#L7942-L7965)
coverage for the new runtime guard.
2026-05-22 12:13:52 +02:00
..
2026-05-21 16:52:36 -07:00
2026-03-28 11:23:07 -06:00
2026-05-20 14:59:41 -07:00
2026-05-21 12:26:36 -03:00
2026-05-05 11:17:47 -07:00
2026-05-20 14:59:41 -07:00
2026-05-15 15:04:04 -07:00
2026-05-13 15:33:27 +00:00
2026-04-21 17:10:36 +00:00
2026-05-13 16:08:05 +00:00
2026-05-18 20:24:09 -03:00
2026-04-07 08:03:35 -07:00
2026-04-30 22:42:48 -07:00
2026-05-11 21:08:40 -03:00
2026-05-14 21:19:06 -07:00
2026-05-19 11:22:00 -07:00
2026-05-10 20:42:11 +00:00
2026-05-10 11:45:49 -03:00
2026-05-15 17:10:15 -07:00
2026-05-12 10:43:17 -03:00
2026-05-20 21:55:21 +00:00
2026-04-30 11:34:34 -07:00
2026-05-21 12:26:36 -03:00
2026-04-30 11:34:34 -07:00
2026-05-20 15:57:50 -07:00
2026-05-21 16:03:11 -07:00
2026-04-30 10:52:19 -07:00
2026-04-13 18:27:00 -07:00
2026-04-10 20:25:31 -07:00
2026-05-07 20:31:41 -07:00
2026-05-04 16:11:15 -03:00
2026-05-21 12:26:36 -03:00
2026-05-14 18:51:36 -07:00
2026-05-05 16:18:02 +00:00
2026-03-28 11:23:07 -06:00
2026-05-13 15:40:37 -07:00
2026-03-28 11:23:07 -06:00
2026-05-21 16:03:11 -07:00
2026-05-13 12:11:15 -03:00
2026-04-25 22:00:32 -03:00
2026-05-20 17:33:01 -07:00
2026-04-30 10:52:19 -07:00
2026-04-30 11:34:34 -07:00
2026-03-28 11:23:07 -06:00
2026-05-14 15:16:15 +02:00
2026-05-09 16:10:56 -03:00
2026-03-28 11:23:07 -06:00
2026-03-28 11:23:07 -06:00
2026-03-28 11:23:07 -06:00
2026-05-05 17:09:25 -03:00
2026-05-11 21:08:40 -03:00
2026-05-18 11:28:53 -07:00
2026-05-09 21:17:30 +00:00
2026-05-01 09:39:48 -07:00
2026-05-13 12:11:15 -03:00
2026-05-13 15:33:27 +00:00
2026-05-04 19:18:56 +00:00
2026-05-14 20:51:08 -07:00
2026-05-22 12:13:52 +02:00
2026-03-28 11:23:07 -06:00
2026-04-13 18:27:00 -07:00
2026-05-14 17:11:36 -04:00
2026-05-18 11:32:02 -07:00
2026-05-10 20:42:11 +00:00
2026-05-10 20:42:11 +00:00
2026-05-10 20:42:11 +00:00
2026-05-10 20:42:11 +00:00
2026-04-19 22:39:53 -07:00
2026-04-29 17:22:41 -07:00
2026-04-25 22:00:32 -03:00
2026-05-01 09:07:56 -07:00
2026-04-30 11:34:34 -07:00
2026-04-25 17:09:29 -07:00
2026-05-13 15:33:27 +00:00
2026-05-14 14:33:54 -03:00
2026-05-15 17:10:15 -07:00
2026-04-25 22:00:32 -03:00
2026-05-19 15:48:40 -07:00
2026-03-28 11:23:07 -06:00
2026-05-20 15:57:50 -07:00
2026-05-14 16:54:59 -07:00
2026-05-04 11:46:03 -07:00
2026-05-20 11:05:14 -07:00
2026-03-28 11:23:07 -06:00
2026-04-20 20:46:55 -07:00
2026-05-20 15:49:35 +00:00
2026-05-14 18:51:36 -07:00
2026-05-09 21:17:30 +00:00
2026-05-01 09:07:56 -07:00
2026-05-09 16:10:56 -03:00
2026-05-10 20:42:11 +00:00
2026-05-18 09:04:02 -07:00
2026-05-18 09:04:02 -07:00
2026-04-17 08:39:37 -07:00
2026-03-28 11:23:07 -06:00
2026-04-30 11:34:34 -07:00
2026-03-28 11:23:07 -06:00
2026-04-30 22:42:48 -07:00
2026-05-08 07:56:13 -07:00
2026-04-20 00:37:40 +00:00
2026-04-25 22:00:32 -03:00
2026-05-18 09:04:02 -07:00
2026-03-28 11:23:07 -06:00
2026-05-19 23:13:49 -07:00
2026-04-25 22:00:32 -03:00
2026-04-25 17:09:29 -07:00
2026-04-25 17:09:29 -07:00
2026-03-28 11:23:07 -06:00
2026-04-30 11:34:34 -07:00
2026-04-25 22:00:32 -03:00
2026-05-05 17:09:25 -03:00
2026-05-13 14:19:05 -07:00