The open source coding agent.
TypeScript
fix(codex): write refresh tokens to openai auth (#10010) (#10011)
Case4286ae7a320
diff --git a/packages/opencode/src/plugin/codex.ts b/packages/opencode/src/plugin/codex.tsindex 3e31c6ce4ec..cd9eaea4564 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<Hooks> {const tokens = await refreshAccessToken(currentAuth.refresh)const newAccountId = extractAccountId(tokens) || authWithAccount.accountIdawait input.client.auth.set({- path: { id: "codex" },+ path: { id: "openai" },body: {type: "oauth",refresh: tokens.refresh_token,