Repository navigation
fix(codex): allow auth.json fallback - #368
Open
mikemikimike wants to merge 1 commit into
Open
mikemikimike wants to merge 1 commit into
mikemikimike wants to merge 1 commit into
Conversation
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #355
#355
Summary
config agent --agent codexnow relies on Codex'sauth.jsonfallback instead of writingenv_key = "OPENAI_API_KEY", which Codex treats as a mandatory environment variable. Existing staleenv_keyvalues are removed while unrelated provider and authentication settings remain preserved.Testing
vp test packages/commands/tests/config-agent-writers.test.ts packages/commands/tests/e2e/config.e2e.test.ts --maxWorkers=2 -t codex: 2 passed.vp check: passed with 9 warnings.vp run -r build --no-cache: passed.vp test --maxWorkers=2on Windows with Node 22: 10,671 passed, 280 skipped, 152 failed. A clean base run had 148 failures; the five additional failed cases involved a timeout or concurrent image ordering, and the two affected files passed on both versions when rerun (88 tests each).OPENAI_API_KEY; the updated config sent the test credential fromauth.json.