mirror of
https://github.com/openai/codex.git
synced 2026-10-19 17:28:46 +00:00
## Why When unified exec cannot create a process, command lifecycle events are missing, leaving clients without a command failure notification. ## What changed Emit start and failure events for terminal process-creation errors in both regular and zsh-fork execution. Report no process ID, an exit code of `-1`, zero duration, and the launch diagnostic, while retaining plugin attribution. Once event publication starts, let it finish even if the caller is cancelled. Preserve approval rejection handling and retryable sandbox denials. ## Testing Extend app-server tests to cover pipe and PTY launch failures, plugin attribution on failed launches, and zsh-fork launch failures after approval. Assert failure metadata and check for duplicate lifecycle notifications while retaining approval-decline coverage. GitOrigin-RevId: 26ed191fc69b903ea4710dd1a6c3b031e8caa4eb