Skip to content

chore: release - merge dev into main#1425

Merged
zbigniewsobiecki merged 2 commits into
mainfrom
dev
Jun 22, 2026
Merged

chore: release - merge dev into main#1425
zbigniewsobiecki merged 2 commits into
mainfrom
dev

Conversation

@zbigniewsobiecki

Copy link
Copy Markdown
Member

Automated release PR created by the release workflow.

Commits (2):

d2153e16 Merge pull request #1424 from mongrel-intelligence/fix/codex-bare-api-key-auth
681e60f9 fix(codex): authenticate a bare OPENAI_API_KEY via synthesized auth.json

zbigniewsobiecki and others added 2 commits June 22, 2026 16:15
Codex authenticates only from ~/.codex/auth.json — it does not read
OPENAI_API_KEY from the environment — so the bare-API-key path never sent a
bearer (401 "Missing bearer or basic authentication"). Only the CODEX_AUTH_JSON
subscription path worked.

writeCodexAuthFile now synthesizes the apikey auth.json that codex login
--with-api-key writes ({auth_mode:apikey,OPENAI_API_KEY:...}) when only
OPENAI_API_KEY is set, mirroring claude-code's ANTHROPIC_API_KEY support.
CODEX_AUTH_JSON keeps precedence and stays refreshable; the API-key path returns
undefined so its synthesized blob is never persisted back into the subscription
credential slot.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
…-key-auth

fix(codex): authenticate a bare OPENAI_API_KEY via synthesized auth.json
@zbigniewsobiecki zbigniewsobiecki merged commit c0b2e96 into main Jun 22, 2026
14 of 15 checks passed
@codecov

codecov Bot commented Jun 22, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant