refactor: unify OpenAI provider identity (#88451)

* refactor: unify OpenAI provider identity

* refactor: move legacy oauth sidecar doctor helpers

* test: align OpenAI fixtures after rebase

* test: clean OpenAI provider unification

* fix: finish OpenAI provider cleanup

* fix: finish OpenAI cleanup follow-through

* fix: finish OpenAI CI cleanup
This commit is contained in:
Peter Steinberger
2026-05-31 00:29:44 +01:00
committed by GitHub
parent 8d6a6e9d03
commit 4c33aaa86c
519 changed files with 4698 additions and 5424 deletions

View File

@@ -10,9 +10,9 @@ coverage:
- runtime.codex-plugin.auth
secondary:
- auth-profiles.provider-selection
objective: Verify mixed openai-codex OAuth and openai API-key profile stores select the Codex OAuth profile for Codex app-server turns.
objective: Verify mixed openai OAuth and openai API-key profile stores select the Codex OAuth profile for Codex app-server turns.
successCriteria:
- The selected auth profile id is openai-codex:qa-oauth.
- The selected auth profile id is openai:qa-oauth.
- The openai:media-api API-key profile is present but not selected.
- The fixture rejects the residual provider mismatch covered by issue #78499.
docsRefs:
@@ -24,7 +24,7 @@ execution:
kind: flow
summary: Exercise the auth-profile fixture for mixed OpenAI API-key and Codex OAuth stores.
config:
selectedProfileId: openai-codex:qa-oauth
selectedProfileId: openai:qa-oauth
rejectedProfileId: openai:media-api
```
@@ -53,7 +53,7 @@ steps:
expr: "`expected ready Codex auth selection, got ${JSON.stringify(selection)}`"
- assert:
expr: "selection.profileId === config.selectedProfileId"
message: mixed profiles must select openai-codex OAuth
message: mixed profiles must select openai OAuth
- assert:
expr: "selection.profileId !== config.rejectedProfileId"
message: codex profile must not equal openai api-key profile

View File

@@ -12,8 +12,8 @@ coverage:
- runtime.codex-plugin.auth
objective: Reproduce the doctor-migration auth cells as an automated fixture matrix for Codex OAuth selection.
successCriteria:
- OAuth-only hosts select the openai-codex OAuth profile and use the Codex harness.
- Mixed-profile hosts still select openai-codex OAuth when an openai API-key profile exists.
- OAuth-only hosts select the openai OAuth profile and use the Codex harness.
- Mixed-profile hosts still select openai OAuth when an openai API-key profile exists.
docsRefs:
- docs/cli/doctor.md
codeRefs:

View File

@@ -14,7 +14,7 @@ objective: Verify a clean home that needs the Codex runtime reports a clear miss
successCriteria:
- Missing Codex plugin emits the exact remediation string asserted by the fixture test.
- Doctor repair seeds the Codex plugin before retrying the agent turn.
- The retry uses the openai-codex OAuth profile and never routes through the openai API-key profile.
- The retry uses the openai OAuth profile and never routes through the openai API-key profile.
docsRefs:
- docs/cli/doctor.md
- docs/cli/plugins.md