mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-06 05:20:43 +00:00
Preserve removed Codex import auth choice
This commit is contained in:
@@ -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,
|
||||
|
||||
21
extensions/openai/openclaw.plugin.test.ts
Normal file
21
extensions/openai/openclaw.plugin.test.ts
Normal file
@@ -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");
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user