Repository navigation
fix(openai): correct live model and packaged onboarding failures - #114288
Conversation
|
Maintainer exact-head proof for
|
|
Codex review: needs maintainer review before merge. Reviewed July 27, 2026, 12:46 AM ET / 04:46 UTC. ClawSweeper reviewWhat this changesThis PR makes OpenAI account model discovery authoritative for successful and authorization responses, corrects canonical onboarding fixture configuration, enables GPT-5.4 Pro image input, and adds packaged interactive-onboarding coverage to release acceptance. Merge readinessKeep this PR open for explicit maintainer review. The supplied diff addresses concrete OpenAI onboarding and packaged-release regressions, includes focused regression coverage and credible real-environment evidence, and I found no discrete patch defect; the remaining gate is reviewing the account-authoritative catalog behavior on the current base before landing. Priority: P1 Review scores
Verification
How this fits togetherThe OpenAI plugin discovers models visible to an authenticated account and supplies the catalog used by onboarding. Onboarding writes the agent/provider configuration that the installed CLI and Gateway use for the first model-backed turn, while release scenarios validate the packed npm artifact. flowchart LR
A[OpenAI credentials] --> B[Account model discovery]
B --> C[OpenAI provider catalog]
C --> D[Onboarding configuration]
D --> E[Installed CLI]
E --> F[Gateway first turn]
D --> G[Release package acceptance]
Decision needed
Why: This is an intentional provider-auth and user-selection policy boundary: tests can verify the implementation, but only an owner can confirm that suppressing fallback choices for those account states is the desired product contract. Before merge
Agent review detailsSecurityNone. PR surfaceSource +8, Tests +311, Other +20. Total +339 across 12 files. View PR surface stats
Review metrics
Stored data modelPersistent data-model change detected: Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Land a refreshed version of this focused OpenAI-plugin fix after an owner confirms the account-authoritative empty/401/403 catalog policy and the packed release-onboarding scenario passes against the final base. Do we have a high-confidence way to reproduce the issue? Yes in source and contributor evidence: the prior behavior falls back to static models through the shared live-provider path, while the branch adds explicit tests for empty, unsupported-only, 401, 403, and transient responses plus a packed onboarding scenario. I did not independently execute the live-key or packed-artifact reproduction in this read-only review. Is this the best way to solve the issue? Yes, subject to the maintainer policy choice on 401/403: keeping OpenAI-specific account visibility inside the OpenAI plugin and testing the packed onboarding path is narrower and more maintainable than adding a core fallback or runtime compatibility shim. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 71eb9a3ec9d9. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
|
|
Merged via squash.
|
Related: #114258
What Problem This Solves
Fixes an issue where users onboarding with OpenAI could be offered models unavailable to their account, lose image input on GPT-5.4 Pro, or receive an invalid configuration immediately after installing the release package. The installed interactive onboarding path was also missing from beta and stable release acceptance.
Why This Change Was Made
Treat successful OpenAI and ChatGPT account-specific model catalogs as authoritative, including empty, hidden-model, and unauthorized responses, while preserving the static fallback for transient failures. Follow OpenAI's documented GPT-5.4 Pro image-input contract, emit canonical keyed agent and image-generation configuration, retain bounded secret-safe onboarding diagnostics, and run real typed package onboarding in release acceptance.
User Impact
Fresh and repeated OpenAI onboarding select models actually available to the user's account, preserve supported image input, keep secret references and Gateway credentials stable, and complete successfully from an installed release package without touching the operator's home. Beta and stable releases exercise interactive package onboarding before shipment.
Evidence
origin/mainat730b341f3fec14d17a2c763d696764031229b77c.pnpm check:changed,pnpm build, all affected lint and typecheck lanes, and a fully validated npm release artifact.gpt-5.6,gpt-5.6-sol,gpt-5.6-terra,gpt-5.6-luna,gpt-5.4-mini,gpt-5.4-nano, andchat-latest./readyz, authenticated Gateway health, and a real model-backed first Gateway turn.agents.defaults.imageGenerationModelinvalidated the generated configuration. Proved the fix withpnpm test:docker:release-typed-onboardingagainst the freshly packed final npm artifact.../codex/codex-rs/protocol/src/openai_models.rsand../codex/codex-rs/app-server/src/models.rs.