Preserve removed Codex import auth choice · openclaw/openclaw@788fd14
pashpashpash
·
2026-04-23
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -14,7 +14,7 @@
|
14 | 14 | "provider": "openai-codex", |
15 | 15 | "method": "oauth", |
16 | 16 | "choiceId": "openai-codex", |
17 | | -"deprecatedChoiceIds": ["codex-cli"], |
| 17 | +"deprecatedChoiceIds": ["codex-cli", "openai-codex-import"], |
18 | 18 | "choiceLabel": "OpenAI Codex Browser Login", |
19 | 19 | "choiceHint": "Sign in with OpenAI in your browser", |
20 | 20 | "assistantPriority": -30, |
|
| Original file line number | Diff line number | Diff line change |
|---|
|
| 1 | +import { readFileSync } from "node:fs"; |
| 2 | +import { describe, expect, it } from "vitest"; |
| 3 | + |
| 4 | +const manifest = JSON.parse( |
| 5 | +readFileSync(new URL("./openclaw.plugin.json", import.meta.url), "utf8"), |
| 6 | +) as { |
| 7 | +providerAuthChoices?: Array<{ |
| 8 | +choiceId?: string; |
| 9 | +deprecatedChoiceIds?: string[]; |
| 10 | +}>; |
| 11 | +}; |
| 12 | + |
| 13 | +describe("OpenAI plugin manifest", () => { |
| 14 | +it("keeps removed Codex CLI import auth choice as a deprecated browser-login alias", () => { |
| 15 | +const codexBrowserLogin = manifest.providerAuthChoices?.find( |
| 16 | +(choice) => choice.choiceId === "openai-codex", |
| 17 | +); |
| 18 | + |
| 19 | +expect(codexBrowserLogin?.deprecatedChoiceIds).toContain("openai-codex-import"); |
| 20 | +}); |
| 21 | +}); |
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。