Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions packages/app/src/providers/connect/dialog.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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" },
]),
}
6 changes: 3 additions & 3 deletions packages/core/src/plugin/provider/openai.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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* () {
Expand Down Expand Up @@ -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.`,
),
),
),
Expand Down Expand Up @@ -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* () {
Expand Down
4 changes: 2 additions & 2 deletions packages/core/test/plugin/provider-openai.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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)",
},
])
}),
Expand Down
2 changes: 1 addition & 1 deletion packages/server/test/fetch.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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",
})
}),
Expand Down
2 changes: 1 addition & 1 deletion services/www/src/docs/content/cli/providers.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Loading