fix: codex auth error message — use codex login, not OPENAI_API_KEY

Codex authenticates via ChatGPT OAuth (codex login), not an env var.
This commit is contained in:
Garry Tan
2026-03-18 21:22:54 -07:00
parent c9cead34e2
commit 0b009d2e84
3 changed files with 6 additions and 6 deletions
+2 -2
View File
@@ -1176,10 +1176,10 @@ describe('Codex skill', () => {
expect(content).not.toContain('/opt/homebrew/bin/codex');
});
test('codex/SKILL.md contains error handling for missing binary and API key', () => {
test('codex/SKILL.md contains error handling for missing binary and auth', () => {
const content = fs.readFileSync(path.join(ROOT, 'codex', 'SKILL.md'), 'utf-8');
expect(content).toContain('NOT_FOUND');
expect(content).toContain('OPENAI_API_KEY');
expect(content).toContain('codex login');
});
test('codex/SKILL.md uses mktemp for temp files', () => {