You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Azure custom provider: model refresh logs "missing field models" on every exec, and features.remote_models=false does not suppress it #22205
azureIssues related to the Azure-hosted OpenAI modelsbugSomething isn't workingcustom-modelIssues related to custom model providers (including local models)execIssues related to the `codex exec` subcommand
changed the title [-]Azure custom provider: model refresh logs 'missing field ' on every exec, and features.remote_models=false does not suppress it[/-][+]Azure custom provider: model refresh logs "missing field `models`" on every exec, and features.remote_models=false does not suppress it[/+]on May 11, 2026
Additional log evidence from 2026-07-16: eight scheduled-run logs contained 28 instances of the same missing field models refresh-error signature. The abbreviated response body had the top-level shape {"data":[...],"object":"list","success":true}. In one sampled run, the error preceded thread.started, after which prompt processing continued. The log producer's Codex version was not recorded, so this does not establish a current-version runtime reproduction.
Separately, static inspection of current main at f64233d shows a parser shape consistent with that error: codex-rs/codex-api/src/endpoint/models.rs deserializes directly into ModelsResponse, while the derived Deserialize definition in codex-rs/protocol/src/openai_models.rs shows only models: Vec<ModelInfo> and no wrapper aliases. This is not a controlled reproduction from a current-main build; any parser change would still need to validate that data entries match Codex's catalog schema.
We’re seeing the same catalog-refresh error with another custom provider on Codex CLI 0.150.0-alpha.8.
August 27 logs contain 30 distinct occurrences after deduplicating overlapping snapshots. GET /models returns HTTP 200 with {"data":[…],"object":"list"}, followed by:
failed to refresh available models: stream disconnected before completion:
failed to decode models response: missing field `models`
This happens during background refresh, model listing, and thread resume. We haven’t established that these errors interrupt inference or cause missing final answers.
Is this the right issue to track the broader custom-provider compatibility problem? It would also help to distinguish catalog parsing failures from actual stream disconnections in the error message.
Detailed logs are available internally for engineering follow-up.
failed to decode models response: missing field `models`
The inference workload continued successfully, so this remains non-fatal in this reproduction. The signature has recurred across separate runs rather than being a one-off transport failure.
This appears to broaden the issue from Azure to OpenAI-compatible providers generally. A narrow regression test in the models endpoint decoder would deserialize the documented data shape into the existing internal collection while preserving any currently accepted models fixture shape. I would avoid requiring providers to add a non-standard duplicate models field as the primary workaround.
Sharing what worked for me in case anyone else is trying to use Codex Remote Control with Azure OpenAI.
My setup:
Codex CLI "0.154.0"
Ubuntu on WSL2
Azure OpenAI as the model provider
Android phone for Remote Control
What happened
Remote Control itself would start on WSL2, but pairing my Android phone kept timing out.
What finally worked was simple: I temporarily made Codex require a normal ChatGPT/OpenAI login, paired my phone while that login was active, then switched Codex back to my Azure setup afterward.
The pairing stayed saved.
I then fully stopped Remote Control, closed the Android app, started Remote Control again from WSL2, and reopened the app.
The machine went from offline to online automatically, my previous session/history loaded again, and I did not have to pair the phone a second time.
Azure was still my model provider.
Exact steps
In my Codex config, I temporarily changed:
require_openai_auth = false
to:
require_openai_auth = true
Then I:
Logged Codex into my ChatGPT/OpenAI account.
Started Remote Control.
Paired my Android phone.
Confirmed that Remote Control was working.
Changed the setting back to:
require_openai_auth = false
Restarted Remote Control.
After that, Remote Control continued working with Azure OpenAI as my model provider.
I also verified that this survives a full restart, so it wasn't just an existing in-memory connection.
One important distinction: this doesn't fix the separate Azure "/models" response-format issue discussed in this thread. It only solved the Remote Control pairing/enrollment problem in my setup.
azureIssues related to the Azure-hosted OpenAI modelsbugSomething isn't workingcustom-modelIssues related to custom model providers (including local models)execIssues related to the `codex exec` subcommand
Activity
[-]Azure custom provider: model refresh logs 'missing field ' on every exec, and features.remote_models=false does not suppress it[/-][+]Azure custom provider: model refresh logs "missing field `models`" on every exec, and features.remote_models=false does not suppress it[/+]r266-tech commentedon Jul 16, 2026
Additional log evidence from 2026-07-16: eight scheduled-run logs contained 28 instances of the same
missing field modelsrefresh-error signature. The abbreviated response body had the top-level shape{"data":[...],"object":"list","success":true}. In one sampled run, the error precededthread.started, after which prompt processing continued. The log producer's Codex version was not recorded, so this does not establish a current-version runtime reproduction.Separately, static inspection of current
mainatf64233dshows a parser shape consistent with that error:codex-rs/codex-api/src/endpoint/models.rsdeserializes directly intoModelsResponse, while the derivedDeserializedefinition incodex-rs/protocol/src/openai_models.rsshows onlymodels: Vec<ModelInfo>and no wrapper aliases. This is not a controlled reproduction from a current-main build; any parser change would still need to validate thatdataentries match Codex's catalog schema.linear commentedon Aug 28, 2026
from conormeng:
jacobhausler commentedon Aug 29, 2026
Confirmed on Codex CLI 0.150.1 with a non-Azure custom OpenAI-compatible provider.
GET /v1/modelsreturned HTTP 200 with the standard top-level shape:{"object":"list","data":[{"id":"example-model","object":"model","owned_by":"example"}]}Codex then logged the same error:
The inference workload continued successfully, so this remains non-fatal in this reproduction. The signature has recurred across separate runs rather than being a one-off transport failure.
The official API reference specifies
object: "list"plus adataarray for the list-models response: https://developers.openai.com/api/reference/resources/models/methods/listThis appears to broaden the issue from Azure to OpenAI-compatible providers generally. A narrow regression test in the models endpoint decoder would deserialize the documented
datashape into the existing internal collection while preserving any currently acceptedmodelsfixture shape. I would avoid requiring providers to add a non-standard duplicatemodelsfield as the primary workaround.senaiverse commentedon Sep 14, 2026
Sharing what worked for me in case anyone else is trying to use Codex Remote Control with Azure OpenAI.
My setup:
What happened
Remote Control itself would start on WSL2, but pairing my Android phone kept timing out.
What finally worked was simple: I temporarily made Codex require a normal ChatGPT/OpenAI login, paired my phone while that login was active, then switched Codex back to my Azure setup afterward.
The pairing stayed saved.
I then fully stopped Remote Control, closed the Android app, started Remote Control again from WSL2, and reopened the app.
The machine went from offline to online automatically, my previous session/history loaded again, and I did not have to pair the phone a second time.
Azure was still my model provider.
Exact steps
In my Codex config, I temporarily changed:
require_openai_auth = false
to:
require_openai_auth = true
Then I:
require_openai_auth = false
After that, Remote Control continued working with Azure OpenAI as my model provider.
I also verified that this survives a full restart, so it wasn't just an existing in-memory connection.
One important distinction: this doesn't fix the separate Azure "/models" response-format issue discussed in this thread. It only solved the Remote Control pairing/enrollment problem in my setup.