Files
codex/codex-rs/core/src
sayan-oai 0b6c2e5652 fix: also try matching namespaced prefix for modelinfo candidate (#12658)
#### What
Try matching `\w+`-namespaced model after `longest prefix` as heuristic
to match `ModelInfo` from list of candidates.

This shouldn't regress existing behavior:
- `gpt-5.2-codex` -> `gpt-5.2` if `gpt-5.2-codex` not present
- `gpt-5.3` -> `gpt-5` if `gpt-5.3` not present
- `gpt-9` still doesn't match anything

while being more forgiving for custom prefixes:
- `oai/gpt-5.3-codex` -> `gpt-5.3-codex`

#### Tests
Added unit test.
2026-02-24 10:57:26 -08:00
..
2026-02-23 22:47:39 -08:00
2026-02-10 16:12:31 +00:00
2026-02-24 08:15:47 -08:00
2026-02-18 18:28:34 +00:00
…
2026-02-10 11:45:23 -08:00
2025-11-28 11:34:57 +00:00
2026-02-21 20:08:02 -08:00