OpenAI open-sources fix for Codex MCP server spawning reliability on macOS
charliermarsh · x · 2026-11-25
Astral founder Charlie Marsh noted Codex spawns shell processes millions of times a week — running commands, starting local MCP servers, firing hooks — and confirmed the related fix is now merged into the open-source openai/codex repo.
PR #42117 root cause: on macOS, Rust falls back to fork when a command combines a relative executable path with a working directory, due to a historical posixspawnp issue, making local MCP server startup unreliable. The fix spawns relative macOS MCP executables directly via posixspawn, preserving the configured path, argv[0], working directory, environment, stdio and process group. PATH lookup and executables without a shebang keep the existing launcher. A unified local child wrapper handles both legacy and 2026-07-28 protocol framing, with cancellation-safe waiting plus kill-and-reap cleanup of dropped children.
More from coding & agent
- Tested orchestrator + Opus 5.5 combos: best quality, but solo runs cost far less — sandersted · 2026-11-25
- Peking University and Microsoft paper finds 37% of coding agent reports contain false claims — rohanpaul_ai · 2026-11-25
- VideoJSON: a minimal harness where coding agents write their own video search beats purpose-built memory — Wenqi Marshall Guo · 2026-11-25
- MCP vs CLI: Controlled Study of 50 Agentic Tasks Finds Frontier Models Erase the Interface Gap — rseroter · 2026-11-25
- Perplexity Teammate automation runs grew 3.7x in two days — persistent agents in demand — alvelda · 2026-11-25
- Gemini 4 Neon lands in OpenCode Console, now the team's default model — DynamicWebPaige · 2026-11-25