Repository navigation
Description
What happened
When Codex has a provider/catalog problem, models disappear from the picker and existing threads can show a different model without an explicit change. In our case, threads selected for GPT-6.2 Sol fell back to GPT-6 Astra. This has happened repeatedly across environments using a shared API proxy.
This report concerns preserving explicit thread selections. Catalog refresh failures are tracked separately in #38609 / #38889 and #33701.
Expected behavior
Keep the existing thread's selected provider instance and model ID when the model is temporarily absent from discovery. If it cannot be used, show an actionable availability error and require an explicit choice before substituting another model.
Source-level reproduction
Inspected source at cc1e634:
- An existing Codex thread/draft selects
gpt-6.2-sol. - Its provider catalog no longer includes that ID but still includes a model marked
isDefault. deriveEffectiveComposerModelStateinapps/web/src/composerDraftStore.tscallsresolveAppModelSelectionForInstance, passingpreserveUnavailableSelection: truefor the thread/draft selection.- In
apps/web/src/modelSelection.ts, unavailable-selection preservation only applies to OpenCode and Antigravity. Codex instead resolves tooptions.find(option => option.isDefault)?.slug ?? options[0]?.slug. packages/contracts/src/model.tsprefersgpt-6-astra, andapplyPreferredCodexDefaultModelin the server's Codex provider applies that preference to the live catalog. This explains an Astra replacement regardless of picker order.
This path was inspected directly; a controlled end-to-end reproduction of the UI replacement has not yet been run. We have not established whether every observed replacement was persisted or resolved only for composer display/dispatch.
Relevant logs
Sanitized evidence from 2026-11-26 (UTC):
17:46:44 Codex receives thread/resume
17:46:49–54 model cache is stale; no usable cache entry
failed to refresh available models: request timed out
Unknown model gpt-6.2-sol ... fallback model metadata
Two other machines logged genuine codex_models_manager::model_info unknown-6.2-Sol warnings during overlapping periods, 18:54–19:25 UTC. Later refreshed caches contained both 6.2 models again.
These logs confirm transient loss of usable metadata. They do not by themselves prove a T3 selection mutation or establish why every refresh failed. Proxy catalog requests returned HTTP 200, but historical response bodies were not retained.
Version / environment
- T3 Code Desktop/Linux,
0.1.13-nightly.20261125.5258 - Codex app-server
0.172.0; another affected environment used0.171.0 - Existing Codex CLI configuration through an OpenAI-compatible API proxy
- Impact: frequent disruption; threads should retain the explicitly selected model
Searched open and closed reports for Codex selections, disappearing models, silent switching and fallback; no exact duplicate found. Investigated and drafted with Codex / GPT-6.1 Sol on Ben's behalf.
Activity