Skip to content

fix: explain a missing Responses API proxy instead of polling for ENOENT - #189

Open
burgulvedant wants to merge 1 commit into
openai:mainfrom
burgulvedant:fix-missing-proxy-error
Open

burgulvedant wants to merge 1 commit into
openai:mainfrom
burgulvedant:fix-missing-proxy-error

Conversation

@burgulvedant

Copy link
Copy Markdown

Fixes #70

Why

If the Responses API proxy was never started, for example because openai-api-key is empty or the secret is not set, the "Read server info" step polled the missing file for about ten seconds and then failed with a confusing ENOENT error.

What changed

  • read-server-info now fails immediately when the server info file does not exist, with a message that names the openai-api-key input and the secret to check.
  • Other read errors still use the existing retry loop, so a partial write is handled as before.
  • A second codex-action step in the same job that reuses an already running proxy is unaffected, because its server info file exists.
  • Rebuilt dist/main.js so the dist check passes.

Test plan

  • Added test/readServerInfo.test.mjs: a missing file rejects quickly with the new message, and a valid file still sets the port output.
  • pnpm run check and pnpm test pass (165 passed, 2 skipped).
  • Confirmed the missing file test fails against the old code.

When the proxy was never started (for example openai-api-key is empty
because the secret is not set), read-server-info retried the missing
file for about ten seconds and then reported a generic failure.

Fail immediately on ENOENT with a message that names the openai-api-key
input. Other read errors still use the existing retry loop.

Rebuilt dist/main.js.
@github-actions

github-actions Bot commented Oct 31, 2026 •

Copy link
Copy Markdown

All contributors have signed the CLA ✍️ ✅
Posted by the CLA Assistant Lite bot.

@burgulvedant

Copy link
Copy Markdown
Author

I have read the CLA Document and I hereby sign the CLA

github-actions Bot added a commit that referenced this pull request Oct 31, 2026
@burgulvedant

Copy link
Copy Markdown
Author

For context on #70: #71 fixes it in action.yml by changing when the Read server info step runs. This PR keeps those conditions as they are and only changes what happens when the server info file does not exist, so a job that reuses a proxy started by an earlier codex-action step behaves as before. It also has tests and a rebuilt dist/main.js.

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.

Improve missing API key error: avoid ENOENT on missing server info JSON

1 participant