[Bug] ChatGPT Work (local) model picker does not list OpenCodex catalog models

Aperta
#8,561 6 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

@ShivamJuyal24 ci sta già lavorando.

Dal 11/11/2026.

Valutazione

Difficoltà
5/5
Tempo stimato
Più di una settimana
Idoneità per principianti
25/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
typescript

Direzione di ricerca

Start by checking the ChatGPT/Work model-list and request paths described in the issue, then compare them with OpenCodex's existing model_catalog_json integration for the Codex app-server. Determine whether local Work chats can use those models and what routing and compatibility changes would be required; the issue offers documentation as an alternative if Work is out of scope. Done means Work models are supported and routed correctly, or the support matrix clearly documents the limitation.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

bug catalog needs-info
Client or integration

Codex App / ChatGPT desktop (Windows)

Area

Catalog / models

Summary

Models injected through OpenCodex's model_catalog_json appear in the Codex model picker, but are absent from the ChatGPT → Work picker when starting a local work chat. I expected both surfaces to expose the same routed models, or at least for Work to read the local catalog.

The Codex entry itself works correctly; this report is only about the ChatGPT/Work surface.

Reproduction
  1. On Windows, configure OpenCodex with model_catalog_json in ~/.codex/config.toml, including provider models such as Aliyun/deepseek-v4.1-flash-1017 and google-antigravity/gemini-3.8-flash (both visibility: "list").
  2. Open the ChatGPT desktop app and choose Codex → new chat. Both models appear in the picker and can be selected.
  3. Switch to ChatGPT, enable Work, and start a new local work chat.
  4. Open the model picker: only built-in models are listed. The two OpenCodex models are missing, with no error shown.
Version

@bitkyc08/opencodex 2.99.0 (npm global install). Desktop client: OpenAI Codex app 26.1106.6628.0. I have not retested on 2.100.2.

Operating system

Windows 11 26H2 (10.0.26300)

Provider and model

Aliyun/deepseek-v4.1-flash-1017, google-antigravity/gemini-3.8-flash

Logs or error output

No error is surfaced; the models are silently omitted from the picker.

Redacted configuration
# ~/.codex/config.toml (excerpt)
model_catalog_json = "C:\\Users\\<user>\\.codex\\opencodex-catalog.json"
openai_base_url = "http://127.0.0.1:10100/v1"

Catalog entries (excerpt):

{ "slug": "Aliyun/deepseek-v4.1-flash-1017", "visibility": "list" },
{ "slug": "google-antigravity/gemini-3.8-flash", "visibility": "list" }
Additional evidence from the installed desktop bundle

I unpacked app.asar from 26.1106.6628.0 and traced where each picker gets its data:

  • Codex picker uses the app-server model/list request, with model_catalog_json as part of the query key (webview/assets/async/201528.9e0864d060.js, module j44z).
  • ChatGPT picker uses GET /models?merged=true, and Work uses GET /tpp/models/ (webview/assets/async/739301.37a39f26d6.js, modules lTvi and sMGP).
  • The Work path parses is_work_mode_model into isWorkModeModel (webview/assets/async/514766.2d2f1ddc86.js), and the combined picker filters out isWorkModeModel entries for chat selections.

On the OpenCodex side, a code search of dev for tpp/models, is_work_mode_model, and chatgpt-work-models returns no matches, and the installed src/chatgpt/* contains no adapter for these paths. That suggests the local catalog injection currently covers the Codex app-server path only.

What I would like

Either:

  • merge locally configured catalog models into the Work model list and route their requests through OpenCodex, with the same auth/fallback behavior as Codex, or
  • if Work is intentionally out of scope, document that in the ChatGPT/desktop support matrix so the missing models are expected.

A note on whether model selection is honored for local Work chats in this client would also help.

Checks
  • I searched existing issues and documentation.
  • I removed secrets, tokens, account details, request credentials, and personal data.
Lingua principale
TypeScript
Stelle
16.9k
Fork
1.3k
Merge medio
1g 4h
PR unite (30g)
814

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di lidge-jun/opencodex

Tutte le issue di lidge-jun/opencodex

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.