Skip to content

Reject failed exec workers and align CLI compatibility - #4

Merged
Solarthis merged 1 commit into
mainfrom
fix/pr3-exec-failures
Oct 17, 2026
Merged

Solarthis merged 1 commit into
mainfrom
fix/pr3-exec-failures

Conversation

@Solarthis

Copy link
Copy Markdown
Owner

Failed codex exec processes could produce placeholder replies and task status ok. Reject nonzero exits, signal termination and timeouts before parsing output, preserve failure diagnostics, and keep failed worker calls as loop gaps even when existing verification passes. Successful JSONL, legacy output and resume handling stay covered.

Align the public approval policy type, runtime validation and MCP schema to the supported on-request / never string subset. Update the README and example registration to consistently select exec; keep MCP transport documented as legacy only.

Validation:

  • Reproduced the original bug with a local fake executable writing stderr and exiting 42. Eight new regressions failed before the fix; both successful-output tests passed.
  • npm test: 23 passed, zero failed, including fake worker CLI/MCP failure propagation, partial output, timeout, signal, loop completion and policy schema checks.
  • git diff --check: clean.
  • node scripts/check-codex-policies.mjs: passed against official Codex CLI 0.155.0 and installed 0.159.3. Both accept on-request / never, reject retired values. The check uses an empty temporary CODEX_HOME, read-only sandbox and deliberately missing output schema; no authentication or model execution occurs.

Addresses all three findings in PR #3 review 5558312697. Does not include or modify the separate verifier changes in draft PR #2. No installed CLI, credentials, user security configuration or purchases changed. Legacy MCP and live model execution were not exercised.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 17, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-17T17:31:57.084180Z 1d66a10 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@Solarthis
Solarthis merged commit 54958b7 into main Oct 17, 2026
1 check passed
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.

1 participant