Skip to content

Local-first AI coding agent desktop: Electron + Rust host core + pi Agent Harness + user-installable plugins

fix(providers): list GPT-6.2 models for ChatGPT accounts

zszz34281788630da
diff --git a/apps/desktop/electron/main/vendor-live-models.ts b/apps/desktop/electron/main/vendor-live-models.ts
index d366928d3..b6b0a7597 100644
--- a/apps/desktop/electron/main/vendor-live-models.ts
+++ b/apps/desktop/electron/main/vendor-live-models.ts
@@ -18,11 +18,13 @@ const MAX_ERROR_EXCERPT_CHARS = 300;
* keep it at a current Codex CLI release.
* pi-ai does not call this endpoint and exposes no Codex client version, so
* this is the version of the official Codex CLI (github.com/openai/codex)
- * that was verified to list the current ChatGPT models (0.159.2 lists
- * `gpt-6.1-sol`, 2026-09-30). Bump it to a newer Codex CLI release when a
- * model the account can use is missing from this list.
+ * that lists the current ChatGPT models: Codex's bundled catalog sets
+ * `minimal_client_version` 0.166.0 for `gpt-6.2-sol` and `gpt-6.2-astra`, so
+ * 0.159.2 hid them (#2411); 0.169.1 is the release current on 2026-11-17.
+ * Bump it to a newer Codex CLI release when a model the account can use is
+ * missing from this list.
*/
-export const CODEX_MODELS_CLIENT_VERSION = "0.159.2";
+export const CODEX_MODELS_CLIENT_VERSION = "0.169.1";
const NON_CONVERSATION_MODEL =
/(?:^|[-_/])(?:imagine|image|video|tts|stt|speech|embed(?:ding)?|whisper|aurora|flux|realtime|moderation)(?:$|[-_/])/i;
diff --git a/apps/desktop/test/vendor-live-models.test.mjs b/apps/desktop/test/vendor-live-models.test.mjs
index 1cf918f1c..b454a4fdf 100644
--- a/apps/desktop/test/vendor-live-models.test.mjs
+++ b/apps/desktop/test/vendor-live-models.test.mjs
@@ -18,6 +18,16 @@ function codexToken() {
return `header.${payload}.sig`;
}
+test("the Codex model list asks as a client new enough for GPT-6.2 (#2411)", () => {
+ // Codex's catalog gives gpt-6.2-sol and gpt-6.2-astra minimal_client_version
+ // 0.166.0; the endpoint hides a model from an older client_version.
+ const [major, minor] = CODEX_MODELS_CLIENT_VERSION.split(".").map(Number);
+ assert.ok(
+ major > 0 || minor >= 166,
+ `client_version ${CODEX_MODELS_CLIENT_VERSION} is older than 0.166.0`,
+ );
+});
+
test("ChatGPT accounts list models from the Codex endpoint, not /models", () => {
const request = vendorModelListRequest({
vendorId: "openai-codex",
diff --git a/docs/spec/03-runtime/11-provider-model-system.md b/docs/spec/03-runtime/11-provider-model-system.md
index f1867f241..51ec593d9 100644
--- a/docs/spec/03-runtime/11-provider-model-system.md
+++ b/docs/spec/03-runtime/11-provider-model-system.md
@@ -484,7 +484,8 @@ is the endpoint that vendor actually publishes:
with the account id taken from the access token. The endpoint requires
`client_version` and hides models whose minimum Codex client is newer, so
the value is a pinned Codex CLI version (`CODEX_MODELS_CLIENT_VERSION`) that
- is bumped when an account model goes missing. A `{ data: [...] }` payload is
+ is bumped when an account model goes missing (0.169.1 since `gpt-6.2-sol` and
+ `gpt-6.2-astra` require 0.166.0, #2411). A `{ data: [...] }` payload is
not accepted. A newly published id such as `gpt-6-luna` is selectable
without a client update when that response includes it.
- GitHub Copilot: `GET {base}/models` with the pinned IDE identity headers and