Skip to content

fix: give a clear, non-retrying error when the bundled Codex binary is missing#101

Open
mvanhorn wants to merge 1 commit into
vercel-labs:mainfrom
mvanhorn:fix/100-codex-missing-binary-error
Open

fix: give a clear, non-retrying error when the bundled Codex binary is missing#101
mvanhorn wants to merge 1 commit into
vercel-labs:mainfrom
mvanhorn:fix/100-codex-missing-binary-error

Conversation

@mvanhorn

@mvanhorn mvanhorn commented Jul 2, 2026

Copy link
Copy Markdown

Summary

When the vendored @openai/codex binary is removed or quarantined (macOS Gatekeeper can SIGKILL then remove it), the SDK spawn fails with ENOENT and the processor retried it as a transient error, producing a confusing "no result after N attempts".

Changes

Detect the missing-binary signature (ENOENT/no-such-file combined with the vendored @openai/codex/.../codex path) and surface a clear, actionable error that names the missing path and the quarantine fix (xattr -dr com.apple.quarantine ...) instead of retrying.

Testing

Added tests in packages/processor/src/__tests__/shared.test.ts for the classifier and formatter (positive and negative cases).

Fixes #100

@vercel

vercel Bot commented Jul 2, 2026

Copy link
Copy Markdown

@mvanhorn is attempting to deploy a commit to the Vercel Labs Team on Vercel.

A member of the Team first needs to authorize it.

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.

Codex process fails with SIGKILL then ENOENT after bundled codex binary is removed

1 participant