Skip to content

fix: handle stdin EPIPE during codex exec - #167

Open
pollychen-lab wants to merge 1 commit into
openai:mainfrom
pollychen-lab:agent/handle-stdin-epipe
Open

fix: handle stdin EPIPE during codex exec#167
pollychen-lab wants to merge 1 commit into
openai:mainfrom
pollychen-lab:agent/handle-stdin-epipe

Conversation

@pollychen-lab

Copy link
Copy Markdown

Summary

  • reject through the normal runCodexExec() promise when writing the prompt to child stdin fails
  • ignore later close and error events after the first failure settles the execution promise
  • add a regression covering a fast fake Codex exit that would otherwise surface an unhandled EPIPE

Fixes #153.

Validation

  • pnpm test -- --test-name-pattern 'stdin EPIPE|workspace-write as the default legacy sandbox'
  • pnpm run check

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.

Fast Codex exits can crash the action with an unhandled stdin EPIPE

1 participant