From e4286ae7a3203ef6b980561444880a5a4b689566 Mon Sep 17 00:00:00 2001 From: Cas <10153929+CasualDeveloper@users.noreply.github.com> Date: Thu, 22 Jan 2026 23:53:09 +0800 Subject: [PATCH] fix(codex): write refresh tokens to openai auth (#10010) (#10011) --- packages/opencode/src/plugin/codex.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/opencode/src/plugin/codex.ts b/packages/opencode/src/plugin/codex.ts index 3e31c6ce4..cd9eaea45 100644 --- a/packages/opencode/src/plugin/codex.ts +++ b/packages/opencode/src/plugin/codex.ts @@ -399,7 +399,7 @@ export async function CodexAuthPlugin(input: PluginInput): Promise { const tokens = await refreshAccessToken(currentAuth.refresh) const newAccountId = extractAccountId(tokens) || authWithAccount.accountId await input.client.auth.set({ - path: { id: "codex" }, + path: { id: "openai" }, body: { type: "oauth", refresh: tokens.refresh_token,