Skip to content

fix(codex): allow auth.json fallback - #368

Open
mikemikimike wants to merge 1 commit into
modelstudioai:mainfrom
mikemikimike:fix/issue-355-codex-auth-fallback
Open

mikemikimike wants to merge 1 commit into
modelstudioai:mainfrom
mikemikimike:fix/issue-355-codex-auth-fallback

Conversation

@mikemikimike

Copy link
Copy Markdown

Fixes #355

#355

Summary

config agent --agent codex now relies on Codex's auth.json fallback instead of writing env_key = "OPENAI_API_KEY", which Codex treats as a mandatory environment variable. Existing stale env_key values 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=2 on 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).
  • Tested the generated configuration with Codex CLI against a local HTTP endpoint: the original config failed with a missing OPENAI_API_KEY; the updated config sent the test credential from auth.json.

This branch has not been deployed

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

Labels

None yet

Projects

None yet

1 participant