diff --git a/extensions/openai/openclaw.plugin.json b/extensions/openai/openclaw.plugin.json index 77dd5cb1e09..a4b4ea7a899 100644 --- a/extensions/openai/openclaw.plugin.json +++ b/extensions/openai/openclaw.plugin.json @@ -14,7 +14,7 @@ "provider": "openai-codex", "method": "oauth", "choiceId": "openai-codex", - "deprecatedChoiceIds": ["codex-cli"], + "deprecatedChoiceIds": ["codex-cli", "openai-codex-import"], "choiceLabel": "OpenAI Codex Browser Login", "choiceHint": "Sign in with OpenAI in your browser", "assistantPriority": -30, diff --git a/extensions/openai/openclaw.plugin.test.ts b/extensions/openai/openclaw.plugin.test.ts new file mode 100644 index 00000000000..53518a64a3d --- /dev/null +++ b/extensions/openai/openclaw.plugin.test.ts @@ -0,0 +1,21 @@ +import { readFileSync } from "node:fs"; +import { describe, expect, it } from "vitest"; + +const manifest = JSON.parse( + readFileSync(new URL("./openclaw.plugin.json", import.meta.url), "utf8"), +) as { + providerAuthChoices?: Array<{ + choiceId?: string; + deprecatedChoiceIds?: string[]; + }>; +}; + +describe("OpenAI plugin manifest", () => { + it("keeps removed Codex CLI import auth choice as a deprecated browser-login alias", () => { + const codexBrowserLogin = manifest.providerAuthChoices?.find( + (choice) => choice.choiceId === "openai-codex", + ); + + expect(codexBrowserLogin?.deprecatedChoiceIds).toContain("openai-codex-import"); + }); +});