mirror of
https://github.com/openai/codex.git
synced 2026-11-06 20:20:34 +00:00
## What changed - Add `ThreadManager::models_manager_for_startup` to obtain the model catalog used when starting or cold-resuming a root thread, including its effective originator. - Add `CodexThread::selected_model_info` to resolve the model for future turns using the thread's current settings, catalog, and model overrides. - Share catalog selection logic between startup lookup and thread creation. ## Testing Add coverage verifying that startup and thread lookups use the thread-specific catalog, preserve the configured context window, and reflect model selection updates. GitOrigin-RevId: d7976caebb7459e1e9ca55f3c6f6bb2af92cf3de