mirror of
https://github.com/openclaw/openclaw.git
synced 2026-06-06 05:51:15 +08:00
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:
committed by
GitHub
parent
8d6a6e9d03
commit
4c33aaa86c
@@ -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
|
||||
|
||||
@@ -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:
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user