fix(core): rename legacy OpenAI OAuth methods to Codex (#53467)

This commit is contained in:
Aiden Cline
2026-10-05 21:21:42 -05:00
committed by GitHub
Unverified
parent 5ae8a3c1d3
commit d318cf4125
5 changed files with 9 additions and 9 deletions
@@ -67,8 +67,8 @@ export const OpenCodeZen = {
export const LoginMethods = {
render: renderConnection("openai", [
{ type: "oauth", label: "Sign in with ChatGPT" },
{ type: "oauth", label: "ChatGPT browser (legacy)" },
{ type: "oauth", label: "ChatGPT device code (legacy)" },
{ type: "oauth", label: "Codex browser (legacy)" },
{ type: "oauth", label: "Codex device code (legacy)" },
{ type: "key", label: "API key" },
]),
}
+3 -3
View File
@@ -55,7 +55,7 @@ const browser = (app: App.Info) =>
method: {
id: browserMethodID,
type: "oauth",
label: "ChatGPT browser (legacy)",
label: "Codex browser (legacy)",
},
authorize: () =>
Effect.gen(function* () {
@@ -123,7 +123,7 @@ function listen(server: Server) {
Effect.catchIf(addressInUse, () =>
Effect.fail(
new Error(
`OpenAI browser login needs local port ${callbackPort} or ${callbackFallbackPort}, but both are already in use. Stop the processes using those ports or choose ChatGPT device code (legacy), then try again.`,
`OpenAI browser login needs local port ${callbackPort} or ${callbackFallbackPort}, but both are already in use. Stop the processes using those ports or choose Codex device code (legacy), then try again.`,
),
),
),
@@ -174,7 +174,7 @@ const headless = (app: App.Info) =>
method: {
id: headlessMethodID,
type: "oauth",
label: "ChatGPT device code (legacy)",
label: "Codex device code (legacy)",
},
authorize: () =>
Effect.gen(function* () {
@@ -73,12 +73,12 @@ describe("OpenAIPlugin", () => {
{
id: Integration.MethodID.make("chatgpt-browser"),
type: "oauth",
label: "ChatGPT browser (legacy)",
label: "Codex browser (legacy)",
},
{
id: Integration.MethodID.make("chatgpt-headless"),
type: "oauth",
label: "ChatGPT device code (legacy)",
label: "Codex device code (legacy)",
},
])
}),
+1 -1
View File
@@ -320,7 +320,7 @@ it.live(
expect(yield* Effect.promise(() => response.json())).toEqual({
_tag: "InvalidRequestError",
message:
"OpenAI browser login needs local port 1455 or 1457, but both are already in use. Stop the processes using those ports or choose ChatGPT device code (legacy), then try again.",
"OpenAI browser login needs local port 1455 or 1457, but both are already in use. Stop the processes using those ports or choose Codex device code (legacy), then try again.",
kind: "integration_authorization",
})
}),
@@ -20,7 +20,7 @@ code to enter; press `o` to open the URL and `c` to copy the authorization detai
```text
/connect
# Select OpenAI, then ChatGPT device code (legacy).
# Select OpenAI, then Codex device code (legacy).
```
Run `/connect` again to add another account. Selecting an already connected provider opens its account list, where you