Files
codex/codex-rs/models-manager
jif 097558c1bd Reuse the parsed bundled model catalog (#62525)
## Why

Fallback lookups repeatedly parse the embedded model catalog even though
its contents are fixed for the lifetime of the process.

## What changed

Parse the bundled catalog once on first use. Borrow the shared catalog
for fallback lookups and copy it when building an owned snapshot or
merging remote models.

## Testing

Extend the API key discovery test to verify that a bundled model lookup
applies a request's `base_instructions` override and that a subsequent
lookup returns the original bundled model.

GitOrigin-RevId: 27c90b65667724312673c5d5ae01a3fc6b5b1416
2026-11-19 14:59:56 +00:00
..