mirror of
https://github.com/openai/codex.git
synced 2026-11-19 22:30:42 +00:00
## 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