From d318cf412504713464150f89228a9a6bdf35f189 Mon Sep 17 00:00:00 2001 From: Aiden Cline <63023139+rekram1-node@users.noreply.github.com> Date: Mon, 5 Oct 2026 21:21:42 -0500 Subject: [PATCH] fix(core): rename legacy OpenAI OAuth methods to Codex (#53467) --- packages/app/src/providers/connect/dialog.stories.tsx | 4 ++-- packages/core/src/plugin/provider/openai.ts | 6 +++--- packages/core/test/plugin/provider-openai.test.ts | 4 ++-- packages/server/test/fetch.test.ts | 2 +- services/www/src/docs/content/cli/providers.mdx | 2 +- 5 files changed, 9 insertions(+), 9 deletions(-) diff --git a/packages/app/src/providers/connect/dialog.stories.tsx b/packages/app/src/providers/connect/dialog.stories.tsx index 5f0ce2b564a..070c5e93d32 100644 --- a/packages/app/src/providers/connect/dialog.stories.tsx +++ b/packages/app/src/providers/connect/dialog.stories.tsx @@ -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" }, ]), } diff --git a/packages/core/src/plugin/provider/openai.ts b/packages/core/src/plugin/provider/openai.ts index 6d312a3c459..4070334255b 100644 --- a/packages/core/src/plugin/provider/openai.ts +++ b/packages/core/src/plugin/provider/openai.ts @@ -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* () { diff --git a/packages/core/test/plugin/provider-openai.test.ts b/packages/core/test/plugin/provider-openai.test.ts index 0f5a6b00ba0..99cea505c24 100644 --- a/packages/core/test/plugin/provider-openai.test.ts +++ b/packages/core/test/plugin/provider-openai.test.ts @@ -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)", }, ]) }), diff --git a/packages/server/test/fetch.test.ts b/packages/server/test/fetch.test.ts index b2f98b57d9e..e3618ec3d1c 100644 --- a/packages/server/test/fetch.test.ts +++ b/packages/server/test/fetch.test.ts @@ -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", }) }), diff --git a/services/www/src/docs/content/cli/providers.mdx b/services/www/src/docs/content/cli/providers.mdx index 663e357776f..01884b530dc 100644 --- a/services/www/src/docs/content/cli/providers.mdx +++ b/services/www/src/docs/content/cli/providers.mdx @@ -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